Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 439 of 909
EOIDX(number)
Encoder, Output Index
APPLICATION: I/O control
DESCRIPTION:
Output encoder index to specified logical I/O
EXECUTION: Immediate
CONDITIONAL TO: N/A
LIMITATIONS: N/A
READ/REPORT: N/A
WRITE: Write only
LANGUAGE ACCESS: N/A
UNITS: N/A
RANGE OF VALUES: Depends on the motor model (see details)
TYPICAL VALUES: Depends on the motor model (see details)
DEFAULT VALUE: -1 (disabled)
FIRMWARE VERSION: 5.x.4.42 or later
Not available on Class 6 firmware
COMBITRONIC: N/A
DETAILED DESCRIPTION:
The EOIDX()command is used to output the encoder's index to the output specified by the
number parameter, where number=
l
-1 to disable (this is the default state on power-up), or
l
a valid logical I/O number is specified based on the motor style:
l
For Class 5 D-Style:
number=6 to use logical I/O 6 (pin 7 on DA-15 15-pin connector)
l
For Class 5 M-Style:
number=7 to use logical I/O 7 (pin 6 on circular M12 12-pin connector)
NOTE: The EOIDX() command is not available for Class 6 motors.
EXAMPLE: (enabling and disabling)
EOIDX(6) 'Enable for an SM23165D motor
EOIDX(-1) 'Disable
RELATED COMMANDS:
EIRE Enable Index Register, External-Input Capture (see page 412)
EIRI Enable Index Register, Internal-Input Capture (see page 414)
Part 2: Commands: EOIDX(number)