Geo Brick Drive User Manual
Macro Connectivity
256
Transferring the J9 Analog Inputs
A Geo Brick Drive MACRO slave with option 12 offers 8 x 12-bit analog inputs on connector J9.
These inputs and outputs are typically mapped using suggested or pre-defined M-Variables at the
following addresses:
Analog Inputs, connector J9
M6991->Y:$003400,12,12,S ; ADC1 Bipolar
M6992->Y:$003402,12,12,S ; ADC2 Bipolar
M6993->Y:$003404,12,12,S ; ADC3 Bipolar
M6994->Y:$003406,12,12,S ; ADC4 Bipolar
M6995->Y:$003408,12,12,S ; ADC5 Bipolar
M6996->Y:$00340A,12,12,S ; ADC6 Bipolar
M6997->Y:$00340C,12,12,S ; ADC7 Bipolar
M6998->Y:$00340E,12,12,S ; ADC8 Bipolar
M6991->Y:$003400,12,12,U ; ADC1 Unipolar
M6992->Y:$003402,12,12,U ; ADC2 Unipolar
M6993->Y:$003404,12,12,U ; ADC3 Unipolar
M6994->Y:$003406,12,12,U ; ADC4 Unipolar
M6995->Y:$003408,12,12,U ; ADC5 Unipolar
M6996->Y:$00340A,12,12,U ; ADC6 Unipolar
M6997->Y:$00340C,12,12,U ; ADC7 Unipolar
M6998->Y:$00340E,12,12,U ; ADC8 Unipolar
We will use the MACRO auxiliary MX read commands to transfer the J9 analog inputs. This is done in a
background PLC which copies M6991-M6998 from the slave into eight consecutive self-referenced
Mxx05 variables at the master.
Master Settings
M1705,8,100->*
Open PLC 1 Clear
// Analog Inputs (J9)
MXR0,M6991,M1705
; J9 Analog Input 1
MXR0,M6992,M1805
; J9 Analog Input 2
MXR0,M6993,M1905
; J9 Analog Input 3
MXR0,M6994,M2005
; J9 Analog Input 4
MXR0,M6995,M2105
; J9 Analog Input 5
MXR0,M6996,M2205
; J9 Analog Input 6
MXR0,M6997,M2305
; J9 Analog Input 7
MXR0,M6998,M2405
; J9 Analog Input 8
I5111=1*8388608/I10 while(I5111>0) Endw
; 1 msec delay
close
At the slave side, the J9 analog ADC inputs can now be read using these Mxx05 variables.
Note
This setup example assumes that the J9 ADC inputs have been set up
properly at the slave side. See J9 connector setup section.
Summary of Contents for Geo Brick
Page 5: ...4...
Page 288: ...Geo Brick Drive User Manual Appendix A 288 Limits Flags J4...