00 SE1 0 830 XP XP 84 00 XP8300, XP8400, and SE1100 Relay Output Boards Users Manual Revision B
XP8300, XP8400, and SE1100 Users Manual Part Number 019-0054 Revision B Last revised on August 2, 1999 Printed in U.S.A. Copyright © 1999 Z-World All rights reserved. Z-World reserves the right to make changes and improvements to its products without providing notice.
TABLE OF CONTENTS About This Manual vii XP8300 Chapter 1: Overview 13 Chapter 2: Getting Started 17 Chapter 3: Software Reference 21 Features ................................................................................................ 15 Connecting Expansion Boards to a Z-World Controller ...................... 18 XP8300 Configuration ......................................................................... 19 Setting Board Addresses .............................................................
Chapter 6: Software Reference 37 Relay Board Addresses ........................................................................ 38 Physical Addresses .......................................................................... 38 Logical Addresses ........................................................................... 38 Software ............................................................................................... 39 Dynamic C Libraries .........................................................
Appendix B: Specifications 69 Appendix C: Connecting and Mounting Multiple Boards 75 Appendix D: Simulated PLCBus Connections 79 Appendix E: Advanced Programming 83 Index 93 XP8300 Relay Expansion Board ......................................................... 70 XP8400 Relay Expansion Board ......................................................... 71 SE1100 Relay Expansion Board .......................................................... 72 Quick-Release Connectors ................................
Blank vi s Table of Contents XP8300/XP8400/SE1100
ABOUT THIS MANUAL This manual provides instructions for designing a controller system that uses relay boards. Instructions are also provided for using Dynamic C® functions. Assumptions Assumptions are made regarding the user's knowledge and experience in the following areas: Ability to design and engineer the target system that is controlled by a controller with analog-to-digital conversion expansion boards.
Acronyms Table 1 lists and defines the acronyms that may be used in this manual. Table 1.
Conventions Table 3 lists and defines the typographical conventions that may be used in this manual. Table 3. Typographical Conventions Example Description while Courier font (bold) indicates a program, a fragment of a program, or a Dynamic C keyword or phrase. // IN-01… Program comments are written in Courier font, plain face. Italics Indicates that something should be typed instead of the italicized words (e.g., in place of filename, type a file’s name).
Blank x s About This Manual XP8300/XP8400/SE1100
XP8300
Blank This page is intentionally blank.
CHAPTER 1: OVERVIEW Chapter 1 gives an overview of the XP8300 relay board and its specific features.
Z-Worlds XP8300 expansion boards provide a simple way to add relays to a control system built around a Z-World controller. These relay output boards can be connected on the PLCBus in conjunction with other expansion boards. The actuation voltage for the boards relays comes from the controller via the PLCBus port. The XP8300s six relays are high-power relays. Figure 1-1 illustrates a system of expansion boards mounted on a DIN rail and connected to a controller.
Features The XP8300 board has six 24 V high-power relays installed as standard equipment: two are configured as SPDT and four are configured as SPST. All the relays have wire terminals that allow easy connections to external devices. Each relay is protected with a 10 A fuse. To help eliminate noise transients, a metal oxide varistor (MOV) is attached between pin 1 and pin 3 of each relay.
Blank 16 s Overview XP8300
CHAPTER 2: XP8300 GETTING STARTED Getting Started s 17
Connecting Expansion Boards to a Z-World Controller Use the 26-conductor ribbon cable supplied with the expansion board to connect the expansion board to the PLCBus on a Z-World controller. See Figure 2-1. The expansion boards two 26-pin PLCBus connectors, P1 and P2, are used with the ribbon cable. Z-World recommends using the cable supplied to avoid any connection problems. Controller PLCBus Port Pin 1 P1 P2 P2 XP8300 Controller With PLCBus Figure 2-1.
XP8300 Configuration The XP8300 board holds six high-power relays. Each XP8300 relay has the following specifications: 3 2 Standard coil voltage 24 V DC. Contact ratings: 10 A at 24 V DC 10 A at 120 V AC 7 A at 250 V AC resistive maximum. Configuration: SPDT Coil Actuation Voltage: 24 V DC 1 4 5 Figure 2-2. Relay Circuit Pin 1 is the common. Pin 5 goes to a high-voltage/high-current driver on the relay board. Pin 2 is for the actuation voltage.
Jumper settings on header J2 determine the actuation voltage for the boards relays. When pins 12 are connected, the actuation voltage is supplied by the +24 V line on the PLCBus. When pins 23 are connected, the actuation voltage is supplied by the VCC line on the PLCBus. When no pins on header J2 are connected, an actuation voltage must be supplied by connecting a 24 V power supply at sockets V+ and GND on header H3.
CHAPTER 3: XP8300 SOFTWARE REFERENCE Software Reference s 21
Relay Board Addresses Physical Addresses Up to 64 addresses are possible on a single PLCBus. The 12-bit address of a particular relay board is determined by two factors: (1) the encoding of the PAL chip installed on the board, and (2) jumper settings on header J1. Since eight different PALs are available and J1 can be set eight different ways, 64 unique addresses are possible. A 12-bit address can be conveniently placed on the bus using 4-bit addressing.
Software Dynamic C Libraries Several Dynamic C function libraries are used with the routines defined in this section. Table 3-1 identifies which libraries are used with specific Z-World controllers. Table 3-1. Dynamic C Libraries for Controllers Library Controller EZIOCMMN.LIB All controllers EZIOPBDV.LIB All controllers EZIOTGPL.LIB BL1000 EZIOLGPL.LIB BL1100 EZIOMGPL.LIB BL1400, BL1500 EZIOPLC.LIB BL1200, BL1600, PK2100, PK2200 EZIOPLC2.LIB BL1700 EZIOBL17.
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.
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.
Blank 26 s Software Reference XP8300
XP8400
Blank This page is intentionally blank.
CHAPTER 4: OVERVIEW Chapter 4 gives an overview of the XP8400 relay board and its specific features.
Z-Worlds XP8400 expansion boards provide a simple way to add relays to a control system built around a Z-World controller. These relay output boards can be connected on the PLCBus in conjunction with other expansion boards. The actuation voltage for the boards relays comes from the controller via the PLCBus port. The XP8400s eight relays are low-power relays. Figure 4-1 illustrates a system of expansion boards mounted on a DIN rail and connected to a controller.
Features The XP8400 expansion board has eight low-power (500 mA) SPST DIP relays that are normally open. Optional 12 V relays are available. A single LED on the board lights up whenever it has been addressed via the PLCBus. LED U4 U2 PAL P2 Relay 7 J2 Relay 5 Relay 6 U12 Relay 4 Relay 3 U9 Relay 2 U7 U3 Relay 0 P1 High Current Driver Relay 1 U1 J1 Latch U6 U8 U10 U11 U13 H1 Figure 4-2.
Blank 32 s Overview XP8400
CHAPTER 5: XP8400 GETTING STARTED Getting Started s 33
Connecting Expansion Boards to a Z-World Controller Use the 26-conductor ribbon cable supplied with the expansion board to connect the expansion board to the PLCBus on a Z-World controller. See Figure 5-1. The expansion boards two 26-pin PLCBus connectors, P1 and P2, are used with the ribbon cable. Z-World recommends using the cable supplied to avoid any connection problems. Controller PLCBus Port Pin 1 P1 P2 XP8400 Controller With PLCBus Figure 5-1.
Controllers with simulated PLCBus ports require special expander cables, but are as easily connected. Appendix D, Simulated PLCBus Connection, gives detailed illustrated instructions for connecting relay boards to controllers without PLCBus ports. XP8400 Configuration The XP8400 board holds eight lowpower DIP relays. The relays installed by Z-World as standard equipment have the specifications shown in Figure 5-2.
When no pins on header J2 are connected, an actuation voltage must be supplied by connecting a 24 V power supply at sockets V+ and GND on header H3. ! The XP8400 relays require an actuation voltage of 24 V. These relays will not work with J2 pins 23 connected. Apply a voltage on header H3 only when header J2 is not jumpered. Applying power to the board when J2 pins 12 or 23 are connected can damage the relay board and other boards on the bus.
CHAPTER 6: XP8400 SOFTWARE REFERENCE Software Reference s 37
Relay Board Addresses Physical Addresses Up to 64 addresses are possible on a single PLCBus. The 12-bit address of a particular relay board is determined by two factors: (1) the encoding of the PAL chip installed on the board, and (2) jumper settings on header J1. Since eight different PALs are available and J1 can be set eight different ways, 64 unique addresses are possible. A 12-bit address can be conveniently placed on the bus using 4-bit addressing.
Software Dynamic C Libraries Several Dynamic C function libraries are used with the routines defined in this section. Table 6-1 identifies which libraries are used with specific Z-World controllers. Table 6-1. Dynamic C Libraries for Controllers Library Controller EZIOCMMN.LIB All controllers EZIOPBDV.LIB All controllers EZIOTGPL.LIB BL1000 EZIOLGPL.LIB BL1100 EZIOMGPL.LIB BL1400, BL1500 EZIOPLC.LIB BL1200, BL1600, PK2100, PK2200 EZIOPLC2.LIB BL1700 EZIOBL17.
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.
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 XP8400 board. LIBRARY: EZIOPBDV.
Blank 42 s Software Reference XP8400
SE1100
Blank This page is intentionally blank.
CHAPTER 7: OVERVIEW Chapter 7 gives an overview of the SE1100 relay board and its specific features.
Z-Worlds SE1100 expansion boards provide a simple way to add relays to a control system built around a Z-World controller. These relay output boards can be connected to the digital outputs of any Z-World controller. The SE1100 adds expansion capability even to boards without a Z-World PLCBus interface. The SE1100s four SPDT relays are high-power relays. Figure 7-1 illustrates a system of expansion boards mounted on a DIN rail and connected to a controller.
Features The SE1100 relay board is designed to interface to the digital outputs of any Z-World controller. The boards four relays have a 6.3 A fuse connected to the common pin for overcurrent protection. In addition to the fuses, a snubber circuit across the common and the normally open/ normally closed pins suppresses voltage spikes across the contacts. All of the signals from the four SPDT relays are brought out to header J1. The interface voltage has a range of 5 V to 24 V.
Blank 48 s Overview SE1100
CHAPTER 8: SE1100 GETTING STARTED Getting Started s 49
Connecting an SE1100 to a Z-World Controller DC GND 3 RET 2 2 REL2 REL1 1 REL3 REL0 The four relays are optically isolated from the digital outputs on the host controller. RET1 provides a return for REL0 and REL1; RET2 provides a return for REL2 and REL3. RET 1 Connect the SE1100 to the digital outputs of any Z-World controller through the quick-release connector J3. Figure 8-1 shows the pinout. 4 5 6 7 8 J3 Figure 8-1.
High-Current Sourcing Drivers or TTL/CMOS Connection 1. Wire RET1 and RET2 on J3 to GND on the host controller. ! K is connected to the +DC power supply on the host controller. K should not exceed 25 V. 2. Connect the four high-current outputs or the TTL/CMOS outputs from the host controller to REL0, REL1, REL2, and REL3 on J3. 3. GND and DC on J3 may either be connected to a separate 24 V power supply, or they may be connected to GND and +DC on the host controller..
SE1100 Configuration The SE1100 board holds four high-power relays. Each SE1100 relay has the following specifications: 3 2 Standard coil voltage 24 V DC. Contact ratings: 10 A at 24 V DC or 120 V AC, 7 A at 250 V AC resistive maximum. Configuration: SPDT Coil Actuation Voltage: 24 V DC 1 4 5 Figure 8-4. Relay Circuit Pin 1 is the common. Pin 5 goes to a high-voltage/high-current driver on the relay board. Pin 2 is for the actuation voltage.
CHAPTER 9: SE1100 SOFTWARE REFERENCE Software Reference s 53
There are no software drivers unique to the SE1100 expansion boards. Since the SE1100 is driven by the digital outputs of the host controller it is connected to, the drivers associated with the host controllers digital outputs will operate the relays on the SE1100. The following sample program shows how to use the SE1100 with Z-Worlds BL1700 controller. 17SE1100.C /* REL0 to U2, 0 REL1 to U2, 1 REL2 to U2, 2 REL3 to U2, 3 RET1 to RET2 to DC to BL1700, DCIN GND to U2, GND */ #use vdriver.lib #use eziobl17.
APPENDICES
Blank This page is intentionally blank.
APPENDIX A: PLCBUS Appendix A provides the pin assignments for the PLCBus, describes the registers, and lists the appropriate software drivers.
PLCBus Overview The PLCBus is a general-purpose expansion bus for Z-World controllers. The PLCBus is available on the BL1200, BL1600, BL1700, PK2100, PK2200, and PK2600 controllers. The BL1000, BL1100, BL1300, BL1400, and BL1500 controllers support the XP8300, XP8400, XP8600, and XP8900 expansion boards using the controllers parallel input/output port. The BL1400 and BL1500 also support the XP8200 and XP8500. The ZB4100s PLCBus supports most expansion boards, except for the XP8700 and the XP8800.
Two independent buses exist on a 26-conductor connector: the LCD bus and the PLCBus. LCD Bus Signals The LCD bus consists of the following signals: LCDX positive-going strobe. /RDX negative-going strobe for read. /WRX negative-going strobe for write. A0X address line for LCD register selection. D0X-D7X bidirectional data lines (shared with expansion bus). The LCD bus is used to connect Z-Worlds OP6000 series interfaces or to directly drive certain small liquid crystal displays.
Registers and Addresses There are eight registers corresponding to the modes determined by bus lines A1X, A2X, and A3X. Writing or reading one of these registers takes care of all the bus details. Functions are available in Dynamic C libraries to read from or write to expansion bus devices. To communicate with a device on the expansion bus, first select a register associated with the device. Then read from or write to the register. The register is selected by placing its address on the bus.
If eight data lines are used, then the addressing possibilities of the bus become much greater: more than 256 million addresses according to the conventions established for the bus. Place an address on the bus by writing (bytes) to BUSADR0, BUSADR1, and BUSADR2 in succession. Since 4-bit and 8-bit addressing modes must coexist, the lower four bits of the first address byte (written to BUSADR0) identify addressing categories, and distinguish 4-bit and 8-bit modes from each other.
Z-World provides software drivers that access the PLCBus. To allow access to bus devices in a multiprocessing environment, the expansion register and the address registers are shadowed with memory locations known as shadow registers. The 4-byte shadow registers, which are saved at predefined memory addresses, are as follows.
Device Allocation 4-Bit Devices Digital output devices, such as relay drivers, should be addressed with three 4-bit addresses followed by a 4-bit data write to the control register. The control registers are configured as follows: bit 3 A2 bit 2 A1 bit 1 A0 bit 0 D The three address lines determine which output bit is written. The output is set as either 1 or 0, according to D. If the device exists on the bus, reading the register drives bit 0 low. Otherwise bit 0 is a 1.
Expansion Bus Software The expansion bus provides a convenient way to interface Z-Worlds controllers with expansion boards or other specially designed boards. High-level software drivers are easier to use than low-level drivers, but high-level drivers are less efficient in some cases. Table A-5 lists software libraries particular to each controller. Table A-5. Dynamic C PLCBus Libraries Library Controller DRIVERS.LIB All controllers EZIOTGPL.LIB BL1000 EZIOLGPL.LIB BL1100 EZIOMGPL.
void set16adr( int adr ) Sets the current address for the PLCBus. All read and write operations access this address until a new address is set. PARAMETER: adr is a 16-bit physical address. The high-order nibble contains the value for the expansion register, and the remaining three 4-bit nibbles form a 12-bit address (the first and last nibbles must be swapped). LIBRARY: DRIVERS.LIB. void set12adr( int adr ) Sets the current address for the PLCBus.
char _eioReadD1( ) Reads the data on the PLCBus in the BUSADR1 cycle. RETURN VALUE: the byte read on the PLCBus in the BUSADR1 cycle. LIBRARY: EZIOPLC.LIB, EZIOPLC2.LIB, EZIOMGPL.LIB. char _eioReadD2( ) Reads the data on the PLCBus in the BUSADR2 cycle. RETURN VALUE: the byte read on the PLCBus in the BUSADR2 cycle. LIBRARY: EZIOPLC.LIB, EZIOPLC2.LIB, EZIOMGPL.LIB.
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 811). dat (bits 03) 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.
void write24data( long address, char data ) Sets the current PLCBus address using the 24-bit address, then writes eight bits of data to the PLCBus. PARAMETERS: address is 24-bit address to write to. data is data to write to the PLCBus. LIBRARY: DRIVERS.LIB. void write8data( long address, char data ) Sets the last eight bits of the current PLCBus address using address bits 1623, then writes eight bits of data to the PLCBus. PARAMETERS: address bits 1623 are the address of the PLCBus to write.
APPENDIX B: XP8300/XP8400/SE1100 SPECIFICATIONS Specifications s 69
0.125 0.125 0.45 (3.2) (11) 0.125 (3.2) (33.8) (3.2) 1.33 P2 (33.8) 1.33 P1 (72.0) (3.2) 2.835 0.125 XP8300 Relay Expansion Board 0.187 (4.7) dia. clear, 4x 3.525 (89.5) 0.75 (19) 0.06 (1.5) Figure B-1. XP8300 Dimensions Table B-1. XP8300 Specifications Feature Board Size Specification 2.835" × 3.525" × 0.78" (72.0 mm × 89.
2.835 (72.0) (15) (3.2) ~0.58 0.125 typ XP8400 Relay Expansion Board 0.187 dia, 4x (4.7) 0.125 typ (3.2) 2.22 (11) ~0.45 (55.9) Figure B-2. XP8400 Dimensions Table B-2. XP8400 Specifications Feature Specification Board Size 2.835" × 2.22" × ~0.58" (72.0 mm × 55.
SE1100 Relay Expansion Board 1.975 (72.0) (4.4) 0.175 typ 2.835 (50.2) 0.187 dia, 4x 0.825 (4.7) (21.0) 0.175 typ (4.4) 3.85 (33.5) ~1.32 ~1.17 (29.7) (97.8) Figure B-3. SE1100 Dimensions Table B-3. SE1100 Specifications Feature Specification Board Size 2.835" × 3.85" × 1.32" (72.0 mm × 97.8 mm × 33.5 mm) Operating Temperature –40°C to +70°C Humidity 5% to 95%, noncondensing Input Voltage and Current 24 V DC, 80 mA Relays 72 s Specifications 4 SPDT relays 6.3A at 250 V AC or 6.
Quick-Release Connectors Dimensions in millimeters 2.5 5.0 The SE1100 comes equipped with quick-release connectors that allow for quick connection/disconnection. Figure B-4 illustrates the connectors and provides their dimensions. Table B-4 provides the specifications. 12.6 n x 5.0 15.5 26.0 5.8 6.3 (a) Quick-Release Female Connector Dimensions in millimeters 2.5 8.35 5.0 n × 5.0 3.9 3.85 3.5 12.0 1.0 (b) Quick-Release Male Connector Figure B-4.
Table B-4.
APPENDIX C: CONNECTING AND MOUNTING MULTIPLE BOARDS XP8300/XP8400/SE1100 Connecting and Mounting Multiple Boards s 75
Connecting Multiple Boards Eight or more expansion boards can be connected (daisy chained) at one time. The actual number of expansion boards may be limited by capacitative loading on the PLCBus. Be sure that each expansion board has a unique address to prevent communication problems between the controller and the expansion board. Follow these steps to install several expansion boards on a single PLCBus. 1. Place all expansion boards right side up. 2. Use the ribbon cable supplied with the boards. 3.
There are two ways to compensate for the voltage dropoff. The easiest way is to connect +5 V DC and ground from the host controller to pins 2 and 1 of header P1 on the last expansion board. Another solution, which can approximately double the number of boards that could otherwise be connected to a single controller, is a Y cable available from Z-World. Figure C-2 illustrates the use of the Y cable.
Mounting The XP8300, XP8400, and SE1100 expansion boards can be installed in modular plastic circuit-board holders attached to a DIN rail, a widely used mounting system, as shown in Figure C-3. The circuit-board holders are 77 mm wide and come in lengths of 11.25 mm, 22.5 mm , and 45 mm. The holders, available from Z-World and from other suppliers, snap together to form a tray of almost any length. Z-Worlds expansion boards are 72 mm wide and fit directly in these circuit-board holders.
APPENDIX D: SIMULATED PLCBUS CONNECTIONS XP8300/XP8400/SE1100 Simulated PLCBus Connections s 79
BL1000 The XP8300 and XP8400 expansion boards may be connected to a BL1000 using an expander cable (Z-World part number 540-0015). Fasten the cables 20-pin connector to header J9 as shown in Figure D-1. Pins 1 and 2 of the connector must hang over the end of the header. Fasten the cables PLCBus connector to header P1 or P2 of the expansion board, observing the orientation of pin 1, as shown. Note that the first two pins of this connector must hang over the end of the header.
BL1100 The XP8300 and XP8400 expansion boards may be connected to a BL1100 using an expander cable (Z-World part number 540-0015). Fasten the cables 20-pin connector to the combined headers J010 and J10 as shown in Figure D-2. Pins 1 and 2 of the expander cable connector must hang over the end of the combined header. Fasten the cables PLCBus connector to header P1 or P2 of the expansion board. Note the orientation of pin 1.
BL1400 or BL1500 XP8300 and XP8400 expansion boards may be connected to header H3 on either the BL1400 or the BL1500. To add these expansion boards, the user must either make a custom cable or use an adapter board (Z-World part number 101-0050). To assist with making the connection via a ribbon cable, Table D-1 maps the signals from the controllers PIO to the expansion board PLCBus. Dynamic Cs EZIOMGPL.LIB library may be used for programming. Table D-1.
APPENDIX E: ADVANCED PROGRAMMING Appendix E provides alternative programming methods for the XP8300 and XP8400 relay expansion boards.
Controlling a Relay Once a relays address is placed on the bus (the most recent address on the bus remains in effect), relays can be switched indefinitely. Use the BUSWR bus cycle to place four bits of data on the bus. Table D-1 shows the relay physical addresses and states. Table D-1.
PLC_EXP.LIB The PLC_EXP.LIB library supports PLCBus controllers when operating PLCBus expansion boards. This library provides general bus functions and specific functions for the XP8300, XP8400, XP8600, and Exp-A/D12 expansion boards. There are four groups of functions in this library. Table D-2 lists the two groups used by relay boards. Analogous functions exist in other libraries. Table D-2. PLC_EXP.
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.
int Poll_PBus_Node( int addr ) Returns 1 if there is a board at addr on the PLCBus, and 0 if not. The first and third nibbles of addr must be interchanged: if the bus address is 0x125, addr must be 0x521. int Relay_Board_Addr( int board ) Returns the (nibble-interchanged) bus address for a relay board identified by a logical address (0-63). void Reset_Pbus() void Reset_Pbus_Wait() The function Reset_PBus resets the PLCBus.
Sample Projects The following two sample programs activate the relays on one or more XP8300 or XP8400 boards attached to a controller. Two versions of the program are shown: one for PLCBus controllers, and one for the BL1100 and BL1300. The following instructions tell how to set up a system, write and compile a program, and run a sample program to operate relay boards on a bus. PLCBus Controllers Instructions 1. Power up the controller and make sure it is working properly.
Sample Program The relay board demonstration program can be used to locate all XP8300 and XP8400 expansion boards. The program then loops, activating the relays on each board. For each board, the program concludes with an allon/all-off sequence. To locate each board, the program polls all 64 possible addresses, then displays the logical address in Dynamic Cs STDIO window for each board that responds.
Controllers with Simulated PLCBus Instructions for BL1000 and BL1100 1. Power up the BL1000 or BL1100 and make sure it is working properly. If you encounter problems, consult the controllers technical reference manual. 2. Disconnect power from the controller. 3. Using the appropriate cable, connect the XP8300 or XP8400 to the PIO port on the controller. See Appendix D, Simulated PLCBus Connection, for detailed information regarding this cable.
Sample Program for BL1000 and BL1300 The program locates all XP8300 and XP8400 boards attached to the PLCBus. The program then loops, activating the relays on each board. For each board, the program concludes with an all-on/all-off sequence. To locate boards, the program polls all 64 possible addresses. The integer (logical) address of each board that responds is displayed in Dynamic Cs STDIO window.
Blank 92 s Advanced Programming XP8300/XP8400/SE1100
INDEX Symbols #use ................................... 23, 39 /AT ............................................. 59 /STBX ........................................ 59 20-pin connector ................. 80, 81 4-bit bus operations ............ 59, 60 5 × 3 addressing mode ............... 61 8-bit bus operations ............ 59, 61 A A1X, A2X, A3X ................. 59, 60 actuation voltage XP8300 .................................. 20 XP8400 .................................. 35 addresses encoding ............
connectors quick-release .......................... 73 contact ratings SE1100 ................................... 52 XP8300 .................................. 19 XP8400 .................................. 35 control registers ......................... 63 D D0XD7X .................................. 59 daisy chaining ............................ 76 digital inputs PLCBus .................................. 63 dimensions SE1100 ................................... 72 XP8300 ..................................
liquid crystal display. See LCD logical addresses XP8300 .................................. 22 XP8400 .................................. 38 M memory-mapped I/O register ..... 60 metal oxide varistor (MOV) ...... 15 mode addressing .............................. 61 mounting .................................... 78 end caps ................................. 78 N noise transients SE1100 ................................... 47 O operating relay boards ........ 24, 40 outport .............................
SE1100 ................................ 46, 58 connection sinking driver ..................... 50 sourcing driver ................... 51 features ................................... 47 select address ............................. 64 shadow registers......................... 62 simulated PLCBus PIO port ................................. 90 software libraries ........................... 23, 39 DRIVERS.LIB ............ 2223, 3839, 64, 87 EZIOCMMN.LIB .......... 23, 39 EZIOLGPL.LIB .................
specifications SE1100 ................................... 72 quick-release connectors .... 74 XP8300 .................................. 70 XP8400 .................................. 71 V V+ XP8300 .................................. 20 XP8300/XP8400 .................... 90 XP8400 .................................. 36 VCC XP8300 .................................. 20 XP8300/XP8400 .................... 90 XP8400 ..................................
Blank This page is intentionally blank.
Z-World 2900 Spafford Street Davis, California 95616-6800 USA Telephone: Facsimile: Web Site: E-Mail: (530) 757-3737 (530) 753-5141 http://www.z w orld.com zworld@zworld.com Part No. 019-0054 Revision B Printed in U.S.A.