PMAC/PMAC2 V1.17C Addendum I70 – I77 Analog Table Setup Lines [New, PMAC2 only] Range: $000000 - $FFFFFF Units: none Defaults: $0 PMAC2 firmware automatically selects and reads the channels of Option 12 and 12A A/D converters in a round-robin fashion. This function is controlled by a data table in variables I70 – I77 which operates much like the encoder conversion table. The eight I-variables (X registers) contain the channel-select information, and the eight Y-registers contain the A/D results.
Each X and Y word is split into two 12-bit halves, where the lower 12 bits work with the first A/D converter set (Option 12), and the higher 12 bits work with the second A/D converter set (Option 12A). The data table looks like this: where: CONFIG_W2 is the selection word for the second A/D converter set (Option 12A) CONFIG_W1 is the selection word for the first A/D converter set (Option 12) DATA_W2 is the matching A/D data from the second A/D converter set (Option 12A) DATA_W1 is the matching A/D data from the first A/D converter set (Option 12) A value of 0-7 in CONFIG_W1 tells PMAC2 to read channel ANAI00-07, respectively, as a 0 to+5V input, resulting in an unsigned value.
A value of 8-15 in CONFIG_W1 tells PMAC2 to read ANAI00-07, respectively, as a -2.5 to +2.5V input, resulting in a signed value. A value of 0-7 in CONFIG_W2 tells PMAC2 to read channel ANAI08-15, respectively, as a 0 to+5V input, resulting in an unsigned value. A value of 8-15 in CONFIG_W1 tells PMAC2 to read ANAI08-15, respectively, as a -2.5 to +2.5V input, resulting in a signed value.
V1.17C Firmware Version 3 Setup I-Variable I-Variable Upper 12 Bits I-Variable Lower 12 Bits Result Address Y Word Upper 12 Bits Y Word Lower 12 Bits I70 CONFIG W2 CONFIG W1 Y:$0708 DATA W2 DATA W1 I71 _ CONFIG W2 _ CONFIG W1 Y:$0709 _ DATA W2 _ DATA W1 I72 _ CONFIG W2 _ CONFIG W1 Y:$070A _ DATA W2 _ DATA W1 I73 _ CONFIG W2 _ CONFIG W1 Y:$070B _ DATA W2 _ DATA W1 I74 _ CONFIG W2 _ CONFIG W1 Y:$070C _ DATA W2 _ DATA W1 I75 _ CONFIG W2 _ CONFIG W1 Y:$070D _ DATA W2 _ DATA W1 I76 _ CONFIG W2 _ CONFIG W1 Y:$070E _ DATA W2 _ DATA W1 I77 _ CONFIG W2 _ _ CONFIG W1 _ Y:$070F _ DATA W2 _ _ DATA W1 _