Operation & Software Manual
248
Direct Drives & Systems
Chapter E: Appendixes ETEL Doc. - Operation & Software Manual # DSC2P 903 / Ver. F / 3/6/05
15.17 RSD 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
: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)
RSD.2=255 ;Hardware reset of the controller