ACE-SXC Manual
page 63
rev2.02
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
Summary of Contents for ACE-SXC
Page 1: ...ACE SXC Manual page 1 rev2 02 ACE SXC Advanced Stand Alone Controller USB 2 0 communication...
Page 8: ...ACE SXC Manual page 8 rev2 02 3 Dimensions Figure 3 0 All dimensions in inches...
Page 9: ...ACE SXC Manual page 9 rev2 02 4 Connections Figure 4 0...
Page 12: ...ACE SXC Manual page 12 rev2 02 ACE SXC Interface Circuit Figure 4 4...