omron — Ix04Motor x Velocity Loop Feedback Address

PMAC Product Guide Hardware Home Position Capture: The source address of the position information occupies bits 0 to 15 of Ix03 (range $0000 to $FFFF, or 0 to 65535). With bit 16 equal to zero -- the normal case -- position capture on homing is done with the hardware capture register associated with the flag inputs pointed to by Ix25. In this case, it is important to match the encoder number, the address pointed to with Ix03, with the flag number, the address pointed to with Ix03 (e.g. ENC1 -- CHA1 & CHB1 -- with HMFL1 and LIM1). Software Home Position Capture:

If bit 16 (value 65536) is set to one, the position capture on homing is done through software, and the position source does not have to match the input flag source. This is important particularly for parallel-data position feedback, such as from a laser interferometer (which is incremental data and requires homing). For example, if motor #1 used parallel feedback from a laser interferometer processed as the first (triple) entry in the conversion table, the key I-Variables would be: I103=$10722 I125=$C000 This would permit homing on interferometer data with HMFL1 triggering. Note: In the extended version, it is easier to specify this parameter in hexadecimal form.

With I9 at 2 or 3, the value of this variable will be reported back to the host in hexadecimal form. Capture on Following Error: If bit 17 of Ix03 is set to 1, then the trigger for position capture of this motor is a true state on the warning following error status bit for the motor. If bit 17 is at the default of 0, the trigger for position capture is the capture flag of the flag registers as set by Ix25. The trigger is used in two types of moves: homing search moves and programmed move-until-triggers. If bit 17 is set to 1, the triggered position must be software captured, so bit 16 must also be set to 1 to specify software captured bit position.

Ix04 Motor x Velocity Loop Feedback Address Range: Legal PMAC X addresses Default: Same as Ix03 Units: Legal PMAC X addresses This parameter holds the address of the position feedback device that PMAC uses for its velocity-loop feedback information. For a motor with only a single feedback device (the usual case), this must be the same as Ix03. For a motor with dual feedback (motor and load), use Ix04 to point to the encoder on the motor, and Ix03 to point to the encoder on the load. If the velocity-loop feedback device is the same device as is used for commutation (if PMAC is doing the commutation), then both Ix04 and Ix83 (commutation feedback address) must reference the same device.

However, Ix04 typically points to the converted data -- a register in the Encoder Conversion table -- while Ix83 must point directly to the DSPGATE encoder register. The instructions for setting this parameter are identical to those for Ix03, except that there are no address extension bits. Note: When planning which channels to use when connecting the position and velocity encoders, remember that the channel pointed to by Ix25 is used for the Overtravel, Amplifier Fault, and Home Flag inputs. I-Variables 105