You are on page 1of 11

Bulletin 900 to CompactLogix Interface

Network Setup Procedure

Table of Contents 1 Overview................................................................................................................................................................ 2 2 System Hardware Interconnect Diagram............................................................................................................... 3 3 Configuration Communications Switches/Parameters........................................................................................... 5 3.1 CompactLogix Channel 0 (RS-232) Port Configuration...................................................................................5 3.2 Bulletin 900-CONV Configuration.................................................................................................................... 7 3.3 Bulletin 900 Temperature Controller Configuration......................................................................................... 8 4 Ladder Logic Integration into your program......................................................................................................... 10

Page 1 of 11

1 Overview
The purpose of this document is to describe the steps required to set up a network of Bulletin 900 Temperature Controller(s) on an RS-485 network and to use the provided CompactLogix program to establish communications between the Bulletin 900 Temperature Controller(s) and the CompactLogix Logic Controller. The basic network consists of the CompactLogix Logic Controller, an RS232-to-RS485 serial interface converter, and at least one Bulletin 900 Temperature Controller. There may be as few as one Temperature Controller, or as many as 32. The steps in establishing the network are: Connect the devices physically, Configure each of the three major components: Logic Controller (CompactLogix, Bulleting 1769) Serial Port RS232-to-RS485 serial interface converter (Bulletin 900-CONV) Temperature Controller(s) (Bulletin 900-TCx) communications parameters Integrate the ladder logic.

Page 2 of 11

2 System Hardware Interconnect Diagram


Terminal 12 (SD B+) Terminal 9 (SD A-) CompactLogix Controller Bulletin 900-CONV 9-pin D-shell to Channel 0

Flying leads: White - To term 5 (SD) Green - To term 6 (RD) Red - To term 3 (SG)

#900-TC Cable Input Power: To terminals 1 & 4

A- B+

A- B+

A- B+

A- B+

Bulletin 900 Temperature Controller

Bulletin 900 Temperature Controller

Bulletin 900 Temperature Controller

...

Bulletin 900 Temperature Controller

Page 3 of 11

The three main components of the network are a single Logic Controller (CompactLogix Bulletin 1769), a single Serial Interface Converter (Bulletin 900-CONV), and one or more Temperature Controller(s) (Bulletin 900-TCx). The Logic Controller is connected to the Serial Interface Converter using a #900-TC cable. This cable has a 9-pin D-Shell at one end that plugs into Channel 0 of the Logic Controller. The other end of the cable has three wires (flying leads) that are connected to the terminals of the Serial Interface Converter as noted above. (The White lead goes to Terminal 5 (SD) on the Serial Interface Converter, the Green lead goes to Terminal 6 (RD), and the Red lead goes to Terminal 3 (SG).) The connection from the Serial Interface Converter to the Temperature Controller (and from one controller to the next if more than one are present) is made with a two-wire cable. This can be any cable of a type suitable for RS-485 communications (shielded, twisted-pair cable AWG24 AWG14), and can be purchased in bulk and cut to length. Flying leads at each end are connected to the Serial Interface Controller and to the Temperature Controller. Terminal 9 (SD A-) on the Serial Interface controller is connected to the A- terminal on the Temperature Controller (Terminal 12 on the #900-TC8 & #900TC16, Terminal 6 on the #900-TC32). Terminal 12 (SD B+) on the Serial Interface controller is connected to the B+ terminal on the Temperature Controller (Terminal 11 on the #900-TC8 & #900TC16, Terminal 5 on the #900-TC32. If more than one Temperature Controller is present, the A- terminals are all connected together daisychain style, and separately the B+ terminals are all connected together daisy-chain style). The total cable length from the Interface Converter to the farthest node cannot exceed 500 m. Additionally, all components (the Serial Interface Converter, the Temperature Controller(s), and the power supply for the Logic Controller) each require their own input power wiring.

Page 4 of 11

3 Configuration Communications Switches/Parameters


3.1 CompactLogix Channel 0 (RS-232) Port Configuration
Communications with the Bulletin 900 Temperature Controller are via RS-485 standards. Although the Channel 0 Serial Port of the CompactLogix supports several software standards, including RS-485, the port physically conforms to hardware standard RS-232. As such the simplest method of connecting the logic controller to the temperature controller(s) is to set up the serial port for RS-232, and use an AllenBradley Bulletin 900-CONV serial converter. This will convert the RS-232 hardware/software interface at the logic controller to the necessary RS-485 for connection to the temperature controller(s). Configure the CompactLogix serial port (channel 0) according to the windows below. This will configure the port for 19,200 bps, Even Parity, 8 data bits, and 1 stop bit. To get to the configuration, with the project open in RSLogix5000 programming software, first Right-Click on the controller, then Left-Click once on Properties. You will then have a series of tabs. Click on the tabs shown below, and configure as shown.

Page 5 of 11

Page 6 of 11

3.2

Bulletin 900-CONV Configuration


