User’s Guide AB1746-C Network Master (Version 5.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) User’s Guide Controlinc Network Master … AB1746-C (Version 5.21) For Allen-Bradley Series SLC-500 Programmable Controllers Table of Contents 0. Quick Start Information...............................................................................1 1. Introduction...................................................................................................2 1.1. Overview of 1746-C System ..........................................
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 4.1.2. Diagram Describing Network Scanning & Actuator Writing Logic........................ 17 4.1.3. Diagram Demonstrating Adding Additional Valves in Valve Scan Time-Slice...... 18 4.1.4. Diagram Describing Relationship Between Scan Period & Diagnostic Scan ....... 19 4.1.5. 1746-C System Operations at Power Up............................................................. 20 4.2.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4.12. Table [14]: Additional Register Being Polled From Entire Network................... 71 5.4.13. Table [15]: Additional Block of Registers Being Polled From 1 Actuator........... 73 5.4.14. Tables [16 & 17]: Monitor & Control Discrete Digital Outputs ........................... 76 5.4.15. Table [18]: Actuator System Type ID ................................................................ 81 5.4.16.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.5.3. Modbus Exception Messages Supported .......................................................... 123 6.6. App Note: Install the 1746-C Network Master Firmware............................. 124 6.6.1. Configure the Module for a Firmware Upload .................................................... 124 6.6.2. Upload the 1746-C Firmware............................................................................. 125 6.6.3.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 0. Quick Start Information 1. As a minimum, you should have access to the following reference documents: • This manual (1746-C User’s Guide) • Allen-Bradley SLC-500 BASIC User's Manual (1746-BAS & 1746-BAS-T) Publication No. 1746-UM004A-US-P 2000 • • EIM Controlinc 320A Quick Startup Guide, Rev. F or later EIM Controlinc 320B Quick Startup Guide, Rev. A or later 2.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 1. Introduction 1.1. Overview of 1746-C System This document is intended for end users as a Guide in applying an EIM AB 1746-C Network Master. The software that enables network operation is called a communication driver. It is used in conjunction with an Allen-Bradley 1746-BAS module thereby creating the 1746-C network master module.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) The 1746-C master will handle network communication, error detection, alarming, and network recovery. Other features include: • Reporting of inaccessible actuators • Reporting of network faults • Emergency shutdown broadcasting • Minimal Interfacing with the Relay Ladder Logic (RLL) program in the PLC CPU module Each 1746-C module can support a single network of up to 60 valve actuators.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 1.2. Overview of Changes in Version 5.21 For the 1746-C system, there is no previous version of the product to reflect functional changes to. However, any later releases of this document for this version of the product (5.21) are to only correct entries in this document … primarily grammatical or “typos” that are discovered in the future. Major ideas will be documented with a separate “line entry”. Major document changes: 1.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 1.3. Reference Manuals • Allen-Bradley SLC-500 BASIC User's Manual (1746-BAS & 1746-BAS-T) Publication No. 1746-UM004A-US-P 2000 This manual is required for installing the module and for proper uploading of this driver into the hardware. • EIM … Controlinc 320A Quick Startup Guide, Rev. F or later Publication No.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 1.4. EIM Equipment Compatibility The 1746-C is compatible with the following EIM equipment: • 320A … version 1.17 and later. • 320B … all • TEC2000 … all Other points: • The 1746-C derives the system type of each actuator during the diagnostic scan and stores the results in table [18]. • The 1746-C derives the firmware Version ID for the 320A & 320B systems during the diagnostic scan and stores the results in table [19].
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 2. 1746-C Hardware 2.1. Hardware Setup Refer to Chapter 1 of the 1746-BAS manual. The following hardware jumper settings are required. If the 1746-BAS module was supplied by EIM, jumpers are already set and no other settings are required.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 2.2. LED Utilization 2.2.1. Green (PRT1 & PRT2) and Yellow (LED1 & LED2) LED Usage There are 2 “Yellow” LED lights on the front of the 1746-C module • LED1. • LED2. There are currently 3 general functions operating these LEDs: 1. After CPU restart, both LED1 & LED2 are ON until the 1746-C finishes initialization and starts polling the network. 2.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) PRT1 & PRT2 (Green) LED App Note: Green LED Lights & System Initialization with Table [0] After startup, if table [0] is not initialized shortly after the 1746-C finishes its initial diagnostic scan, the program starts running with factory default settings. This means that unless the network actually has 60 actuators on it, the 1746-C will believe the “other valves” are just off line.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 2.2.2. Red “BA LOW” LED Usage The red “BA LOW” LED indicates low battery status. The purpose of the battery in the BASIC module is to back up portions of RAM and other resources. For guaranteed long-term repeatability of operations, the EIM 1746-C program does not utilize any of these resources.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 3. Network Setup and Connecting to the NIU In general, the EIM NIU (“Network Interface Unit”) is a “beefed up” and configurable RS232 converter. The ports on the 1746-C, Port1 (PRT1) and Port 2 (PRT2), are configured for serial communication using RS-232. SLC-500 with 1746-C installed RS485 1746-C The network communication parameters are pre-configured and fixed at 9600 baud – 8 bit – no parity – 1 stop bit.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) A typical E>Net network connection format is in a ring … • It starts from Port 1 (PRT1) (the top DB9 connector) on the 1746-C as RS232 and connects to the NIU at the port labeled “Host A”. • It exits the NIU at the port labeled “Port A” as an RS485 circuit and proceeds to the first valve actuator, normally addressed as #1, in port A.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 3.1. Field Connections at the Actuator Communication connections and wiring are important for the network and the master. (The following information was primarily derived from the Controlinc Quick Startup Guide) 3.1.1. Step 1. Plan the Network Topology Before connecting actuators, the entire network layout should be planned. Topologies may be bus, redundant bus, E>Net, redundant E>Net, E>Net ring, and redundant E>Net rings.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 3.1.3. Step 3. Route Cable away from Electrical Interference Network cables should enter the electrical enclosures and the bottom or lowest point (on 320A systems, this is near the transformer end and normally in a counter clockwise direction to the topside of the TBM). Never install network cable in the same conduit with power conductors. Never route the network cable through the high voltage contactor area.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 3.2. Field Network Cable Connection to the NIU Refer to Figure 3-2 for terminals on the EIM Network Interface Unit (NIU). The NIU is a dual port RS232 to RS485 converter specifically designed for ring networks. Connect the twisted shielded pair cable of the field network to NIU Terminals 1 (-), 2 (Shield), 3 (+) of J1 of Port A.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 4. 1746-C General Theory of Operation 4.1. Operational Overview The interface for the PLC with the actuators (through the 1746-C module) is with an array of 25 tables … 64 words per table with the table number (command) in Word # [0] of each. This is based on the M0/M1 interface protocol established by Allen-Bradley for the SLC-500 systems.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 4.1.2. Diagram Describing Network Scanning & Actuator Writing Logic This example demonstrates how a normal scan cycle gets elongated with data writes to the actuators. The more writes being performed the longer it will take to complete data scans.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 4.1.3. Diagram Demonstrating Adding Additional Valves in Valve Scan Time-Slice This example demonstrates how increasing the additional number of valves to be scanned before servicing the PLC communication task decreases the total network scan time. This is where the PLC/HMI must make a value decision for the best fit for their application: • Increasing the number: Speeds up data collection Lowers PLC control capabilities.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 4.1.4. Diagram Describing Relationship Between Scan Period & Diagnostic Scan This example demonstrates the relationship between the diagnostic scans, scan periods, the current scan period, the previous scan period. This example: a scan period value of 10 and 25 valves on the network. This means that all the valves on the network will be scanned 10 times before the scan period is over … and before the next diagnostic scan is performed.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 4.1.5. 1746-C System Operations at Power Up The 1746-C software boots up on a power up of the 1746-C module. The general sequence is: 1. Illuminate LED1 & LED2 as an indication that the software is initializing itself and the network. 2. Perform basic internal initializations. 3. Perform the initial diagnostic scan of the network and identify all actuators on the network. 4. Finish internal initializations. 5. Turn off LED1 & LED2. 6.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 4.2. Network Interface (Scan) Time-Slice (1746-C ↔ Network Communication) 4.2.1. Operation: Network Scanning to Gather Valve Actuator Data The Network Master polls and controls up to 60 valves on the network by sequentially polling (scanning) each device in sequence from slave actuator address #1 to the last slave address (#n) on its network.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 4.2.2. Operation: The Network Communication Diagnostic Scan After a predetermined number of loops through the network scanning the actuators (the “scan period”), the 1746-C performs a communication diagnostic scan to determine if any “off-line” actuators can come back on line. If there are any that are ready, the 1746-C will bring them back on line without human intervention.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Notes: • Though not much, the diagnostic scan time can also vary with the number of valves in the valve scan time slice. • The greater the number of valves configured to be on line, the longer the diagnostic scan time … more valves to check.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 4.3. PLC Interface Time-Slice (1746-C ↔ PLC Communication) The primary interface for the PLC with the 1746-C module is with an array of 25 tables (labeled 0 24) stored in the 1746-C RAM. Each table is 64-words long and each word is 16-bits. From the perspective of the PLC interfacing with the network, some of the tables are “read only” and some are “read/write” (depending upon a command word).
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) The interfacing between the PLC and the 1746-C is performed in the 1746-C module in a section of RAM that is used as an exchange buffer area. To prevent potential overwriting problems when performing transfers, there are two separate buffers in this exchange area: • M0 file … Basic Input Buffer (BIB): PLC fills to send 64 words to the 1746-C. • M1 file … Basic Output Buffer (BOB): 1746-C fills to send 64 words to the PLC.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 4.3.1. Operation: PLC (Write Data Tables To) or (Read Tables From) the 1746-C Relative to M0/M1 transfers, from the 1746-C perspective, there is no difference in handling • Writing a value to any table in the 1746-C memory. • Writing a value to a table in the 1746-C memory that is also passed on to the specified actuator on the network. They both require a M0 file transfer command.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) As per affecting network performance, unless the command is to write data to the actuators, the PLC does not have to limit the rate in which these commands are sent to the 1746-C because the 1746-C only sends back the table information it already has stored in memory. Conceptually, these do delay the overall scan time. However, the amount of delay is very minor from a global perspective.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Note 7: Once the 1746-C reads in a table from the M0 file, the 1746-C will always deliver the feedback table almost immediately … whether or not it was a read or write table command. Therefore, the best practice to maintain synchronization between the PLC and 1746-C is for the PLC to “conceptually” wait for a feedback response from the 1746-C before continuing … even if only to throw away the table.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 4.3.2. Operation: PLC Commands to Write Data to the Actuators When valve control commands (change setpoint, open, stop or close) are generated by the PLC, the Network Master sends the appropriate command(s) over the network to the addressed slave device (actuator). However, if the command for a particular valve has not changed (value in the table is the same as before), then nothing is sent to the particular valve (it is skipped).
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Note 2: If writing to a valve and the write fails, then the internal flag to write the value REMAINS ACTIVE. This means that even though the communication process will prevent the program from trying to transmit when there is an error, the program will keep this value identified as one to send out until it is actually sent out or cleared by the PLC.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 4.3.3. RLL Example … Manually Send New Table … Auto Read Response Below is a simple example of an RLL that will manually send a table in a BTW and read back the resulting feedback table using a BTR. On the next page is an example of the M0 & M1 files (tables) sent and received. Copyright © 2004 EIM COMPANY, INC. • 13840 PIKE ROAD • MISSOURI CITY, TX.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Control & Feedback via the N10 & N11 files … (table [19] requested … only 3 actuators on network) Table Number Sent in Table sent in with the M0 file Table read back with the M1 file 4-word header 3 Nodes on Network Copyright © 2004 EIM COMPANY, INC. • 13840 PIKE ROAD • MISSOURI CITY, TX.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5. System Tables From the perspective of the PLC, all tables can be read but only some can be written to. If the PLC attempts to perform a write to a “read-only” table, the 1746-C ignores it and treats it as a read command/request.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) There are two parts to a table: • General Header Information: • Table Specific Information: Words [0 Words [4 3] 63] In table [0], words [4 63] are divided into three parts: • Words [4 17]: System Configuration Information • Words [18 46]: -reserved- … currently not used. • Words [47 63]: Run-time information inserted by the 1746-C. Copyright © 2004 EIM COMPANY, INC. • 13840 PIKE ROAD • MISSOURI CITY, TX.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.1. Table Arrangement Word offset into table Table [0] ---System Info Table ---- Table [1] ---Comm. Error Status ---- Table [2] ---Interpreted Valve Status Bits Reg [06] ---- Table [3] Table [4] Table [5] ---------Valve Valve Valve Control Position Control ---Feedback ---Discrete ---Valve Control 0 – 100% Setpoint in 0.
Controlinc 1746-C (Version 5.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.2. Standard Header Format (All Tables) … Words [0 3] The header is the first four (4) words in the data block. Please refer to the list of tables in Figure 3-2. 5.2.1. Word [0]: Table ID As in the first word in the block data transfers, this first word is the Table ID. This can also be considered the “Command ID”. 5.2.2.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.2.4. Word [3]: Emergency Shut Down (ESD) Command Word & Indication The ESD command is a command broadcasted to all actuators connected to the network that an emergency is in effect and the actuator should start performing the ESD actions its pre-configured for. The 1746-C broadcasts an ESD on both channels with a 200-millisecond delay between them.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.3. Table [0] … System Information Table 5.3.1. Table [0] Overview This table is a read/write table in that is used for “system level” configuration and run-time status/diagnostic information. Basically, it is not “actuator” focused but more focused on the entire network of actuators. When told to write this table, the information is not sent out onto the network. Also, only the configuration words are written into the table.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Words [4 1. 2. 3. 4. Word [4]: Word [5]: Word [6]: Word [7]: 17] (control/configuration parameters set by the PLC) Set the Number of Valves on the Network. Set the Scan Period value (# scans before a communication diagnostic scan) Set the T/F control flag whether or not to poll for totalizers on network scans. Set the additional number of valves to poll in the network-scan time slice. 5.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Words [47 63] (Run-time feedback of real-time values set by the 1746-C) 1. Word [47]: Rollover Counter for Scan Period Counter (Accumulator). 2. Word [48]: Scan Period Counter (Accumulator). ------------------------------------------3. Word [49]: The port number for the currently “preferred port”. 4. Word [50]: Total number of valves polled during last network-scan time slice (before servicing the PLC communications).
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.3.2. Table [0] Configuration Words … Words [4 17] The following words in table [0] are a configuration and control parameters set by the PLC for the 1746C to run as expected. Word [4]: Number of Actuators on the network. This is value indicates of the number of actuators on the network. If this number ever changes, all tables [1-20 … except for 15] are reset to ensure valid values get filled for each valve on the network.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Word [6]: FUNCTION: Poll for Accumulator (Totalizer) Data This is a flag that indicates whether or not the 1746-C should request accumulator (totalizer) data from the actuators when scanning. The totalizer values are stored in tables [9 & 10]. This data is retrieved with a separate Modbus read command when the particular actuator is being polled (scanned). If word [6] == 0 If word [6] =/= 0 do not poll for totalizer data.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Words [9 & 10]: FUNCTION: Poll Additional Holding Register From Entire Network This operation allows the operator the chance to poll the entire network for any particular holding register. The register values polled are stored in table [14]. This data is retrieved with a separate Modbus read command when the particular actuator is being polled (scanned).
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 16]: Words [15 FUNCTION: Reset Scan Period Counter (Accumulator) This operation allows the operator the chance to reset the scan period counter/accumulator • When desired … word [15] =/= 0. • With the value desired … word [16] value. The scan period counter is located in table [0] – words [47 & 48] such that • Word [47] … Rollover counter for the Scan Period Counter.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Word [17]: FUNCTION: Poll for Input Registers [1000-1003] on TEC2000 Systems This is a flag that indicates whether or not the 1746-C should request the input registers on any TEC2000 system detected when scanning. The input register values are stored in tables [21 24] such that … • Table [21] contains register [1000] status bits. • Table [22] contains register [1001] status bits. • Table [23] contains register [1002] status bits.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.3.3. Table [0] Run-Time Information Words … Words [47 63] The following words in table [0] are a run-time feedback of real-time values set by the 1746-C. 1. Word [47]: Rollover Counter for Scan Period Counter (Accumulator). 2. Word [48]: Scan Period Counter (Accumulator). ------------------------------------------3. Word [49]: The port number for the currently “preferred port”. 4.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.3.4. Table [0] … RSLOGIX-500 Examples 5.3.4.1. Example RSLOGIX-500 Screen: In this example, memory locations N10 & N11 show the entire data exchange area for M0/M1 transfer commands … Table sent out with the M0 file Table read back with the M1 file Copyright © 2004 EIM COMPANY, INC. • 13840 PIKE ROAD • MISSOURI CITY, TX.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.3.4.2. Table [0] … The Configuration Values (RSLOGIX-500). In this example, the memory areas: • N10:0 N10:63: Indicates the 64-word table the PLC sends to the 1746-C. • N11:0 N11:63: Indicates the 64-word table the 1746-C sends back to the PLC.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.3.4.3. Table [0] … The Configuration Values – Writing Table [0] (RSLOGIX-500) State prior to writing table [0] configuration values … Table sent out with the M0 file Table read back with the M1 file State after writing table [0] configuration values … Table read back with the M1 file Copyright © 2004 EIM COMPANY, INC. • 13840 PIKE ROAD • MISSOURI CITY, TX.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.3.4.4. Table [0] … The Run-Time Feedback Values From 1746-C (RSLOGIX-500) This screen demonstrates examples of the run-time information that the 1746-C reports back to the PLC. Last Network Last Network Scan: Scan: Total number of Time valves polled (4.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4. Tables [1 20] … Actuator Information Tables 5.4.1. Table [1]: Communication Error Status Words [4 63] PLC access: Read Only. The “Communication Error Status Table” is used by the network master to track communication faults with each actuator. This data is totally derived by the 1746-C. These are considered “Low-Level” communication errors.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Example Table [1] Feedback (48-node network) … Characteristics: • Total COM faults on units [1-4] … they have a value of 3 … an error communicating on both ports. • No COM faults on any other units (5 – 48 have a value of 0 … no problems communicating). • Note that this would happen if units [1-4] were turned off. First Node on Network Last Node on 48 Node Network Copyright © 2004 EIM COMPANY, INC.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4.2. Table [2]: Actuator Operational Status Words [4 63] PLC access: Read Only. This data is primarily derived from holding register [6] in the actuator. It is retrieved with the “standard data request” - Modbus read command when the particular actuator is being polled (scanned). However, bit-14 is adjusted by the 1746-C.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Example Table [2] Feedback (48-node network) … Characteristics: • The format is displayed in HEX because HEX is easier to interpret “bit indicator” data.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4.3. Table [3]: Discrete Control Mode (Open/Close/Stop) Words [4 63] PLC access: Read / Write This table commands the actuator to move the valve either OPEN / CLOSED / STOP. There are three discrete valve control commands available: 1. 1 (0x0001) for Open 2. 2 (0x0002) for Close 3. 3 (0x0003) for Stop now at the current location. The 1746-C will only react to these values.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Example Table [3] Feedback (48-node network) … Characteristics: • There are no discrete commands waiting for execution. First Node on Network Last Node on 48 Node Network Copyright © 2004 EIM COMPANY, INC. • 13840 PIKE ROAD • MISSOURI CITY, TX.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4.4. Table [4]: Valve Position Indication … 0 – 100.0% Words [4 63] PLC access: Read Only. The Network Master receives the valve position from the actuator as an integer representing 0 100% open in 0.1% increments. In other words, it receives a value from 0 – 1000 and each increment indicates a 0.1% • 0 Full Closed ( 0.0% open) • 1000 Full Open (100.0 % open) This data is derived from holding register [13] in the actuator.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4.5. Table [5]: Valve Position Setpoint … 0 – 4095 Words [4 63] PLC access: Read / Write This table commands the actuators to move to a setpoint position designated by the PLC. When the 1746-C sends the new value to the actuators (telling them to move), it uses the Modbus function 6 command to write to holding register [11] in the actuator.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Example Table [5] Feedback (48-node network) … Characteristics: • Units [1, 3, 4] setpoint position is 0 (out of 4095) … 0% open … either fully closed or not operating. • • Unit [2] setpoint position is 2892 (out of 4095) … ~~ 70.6% open The rest of the network’s setpoint position is fully open … 4095 out of 4095 First Node on Network Last Node on 48 Node Network Copyright © 2004 EIM COMPANY, INC.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4.6. Tables [6 & 7]: User Analog Inputs #1 & 2 Words [4 63] PLC access: Read Only. These tables contain 12-bit numbers (0 4095) representing the current value for analog input channels. This data is derived from holding registers [16 & 17] in the actuators and is retrieved with the “standard data request” - Modbus read command when the particular actuator is being polled (scanned).
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4.7. Table [8]: Analog Output #1 Words [4 63] PLC access: Read / Write This table/command tells the actuator to place an appropriate 4-20 mA signal on its analog output channel. This data is derived from holding register [10] in the actuators and is retrieved with the “standard data request” - Modbus read command when the particular actuator is being polled (scanned).
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Example Table [8] Feedback (48-node network) … Characteristics: • On this network, none of the analog output values have been activated … a “-1” value recorded there (valid values are 0 – 4095). First Node on Network Last Node on 48 Node Network Copyright © 2004 EIM COMPANY, INC. • 13840 PIKE ROAD • MISSOURI CITY, TX.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4.8. Tables [9 & 10]: Digital Input Accumulators (Totalizers) #1 & 2 Words [4 63] PLC access: Read / Write These tables contain 16-bit accumulator (totalizer) numbers stored in holding registers [66 & 67] in the actuators. This data is retrieved with a separate Modbus read command when the particular actuator is being polled (scanned).
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Example Table [9] Feedback (48-node network) … Characteristics: • Totalizer #1 has not engaged for any unit on the network. This means that the digital input(s) assigned to this totalizer/accumulator have not toggled low/high since the last power up on any unit on the network. o On 320A/B systems … user input #1. o On TEC2000 systems … it depends upon the configuration.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4.9. Table [11]: Valve Position Indication … 0 – 4095 Words [4 63] PLC access: Read Only. This table contains the 0-4095 representation of the valve position for the actuators. This data is derived from holding register [14] in the actuators and is retrieved with the “standard data request” Modbus read command when the particular actuator is being polled (scanned).
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4.10. Table [12]: Discrete Input Statuses Words [4 63] PLC access: Read Only. This table contains the status indications of the discrete inputs on 320A/B systems. Each bit in each word in the table indicates the status of a particular discrete (hardwired) digital input for a particular actuator.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Example Table [12] Feedback (48-node network) … “C” HEX … 12 Decimal First Node on Network Table [12] because this table represents bit indications Last Node on 48 Node Network Copyright © 2004 EIM COMPANY, INC. • 13840 PIKE ROAD • MISSOURI CITY, TX.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4.11. Table [13]: Solid State Relay (SSR) Configuration Table Words [4 63] PLC access: Read / Write This is a read/write table that is used to help configure the actuators on the network. It is intended to work with actuators that are setup for modulating control mode. If a 320A actuator has an OPTIONAL SSR installed the network master must ensure the actuator knows it is configured with an SSR.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Example Table [13] Feedback (48-node network) … Characteristics: • None of the units are configured for an SSR … probably either because they just don’t have one or because they are not 320A systems. First Node on Network Last Node on 48 Node Network Copyright © 2004 EIM COMPANY, INC. • 13840 PIKE ROAD • MISSOURI CITY, TX.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4.12. Table [14]: Additional Register Being Polled From Entire Network Words [4 63] PLC access: Read / Write This operation allows the operator the chance to poll the entire network for any particular holding register. The register values polled are stored in this table. This data is retrieved with a separate Modbus read command when the particular actuator is being polled (scanned).
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Example Table [14] Feedback (48-node network) … Characteristics: • (register [00] read back from the entire network … cannot tell from here … in table [0]) • To make it more meaningful, table [14] is in hex because register [00] is bit indications. • • • Units [1,3,4] Unit [2] Units [5-48] have a value of 0 … coils [0-15] all off … units probably off line.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4.13. Table [15]: Additional Block of Registers Being Polled From 1 Actuator Words [4 63] PLC access: Read / Write TABLE FORMAT: This operation allows the operator the chance to poll a single actuator for a block of registers. The register values returned are stored in table [15] such that … • Words [4 - 7] … header information about information returned … Word [4] … Valve address where block of data came from.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Words [4 – 7] are only filled with non-zero values if the block of data in words [14 – 63] table are actually values retrieved from the actuator at the address specified in word [4]. Therefore, if a read of table [15] indicates that • Word [4] == 0, then the data is not valid (there are not valves with address 0 that can respond with data). • Word [4] =/= 0, then the data in the table came from a valve.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Example Table [15] Feedback (48-node network) … Characteristics … • From actuator node #5 • Which happens to be 320B EIM equipment … type 2 • Starting from register [00] and • 50 registers were read back.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4.14. Tables [16 & 17]: Monitor & Control Discrete Digital Outputs Words [4 63] PLC access: Read / Write The entire operation to monitor and control the discrete outputs requires 2 tables ... • Table [16] ... CONTROL --- store commands (desired states) for discrete outputs (coils). • Table [17] ... MONITORING --- feedback (actual states) of discrete outputs (coils).
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 320A/B DISCRETE OUTPUTS (COILS) On a the other system types (320A and 320B), there are 3 outputs and they are addressed as coils [35] in register [00] such that … • Coil [3] … ESD / monitor relay. • Coil [4] … User Output Relay #1 • Coil [5] … User Output Relay #2 Ordering is such that • Coil [3] is the “bit-3” position … the 4th position in from the right. • Coil [4] is the “bit-4” position … the 5th position in from the right.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) DESIRED STATES The desired states of the digital outputs are directly reflected in the bits in the table … which directly reflect the coils (bits) in the holding registers in the actuator.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Example Tables [16 & 17] Feedback (48-node network) … Characteristics: • To make it more meaningful, tables [16 & 17] are in hex because of bit indications.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Tables [16 & 17] … with commands loaded but not sent Tables [16 & 17] … after commands sent Table [16] Sent out Table [16] Feed back Table [17] Feed back Copyright © 2004 EIM COMPANY, INC. • 13840 PIKE ROAD • MISSOURI CITY, TX.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4.15. Table [18]: Actuator System Type ID Words [4 63] PLC access: Read Only. This data is primarily derived from holding registers [44] & [100] in the actuator. These registers are retrieved with 2 separate Modbus read commands when the particular actuator is being polled (scanned) during a diagnostic scan. There are currently 4 types of EIM equipment identified.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Example Table [18] Feedback (48-node network) … Characteristics: • Unit [1] is an EIM TEC2000 system … • Units [2 – 48] are EIM 320B systems ... type 3 type 2 First Node on Network Last Node on 48 Node Network Copyright © 2004 EIM COMPANY, INC. • 13840 PIKE ROAD • MISSOURI CITY, TX.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4.16. Table [19]: Actuator Firmware Version ID Words [4 63] PLC access: Read Only. This data is derived from holding register [44] in the actuator. It is retrieved during a diagnostic scan when the system type ID is being determined. This table is filled the same time table [18] is filled. For more information, see table [18].
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4.17. Table [20]: Modbus Exception Message Response Words [4 63] PLC access: Read / Write This data is filled anytime a communication error is detected due to the remote system sending a 5-byte Modbus Exception Response message. These are “High-Level” Communication Errors … Application Level. This table is cleared at the start of a diagnostic scan.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Example Table [20] Feedback (48-node network) … Characteristics: • Table [20] is displayed hex to make it easier to interpret Modbus Exception messages returned from the actuators. • No actuators have responded with a Modbus Exception message so far this scan period.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 5.4.18. Tables [21-24]: TEC2000 Status Inputs Words [4 63] PLC access: Read / Write The purpose of these tables is to afford the end user all critical status information from TEC2000 systems. TEC2000 systems are backwards compatible with the 320A/B systems. However, there are more “things that can be checked” in the TEC2000. For instance, in the TEC2000, the Unit Alarm is also tripped by a “Valve Drift” Alarm.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Example Tables [21-24] Feedback (48-node network) … Characteristics: • Only 1 TEC2000 system on the network … unit address #1 • Tables [21 - 24] are displayed hex because they represent bit indications … easier to read.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6. Application Notes 6.1. App Note: Performance Tuning 6.1.1. General Practices to Ensure Better Performance To ensure optimal performance, the PLC should at least: 1. Ensure quick responses to the 1746-C requests for an M1 transfer. (cuts down 1746-C delaying other operations while waiting for the PLC) 2. Ensure table [0] is set correctly and repeated in a timely manner. reads. Allow for frequent table [0] 3.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.1.3. Loading Table [0] with Configuration Information To maximize system performance, the RLL must load configuration information that includes: • The Number of Actuators on the network • The Scan Period (number of network scans before a diagnostic scan). • Whether or not to poll actuator totalizers. • The number of additional valves to scan in the scan time-slice (before servicing the PLC).
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.1.4. Behavior if a Delay in Loading Table [0] Configuration Information The 1746-C does not store configuration information if power is cycled. When the 1746-C restarts, it reverts to factory default values (60 actuators, 50-Scan Period, …). It is the responsibility of the PLC to ensure that system configuration information is written to the 1746C.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.1.5. Using the “Scan Period” Value The “Scan Period” value is placed in table [0] for the end user (HMI) to dynamically adjust the network behavior to the needs of the application. This value indicates the size of the “Scan Period” … the number of network scans before the 1746-C performs a diagnostic scan to try and “bring back on-line" any units that had stopped communicating.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.2. App Note: 1746-C Operation – Additional Detailed Information 6.2.1. Scan Operation: Determining & Exiting “Network Down” Condition If the 1746-C ever detects “network down” (no actuators communicating) then LED2 will come on and the program enters the diagnostic scan mode and remains there until at least one actuator responds.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.2.2. Detailed Description of 1746-C Operation 1. 2. 3. 4. Power up and self-initialization … LED1 & LED2 both on. Perform the initial diagnostic scan to determine which actuators are actually on the network. Turn LED1 & LED2 off. Stay in a loop performing the following activities: I. Setup to start new scan of network. • If diagnostic scan: - Ensure the communication ports are setup correctly.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.2.3. Time Allocated Process Control (Allocated Time Slices) The “Time Allocation Process Control” operation acts as a process scheduler. There are two primary processes (scanning the network and servicing the PLC) and each one gets a dedicated “time slice”. The 1746-C uses this to ensure the primary processes are serviced in a deterministic and controllable manner.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Below is a table of empirical values demonstrating the difference in network performance when changing the number of additional valves to scan in the scan time slice. This network scan scenario is for base readings with • No Network Writes – Only Polling • Zero M0/M1 transfer delays waiting for the RLL to interface with the 1746-C.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.2.4. Preferred Communication Port Operation The 1746-C operates on both communication ports. In a standard E>Net Ring topology, the • Port 1 (top port) on the 1746-C goes to Port A on the EIM NIU. • Port 2 (bottom port) on the 1746-C goes to Port B on the EIM NIU.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.2.5. Communication Failure Indications (Low-Level & High-Level) Only low-level communication problems flagged as errors in tables [1 & 2]. “Modbus exception messages” are high-level (application level) communication errors. These are logged in table [20]. Both types of communication errors are cleared only at the beginning of a diagnostic scan. The 1746-C has 3 mechanisms for reporting communication problems: 1.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) SAMPLE NETWORK (physical wiring): 2 A A 1 B A 2 B A 3 B A 4 B 1746-C NIU A 1 Scenario 1: B B 8 A B 7 A B 6 A B 5 Break network at Actuator [4] – port A (between actuators 3 & 4) In this case, the 1746-C must communicate with • actuators 1 – 3 via port 2 and • actuators 8 – 4 via port 1. This means that there would be problems communicating on • port 2 with actuators 8 – 4 and • port 1 with actuators 1 – 3.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) Scenario 3: Actuator powered down. If the actuator is just powered down and nothing else is physically wrong with the network, the network communication is supposed to pass through to the next unit. In this case, the 1746-C should be able to communicate with the entire network except for the system that is powered down.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.2.6. Bringing Units On-Line After a Power Cycle ACTUATOR POWER CYCLE If you cycle power on the actuators, the 1746-C will indicate that the actuators are off line and it will only bring them back on line during the next diagnostic scan.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.2.7. Toggling the Preferred Port to Assist Diagnostics The "preferred port" toggles between PORT1 & PORT2 every time a system diagnostic scan is performed. This timing has been shown to be long enough to give good deterministic information about communicating on any particular port and still be short enough to flag a problem that is developing on the network.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.3. App Note: For Diagnostics - Know the Physical Network Wiring When diagnosing a troublesome network, it can become impossible to solve some problems without knowing the physical layout of the network (also called “as built” by contractors). If not known, it is possible that the physical layout will have to be “traced out”.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.4. App Note: Memory Maps All references to memory maps in EIM actuators reflects the “description of the memory” as of the date of the document. To ensure correctness in the future, refer to “current” descriptions of the memory for the particular EIM product. 6.4.1. Specific Holding Registers Referenced by the Network Master Holding Register # 00 Description Coils [00 – 15] 01 02 Not explicitly accessed by the Network Master.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.4.2. Specific Coils & Inputs Referenced by the Network Master 320A & 320B … (CPU reset in 320A version 1.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.4.3. 320A Memory Map … Table for Coils & Inputs (Version 2.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.4.4. 320A Memory Map … Addressable Holding Registers (Version 2.0) 320A Holding Register # Description 00 01 02 03 04 05 06 07 08 09 10 11 12 (coils 0 (coils 16 (coils 32 (coils 48 (coils 64 (inputs 0 (inputs 16 13 Valve position … 0 100% in 0.1% increments AIN0 … Analog input #0 … position indicator This value indicates the actual position of the actuator.
Controlinc 1746-C (Version 5.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.4.5.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.4.6.
Controlinc 1746-C (Version 5.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.4.7.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.4.8. TEC2000 Memory Map … Table for Holding Registers Description Reg[1000] ... Discrete Inputs 1000 – 1015 Reg[1001] ... Discrete Inputs 1016 – 1031 Reg[1002] ... Discrete Inputs 1032 – 1047 Reg[1003] ... Discrete Inputs 1048 – 1063 Reg[1004] ... Coils 1000-1015 Reg[1005] ... Coils 1016-1031 Reg[1006] ... Coils 1032-1047 Reg[1007] ... Coils 1048-1063 Reg[1008] ... Coils 1064-1079 Reg[1009] ... Coils 1080-1095 Reg[1010] ...
Controlinc 1746-C (Version 5.
Controlinc 1746-C (Version 5.
Controlinc 1746-C (Version 5.
Controlinc 1746-C (Version 5.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.5. App Note: Modbus Message Formats All Modbus communication timing estimates in this document are based on 9600 baud. There is always a 10ms minimum “Command Message Turn Around Time” between when the last message was received by the 1746-C and when it can transmit again … the physical network actually requires 8ms but 10ms is what the 1746-C delivers.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.5.2. Modbus Function (Command) Code Descriptions Most of the rest of the information in this section came directly (or was paraphrased) from the Modbus Specification. 6.5.2.1. Modbus Function Code 01 … Read Coil Status Using function code 01, the Modbus master (host) may directly address and read bits that indicate the live discrete outputs, software generated status bits and configuration bits.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.5.2.2. Modbus Function Code 03 … Read Holding Register Using function code 03, the Modbus master (host) may directly address and read any memory register in the actuator. This includes all registers containing discrete values (inputs & coils). Refer to the previous section that describes the “Addressable Holding Registers”.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.5.2.3. Modbus Function Code 05 … Set (Force) Single Coil Using function code 05, the Modbus master (host) may directly address and write single bits that indicate coils … to turn them ON or OFF. Writing to a Read Only (RO) coil will • Have no affect on valve operation • Be ignored by the application software. • Cause the actuator to return a response indicating “illegal function code”.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.5.2.4. Modbus Function Code 06 … Set Single Register Using function code 06, the Modbus master (host) may directly address and write any Read/Write (RW) memory register in the actuator. This includes registers that hold discrete values (inputs & coils). Writing to a Read Only (RO) register will • Have no affect on valve operation • Be ignored by the application software.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.5.2.5. Modbus Function Code 15 (0x0F) … Set (Force) Multiple Coils Using function code 15, the Modbus master (host) may directly address and write a range of consecutive bits that indicate coils … to turn them ON or OFF. This is very similar to function code 05 that deals with single coils (register bits) except that function code 15 deals with a consecutive range of bits (coils).
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.5.3. Modbus Exception Messages Supported There are 3 Modbus Exception Messages supported by the CPU (as responses back to the Modbus master) for Modbus function calls to these registers: • Exception 01 Illegal function code received. The query is not an allowable action for the slave. • Exception 02 Illegal data address received. The query is not an allowable address for the slave. • Exception 03 Illegal data value received.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.6. App Note: Install the 1746-C Network Master Firmware Unless the 1746-C Network Master module is supplied by EIM with software (driver) installed, it is necessary to install it. Installation may also become necessary for software upgrades or in the case of a failed 1746-C module being replaced in the field. Follow the procedures in this section to install the software.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.6.2. Upload the 1746-C Firmware Please refer to the Allen-Bradley SLC-500 BASIC User's Manual (1746-BAS & 1746-BAS-T) Publication No. 1746-UM004A-US-P 2000 1. Make sure that the terminal program is running and that it is set for 1200 Baud, 8,N,1 and Software Flow Control (XON/XOFF). 2. Power the PLC rack up. 3. While in the terminal program, the startup screen for the 1746-C will be transmitted on power up.
Controlinc 1746-C (Version 5.21) Network Master Users Guide (2004-11-18) 6.6.3. Reset the 1746-C Module for Normal Operations 1. Power down the PLC. 2. Pull the 1746-C module from the PLC rack. 3. Set JW-4 back to normal … • PRT1 = ASCII. • PRT2 = ASCII. • DH485 = PGM. 4. Put the 1746-C module back into the desired slot. 5. Reconnect the PRT1 and PRT2 connections to the 1746-C Network Master. 6. Power the module up with the rack. (LED1 & LED2 should light up and PRT1 & PRT2 should flicker) 7. Finished.