ETEL Doc. - Operation & Software Manual # DSC2P 903 / Ver. F / 3/6/05
Chapter E: Appendixes
Operation & Software Manual
Direct Drives & Systems
249
15.18 Special labels (79, 80) example
:79.2
;Autostart label (the sequence starts automatically)
MMD.2=17
;Sets the rotary S-curve movement
PWR.2=1
;Power on
WTM.2
;Waits until the movement is finished
IND.2
;Starts the homing
WTM.2
;Waits until the movement is finished
POS.2=0.00000
;Goes to the position 0 (ISO unit)
WTM.2
;Waits until the movement is finished
X1.2=0
;Sets user’s variable X1 of axis 2 to 0
X100.2=0
;Sets user’s variable X100 of axis 2 to 0
:30.2
;Label 30
XAC.2=X1.2
;Copies the value of the user’s variable X1 of the axis 2 in the accumulator (XAC)
IEQ.2=10,50
;Goes to label 50 if XAC = 10
POS.2=10.0000
;Goes to the position 10 (ISO unit)
WTM.2
;Waits until the movement is finished
POS.2=0
;Goes to the position 0 (ISO unit)
WTM.2
;Waits until the movement is finished
X1.2+=1
;Adds 1 to the previous value of the user’s variable X1 of the axis 2
JMP.2=30
;Jumps to label 30
:50.2
;Label 50
PWR.2=0
;Power off
WTT.2=2.00000
;Waits for 2 (ISO unit)
X20.2+=1
;Adds 1 to the previous value of the user’s variable X20 of the axis 2
JMP.2=79
;Jumps to label 79
:80.2
;Label 80 (the sequence jumps automatically to this label if an error occurs)
PWR.2=0
;Power off
X100.2=25
;Sets user’s variable X100 of axis 2 to 25
END.2
;Stops the execution of the sequence