- Posts: 1111
- Thank you received: 0
halui.mode.is-auto vs. halui.mode.is-mdi. which is the safest?
5 years 3 days ago #224595
by bkt
to check if the program is running I usually use this system:
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
Code:
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
Please Log in to join the conversation.
4 years 11 months ago #225285
by andypugh
Replied by andypugh on topic halui.mode.is-auto vs. halui.mode.is-mdi. which is the safest?
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)
(Or LUT5)
Please Log in to join the conversation.
Time to create page: 0.075 seconds
