Okay, so for some reason it was jumping out of halui.mode.auto after two 
button presses. To fix it, I had to explicitly set halui.mode.auto on 
each button press for step. This behaviour does not exist with 
halui.program.run or halui.program.resume.

I am still getting occasional errors on my stop button. Here is my hal 
code loosely based upon the flow chart found here:
http://wiki.linuxcnc.org/cgi-bin/wiki.pl?One_Button_Run/Resume

net x11 or2.5.out => flipflop.0.set
net switches-start =>  or2.5.in0 edge.0.in
net x1 halui.mode.is-auto => flipflop.0.reset
net x2 flipflop.0.out => halui.mode.auto

net x3 edge.0.out => and2.6.in0 and2.7.in0
net x4 halui.program.is-idle => and2.6.in1
net x5 and2.6.out => flipflop.1.set
net x6 halui.program.is-running => flipflop.1.reset flipflop.2.reset
net x7 flipflop.1.out => halui.program.run

net x8 halui.program.is-paused => and2.7.in1
net x9 and2.7.out => flipflop.2.set
net x10 flipflop.2.out halui.program.resume

net switches-step  => halui.program.step or2.5.in1
net switches-pause => halui.program.pause
net switches-stop  => halui.program.stop

 >Len

On 5/28/2015 7:40 AM, sam sokolik wrote:
> Just some quick playing in halcmd..
>
> setp halui.mode.auto true
>
> the setting
> halui.program.step true/false/true/false/true/false.....   single steps
> through the program
>
> sam
>


------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to