Download PMACPanel User Manual
Transcript
8 Software Control 9 Rising edge of CHCn (third channel) 10 Falling edge of Flag n (as set by Flag Select) 11 Rising edge of [CHCn AND Flag n/] 12 Software Control 13 Falling edge of CHCn (third channel) 14 Falling edge of Flag n (as set by Flag Select) 15 Rising edge of [CHCn/ AND Flag n/] Note that several of these values are redundant. To do a software-controlled position capture, preset this parameter to 0 or 4; when the parameter is then changed to 8 or 12, the capture is triggered (this is not of much practical use). PmacEncoderRegServo Query PMAC for the two position registers containing commutation phase and servo position. Servo Position is actual encoder position in counts referenced to a powerup/reset position of zero. Encoder Phase is used internally for commutation. Device Number i32 (0) Provided by PmacDevOpen. Encoder Number i32 (1-16) (1) Encoder to fetch the current encoder counts for. Servo Position i32 The encoder Servo position register is 2 * Encoder counts with the LSB the direction bit. This output value is en actual encoder position referenced to a powerup/reset position of zero. Encoder Phase i32 PMAC provides sophisticated commutation capabilities that require the use of this register. PmacEncoderRegisters Query PMAC for all registers for Encoder Number. Assemble the values into a PmacEncoderRegisters Cluster. Device Number i32 (0) Provided by PmacDevOpen. Encoder Number i32 (1-16) (1) Encoder to fetch the various register for. Encoder Registers Cluster This cluster contains the values of the various encoder registers for use in your application. 72 • Chapter 13 - VI Reference PMACPanel VI Reference PMACPanel VI Reference