DMX ETH Manual
page 69
rev 1.16
Examples:
V1=12345
;***Set Variable 1 to 123
V2=V1+1
;***Set Variable 2 to V1 plus 1
V3=DI
;***Set Variable 3 to digital input value
V4=DO
;***Sets Variable 4 to digital output value
V5=~EO
;***Sets Variable 5 to bit NOT of enable output value
WAITX
Description:
Command:
Tell program to wait until move on the certain axis is finished before
executing next line.
Syntax:
WAITX
Examples:
X10000
;***Move axis to position 10000
WAITX
;***Wait until axis move is done
DO=3
;***Set digital output
X3000
;***Move axis to 3000
WAITX
;***Wait until axis move is done
WHILE
Description:
Perform WHILE loop
Syntax:
WHILE [Argument 1] [Comparison] [Argument 2]
[Argument] can be any of the following:
Numerical value
Pulse or Encoder Position
Digital Output
Digital Input
Enable Output
Motor Status
[Comparison] can be any of the following
=
Equal to
>
Greater than
<
Less than
>=
Greater than or equal to
<=
Less than or equal to
!=
Not Equal to
Examples:
WHILE V1=1
;***While V1 is 1 continue to loop
X0
WAITX
X1000
WAITX
ENDWHILE
Summary of Contents for DMX-ETH
Page 13: ...DMX ETH Manual page 13 rev 1 16 Figure 4 1 Torque Curve NEMA 23 Figure 4 2...
Page 14: ...DMX ETH Manual page 14 rev 1 16 Figure 4 3...
Page 17: ...DMX ETH Manual page 17 rev 1 16 DMX ETH Interface Circuit Figure 5 2...
Page 21: ...DMX ETH Manual page 21 rev 1 16 Main Control Screen Figure 6 3 A B C D E F L K J H M G I...