User`s manual

XP8300/XP8400/SE1100 PLCBus s 67
void write4data( int address, char data )
Sets the last four bits of the current PLCBus address, then writes four
bits of data to the PLCBus.
PARAMETER: adr contains the last four bits of the physical address
(bits 811).
dat (bits 03) specifies the data to write to the PLCBus.
LIBRARY: DRIVERS.LIB.
The 8-bit drivers employ the following calls.
void set24adr( long address )
Sets a 24-bit address (three 8-bit nibbles) on the PLCBus. All read and
write operations will access this address until a new address is set.
PARAMETER: address is a 24-bit physical address (for 8-bit bus)
with the first and third bytes swapped (low byte most significant).
LIBRARY: DRIVERS.LIB.
void set8adr( long address )
Sets the current address on the PLCBus. All read and write operations
will access this address until a new address is set.
PARAMETER: address contains the last eight bits of the physical
address in bits 1623. A 24-bit address may be passed to this function,
but only the last eight bits will be set. Call this function only if the first
16 bits of the address are the same as the address in the previous call to
set24adr.
LIBRARY: DRIVERS.LIB.
int read24data0( long address )
Sets the current PLCBus address using the 24-bit address, then reads
eight bits of data from the PLCBus with a BUSRD0 cycle.
RETURN VALUE: PLCBus data in lower eight bits (upper bits 0).
LIBRARY: DRIVERS.LIB.
int read8data0( long address )
Sets the last eight bits of the current PLCBus address using address bits
1623, then reads eight bits of data from the PLCBus with a BUSRD0
cycle.
PARAMETER: address bits 1623 are read.
RETURN VALUE: PLCBus data in lower eight bits (upper bits 0).
LIBRARY: DRIVERS.LIB.