DX200 IF/THEN statement question.

  • 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.


  • 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.

Advertising from our partners