User`s manual
Software Reference s 25XP8300
Address Target Board
unsigned
_
eioPlcRelayAddr( unsigned BrdAddr );
Converts bit pattern 00000000 00pqrabc to pqrc 000b 000a
where pqr is the PAL number and abc is the address of the selected
board.
PARAMETERS: The low byte of BrdAddr should contain the logical
address (8*PAL# + Board#). The board number is 063 (07 if only
the factory default PAL is used).
RETURN VALUE: The bit-mingled BUSADR address pqrc 000b
000a
for the XP8300 board.
LIBRARY: EZIOPBDV.LIB
Operate Relays
int plcXP83Out( unsigned address, int state );
Energizes a relay on an XP8300 expansion board.
PARAMETERS: address is 8*Board# + Relay#. The board number
is 063 (07 if only the factory default PAL is used). The relay number
range is 05.
state indicates whether the relay should be energizedthe specified
relay is energized when state is non-zero, but is not energized when
state is zero.
RETURN VALUE: 0 if the specified XP8300 and relay exist, other-
wise 1. If the specified relay/board do not exist, the global variable
eioErrorCode is bit-ored with the constant EIO
_
NODEV.
LIBRARY: EZIOPBDV.LIB
The plcXP83Out driver implements other function calls such as
eioPlcAdr12, eioPlcAdr4, eioReadD0, eioReadD1, and
eioWriteWR.
Refer to Appendix A, PLCBus, for a description of these
other functions.
$