- Posts: 5
- Thank you received: 0
custom m code
7 years 8 months ago #126197
by c123
custom m code was created by c123
Can anyone recommend me a manual for creating custom m codes? I know there are a lot of examples out there but they are all very case specific and none explains how the card gets addressed and where to place bash files.
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
7 years 8 months ago #126200
by Todd Zuercher
Replied by Todd Zuercher on topic custom m code
The documentation is here:
linuxcnc.org/docs/html/gcode/m-code.html#mcode:m100-m199
You save the file to a directory specified in the ini file for your config.
linuxcnc.org/docs/html/config/ini-config.html#_rs274ngc_section
It can also be in the directory specified in the "OPEN_FILE=" path specified in the Display section of your ini file.
For the most part custom M-codes work by directly setting the values of hal pins, such as the hal pin for a parallel port board "parport.0.pin-14-out"
linuxcnc.org/docs/html/gcode/m-code.html#mcode:m100-m199
You save the file to a directory specified in the ini file for your config.
linuxcnc.org/docs/html/config/ini-config.html#_rs274ngc_section
It can also be in the directory specified in the "OPEN_FILE=" path specified in the Display section of your ini file.
For the most part custom M-codes work by directly setting the values of hal pins, such as the hal pin for a parallel port board "parport.0.pin-14-out"
Please Log in to join the conversation.
Time to create page: 0.081 seconds
