EasyManua.ls Logo

Etel DSC2P - TST, JGT, JEQ, JNE Example

Etel DSC2P
370 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Operation & Software Manual
256
Direct Drives & Systems
Chapter E: Appendixes ETEL Doc. - Operation & Software Manual # DSC2P 903 / Ver. F / 3/6/05
15.25 TST, JGT, JEQ, JNE 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
X10.2=0 ;Sets user’s variable X10 of axis 2 to 0
:20.2 ;Label 20
TST.2=X10.2,10 ;Compares the value of X10 of the axis 2 with the value 10
JEQ.2=30 ;Sequence execution goes on from label 30 if X10.2=10. If X10.210, the sequence
goes on from the following line
JGT.2=40 ;Sequence execution goes on from label 40 if X10.2>10. If X10.2<10, the sequence
goes on from the following line
JNE.2=20 ;As long as X10.210, it jumps to label 20, otherwise the sequence goes on from the
following line
:30.2 ;Label 30
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)
JMP.2=20 ;Jumps to label 20
:40.2 ;Label 40
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=20 ;Jumps to label 20

Table of Contents

Other manuals for Etel DSC2P

Related product manuals