Power Brick Controller User Manual
Connections and Software Setup
81
Raw ADC Data (In bits)
The analog inputs have 16 bits of resolution (32,767 software counts) spanning over the full range of the
input voltage. Wiring ±10 VDC voltage in single-ended, or ±5 VDC in differential mode produces the
following counts in software:
Single-Ended
[VDC]
Differential
[VDC]
Software
Counts
-10
-5
-32768
0
0
0
10
5
+32768
Scaled ADC Data (In volts)
For general purpose usage, the ADC data (reported in bits) can be easily scaled and converted into “user”
voltage. In the example PLC below:
The global parameter
ADCnXxxZeroOffset
represents the voltage offset with a zero volt input.
This is user adjustable.
The pointer
ADCnXxx
reports the raw ADC data in software counts, units of 16-bit (±32767).
The global parameter
ADCnXxxVolts
reports the ADC data in “user” volts.
Where
n
is the ADC channel number (1 or 2) of the corresponding
xx
connector (X9, X10, X11, or X12).
Sys.WpKey = $AAAAAAAA
// Disable Write-Protection
PowerBrick[0].AdcAmpHeaderBits = 0
PowerBrick[1].AdcAmpHeaderBits = 0
PowerBrick[
0
].Chan[
0
].PackInData =
0
// Unpack Input Data, ADC1 X9
PowerBrick[
0
].Chan[
1
].PackInData =
0
// Unpack Input Data, ADC2 X9
PowerBrick[
0
].Chan[
2
].PackInData =
0
// Unpack Input Data, ADC1 X10
PowerBrick[
0
].Chan[
3
].PackInData =
0
// Unpack Input Data, ADC2 X10
PowerBrick[
1
].Chan[
0
].PackInData =
0
// Unpack Input Data, ADC1 X11
PowerBrick[
1
].Chan[
1
].PackInData =
0
// Unpack Input Data, ADC2 X11
PowerBrick[
1
].Chan[
2
].PackInData =
0
// Unpack Input Data, ADC1 X12
PowerBrick[
1
].Chan[
3
].PackInData =
0
// Unpack Input Data, ADC2 X13
PTR
ADC1X9 ->S.
IO
:$900028.16.16;
PTR
ADC2X9 ->S.
IO
:$9000A8.16.16;
PTR
ADC1X10->S.
IO
:$900128.16.16;
PTR
ADC2X10->S.
IO
:$9001A8.16.16;
PTR
ADC1X11->S.
IO
:$904028.16.16;
PTR
ADC2X11->S.
IO
:$9040A8.16.16;
PTR
ADC1X12->S.
IO
:$904128.16.16;
PTR
ADC2X12->S.
IO
:$9041A8.16.16;
// ADC1 X9
[Counts]
// ADC2 X9
[Counts]
// ADC1 X10 [Counts]
// ADC2 X10 [Counts]
// ADC1 X11 [Counts]
// ADC2 X11 [Counts]
// ADC1 X12 [Counts]
// ADC2 X12 [Counts]
Содержание PBC Series
Страница 5: ......
Страница 74: ...Power Brick Controller User Manual Connections and Software Setup 74 Motor 1 HomeOffset 0...
Страница 203: ...Power Brick Controller User Manual Appendix A Digital Inputs Schematic 203 APPENDIX A DIGITAL INPUTS SCHEMATIC...
Страница 204: ...Power Brick Controller User Manual Appendix B Digital Outputs Schematic 204 APPENDIX B DIGITAL OUTPUTS SCHEMATIC...
Страница 205: ...Power Brick Controller User Manual Appendix C Analog I Os Schematics 205 APPENDIX C ANALOG I OS SCHEMATICS...
Страница 206: ...Power Brick Controller User Manual Appendix C Analog I Os Schematics 206...
Страница 207: ...Power Brick Controller User Manual Appendix D Limits Flags Schematic 207 APPENDIX D LIMITS FLAGS SCHEMATIC...