run button through 7I37
12 Aug 2013 05:58 #37574
by lendrum
run button through 7I37 was created by lendrum
I am trying to use an external switch to start the run cycle through Mesa 7I37 and 7I43. I can get PnCConf to configure the switch as a limit switch and it shows up in Axis. How do I make this switch start the run cycle?
Please Log in or Create an account to join the conversation.
12 Aug 2013 10:51 #37577
by cmorley
Replied by cmorley on topic run button through 7I37
Pncconf will not make the cycle start HAL connections for you.
I never added the capability aside from TOUCHY as TOUCHY requires it.
But select an input pin look under operations and select cycle start.
This will tell Pncconf to add a signal named cycle-start to the pin you selected.
Now in the custom.hal file add this command:
net cycle-start halui.program.run
and if I have told you no lies, that should be it, aside from actually connecting a momentary switch to the selected pin
Chris M
I never added the capability aside from TOUCHY as TOUCHY requires it.
But select an input pin look under operations and select cycle start.
This will tell Pncconf to add a signal named cycle-start to the pin you selected.
Now in the custom.hal file add this command:
net cycle-start halui.program.run
and if I have told you no lies, that should be it, aside from actually connecting a momentary switch to the selected pin
Chris M
The following user(s) said Thank You: lendrum
Please Log in or Create an account to join the conversation.
12 Aug 2013 10:54 #37578
by cmorley
Replied by cmorley on topic run button through 7I37
Please Log in or Create an account to join the conversation.
12 Aug 2013 23:39 #37591
by lendrum
Replied by lendrum on topic run button through 7I37
I would never suggest that you are not a totally honest person but Linuxcnc disagrees with you.
LinuxCnc complains "can't do that(EMC_TASK_PLAN_RUN) in manual mode"
and it does not like midi mode either.
I added "net cycle-start halui.mode.auto" to the custom.hal file and it works. Auto mode turns false when the switch is released but manual mode remains false until the program ends, then turns true.
Thank for the help.
LinuxCnc complains "can't do that(EMC_TASK_PLAN_RUN) in manual mode"
and it does not like midi mode either.
I added "net cycle-start halui.mode.auto" to the custom.hal file and it works. Auto mode turns false when the switch is released but manual mode remains false until the program ends, then turns true.
Thank for the help.
Please Log in or Create an account to join the conversation.
13 Aug 2013 01:18 #37594
by cmorley
Replied by cmorley on topic run button through 7I37
Well yes the cycle start command only tells linuxcnc that you request cycle start, not to change modes.
but seems you figured out what you need to do.
At times it can be fairly difficult to get the logic right:
wiki.linuxcnc.org/cgi-bin/wiki.pl?One_Button_Run/Resume
but seems you figured out what you need to do.
At times it can be fairly difficult to get the logic right:
wiki.linuxcnc.org/cgi-bin/wiki.pl?One_Button_Run/Resume
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.061 seconds