Bul900_CLX_Interface Network Setup Procedure

Embed Size (px)

Citation preview

  • 7/27/2019 Bul900_CLX_Interface Network Setup Procedure

    1/11

    Bulletin 900 to CompactLogix Interface

    Network Setup Procedure

    Table of Contents

    1 Overview................................................................................................................................................................ 22 System Hardware Interconnect Diagram............................................................................................................... 33 Configuration Communications Switches/Parameters...........................................................................................5

    3.1 CompactLogix Channel 0 (RS-232) Port Configuration...................................................................................53.2 Bulletin 900-CONV Configuration....................................................................................................................73.3 Bulletin 900 Temperature Controller Configuration......................................................................................... 8

    4 Ladder Logic Integration into your program......................................................................................................... 10

    Page 1 of 11

  • 7/27/2019 Bul900_CLX_Interface Network Setup Procedure

    2/11

    1 OverviewThe purpose of this document is to describe the steps required to set up a network of Bulletin 900Temperature Controller(s) on an RS-485 network and to use the provided CompactLogix program toestablish communications between the Bulletin 900 Temperature Controller(s) and the CompactLogix LogicController.

    The basic network consists of the CompactLogix Logic Controller, an RS232-to-RS485 serial interfaceconverter, and at least one Bulletin 900 Temperature Controller. There may be as few as one TemperatureController, 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

  • 7/27/2019 Bul900_CLX_Interface Network Setup Procedure

    3/11

    2 System Hardware Interconnect Diagram

    Input Power:

    To terminals 1 & 4

    CompactLogix Controller

    Bulletin

    900-CONV

    #900-TC

    Cable

    9-pin

    D-shell to

    Channel 0

    Flying leads:

    White - To term 5 (SD)

    Green - To term 6 (RD)

    Red - To term 3 (SG)

    Terminal 12 (SD B+)

    Terminal 9 (SD A-)

    Bulletin 900

    Temperature

    Controller

    A- B+

    Bulletin 900

    Temperature

    Controller

    A- B+

    Bulletin 900

    Temperature

    Controller

    A- B+

    Bulletin 900

    Temperature

    Controller

    A- B+

    . . .

    Page 3 of 11

  • 7/27/2019 Bul900_CLX_Interface Network Setup Procedure

    4/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 thecable has three wires (flying leads) that are connected to the terminals of the Serial Interface Converteras noted above. (The White lead goes to Terminal 5 (SD) on the Serial Interface Converter, the Greenlead 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 onecontroller to the next if more than one are present) is made with a two-wire cable. This can be any cableof a type suitable for RS-485 communications (shielded, twisted-pair cable AWG24 AWG14), and canbe purchased in bulk and cut to length. Flying leads at each end are connected to the Serial InterfaceController and to the Temperature Controller. Terminal 9 (SD A-) on the Serial Interface controller isconnected to the A- terminal on the Temperature Controller (Terminal 12 on the #900-TC8 & #900-TC16, Terminal 6 on the #900-TC32). Terminal 12 (SD B+) on the Serial Interface controller isconnected to the B+ terminal on the Temperature Controller (Terminal 11 on the #900-TC8 & #900-TC16, Terminal 5 on the #900-TC32.

    If more than one Temperature Controller is present, the A- terminals are all connected together daisy-chain style, and separately the B+ terminals are all connected together daisy-chain style). The totalcable 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 thepower supply for the Logic Controller) each require their own input power wiring.

    Page 4 of 11

  • 7/27/2019 Bul900_CLX_Interface Network Setup Procedure

    5/11

  • 7/27/2019 Bul900_CLX_Interface Network Setup Procedure

    6/11

    Page 6 of 11

  • 7/27/2019 Bul900_CLX_Interface Network Setup Procedure

    7/11

    3.2 Bulletin 900-CONV ConfigurationThe switch settings on the Bulletin 900-CONV must be set properly in order for communications to workas 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 factorydefault switch settings will be required for proper operation.

    Switch # State Function Notes

    1 ON Baud Rate 1 On, 2 Off, 3 On = 19,200 bps

    2 OFF

    3 ON

    4 ON Data Length On = 8 bit

    5 ON Stop Bits On = 1 Stop Bit

    6 OFF Parity Both Off = Even Parity

    7 OFF8 OFF Master Device Off = RS-232C

    9 OFF Slave Device Off = RS-485

    10 OFF Echoback Off = Off (without)

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

    Page 7 of 11

  • 7/27/2019 Bul900_CLX_Interface Network Setup Procedure

    8/11

    3.3 Bulletin 900 Temperature Controller ConfigurationRefer to the controller user manual for information regarding setup of the temperature controller. Thetemperature controller communication parameters must be set to match the configuration of otherdevices 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 defaultparameter settings will be required for proper operation.

    Page 8 of 11

  • 7/27/2019 Bul900_CLX_Interface Network Setup Procedure

    9/11

    Parameter VariableType

    Memory Address Value

    CommunicationsUnit Number

    (Node #)

    C3 0010h 1 32 (Each Temperature Controller on thenetwork must have a unique address. For

    this network, valid addresses range from 1to 99. However, the total quantity oftemperature controllers on the networkcannot exceed 32. Further, while theTemperature Controllers can have anyunique address from 1 99 (gaps areallowed), the accompanying softwareapplication was written to process up to 32Temperature Controllers, as long as theyare addressed in the range from 1 32. Soit is recommended that the address rangebe limited to 1 32, or logic and tag arraychanges will be required.)

    CommunicationsBaud Rate C3 0011h 19.2 (kbps)

    CommunicationsData Length

    C3 0012h 8 bit

    CommunicationsStop Bit

    C3 0013h 1 Stop Bit

    CommunicationsParity

    C3 0014h Even

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

    Page 9 of 11

  • 7/27/2019 Bul900_CLX_Interface Network Setup Procedure

    10/11

    4 Ladder Logic Integration into your programThe logic provided is class code to provide the services defined in the object specification. The usermust write code to implement this class code as desired. The user application must include propersequencing 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 controlstation 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 WriteData parameter, place a 0 in the Related Info parameter, and finally would place a 6 inthe Command Service parameter. Rung 6 in Examples_Bul900 shows this data (except thePARAM_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 WriteData 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 thePARAM_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 usermight 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 orreading 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 nextcommand.

    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 eachBul900_Controller node defined, the Node_Num attribute must be set to a unique valuecorresponding 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

  • 7/27/2019 Bul900_CLX_Interface Network Setup Procedure

    11/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 nodenumbers 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 offsetfrom 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 furtherdetails concerning the integration of this driver into the user application. Please refer to Bulletin900 to CompactLogix Interface Object Specification Version 1.1 dated 24SEP2004 (fileBul900_CLX_Interface Object Specification V1.1.doc) for complete details on the actualinterface code design.

    Page 11 of 11