Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 264 of 909
Ai(arg)
Arm Index Rising Edge
APPLICATION:
I/O control
DESCRIPTION: Arms the index register for capturing the rising edge of the
encoder
EXECUTION: Immediate
CONDITIONAL TO: N/A
LIMITATIONS: N/A
READ/REPORT: N/A
WRITE: N/A
LANGUAGE ACCESS:
N/A
UNITS: N/A
RANGE OF VALUES: Input:0 or 1
TYPICAL VALUES: Input:0 or 1
DEFAULT VALUE: N/A
FIRMWARE VERSION: 5.x and later
COMBITRONIC: Ai(0):3
where ":3" is the motor address — use the actual address or a
variable
DETAILED DESCRIPTION:
The Ai(value) command arms the index register for capturing the rising edge of the encoder.
To capture the falling edge, see Aj(arg) on page 268.
NOTE: The rising and falling edges are stored to different index registers.
The value parameter specifies the encoder to be captured; it does not specify the source of
the index signal.
l
Ai(0) specifies internal encoder
l
Ai(1) specifies external encoder
Part 2: Commands: Ai(arg)