Operation & Software Manual
264
Direct Drives & Systems
Chapter E: Appendixes ETEL Doc. - Operation & Software Manual # DSC2P 903 / Ver. F / 3/6/05
15.33 XAC, IEQ, ILT, IGT example
:10.2 ;Label 10
X10.2=0 ;Sets user’s variable X10 of axis 2 to 0
:20.2 ;Label 20
XAC.2=X10.2 ;Copies the value of the user’s variable X10 of the axis 2 in the accumulator (XAC)
IEQ.2=10,30 ;Goes to label 30 if XAC = 10
ILT.2=5,40 ;Goes to label 40 if XAC < 5
IGT.2=10,50 ;Goes to label 50 if XAC > 10
:30.2 ;Label 30
X20.2=1 ;Sets user’s variable X20 of axis 2 to 1
WTT.2=0.1 ;Waits for 0.1 (ISO unit)
X20.2=0 ;Sets user’s variable X20 of axis 2 to 0
WTT.2=0.1 ;Waits for 0.1 (ISO unit)
X10.2+=1 ;Adds 1 to the previous value of the user’s variable X10 of the axis 2
JMP.2=20 ;Jumps to label 20
:40.2 ;Label 40
X20.2=2 ;Sets user’s variable X20 of axis 2 to 2
WTT.2=1.0 ;Waits for 1 (ISO unit)
X20.2=0 ;Sets user’s variable X20 of axis 2 to 0
WTT.2=1.0 ;Waits for 1 (ISO unit)
X10.2+=1 ;Adds 1 to the previous value of the user’s variable X10 of the axis 2
JMP.2=20 ;Jumps to label 20
:50.2 ;Label 50
X20.2=4 ;Sets user’s variable X20 of axis 2 to 4
WTT.2=2.0 ;Waits for 2 (ISO unit)
X20.2=0 ;Sets user’s variable X20 of axis 2 to 0
WTT.2=2.0 ;Waits for 2 (ISO unit)
X10.2+=2 ;Adds 2 to the previous value of the user’s variable X10 of the axis 2
JMP.2=20 ;Jumps to label 20