PMAC-PCI Hardware Reference
Mating Connectors
37
A value of 0-7 in CONFIG_W2 tells PMAC1 PCI to read channel ANAI08-15, respectively, as a 0
to+5V input.
A value of 8-15 in CONFIG_W1 tells PMAC1 PCI to read ANAI08-15, respectively, as a -2.5 to +2.5V
input.
Each phase update (9 kHz default), PMAC1 PCI increments through one line of the table. It copies the
ADC readings selected in the previous cycle into RAM, then writes the next configuration words to the
ADCs. Typically, this will be used to cycle through all eight ADCs or pairs of ADCs.
PMAC1 Address
X Word
Upper 12 Bits
X Word
Lower 12 Bits
Y Word
Upper 12 Bits
Y Word
Lower 12 Bits
$0708
0
0
ANAI08
ANAI00
$0709
1
1
ANAI09
ANAI01
$070A
2
2
ANAI10
ANAI02
$070B
3
3
ANAI11
ANAI03
$070C
4
4
ANAI12
ANAI04
$070D
5
5
ANAI13
ANAI05
$070E
6
6
ANAI14
ANAI06
$070F
7
7
ANAI15
ANAI07
Suggested M-variable definitions for the configuration words are:
M990->X:$0708,0,24,U
; 1st CONFIG_W1 and CONFIG_W2
M991->X:$0709,0,24,U
; 2nd CONFIG_W1 and CONFIG_W2
M992->X:$070A,0,24,U
; 3rd CONFIG_W1 and CONFIG_W2
M993->X:$070B,0,24,U
; 4th CONFIG_W1 and CONFIG_W2
M994->X:$070C,0,24,U
; 5th CONFIG_W1 and CONFIG_W2
M995->X:$070D,0,24,U
; 6th CONFIG_W1 and CONFIG_W2
M996->X:$070E,0,24,U
; 7th CONFIG_W1 and CONFIG_W2
M997->X:$070F,0,24,U
; 8th CONFIG_W1 and CONFIG_W2
Typically, the configuration words are written once, on power up/reset. A good way to do this is in a
PLC program that executes one scan disabling itself. It could look like this:
OPEN PLC 1 CLEAR
; PLC 1 is first to run after power-up/reset
M990=$000000
; Select ANAI00 and ANAI08 (if present) single-ended
M991=$001001
; Select ANAI01 and ANAI09 (if present) single-ended
M992=$002002
; Select ANAI02 and ANAI10 (if present) single-ended
M993=$003003
; Select ANAI03 and ANAI08 (if present) single-ended
M994=$004004
; Select ANAI04 and ANAI08 (if present) single-ended
M995=$005005
; Select ANAI05 and ANAI08 (if present) single-ended
M996=$006006
; Select ANAI06 and ANAI08 (if present) single-ended
M997=$007007
; Select ANAI07 and ANAI08 (if present) single-ended
DISABLE PLC 1
; So will not run again
CLOSE
To set up the configuration words for bipolar analog inputs, the PLC could look like this:
Summary of Contents for PMAC PCI
Page 4: ......
Page 9: ...PMAC PCI Hardware Reference Table of Contents v...
Page 10: ......
Page 17: ...PMAC PCI Hardware Reference Introduction 7 PMAC Connectors...
Page 50: ...PMAC PCI Hardware Reference 40 Mating Connectors Machine Connections Example...
Page 72: ...PMAC PCI Hardware Reference 62 Schematics SCHEMATICS...
Page 73: ...PMAC PCI Hardware Reference Schematics 63...
Page 74: ...PMAC PCI Hardware Reference 64 Schematics...
Page 75: ...PMAC PCI Hardware Reference Schematics 65...
Page 76: ...PMAC PCI Hardware Reference 66 Schematics...
Page 77: ...PMAC PCI Hardware Reference Schematics 67...
Page 78: ...PMAC PCI Hardware Reference 68 Schematics...