Probe and Touchoff

More
1 year 7 months ago - 1 year 7 months ago #323743 by Todd Zuercher
Replied by Todd Zuercher on topic Probe and Touchoff
You can call an MDI command with a hal pin, that would then be triggered by your button output, by using a Halui MDI.
linuxcnc.org/docs/html/gui/halui.html#_mdi_2

Or if you are programming your user interface, you can program your gui button to issue MDI commands directly, such as with GadeVCP.
linuxcnc.org/docs/html/gui/gladevcp.html...d_action_mdi_widgets
Last edit: 1 year 7 months ago by Todd Zuercher.

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

More
1 year 7 months ago #323992 by aikiaviator
Replied by aikiaviator on topic Probe and Touchoff
Ok, so I have the M101 and M102 functioning correctly. It is set as disabled on startup and can activate and deactivate with MDI code in Probe Basic with M101 and M102.

I have used the Template Main to create two buttons. "Edge Probe - ON" and "Edge Probe - OFF", and have them connected and alternating active on selection.

BUT, I cannot find any instructions or examples on how to create the connection from the buttons to the M101 and M102 files so that they can be run on click. Does someone have an example of the process that is used to activate the connection to the M-code files created and stored?
 

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

More
1 year 7 months ago #324033 by aikiaviator
Replied by aikiaviator on topic Probe and Touchoff
Alright. So I have finally figured out what you were pointing to Todd in your links and have activated the .py script and included the M101 and M102 as MACROS into the ini file.

I did this by shifting the default templates out as it appears there can only be a single version of User Sidebar at any one time.

I noticed that the .py script does not seem to show activation of the button on click/toggle. I tried un-commenting the Style sheet, but this is a little above my pay grade.

So next steps is setting the First Macro as toggled on, and when setting the next button, setting focus on the button pushed. Can anyone help me with the .py scripting that would update the button selected in the MDI button .py script in the following link: github.com/kcjengr/probe_basic/pull/84

Thanks in advance.
I am nearly there with an operating system.

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

Time to create page: 0.129 seconds
Powered by Kunena Forum