Operation & Software Manual
258
Direct Drives & Systems
Chapter E: Appendixes ETEL Doc. - Operation & Software Manual # DSC2P 903 / Ver. F / 3/6/05
15.27 WBC, WBS example
:10.2 ;Label 10
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
:30.2 ;Label 30
WBS.2=M50.2,1 ;Waits until bit#1 of monitoring M50 (corresponding to DIN2) is equal to 1
POS.2=20.0 ;Goes to the position 20 (ISO unit)
WTM.2 ;Waits until the movement is finished
WTT.2=1.00000 ;Waits for 1 (ISO unit)
POS.2=0.0 ;Goes to the position 0 (ISO unit)
WTM.2 ;Waits until the movement is finished
WTT.2=1.00000 ;Waits for 1 (ISO unit)
:40.2 ;Label 40
WBC.2=M50.2,1 ;Waits until bit#1 of monitoring M50 (corresponding to DIN2) is equal to 0
POS.2=10.0 ;Goes to the position 10 (ISO unit)
WTM.2 ;Waits until the movement is finished
WTT.2=2.00000 ;Waits for 2 (ISO unit)
POS.2=0.0 ;Goes to the position 0 (ISO unit)
WTM.2 ;Waits until the movement is finished
WTT.2=2.00000 ;Waits for 2 (ISO unit)
JMP.2=30 ;Jumps to label 30