wait for the action and do another programm line
11 Feb 2011 12:17 - 11 Feb 2011 13:16 #7142
by dzarek
wait for the action and do another programm line was created by dzarek
This is my first post on the forum, so Hi
I have a problem, I want to EMC carries out the next step after receiving the signal from the switch.
Prass cuts the hole when he puts the program plate moves to another location.
For now, I think the M1 after typing each line and connecting the switch into the S key, but maybe it can be done more professionally, without using the command M1?
I have a problem, I want to EMC carries out the next step after receiving the signal from the switch.
Prass cuts the hole when he puts the program plate moves to another location.
For now, I think the M1 after typing each line and connecting the switch into the S key, but maybe it can be done more professionally, without using the command M1?
Last edit: 11 Feb 2011 13:16 by dzarek.
Please Log in or Create an account to join the conversation.
11 Feb 2011 17:07 #7143
by andypugh
Replied by andypugh on topic Re:wait for the action and do another programm line
Look at M66
www.linuxcnc.org/docview/html/gcode_main...ec:M66-Input-Control
Specifically you probably want M66 P0 L3
You will need to add
net d1 motion.digital-in-00 <= parport.0.pin-01-in
Or similar to your custom.hal file to complete the "circuit"
(This is from memory, I am not even sure if pin 1 is an input pin)
www.linuxcnc.org/docview/html/gcode_main...ec:M66-Input-Control
Specifically you probably want M66 P0 L3
You will need to add
net d1 motion.digital-in-00 <= parport.0.pin-01-in
Or similar to your custom.hal file to complete the "circuit"
(This is from memory, I am not even sure if pin 1 is an input pin)
Please Log in or Create an account to join the conversation.
Time to create page: 0.127 seconds