Sequence of Run Program

More
22 Oct 2012 12:01 #25596 by LAIR82
Can anyone tell me where to find the sequence of events required to initiate "Run Program".

I have tried a couple of scenarios in my ladder logic, but each one has nt worked out as planned. I just am not sure about the mode.auto pin, and what is required between it and the program.run in bit, to make it run from an external cycle start PB.



Thanks


Rick

Please Log in or Create an account to join the conversation.

More
22 Oct 2012 12:23 #25598 by BigJohnT
Replied by BigJohnT on topic Re:Sequence of Run Program
Just did one yesterday on my BP. You need to add halui to your ini file as shown in the Config section of the Integrators manual.

linuxcnc.org/docs/html/config/ini_config...id_sub_hal_section_a

My Run button is connected to the hm2_5i25.0.7i77.0.0.input-08, the rest of the code is generic. If your already using some and2's just increase the count and change the instance number to suit.
# External Program Run Button
loadrt and2 count=1
addf and2.0 servo-thread
net program-run-btn halui.mode.auto <= hm2_5i25.0.7i77.0.0.input-08
net program-run-btn and2.0.in0
net program-is-auto and2.0.in1 <= halui.mode.is-auto
net remote-prg-run halui.program.run <= and2.0.out

John

Please Log in or Create an account to join the conversation.

More
22 Oct 2012 13:00 #25602 by LAIR82
Replied by LAIR82 on topic Re:Sequence of Run Program
Thanks John

Works great now, I'm doing everything in ladder and thought the mode.auto pin had to be maintained, so it would restart on its own. Not good.

Now it works like it should.



Thanks Again


Rick

Please Log in or Create an account to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum