PMAC Product Guide Ix05 Motor x Master (Handwheel) Position Address Range: Legal PMAC X addresses Default: $073F (1855) (= zero register at end of conversion table) Units: Legal PMAC X addresses This parameter tells the PMAC where to look for the position of the master, or handwheel encoder for motor x. Usually this is an entry in the Encoder Conversion Table that holds processed information from an encoder channel. The instructions for setting this parameter are identical to those for Ix03, except the extended bits mean different things. The default value permits handwheel input from the JPAN connector (jumpered into the ENC2 counter with E22 and E23). Following Modes:
The source address of the position information occupies bits 0 to 15 of Ix05 (range $0000 to $FFFF, or 0 to 65535). With bit 16 equal to zero -- the normal case -- position following is done with the actual position reported for the motor reflecting the change due to the following. With bit 16 -- value 65536 -- equal to one, the actual position reported for the motor does not reflect the change due to the following (offset mode). This mode can be useful for part offsets, and for superimposing programmed and following moves. For example, to have motor #1 following encoder 2 in offset mode, I105 should be set to $10721.
In the extended version, it is obviously 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. Note: It is important not to have the same source be both the master and the feedback for an individual motor. If this is the case, with Ix06=1 to enable following, the motor will run away (it is like a puppy chasing its tail -- it cannot catch up to its desired position because its desired position keeps moving ahead of it). This case can easily occur for motor 2 with the default values of I203 and I205 specifying the same address.
To ensure that following cannot occur by accident, change Ix05 so it points to a register that cannot change. This way, even if the following function gets turned on, for instance by the motor selector inputs on the JPAN connector, no following can occur. The best registers to use for this purpose are the unused ones at the end of the conversion table. With the default table setup, choose any register between $072A and $073F (1834 to 1855 decimal). If extending the table, choose a register between the end of the table and $073F. Ix06 Motor x Master (Handwheel) Following Enable Range: 0 .. 1 Default: 0 Units: none This parameter disables or enables motor x’s position following function.
A value of 0 means disabled; a value of 1 means enabled. Following mode is specified by high bits of Ix05. This parameter can be changed on-line through hardware inputs on the JPAN connector. The FPDn/ motor/coordinate-system select lines (low-true BCD-coded) can turn Ix06 on and off. On power-up or reset, if I2 was saved as zero, Ix06 for the selected motor is set to one and Ix06 for all other motors is set to zero regardless of the values that were saved. When the select switch is changed, Ix06 for the de- selected motor is set to zero and Ix06 for the selected motor is set to 1. 106 I-Variables