Z Touch Off

More
4 years 2 months ago #250873 by dzawacki
Replied by dzawacki on topic Z Touch Off
Okay, I have the panel set up with a button on it. I based it off of the gvcp-panel.ui and updated the associated files to get LinuxCNC to load. I commented out the actions in the associated gvcp_options.hal file because I removed the interface items.

However, what I cannot seem to find is how to call the subroutine in the .ngc file. I tried this command and it failed:
Code:
net MDI-probez gladevcp.probe-z        => o<touch_plate_z>

The error message I received while loading LinuxCNC indicated that the o<touch_plate_z> routine was causing the error. 

Am I on the right path? What would be the proper way to call the subroutine from the hal file? I couldn't find this in any of the documentation.

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago #250891 by cmorley
Replied by cmorley on topic Z Touch Off
 Could you posr the relative files?
 

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago #250901 by dzawacki
Replied by dzawacki on topic Z Touch Off
I added them to the zip file.

I included: 
Woodsmith_2x4_CNC.ini
Woodsmith_2x4_CNC.hal
probe-z-panel.ui
probe-gvcp_call_list.hal
probe_gvcp_options.hal
macros/touchplate.ngc

Let me know if something different is needed.

File Attachment:

File Name: ZTouchOffFiles.zip
File Size:6.44 KB

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago - 4 years 2 months ago #250906 by cmorley
Replied by cmorley on topic Z Touch Off
Try these files.
change the INI line to:

EMBED_TAB_COMMAND = halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -x {XID} probe_z.ui

If that works it will print a message on the button press.
If that works then in the probe_z_handler.py file change:
self.cmd.mdi('(MSG, MDI Worked!)')

to:
self.cmd.mdi('o<touch_plate_z> call')

Chris
Last edit: 4 years 2 months ago by cmorley.

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago #250908 by cmorley
Replied by cmorley on topic Z Touch Off
Other file

Please Log in or Create an account to join the conversation.

More
4 years 2 months ago #250909 by cmorley
Replied by cmorley on topic Z Touch Off
the files names are to be:
probe_z.ui
probe_z_handler.py

Please Log in or Create an account to join the conversation.

Time to create page: 0.068 seconds
Powered by Kunena Forum