How to use GCode to run halcmd?
19 Feb 2020 19:46 #157892
by meloon
How to use GCode to run halcmd? was created 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.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
19 Feb 2020 21:37 #157899
by Todd Zuercher
Replied by Todd Zuercher on topic How to use GCode to run halcmd?
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)
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.065 seconds