
94
state in the figure above.
Figure 19-3 IF Instruction-2
8. Click the OK button in the operation column to add the IF instruction.
Example
LBL[1]
IF (R[1]=10 AND R[2]=20 AND R[30]=30) OR DO[31]=ON , GOTO LBL[2]
J P[1] VEL=50
GOTO LBL[3]
LBL[2]
IF R[1]=2,CALL"TEST.PRG"
J P[2] VEL=50
LBL[3]
GOTO LBL[1]
Logic operation
:
The currently supported arithmetic operators are shown in the following table: