PMAC Product Guide Example: Motor #4 drives a rotary table with 36,000 counts per revolution. It is defined to the A-axis with #4- >100A (A is in units of degrees). I427 is set to 36000. With motor #4 at zero counts (A-axis at zero degrees), an A270 move in a program is executed in Absolute mode. Instead of moving the motor from 0 to 27,000 counts, which it would have done with I427=0, PMAC moves the motor from 0 to -9,000 counts, or -90 degrees, which is equivalent to +270 degrees on the rotary table. Ix28 Motor x In-position Band Range: 0 .. 8,388,607 Default: 160 (10 counts) Units:
1/16 Count This is the magnitude of the maximum following error at which motor x will be considered in position when not performing a move. Several things happen when the motor is in-position. First, a status bit in the motor status word is set. Second, if all other motors in the same coordinate system are also in- position, a status bit in the coordinate system status word is set. Third, for the hardware-selected (FPD0/- FPD3/) coordinate system -- if I2=0 -- or for the software addressed (&n) coordinate system -- if I2=1 -- outputs to the control panel port and to the interrupt controller are set. Technically, five conditions must be met for a motor to be considered in-position: 1.
The motor must be in closed-loop control. 2. The desired velocity must be zero. 3. The magnitude of the following error must be less than this parameter. 4. The move timer must not be active. 5. The above four conditions must all be true for (I7+1) consecutive scans. The move timer is active during any programmed or non-programmed move including DWELL s and DELAY s in a program – to make this bit to come true during a program, program an indefinite wait between some moves by keeping the program trapped in a WHILE loop that has no moves or DWELL s.
More sophisticated in-position functions (for instance, ones that require several consecutive scans within the band) can be implemented using PLC programs. See the program examples section. Note: The units of this parameter are 1/16 of a count, so the value should be 16 times the number of counts in the in-position band. Example: M140->Y:$0814,0 ; Motor 1 in-position bit ... WHILE (M140=0) WAIT ; Delay indefinitely until in-position is true M1=1 ; Set output once in-position Ix29 Motor x Output - or First Phase - DAC Bias Range: -32,768 .. 32,767 Default: 0 Units: DAC Bits This parameter is the digital equivalent of an offset potentiometer on the analog output.
It can be used to correct for differences in zero-reference between PMAC’s analog output and the amplifier’s analog input. This offset is active in both closed-loop and open-loop modes, even when the motor is killed. For a motor not commutated by PMAC (Ix01=0), this is the value that is added onto the output of the servo algorithm or the open loop output value (including the zero output when the motor is killed) before it is sent to the DAC. I-Variables 117