User`s manual
XP8300/XP8400/SE110086 s Advanced Programming
PBUS
_
TG.LIB
The PBUS
_
TG.LIB library allows the BL1000 to operate Z-Worlds relay
boards and the XP8600 expansion boards. The PBUS
_
TG.LIB library
does not support any other expansion boards.
The functions in this library are identical (except for internal details) to
those in the PBUS
_
LG.LIB library.
PBUS
_
LG.LIB
The PBUS
_
LG.LIB library allows the BL1100 to operate Z-Worlds relay
boards and the XP8600 expansion boards. This library does not support
any other expansion boards.
There are three groups of functions in this library. The two groups used by
relay boards are listed in Table D-3. Analogous functions exist in other
libraries. For example, reset
_
pbus in PLC
_
EXP.LIB is used with con-
trollers with a PLCBus and performs the same function as Reset
_
PBus in
this library, which is used with the BL1100 and the BL1300.
void PBus12
_
Addr( int addr )
Places a 12-bit address on the PLCBus, in 4-bit mode. That is, it
places three 4-bit nibbles on the bus. The first and third nibbles of
addr must be interchanged: if the bus address is 0x125, addr must be
0x521.
int PBus4_Read0()
int PBus4_Read1()
int PBus4_ReadSp()
Carries out a bus read cycle. These functions correspond to bus cycles
BUSRD0, BUSRD1 and BUSSPARE, respectively.
void PBus4_Write( byte value )
Carries out a BUSWR cycle.
Table D-3. PBUS_LG.LIB Groups
Group Functions
General
PBus12_Addr, PBus4_Write, PBus4_Read0,
PBus4_Read1, PBus4_ReadSp, Reset_PBus,
Reset_PBus_Wait, Poll_PBus_Node
Relay Relay_Board_Addr, Set_PBus_Relay