User`s manual

XP830024 s Software Reference
How to Use the Relay Boards
1. Send a reset command to all boards on the PLCBus.
2. Place the address of the target board on the PLCBus.
3. Operate the relays.
Reset Boards on PLCBus
These Dynamic C functions are used to initialize the PLCBus. Use these
functions in a program before introducing any code to operate the relays.
VdInit()
Initializes the timer mechanism.
LIBRARY: VDRIVER.LIB
void eioResetPlcBus()
Resets all expansion boards connected to the PLCBus.
When using this function, initialize timers with VdInit() before
resetting the PLCBus. All PLCBus devices must reset before perform-
ing any subsequent operations.
LIBRARY: EZIOPLC.LIB
void eioPlcRstWait()
Provides a delay long enough for the PLCBus to reset.
This function provides a delay of 12 seconds to ensure devices on the
PLCBus reset. Call this function after resetting the PLCBus.
LIBRARY: EZIOPBDV.LIB
long int eioErrorCode
Represents a global bit-mapped variable whose flags reflect error
occurrences.
This register for this variable is initially set to 0. If the application tries
to access an invalid channel, the flag EIO_NODEV (the first bit flag) is
set in this register. Note that the other bits in EIO_NODEV deal with
networked controllers.