ACE-SXC Manual
page 64
rev2.02
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
Содержание ACE-SXC
Страница 1: ...ACE SXC Manual page 1 rev2 02 ACE SXC Advanced Stand Alone Controller USB 2 0 communication...
Страница 8: ...ACE SXC Manual page 8 rev2 02 3 Dimensions Figure 3 0 All dimensions in inches...
Страница 9: ...ACE SXC Manual page 9 rev2 02 4 Connections Figure 4 0...
Страница 12: ...ACE SXC Manual page 12 rev2 02 ACE SXC Interface Circuit Figure 4 4...