The switch settings on the Bulletin 900-CONV must be set properly in order for communications to work as desired. Below are the switch settings that should be used to support the above configuration. Please note that these are not the default switch settings from the factory. Changes to the factory default switch settings will be required for proper operation. Switch # 1 2 3 4 5 6 7 8 9 10 State ON OFF ON ON ON OFF OFF OFF OFF OFF Function Baud Rate Data Length Stop Bits Parity Master Device Slave Device Echoback Notes 1 On, 2 Off, 3 On = 19,200 bps On = 8 bit On = 1 Stop Bit Both Off = Even Parity Off = RS-232C Off = RS-485 Off = Off (without)

Below is a detailed listing of the switches and all possible states for reference.

Page 7 of 11

3.3

Bulletin 900 Temperature Controller Configuration


Refer to the controller user manual for information regarding setup of the temperature controller. The temperature controller communication parameters must be set to match the configuration of other devices in the network in order to communicate with the CompactLogix logic controller. Please note that these are not the default settings from the factory. Changes to the factory default parameter settings will be required for proper operation.

Page 8 of 11

Parameter Communications Unit Number (Node #)

Variable Type C3

Memory Address 0010h

Value 1 32 (Each Temperature Controller on the network must have a unique address. For this network, valid addresses range from 1 to 99. However, the total quantity of temperature controllers on the network cannot exceed 32. Further, while the Temperature Controllers can have any unique address from 1 99 (gaps are allowed), the accompanying software application was written to process up to 32 Temperature Controllers, as long as they are addressed in the range from 1 32. So it is recommended that the address range be limited to 1 32, or logic and tag array changes will be required.) 19.2 (kbps) 8 bit 1 Stop Bit Even

Communications Baud Rate Communications Data Length Communications Stop Bit Communications Parity

C3 C3 C3 C3

0011h 0012h 0013h 0014h

Also please note that communications parameters are enabled after they have been changed by resetting the temperature controller.

Page 9 of 11

4 Ladder Logic Integration into your program


The logic provided is class code to provide the services defined in the object specification. The user must write code to implement this class code as desired. The user application must include proper sequencing of logic to call the class code. Some conceptual examples follow: The class code provides a command service 6 to send operation instructions to the controller such as Run, Stop, and Reset. The user may wish to implement a selector switch at the operator control station to start and stop the controller. The user would have to write logic to: Examine the selector switch to see if it is on or off (bring in the input), On a change of state (one-shot) to On, would set the node number for the controller to be turned on in the PARAM_Node parameter (offset by 1), place a 1 in the command Write Data parameter, place a 0 in the Related Info parameter, and finally would place a 6 in the Command Service parameter. Rung 6 in Examples_Bul900 shows this data (except the PARAM_Node parameter) being set. On a change of state (one-shot) to Off, would set the node number for the controller to be turned on in the PARAM_Node parameter (offset by 1), place a 1 in the command Write Data parameter, place a 1 in the Related Info parameter, and finally would place a 6 in the Command Service parameter. Rung 5 in Examples_Bul900 shows this data (except the PARAM_Node parameter) being set. As another example, if the user had a temperature controller that was located in an enclosure where it was not readily accessible, and they had an HMI (Human Machine Interface terminal), the user might write logic that would: Include a self-resetting timer. Would monitor which screen was displayed on the HMI. When a temperature loop display screen was active on the HMI, then on completion of the timer would trigger a read request for the SP. This would be accomplished by writing to or reading from public variables (controller-scoped tags) for the appropriate numbered node: Move a 2 into Var_Type indicating a C1 type variable. Move a 3 into RW_Addr indicating that address 0003 is to be read. Move a 1 into Service indicating a Read Variable Service request. On the next false-to-true transition of Data_Rdy, move the new SP value from Data_Read and place it in a different tag for use by the HMI. Would place the SP in a memory location where it can be read by the HMI for display at the operators station. Some other notes and rules: The rungs of logic supplied must be implemented in the same order as supplied; the order of the logic is critical to the functionality of the program. There is no buffering of reads/writes provided by the software for an individual temperature controller. Any command issued must wait for success or timeout prior to issuing the next command. The sample program was generated using RSLogix5000 Version 12.01.00. Version 12 or later software must be used to open this program. Data in the Configuration sections (4.1) of the Object Specification must be entered into the Bul900_Msg_Const table. The data can be found in the supplied application. Also, for each Bul900_Controller node defined, the Node_Num attribute must be set to a unique value corresponding to the node number set up in the temperature controller itself. Regarding node numbers, the temperature controllers must each have a unique address on the network. The allowable address range is 1 99, but the total quantity of controllers on the

Page 10 of 11

network cannot exceed 32. The driver supplied has been written to handle up to 32 controllers, but they must have node addresses in the range from 1 32. If it is desired to use node numbers in the range from 33 99, changes will be required to the logic and tag array sizes. Also, in the sample application supplied, the node numbers on the network (1 32) are offset from the array index (0 31) by one. Insure that the correct index number is specified in PARAM_Node for the desired network node number (PARAM_Node = network node # -1). Please refer to Bulletin 900 to CompactLogix Interface Application Considerations Version 1.1 dated 24SEP2004 (file Bul900_CLX_Interface Application Considerations V1.1.doc) for further details concerning the integration of this driver into the user application. Please refer to Bulletin 900 to CompactLogix Interface Object Specification Version 1.1 dated 24SEP2004 (file Bul900_CLX_Interface Object Specification V1.1.doc) for complete details on the actual interface code design.

Page 11 of 11

You might also like