ETEL Doc. - Operation & Software Manual # DSC2P 903 / Ver. F / 3/6/05 Chapter E: Appendixes
Operation & Software Manual
Direct Drives & Systems 241
15.10 JBS, JBC example
:10.0 ;Label 10
PWR.0=1 ;Power on
WTM.0 ;Waits until the movement is finished
IND.0 ;Starts the homing
WTM.0 ;Waits until the movement is finished
SPD.0=360.000 ;Sets the maximum speed to 360 (ISO unit)
ACC.0=300.000 ;Sets the maximum acceleration to 300 (ISO unit)
X10.0=0 ;Sets user’s variable X10 of axis 0 to 0
:20.0 ;Label 20
XAC.0=X10.0 ;Puts the value of the user’s variable X10 of axis 0 in the accumulator (XAC)
JBS.0=0,30 ;If the bit# 0 of the accumulator is equal to 1, the execution goes on from label 30
JBC.0=0,40 ;If the bit# 0 of the accumulator is equal to 0, the execution goes on from label 40
JMP.0=20 ;Goes to label 20
:30.0 ;Label 30
POS.0=100.0 ;Goes to the position 100 (ISO unit)
WTT.0=1.00000 ;Waits for 1 (ISO unit)
POS.0=0.00000 ;Goes to the position 0 (ISO unit)
WTT.0=1.00000 ;Waits for 1 (ISO unit)
JMP.0=20 ;Goes to label 20
:40.0 ;Label 40
POS.0=10.0 ;Goes to the position 10 (ISO unit)
WTT.0=2.00000 ;Waits for 2 (ISO unit)
POS.0=0.00000 ;Goes to the position 0 (ISO unit)
WTT.0=2.00000 ;Waits for 2 (ISO unit)
JMP.0=20 ;Goes to label 20