DMX ETH Manual
page 73
rev 1.16
Standalone Example Program 6 – Single Thread
Task: If digital input 1 is on, move to position 1000. If digital input 2 is on, move to
position 2000. If digital input 3 is on, move to 3000. If digital input 5 is on, home the
motor in negative direction. Use digital output 1 to indicate that the motor is moving or
not moving.
HSPD=20000
;* Set the high speed to 20000 pulses/sec
LSPD=1000
;* Set the low speed to 1000 pulses/sec
ACC=300
;* Set the acceleration to 300 msec
EO=1
;* Enable the motor power
WHILE 1=1
;* Forever loop
IF DI1=1
;* If digital input 1 is on
X1000
;* Move to 1000
ELSEIF DI2=1
;* If digital input 2 is on
X2000
;* Move to 2000
ELSEIF DI3=1
;* If digital input 3 is on
X3000
;* Move to 3000
ELSEIF DI5=1
;* If digital input 5 is on
HOMEX-
;* Home the motor in negative direction
ENDIF
V1=MSTX
;* Store the motor status to variable 1
V2=V1&7
;* Get first 3 bits
IF V2!=0
DO1=1
ELSE
DO1=0
ENDIF
ENDWHILE
;* Go back to WHILE statement
END
Содержание DMX-ETH
Страница 10: ...DMX ETH Manual page 10 rev 1 16 3 Dimensions All dimensions in inches Controller Figure 3 0 NEMA 17 Figure 3 1...
Страница 13: ...DMX ETH Manual page 13 rev 1 16 Figure 4 1 Torque Curve NEMA 23 Figure 4 2...
Страница 14: ...DMX ETH Manual page 14 rev 1 16 Figure 4 3...
Страница 17: ...DMX ETH Manual page 17 rev 1 16 DMX ETH Interface Circuit Figure 5 2...
Страница 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...