Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 304 of 909
Bi(enc)
Bit, Index Capture, Rising
APPLICATION: System
DESCRIPTION:
Rising edge capture on encoder:
Bi(0) specifies the internal encoder (channel 0)
Bi(1) specifies the external encoder (channel 1)
EXECUTION: Historical, latched by PID sample
CONDITIONAL TO: Index capture, arming index: Ai(enc), Aij(enc), Aji(enc), EIRI,
EIRE
LIMITATIONS: None
READ/REPORT: RBi(enc)
RBi(0), RBi(1),
RB(1,2), RB(1,6)
WRITE: Read only
LANGUAGE ACCESS: Formulas and conditional testing
UNITS: Binary bit
RANGE OF VALUES: 0 or 1
TYPICAL VALUES: 0
DEFAULT VALUE: 0
FIRMWARE VERSION: 5.x and later
COMBITRONIC: N/A
DETAILED DESCRIPTION:
The Bi(enc) flag is set to 1 when the associated encoder Z pulse (index mark) is detected. The
value of the associated encoder capture is valid and can be read using the I(enc) command.
Before a capture can occur, arming is required using the Ai(enc), Aij(enc) or Aji(enc)
command. After a capture has occurred, the value stored in I(enc) will remain the same until
another arming command is issued and another index is detected. Reading the captured value
does not change the capture state or captured value.
The command RI(enc) reports the captured index reading.
The Bi(0) bit is reset by any of the following:
l
Power reset
l
Z command (total reset of software)
l
Z(1,2) command
l
ZS command
Part 2: Commands: Bi(enc)