ETEL Doc. - Operation & Software Manual # DSC2P 903 / Ver. F / 3/6/05 Chapter E: Appendixes
Operation & Software Manual
Direct Drives & Systems 265
15.34 XAC, IGE, ILE 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)
ILE.2=5,30 ;Goes to label 30 if XAC ≤ 5
IGE.2=10,50 ;Goes to label 50 if XAC ≥ 10
X10.2+=1 ;Adds 1 to the previous value of the user’s variable X10 of the axis 2
WTT.2=1.0 ;Waits for 1 (ISO unit)
JMP.2=20 ;Jumps to label 20
: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
: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