DMX ETH Manual
page 71
rev 1.16
11. Example Standalone Programs
Standalone Example Program 1 – Single Thread
Task: Set the high speed and low speed and move the motor to 1000 and back to 0.
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
X1000
;* Move to 1000
WAITX
;*Wait for X-axis move to complete
X0
;* Move to 1000
END
;* End of the program
Standalone Example Program 2 – Single Thread
Task: Move the motor back and forth indefinitely between position 1000 and 0.
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
X1000
;* Move to zero
WAITX
;*Wait for X-axis move to complete
X0
;* Move to 1000
ENDWHILE
;* Go back to WHILE statement
END
Standalone Example Program 3 – Single Thread
Task: Move the motor back and forth 10 times between position 1000 and 0.
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
V1=0
;* Set variable 1 to value 0
WHILE V1<10
;* Loop while variable 1 is less than 10
X1000
;* Move to zero
WAITX
;*Wait for X-axis move to complete
X0
;* Move to 1000
V1=V1+1
;* Increment variable 1
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...