halui.mode.is-auto vs. halui.mode.is-mdi. which is the safest?

More
28 Oct 2021 17:26 - 28 Oct 2021 17:30 #224595 by bkt
to check if the program is running I usually use this system:
net xx1 halui.program.is-running => and2.0.in0
net xx2 halui.program.is-auto => and2.0.in1
net xx3 and2.0.out => and2.1.in0
net xx4 motion.motion-enabld => and2.1.in1
net xx5 and2.1.out => my.pin.for.chech.program.running

Wanting to start the program with an MDI command (it is a complex program that includes a series of nested sub-routines) I should use halui.mode.is-mdi instead of halui.mode.is-auto ... are there any contraindications? Or a better and more safe system than mine?

Thanks in advances
Last edit: 28 Oct 2021 17:30 by bkt.

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

More
04 Nov 2021 22:32 #225285 by andypugh
I am not sure what the best approach is, but you could look at using the "logic" HAL component for a three-input AND.
(Or LUT5)

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

Time to create page: 0.071 seconds
Powered by Kunena Forum