Is it possible to make an IF/THEN statement in the program that the "IF" is referring to an output? for example
IFTHENEXP DOUT OT#(3)=ON THEN
DOUT OT#(2) ON
ELSE
DOUT OT#(2) OFF
ENDIF
Is it possible to make an IF/THEN statement in the program that the "IF" is referring to an output? for example
IFTHENEXP DOUT OT#(3)=ON THEN
DOUT OT#(2) ON
ELSE
DOUT OT#(2) OFF
ENDIF
Display More
Is it possible to make an IF/THEN statement in the program that the "IF" is referring to an output? for example
IFTHENEXP DOUT OT#(3)=ON THEN
DOUT OT#(2) ON
ELSE
DOUT OT#(2) OFF
ENDIF
Yes but your code will be:
IFTHENEXP OT#(3)=ON THEN
DOUT OT#(2) ON
ELSE
DOUT OT#(2) OFF
ENDIF
no DOUT in the if statement.
Display More
Yes but your code will be:
IFTHENEXP OT#(3)=ON THEN
DOUT OT#(2) ON
ELSE
DOUT OT#(2) OFF
ENDIF
no DOUT in the if statement.
How do I select the that on the teach pendant, or do I have to do it manually on an editor? When I go to edit the IF/THEN on the pendant it only gives me IN#, IG# and bits or strings as an option.
Yeah it doesn't seem to let me change it, not even in the editor...
Damn, that would have been extremely useful.
Here a solution:
DIN Bxxx OT#(3)
IFTHENEXP Bxxx=1 THEN
DOUT OT#(2) ON
ELSE
DOUT OT#(2) OFF
ENDIF