- Posts: 176
- Thank you received: 14
Where do I find the corresponding G-code for Linuxcnc component
- PhilipME
- Offline
- Elite Member
-
Less
More
4 years 11 months ago #225935
by PhilipME
Where do I find the corresponding G-code for Linuxcnc component was created by PhilipME
For example
motion.digital-out-00 can be triggered by M64 and M65
I will appreciate the slightest hint
Best regards
Philip
motion.digital-out-00 can be triggered by M64 and M65
I will appreciate the slightest hint
Best regards
Philip
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
4 years 11 months ago #225947
by andypugh
Replied by andypugh on topic Where do I find the corresponding G-code for Linuxcnc component
Can you explain the question a bit more?
All the G-codes are explained here, but I don't think that is what you are asking?
linuxcnc.org/docs/2.8/html/gcode.html
(also in other languages:
linuxcnc.org/docs/2.8/html/gcode_es.html
linuxcnc.org/docs/2.8/html/gcode_fr.html
linuxcnc.org/docs/2.8/html/gcode_vi.html )
All the G-codes are explained here, but I don't think that is what you are asking?
linuxcnc.org/docs/2.8/html/gcode.html
(also in other languages:
linuxcnc.org/docs/2.8/html/gcode_es.html
linuxcnc.org/docs/2.8/html/gcode_fr.html
linuxcnc.org/docs/2.8/html/gcode_vi.html )
The following user(s) said Thank You: PhilipME
Please Log in or Create an account to join the conversation.
- PhilipME
- Offline
- Elite Member
-
Less
More
- Posts: 176
- Thank you received: 14
4 years 11 months ago #225962
by PhilipME
Replied by PhilipME on topic Where do I find the corresponding G-code for Linuxcnc component
Thanks Andy
I am studying the hal for the last few days while waiting for the vfd and other hardware delivery.
I think I have to spend more time to be able to ask questions that make sense.
The link you posted has a column that list the G-code, is there exist a table where a second column that show elements like motion.digital-out-00 next to the g-code , so I know that to change the state of motion.digital-out-00, I need to execute M64/M65
If the question still does not make sense, it means I still have to spend quality time studying to be able to ask the correct question.
Many thanks
Philip
I am studying the hal for the last few days while waiting for the vfd and other hardware delivery.
I think I have to spend more time to be able to ask questions that make sense.
The link you posted has a column that list the G-code, is there exist a table where a second column that show elements like motion.digital-out-00 next to the g-code , so I know that to change the state of motion.digital-out-00, I need to execute M64/M65
If the question still does not make sense, it means I still have to spend quality time studying to be able to ask the correct question.
Many thanks
Philip
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
-
Less
More
- Posts: 12170
- Thank you received: 4153
4 years 11 months ago #225965
by rodw
Replied by rodw on topic Where do I find the corresponding G-code for Linuxcnc component
If you follow the link for your m code you should get the detail
linuxcnc.org/docs/2.8/html/gcode/m-code.html#mcode:m62-m65
Also look at M67 and M68 a bit further down
linuxcnc.org/docs/2.8/html/gcode/m-code.html#mcode:m62-m65
Also look at M67 and M68 a bit further down
The following user(s) said Thank You: PhilipME
Please Log in or Create an account to join the conversation.
- Michael
- Offline
- Platinum Member
-
Less
More
- Posts: 335
- Thank you received: 59
4 years 11 months ago - 4 years 11 months ago #225989
by Michael
Replied by Michael on topic Where do I find the corresponding G-code for Linuxcnc component
The M64/65 is the g code. In hal you will need to tie that to an output or input for it to work.
Net table-clamp motion.digitial-out-00 => hm2_7i92.0.7i77.0.0.output-15
When you have in your g code::
M64 P0
It will activate the table clamp via that output
Net table-clamp motion.digitial-out-00 => hm2_7i92.0.7i77.0.0.output-15
When you have in your g code::
M64 P0
It will activate the table clamp via that output
Last edit: 4 years 11 months ago by Michael.
The following user(s) said Thank You: PhilipME
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
4 years 11 months ago #226003
by andypugh
Replied by andypugh on topic Where do I find the corresponding G-code for Linuxcnc component
Most G-codes do not directly drive HAL pins.
M3 / M4 / M5 control the spindle.N... pins
M19 also has pins for each spindle.
documented here: linuxcnc.org/docs/2.8/html/man/man9/motion.9.html
M7 / M8 / M9 control coolant:
M6 controls tool-change pins
linuxcnc.org/docs/2.8/html/man/man9/motion.9.html
M3 / M4 / M5 control the spindle.N... pins
M19 also has pins for each spindle.
documented here: linuxcnc.org/docs/2.8/html/man/man9/motion.9.html
M7 / M8 / M9 control coolant:
M6 controls tool-change pins
linuxcnc.org/docs/2.8/html/man/man9/motion.9.html
The following user(s) said Thank You: PhilipME
Please Log in or Create an account to join the conversation.
Time to create page: 1.338 seconds