Operation & Software Manual
242
Direct Drives & Systems
Chapter E: Appendixes
ETEL Doc. - Operation & Software Manual # DSC2P 903 / Ver. F / 3/6/05
15.11 JMP example
X10 must be monitored to see what happens in this example:
:10.0
;Label 10
X10.0=0
;Sets user’s variable X10 of axis 0 to 0
WTT.0=4.0
;Waits for 4 (ISO unit)
:20.0
;Label 20
X10.0+=2
;Adds 2 to the previous value of the user’s variable X10 of the axis 0
WTT.0=1.0
;Waits for 1 (ISO unit)
JMP.0=40
;Goes to label 40
:30.0
;Label 30
X10.0-=1
;Substracts 1 from the previous value of the user’s variable X10 of the axis 0
WTT.0=1.0
;Waits for 1 (ISO unit)
JMP.0=20
;Goes to label 20
:40.0
;Label 40
WTT.0=1.0
;Waits for 1 (ISO unit)
JMP.0=30
;Goes to label 30