Operation & Software Manual
266
Direct Drives & Systems
Chapter E: Appendixes ETEL Doc. - Operation & Software Manual # DSC2P 903 / Ver. F / 3/6/05
15.35 XAC, INE 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)
INE.2=1,30 ;Goes to label 30 if XAC ≠1
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