User`s manual

XP8500
36 s Software Reference
Initialization Software
These Dynamic C functions are used to initialize the PLCBus. Call these
functions before using other expansion board functions.
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. This function should be called after resetting the
PLCBus.
LIBRARY: EZIOPBDV.LIB
long int eioErrorCode
The global variable lso needs to be defined. eioErrorCode repre-
sents a global bit-mapped variable whose flags reflect error occur-
rences.
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. The other bits in EIO
_
NODEV deal with
networked controllers.