problem with single run/resume button.
09 Feb 2014 05:35 #43646
by jbunch
Replied by jbunch on topic problem with single run/resume button.
I have worked out the "cycle start/resume" on a single button. Used my hardware logic simulater program to build and test
and then converted it into hal logic.
In the testing I have done it works great.
Here is the snipit of the code from my hal file.
#******** Cycle start and resume
net push_cycle_start and2.4.in1 and2.5.in1 <= hm2_5i20.0.gpio.060.in_not
net auto_mode_is_set and2.4.in0 not.0.in <= halui.mode.is-auto
net invert_auto_mode and2.5.in0 <= not.0.out
net sel_auto_mode halui.mode.auto <= and2.5.out
net interlock_auto_mode and2.6.in0 and2.7.in0 <= and2.4.out
net pgm_is_idle and2.6.in1 <= halui.program.is-idle
net pgm_is_paused and2.7.in1 <= halui.program.is-paused
net pgm_is_running_invert not.1.in <= halui.program.is-running
net pgm_is_running and2.8.in0 and2.9.in0 <= not.1.out
net pgm_idle_interlock and2.8.in1 <= and2.6.out
net pgm_paused_interlock and2.9.in1 <= and2.7.out
net start_run_pgm halui.program.run <= and2.8.out
net Resume_running_pgm halui.program.resume <= and2.9.out
#******** End Cycle Start and resume
#******** start pause program/Feed hold
net pgm_pause halui.program.pause <= hm2_5i20.0.gpio.059.in_not
#******* End Pause PGM/Feed Hold
also attached is a PDF of my hardware logic.
Jim
and then converted it into hal logic.
In the testing I have done it works great.
Here is the snipit of the code from my hal file.
#******** Cycle start and resume
net push_cycle_start and2.4.in1 and2.5.in1 <= hm2_5i20.0.gpio.060.in_not
net auto_mode_is_set and2.4.in0 not.0.in <= halui.mode.is-auto
net invert_auto_mode and2.5.in0 <= not.0.out
net sel_auto_mode halui.mode.auto <= and2.5.out
net interlock_auto_mode and2.6.in0 and2.7.in0 <= and2.4.out
net pgm_is_idle and2.6.in1 <= halui.program.is-idle
net pgm_is_paused and2.7.in1 <= halui.program.is-paused
net pgm_is_running_invert not.1.in <= halui.program.is-running
net pgm_is_running and2.8.in0 and2.9.in0 <= not.1.out
net pgm_idle_interlock and2.8.in1 <= and2.6.out
net pgm_paused_interlock and2.9.in1 <= and2.7.out
net start_run_pgm halui.program.run <= and2.8.out
net Resume_running_pgm halui.program.resume <= and2.9.out
#******** End Cycle Start and resume
#******** start pause program/Feed hold
net pgm_pause halui.program.pause <= hm2_5i20.0.gpio.059.in_not
#******* End Pause PGM/Feed Hold
also attached is a PDF of my hardware logic.
Jim
Please Log in or Create an account to join the conversation.
09 Feb 2014 19:41 #43658
by BigJohnT
Replied by BigJohnT on topic problem with single run/resume button.
Here is how you do it with toggle2nist...
linuxcnc.org/index.php/english/forum/47-...p-holdresume-buttons
JT
linuxcnc.org/index.php/english/forum/47-...p-holdresume-buttons
JT
Please Log in or Create an account to join the conversation.
10 Feb 2014 01:55 #43675
by jbunch
Replied by jbunch on topic problem with single run/resume button.
John,
I tried yours. But it was not like my mill. I use my mill much more then my lathe and
on these functions I wanted them to work the same. Habits take over when you have problems.
Jim
I tried yours. But it was not like my mill. I use my mill much more then my lathe and
on these functions I wanted them to work the same. Habits take over when you have problems.
Jim
Please Log in or Create an account to join the conversation.
Time to create page: 0.061 seconds