How to use GCode to run halcmd?

More
19 Feb 2020 19:46 #157892 by meloon
I have a project that uses GCODE to control all the HAL components. For example, I have a python HAL component, that basically checks its pin values to execute things. Does anyone know how to use GCode to control the customized HAL pin values? Or use GCode to run halcmd?

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

More
19 Feb 2020 21:37 #157899 by Todd Zuercher
You can use custom M-codes to issue hal commands to setp a value to a hal pin directly.
linuxcnc.org/docs/html/gcode/m-code.html#mcode:m100-m199
Or you can use M62-M68 to read and write values to hal (using motion pins)
The following user(s) said Thank You: meloon

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

Time to create page: 0.058 seconds
Powered by Kunena Forum