XP8500
Software Reference
s
37
XP8500 Drivers
Use the software drivers in this section to interface with the XP8500.
int plcXP85Init( unsigned Addr )
Resets the selected XP8500 and reads back the associated calibration
coefficients into an internal array.
PARAMETER:
Addr
is the jumper-selected address of the board (0
7).
RETURN VALUE: 0 if the reset is successful, -1 if the board cannot
be found.
LIBRARY:
EZIOPBDV.LIB
int plcXP85In( unsigned int address )
Reads an XP8500 A/D converter channel. Note that this function
reads back only the raw valueuse
plcXP85InC
to read back a
calibrated value.
PARAMETER:
address
is
16*board_a
channel_number
.
board_address
ranges from 03, depending on
the address jumpers, and
channel_number
ranges from 010,
depending on the A/D channel number.
RETURN VALUE: whole number from 0 to 4095, 1 if the XP8500
board is not found. The global variable
eioErrorCode
is bit-ored
with
EIO_NODEV
if the board is not found.
LIBRARY:
EZIOPBDV.LIB
float plcXP85InC( unsigned int address )
Reads an XP8500 A/D converter channel and converts the value to a
calibrated value using the constants read by
eioAdc4Init
. Note that
eioAdc4Init
must be called before
plcXP85InC
. Use
plcXP85In
to read back a raw value.
PARAMETER:
address
is
16*board_a
channel_number
.
board_address
ranges from 03, depending on
the address jumpers, and
channel_number
ranges from 010,
depending on the A/D channel number.
RETURN VALUE: floating-point number that represents the cali-
brated value read by the A/D channel. The global variable
eioErrorCode
is bit-ored with
EIO_NODEV
if the board is not found.
LIBRARY:
EZIOPBDV.LIB
Содержание Exp-A/D12
Страница 6: ...vi s Contents XP8500 and Exp A D12 Blank...
Страница 10: ...XP8500 and Exp A D12 x s About This Manual Blank...
Страница 11: ...XP8500...
Страница 12: ...Blank...
Страница 49: ...EXP A D12...
Страница 50: ...Blank...
Страница 58: ...Exp A D12 58 s Getting Started Blank...
Страница 64: ...Exp A D12 64 s I O Configurations Blank...
Страница 73: ...APPENDICES...
Страница 74: ...Blank...
Страница 86: ...XP8500 and Exp A D12 86 s PLCBus Blank...
Страница 87: ...XP8500 and Exp A D12 Specifications s 87 APPENDIX B SPECIFICATIONS...
Страница 92: ...XP8500 and Exp A D12 92 s Specifications Blank...
Страница 97: ...XP8500 and Exp A D12 Simulated PLCBus Connection s 97 APPENDIX D SIMULATED PLCBUS CONNECTION...
Страница 99: ...XP8500 and Exp A D12 Technical Circuit Details s 99 APPENDIX E TECHNICAL CIRCUIT DETAILS...
Страница 104: ...XP8500 and Exp A D12 104 s Technical Circuit Details Blank...