The text of a manual · part 15 of 18
Simatic S5 to RSLogix 5000 Application Conversion Guide: Chapter 6: Communication and Networking
Pages 105 to 114 of 140, from Simatic S5 to RSLogix 5000 Application Conversion Guide
The original document is the PDF (3.5 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Siemens 6ES5-431-8MA11, Siemens 6ES5-451-8MA11 and Siemens 6ES5-452-8MR11
Page 105
Chapter
6
Communication and Networking
S5 Serial Communication
See these sections for information on communication and networks.
S5 Serial Communication Processors (CP 521, CP 523, CP 524, and CP 525) These S5 communication modules can be used for point-to-point serial data communication with a peripheral device by using a current loop or RS-232 interface. They are often used to send messages to a serial printer. The CP 524 and CP 525 can be configured to communicate with another controller in another rack.
Serial Communication Memory Submodule The communication processors have receptacles for memory submodules that provide the extra memory capacity required for parameter assignment data and message texts. The configured data is transferred from the memory submodule to the communication processors on startup. These memory modules have a maximum capacity of 16 KB.
Serial Interface The S5 communication processors connect to a peripheral device over a serial interface that can be a TTY current loop interface or an RS-232C (V.24) interface. The TTY 20mA current loop interface is no longer used in modern peripheral devices. The signals of both interfaces are transmitted over a common subminiature D socket connector.
105Publication LOGIX-AP010B-EN-P - May 2010
105
Page 106
Chapter 6
Communication and Networking
Logix Serial Communication
The S5 serial communication modules were designed to communicate with peripheral devices mainly by using RS-232 or the current-based TTY protocols. Advances in communication technology and protocols has made communication from a PLC to a peripheral device with RS-232 uncommon, and TTY nearly obsolete. Compared to modern communication methods, RS-232 and TTY are slow, susceptible to electrical noise, and restrictive in the distance over which they operate. Furthermore, many modern peripheral devices do not provide interfaces to connect by using RS232 or TTY. Even the Siemens SIMATIC HMI Windows-based panel does not provide a TTY interface to communicate with a SIMATIC S5 PLC (with the exception of the MP 370 HMI panel that has a port that can be configured to be RS-232 or TTY in the BIOS). In converting from a S5 system to a Logix system, the built-in RS-232 port on the Logix controller can replace the S5 communication modules in communicating to a peripheral device. The following Logix controllers have a built-in serial RS-232 port that eliminates the need for the additional serial communication module as required by the Siemens S5. • • • •
1756 ControlLogix and 1756 GuardLogix 1768 CompactLogix 1769 CompactLogix PowerFlex 700S Phase 2 with DriveLogix
The most modern peripheral devices communicate via Ethernet and any of the following Logix Ethernet modules can communicate over an Ethernet network. • • •
1756-EN2T 1756-ENBT 1756-EN2F TIP
The 1756-EN2F provides fiber-optic communication.
The Logix EtherNet/IP module, 1756-EWEB provides remote access via an Internet Browser to tags in a Logix controller. If it is required to retain a peripheral device with TTY current loop interfaces, a RS-232 to TTY conversion device should be used in conjunction with the RS-232 serial port on the Logix controller.
106
Publication LOGIX-AP010B-EN-P - May 2010
Page 107
Communication and Networking
Chapter 6
An example of a possible converter device is the following supplied by ELV: • •
S5 Distributed Control Systems
ELV V24-20mA interface converter (Order No. 68-176-10) ELV AT adapter cable Sub-B 9-pin female to Sub-D 25-pin male (Order No. 68-078-86)
The Siemens S5 allows for remote I/O to be connected to a centralized CPU with interface modules installed in the centralized rack and expansion racks. The S5 series programmable controllers can comprise a central controller (CC) and, depending on the configuration, one or more expansion units (EUs). Expansion units are used when there are insufficient central controller slots, or to locate I/O modules as closely as possible to the associated field devices. To permit communication between the central controller and the expansion unit, a central controller interface module is installed in the central controller rack and an expansion unit interface module is installed in the expansion unit. The type of interface module used is dependent on the type of expansion units racks. The interface modules for the central controller rack and the expansion rack come in pairs. For example, IM300 for the central controller rack combined with the IM310 for expansion racks. S5 Central Controller Rack Interface Modules
S5 Expansion Unit Rack Interface Modules
IM 300-3
IM306
IM 300-5 (LB)
IM 310
IM 301-3
IM 311
IM 301-5
IM 312-3
IM 302
IM 312-5
IM 304
IM 313
IM 307
IM 314
IM 308 (B)
IM317 IM318 IM324
Publication LOGIX-AP010B-EN-P - May 2010
107
Page 108
Chapter 6
Communication and Networking
S5 has limited capacity for connecting large amounts of I/O to controllers as shown in the following table.
S5 Network Communication
S5 Controllers 922/928/948
I/O Capacity
DI with process image
1024
DI without process image
7168
AI
448
DO with process image
1024
DO without process image
7168
AO
448
S5 has a low-performance Local Area Network (LAN) called SINEC L1 that operates at 9600 bps and uses the CP 530 communication module. There is also a S5 high-performance LAN called SINEC H1 that operates at 10 Mbps and uses the CP 143 network communication module.
CP 530 Network Communication Module The CP 530 Network Communication Module is used to interconnect S5 PLC networks to achieve a distributed and hierarchical automation LAN. It executes all the central control functions of the LAN. The SINEC L1 LAN operates in a master/slave configuration. The master S5 controller must contain a CP530 module and the slave S5 controller may communicate via the controller programming port or via a CP530 module depending on the model of the slave controller. The Master coordinates and monitors the entire data traffic in the SINEC L1 network, as well as routing through and monitoring of programming functions via the bus. The other programmable controllers participating in the network are automatically designated the slave controllers. These are two ways of sending data packets in the SINEC L1 network: • •
From any SINEC L1 node to another From any SINEC L1 node simultaneously to all other nodes connected (broadcasting)
The data contained in the data packet may be the status of inputs, outputs, and flags or the contents of data words.
108
Publication LOGIX-AP010B-EN-P - May 2010
Page 109
Communication and Networking
Chapter 6
The SIMATIC S5 connects to the LAN bus as follows: • • • • •
Master Controller (S5-115U, S5-135U, S5-150U) via the CP 530 module S5-115U as slave via the programmer port of the controller or via the CP 530 module S5-135U and S5-150U as slave via the CP 530 module S5-101U as slave via the programmer port of the computer S5-100U (from 102 CPU onwards) as slave via the computer programmer port
Data is transferred between controllers by using SEND/RECEIVE functions.
CP 143 Network Communication Module The S5 SINEC H1 is an industrial standard LAN enabling S5 controllers and PCs with SINEC H1 communication cards to be connected via transceivers and drop cables to a central bus cable. Individual bus cables can be connected with repeaters, bridges, or star couplers. The SINEC H1FO LAN allows network segments to be connected via fiber optic cables. These segments permit distances up to 2500 m to be covered. The S5 CP 143 module fits into the S5 rack and permits the S5-115, S5-135 and S5-155 PLC CPUs to communicate on the SINEC H1 LAN. It operates as a slave processor to the controller and communicates with it via a dual port RAM and the S5 backplane bus. The CP143 configures and sends data to other a partner system vial the SINEC H1/H1FO network
NetLinx Networks
Siemens S5 remote I/O networks can be replaced by Logix networks that permit communication between I/O in multiple platforms, distributed in many locations and connected over multiple I/O links. NetLinx is the term identifying the Rockwell Automation solution in the area of networking technologies. The following are the primary networks used in Logix systems. • • •
EtherNet/IP ControlNet DeviceNet
These networks have a variety of notable features. All are designed under the Common Industrial Protocol (CIP), which enables you to control, configure, and collect data over any of the NetLinx networks. As a result, data can flow between networks without protocol translation software or proxies.
Publication LOGIX-AP010B-EN-P - May 2010
109
Page 110
Chapter 6
Communication and Networking
Choosing a ControlNet Network or EtherNet/IP Network for communication between controllers will depend on the requirements of each particular application. Use the NetLinx Selection Guide, publication NETS-SG001 to determine which network is the best fit for your application. In converting from an S5 LAN with multiple controllers to a Logix network, the possibility of performing all the required control functions in a central rack that connects to remote I/O racks via ControlNet, EtherNet/IP and/or DeviceNet should be considered. The Logix controllers have larger memory capacity than the older S5 CPUs so it is possible that software code previously distributed over several controllers could now be executed by one Logix controller or multiple controllers located in a central chassis. The cabling for an S5 LAN network consisted of a dedicated 4-core cable that had a maximum length between two LAN nodes defined by the cable and bus terminal used. Logix controllers can communicate over an Ethernet network by using network switches to connect over a wider area with greater speed and reliability. The SINEC L1 LAN operates at a baud rate of 9.6 Kbps compared to Logix EtherNet cards that can operate at speeds of 10/100 Mbps. Remote I/O can be connected to a centralized controller by using ControlNet communication modules or remote communication modules. Logix uses the following ControlNet bridge modules to interface a ControlNet network to a Logix backplane: • •
1756-CN2 1756-CNB
The Logix system provides redundant media for ControlNet networks. Redundancy requires no additional programming and is transparent to any devices connected over a ControlNet network. Redundant networks use the following ControlNet bridge modules: • •
1756-CN2R 1756-CNBR
NetLinx networks use connections to establish communication between two devices. The number of connections allowed depends on the type of modules and the type of connections that are established.
110
Publication LOGIX-AP010B-EN-P - May 2010
Page 111
Communication and Networking
Chapter 6
Remote connections depend on the communication module. The number of connections supported by the module will determine how many connections the controller can access through that module. See the EtherNet/IP Performance User Manual, publication ENET-AP001, for detailed guidance on connections used by network components.
Produced/Consumed Tags in RSLogix In Logix, the tag values are communicated between networked controllers by configuring the tags as produced tags and consumed tags. The value of a produced tag can be multicast or unicast across an Ethernet network where it can be read by consumed tags in other controllers on the same network. Part of the configuration of a consumed tag defines the controller that contains the equivalent produced tag. Besides communicating over an Ethernet network, values of produced and consumed tags can be transmitted via ControlNet and the backplane of Logix controllers. Changing the value of a consuming tag will not affect the producing tag. No programming is required to configure produce/consume connections in contrast to the complex programming to communicate with S5 communication modules.
Publication LOGIX-AP010B-EN-P - May 2010
111
Page 112
Chapter 6
Communication and Networking
The dialog box below provides an overview for configuring a consumed tag. First, create a tag type of Consumed from the drop-down menu. Select the Connection button to prompt the Consumed Tag Connection dialog box. On the Connection tab, select the producer controller, provide the produced tag name, and set the requested packet interval (RPI). The configuration for a produced tag is similar, but no connection needs to be specified.
Fiber Optic Communication IM 307/IM 317 Fiber Optic Interface Modules These S5 modules are used to connect expansion racks to a central rack containing a controller and allows for a transmission link between two nodes of up to 1500 m. In modern control architecture this arrangement would typically be implemented by using Ethernet modules, such as the Logix 1756-ENBT, in local and remote controller racks. These Ethernet modules would connect to local network switches that would then interconnect with fiber optic links. One advantage of connecting network switches via fiber optic rather than S5 modules is that the same fiber optic link can simultaneously interconnect business computers and servers. A fiber optic link allows for more extensive use, as it is not exclusively reserved for controller use. Alternatively, Logix 1756-EN2F Ethernet modules can connect local and remote racks. This module uses a fiber optic link that can be used to connect racks up to 2 km apart. 112
Publication LOGIX-AP010B-EN-P - May 2010
Page 113
Communication and Networking
Chapter 6
The Logix 1756-SYNCH module uses fiber optic links to transfer data at high speed from one controller chassis to multiple chassis. The high speed data transfer makes it particularly suitable for applications that require data to be transferred at a high speed and in a synchronized manner. Such applications may include distributed motion control and coordinated drive control applications where the rate of data transfer between networked nodes is critical. The SYNCHLINK modules transfer data unidirectional. Therefore they cannot serve as a replacement for communication cards, for example, EN2T, when exchanging data with remote I/O cards.
S5 CP 580 & CP 581 Communication Processor Modules Although these modules are referred to as communication processors they are mostly used in conjunction with S5 controllers to provide additional computing performance. Direct communication between these modules and the S5 controller takes place via the S5 backplane. These modules are suitable for tasks that require a sizable amount of data handling, such as analyzing and/or processing data or the storage of recipe data. This frees up processing capabilities in the S5 controller. These modules also contain the MS-DOS operating software that allows MS-DOS commands from the S5 controller to activate programs for execution on the CPU 580. The additional processing power available in the Logix controllers as compared to the S5 controllers means that all the required processing can now be done in the controllers. Multiple Logix controllers can be placed in the same rack or distributed in remote racks to provide as much processing capacity as required. The relative cost of computers and servers has decreased since the 1980s. Their storage capacity has greatly increased, and the speed and reliability of data transfer also has improved. This means that extensive data storage can now be easily and cheaply achieved by connecting a computer/server to the controller via an Ethernet card, and using the computer/server to store data that can then be monitored by using a SCADA application such as FTView.
Publication LOGIX-AP010B-EN-P - May 2010
113
Page 114
Chapter 6
Communication and Networking
IP 265 High Speed Sub Control This is essentially a high-speed programmable I/O module that was used in S5 to execute small segments of code requiring a rapid execution time. In a program conversion from S5 to RSLogix 5000 software, functions of this special module can be transferred to and executed by the Logix controller. With its quicker execution times, the Logix controller eliminates the need for a specialized module. If necessary, a dedicated Logix controller could be used to execute any functions requiring a short execution cycle. Depending on the application, consider transferring the functions of the S5 High Speed Sub Control Module to an Event Task with a short time interval in a Logix controller.
114
Publication LOGIX-AP010B-EN-P - May 2010