![Arcus ACE-SXC Скачать руководство пользователя страница 62](http://html1.mh-extra.com/html/arcus/ace-sxc/ace-sxc_manual_2965571062.webp)
ACE-SXC Manual
page 62
rev2.02
END
Standalone Example Program 4 – Single Thread
Task: Move the motor back and forth between position 1000 and 0 only if the digital
input 1 is turned on.
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, execute the statements
X1000
;* Move to zero
WAITX
;*Wait for X-axis move to complete
X0
;* Move to 1000
ENDIF
ENDWHILE
;* Go back to WHILE statement
END
Standalone Example Program 5 – Single Thread
Task: Using a subroutine, increment the motor by 1000 whenever the DI1 rising edge is
detected.
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 zero
WHILE 1=1
;* Forever loop
IF DI1=1
;* If digital input 1 is on, execute the statements
GOSUB 1
;* Move to zero
ENDIF
ENDWHILE
;* Go back to WHILE statement
END
SUB 1
XV1
;* Move to V1 target position
V1=V1+1000
;* Increment V1 by 1000
WHILE DI1=1
;* Wait until the DI1 is turned off so that
ENDWHILE
;* 1000 increment is not continuously done
ENDSUB
Содержание 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...