P
ar
t
2: C
omman
d
s
Moog Animatics SmartMotor™ Developer's Guide, Rev. L
Page 267 of 909
EXAMPLE:
EIGN
(W,0)
'Set all I/O as general inputs
a=0
ZS
'Clear all faults
Aij
(0)
'Arm motor’s capture register
MV
'Set up slow velocity mode
VT
=1000
ADT
=10
'Set up slow accel/decel
G
'Start motion
WHILE
Bi
(0)==0
'While waiting for rising edge
LOOP
'Loop back
RI
(0)
'Report rising edge
WHILE
Bj
(0)==0
'While waiting for falling edge
LOOP
'Loop back
RJ
(0)
'Report falling edge
OFF
END
RELATED COMMANDS:
Arm Index Rising Edge (see page 264)
Arm Index Falling Edge (see page 268)
Arm Index Falling Edge Then Rising Edge (see page 270)
R
Bit, Index Capture, Rising (see page 304)
R
Bit, Index Capture, Falling (see page 307)
Enable Index Register, External-Input Capture (see page 412)
Enable Index Register, Internal-Input Capture (see page 414)
R
Index, Rising-Edge Position (see page 471)
R
Index, Falling-Edge Position (see page 493)
Part 2: Commands: Aij(arg)
Содержание SmartMotor
Страница 1: ...Developer s Guide Class 5 Later SmartMotor Technology with TM ...
Страница 909: ...PN SC80100003 002 Rev L ...