DMX ETH Manual
page 74
rev 1.16
Standalone Example Program 7 – Multi Thread
Task: Program 0 will continuously move the motor between positions 0 and 1000.
Simultaneously, program 1 will control the status of program 0 using digital inputs.
PRG 0
;* Start of Program 0
HSPD=20000
;* Set high speed to 20000pps
LSPD=500
;* Set low speed to 500pps
ACC=500
;* Set acceleration to 500ms
WHILE 1=1
;* Forever loop
X0
;* Move to position 0
WAITX
;* Wait for the move to complete
X1000
;* Move to position 1000
WAITX
;* Wait for the move to complete
ENDWHILE
;* Go back to WHILE statement
END
;* End Program 0
PRG 1
;* Start of Program 1
WHILE 1=1
;* Forever loop
IF DI1=1
;* If digital input 1 is triggered
ABORTX
;* Stop movement
SR0=0
;* Stop Program 1
ELSE
;* If digital input 1 is not triggered
SR0=1
;* Run Program 1
ENDIF
;* End if statements
ENDWHILE
;* Go back to WHILE statement
END
;* End Program 1
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...