IBM CTI 2572 User Manual

0 (0)
CTI 2572
ETHERNET TCP/IP MODULE
INSTALLATION AND OPERATION GUIDE
Version 2.4
CTI Part # 062-00146-024

2572IOG 100901 $25
Copyright 2001 Control Technology Inc.
All rights reserved.
This manual is published by Control Technology Inc., 5734 Middlebrook Pike, Knoxville, TN 37921. This manual contains references to brand and product names which are tradenames, trademarks, and/or registered trademarks of Control Technology Inc. and Siemens AG. Other references to brand and product names are tradenames, trademarks, and/or registered trademarks of their respective holders.
DOCUMENT DISCLAIMER STATEMENT
Every effort has been made to ensure the accuracy of this document; however, errors do occasionally occur. CTI provides this document on an “as is” basis and assumes no responsibility for direct or consequential damages resulting from the use of this document. This document is provided without express or implied warranty of any kind, including but not limited to the warranties of merchantability or fitness for a particular purpose. This document and the products it references are subject to change without notice. If you have a comment or discover an error, please call us toll-free at 1-800-537-8398.
REVISION HISTORY
V1.0 2/24/94 Original Release V1.1 5/27/94 Revised PLC Ladder Example.
Revised Start Network Server command block. Added EEPROM Write/Read command blocks. Incorporated miscellaneous minor additions and corrections.
V1.2 9/11/94 Added fields to Start Network Server command block which control TCP/IP
connections. Added an Error Code Appendix Incorporated minor additions and corrections.
V1.3 2/10/95 Expanded error code and troubleshooting documentation.
Provided more information about the PLC Command Interface. V2.0 5/1/95 Incorporated Client Commands from 2572 Programmers Reference Manual. V2.1 10/12/95 Documented Create Socket Startup Option bit to set client priority.
Added note re: handling of lost TCP connections.
Incorporated miscellaneous minor additions and corrections. V2.2 3/11/98 Documented Memory Exchange Command.
Added Subnet Address mask and TCP Stale Socket timeout.
Added UDP Option to include IP address in Memory Transfer commands.
Added Appendix D – PLC Command Interface.
Added Appendix E – Moved IP Nomenclature to this appendix.
Expanded troubleshooting section. V2.3 3/28/00 Changed examples to use a “private” IP address specified in RFC 1597
Corrected minor typos and added notes for clarification.
Revised ladder logic example for client application.
CTI 2572 Installation and Operation Gui de
REVISION HISTORY
V2.4 10/9/01 Incorporated addendum material
Revised Uncoupled Mode description to indicate that Command Block would not be re-read if the Command Trigger were held high. Corrected typographical errors
ii
CTI 2572 Installation and Operation Gui de
PREFACE
This Installation and Operation Guide provides installation and operation instructions for the CTI 2572 Ethernet TCP/IP Adapter Module. The information in this manual is directed to individuals who will be installing, maintaining, and troubleshooting the module.
We assume you are familiar with the installation and operation of:
1) SIMATIC 505 programmable controllers,
2) Ethernet local area networks,
3) Transmission Control Protocol/Internet Protocol.
Please refer to the appropriate SIMATIC user documentation for specific information on SIMATIC 505 programmable controllers and I/O modules.
If you plan on developing on writing computer applications which interface to the module via TCP/IP you should also obtain the CTI 2572 Programming Reference Manual (CTI Part # 62-166), which provides detailed information on the module command message interface.
CTI 2572 Installation and Operation Gui de
iii
USAGE CONVENTIONS
NOTE:
Notes alert the user to special features or procedures.
CAUTION:
Cautions alert the user to procedures that could damage equipment.
WARNING:
Warnings alert the user to procedures that could damage equipment and endanger the user.
iv
CTI 2572 Installation and Operation Gui de
TABLE OF CONTENTS
CHAPTER 1. DE S CRIPTION..................................................................................1
1.1. Introduction...........................................................................................................1
1.2. Ethernet Ports......................................................................................................2
1.3. Serial Ports...........................................................................................................3
1.4. LED Indicators......................................................................................................4
1.5. Functional Overview.............................................................................................5
1.6. TCP/IP Overview..................................................................................................7
1.7. PLC Command Interface.....................................................................................8
1.8. Getting Started.....................................................................................................9
CHAPTER 2. INS TALL ATION...............................................................................11
2.1. Installation Planning...........................................................................................11
2.2. Power Requirements .........................................................................................12
2.3. Unpacking the Module.......................................................................................13
2.4. Setting the 2572 Switches .................................................................................14
2.5. Physical Installation............................................................................................17
2.6. Using PLC Logic to Start the Network Server...................................................19
2.7. Automatically Starting the Network Server........................................................25
2.8. Connecting Cables.............................................................................................26
2.9. Module Checkout...............................................................................................27
CHAPTER 3. MODU L E OPERA TION...................................................................29
3.1. General Module Operation ................................................................................29
3.2. Ethernet TCP/IP Operation................................................................................29
3.3. Serial Port Operation..........................................................................................30
3.4. Serial Redirect Operation...................................................................................30
CHAPTER 4. CAMP CLIE N T COMMA N DS..........................................................31
4.1. Overview ............................................................................................................31
4.2. Create Socket Command..................................................................................31
4.3. Close Socket Command....................................................................................34
4.4. Memory Transfer Commands ...........................................................................34
4.5. Application Example ..........................................................................................40
CHAPTER 5. SE N D-RECEIVE P ROTOCOL........................................................ 49
5.1. Overview ............................................................................................................49
5.2. Implementation ..................................................................................................49
5.3. Send/Receive Command Blocks.......................................................................51
5.4. Application Example ..........................................................................................56
CHAPTER 6. DATASHARE PROTOCOL.............................................................65
6.1. Overview ............................................................................................................65
6.2. Implementation ..................................................................................................66
6.3. PLC Command Blocks......................................................................................67
6.4. Master Controller Update Example ...................................................................71
6.5. Peer to Peer Update Example...........................................................................73
CTI 2572 Installation and Operation Gui de
v
CHAPTER 7. E-MAIL FEATUR E...........................................................................77
7.1. Overview............................................................................................................77
7.2. 2572 Command Block .......................................................................................78
7.3. Application Example ..........................................................................................79
CHAPTER 8. T R OUBLESHOOT IN G....................................................................83
8.1. General Troubleshooting Techniques...............................................................83
8.2. General Module Problems.................................................................................84
8.3. Network Communications Problems.................................................................85
8.4. Serial Communications Problems.....................................................................87
8.5. PLC Logic Problems..........................................................................................89
8.6. Development and Debugging Tips....................................................................90
APPE NDIX A. 2572 CONNECTOR S ....................................................................93
RS-232 Connector (Port 1)........................................................................................93
RS-422 Connector (Port 2)........................................................................................93
10BaseT Connector...................................................................................................94
AUI Connector ...........................................................................................................94
AUI Power..................................................................................................................94
APPENDIX B. ERR OR CODES...........................................................................95
2572 System Error Codes .........................................................................................95
General Memory Transfer Error Codes.....................................................................98
PLC Server Error Codes..........................................................................................102
PLC Client Error Codes ...........................................................................................107
E-Mail Error Codes ..................................................................................................113
Send Receive Error Codes......................................................................................115
DataShare Error Codes...........................................................................................116
APPENDIX C. REF E RENCE MATERIAL .......................................................... 119
Hexadecimal to ASCII Conversion Table................................................................119
Monitoring the AUI/10BaseT Bit. .............................................................................120
Writing Network Parameters to EEPROM (PLC Method) ......................................120
Reading Network Parameters from EEPROM (PLC Method)................................122
APPENDIX D. PLC C OMMAND IN TERFACE................................................... 123
General Description.................................................................................................123
WX/WY Description.................................................................................................125
WX/WY Quick Reference........................................................................................132
Command Timing Diagrams ...................................................................................133
APPENDIX E. IP ADDRESS INFORMATION....................................................139
IP Address Nomenclature........................................................................................139
Private IP Addresses ...............................................................................................140
Subnet Mask............................................................................................................140
Port Number.............................................................................................................141
HARDWARE SPECIFICA TIONS.........................................................................143
LIMITED PRODUCT WARRANTY......................................................................145
REPAIR POLICY.................................................................................................147
vi
CTI 2572 Installation and Operation Gui de
TABLE OF FIGURES
Figure 1. 2572 Front Panel................................................................................................. 1
Figure 2. 2572 Ethernet Ports ............................................................................................ 2
Figure 3. 2572 Serial Ports.................................................................................................. 3
Figure 4. LED Indicators..................................................................................................... 4
Figure 5. PLC Server Function........................................................................................... 5
Figure 6. PLC Client Function............................................................................................. 6
Figure 7. 2572 PLC Interface ............................................................................................. 8
Figure 8. 2572 Switch Locations....................................................................................... 14
Figure 9. Switchblock 1.................................................................................................... 14
Figure 10. Switchblock 2.................................................................................................... 15
Figure 11. Sample I/O Configuration................................................................................. 18
Figure 12. Representing IP Address in Hexadecimal Format............................................ 23
Figure 13. PLC Logic Example.......................................................................................... 24
Figure 14. 10BaseT Connection........................................................................................ 26
Figure 15. AUI Connection................................................................................................ 26
Figure 16. RS-232 Connector Pin-Out............................................................................... 93
Figure 17. RS-422 Connector............................................................................................ 93
Figure 18. 10BaseT Connector ......................................................................................... 94
Figure 19. AUI Connector.................................................................................................. 94
Figure 20. AUI Power Connector....................................................................................... 94
Figure 21. PLC Command Interface ................................................................................ 123
Figure 22. WX/WY Map .................................................................................................. 125
Figure 23. Coupled Mode Timing.................................................................................... 133
Figure 24. Uncoupled Mode Timing................................................................................. 134
Figure 25. Command Error Timing.................................................................................. 135
Figure 26. PLC Error Timing............................................................................................ 136
Figure 27. Command Abort Timing.................................................................................. 137
CTI 2572 Installation and Operation Gui de
vii
CHAPTER 1. DESCRIPTION
1.1. Introduction
The CTI 2572 Ethernet TCP/IP Adapter is a single
wide I/O module for SIMATIC 505 controllers. The 2572 module connects to Ethernet local area networks, enabling the PLC to communicate with other network stations using the Transmission Control Protocol/ Internet Protocol (TCP/IP). Using the CTI 2572 facilities, suitably programmed network stations can acquire data from the PLC, send data and programs to the PLC, and exercise supervisory control over the PLC operation. In addition, the PLC can use the CTI 2572 to access data in other PLC systems equipped with a CTI 2572.
The 2572 attaches to all Ethernet media specified by IEEE 802.3 including 10Base5 ("thick" coaxial cable), 10Base2 ("thin" coaxial cable), 10BaseT (unshielded twisted pair cabling), FOIRL (fiber optic cable) and 10BaseFL (fiber optic cable). 10BaseT cabling can be attached directly to the 2572 via an RJ-45 connector. Other IEEE 802.3 media may be connected to the AUI (Attachment Unit Interface) port via a user supplied transceiver.
The 2572 module also provides two serial ports that can be used for configuration and diagnostic activities. Both serial ports can operate concurrently.
The 2572 module itself requires no customer programming. All configuration options can be set by module switches or written to module EEPROM via a serially attached personal computer. Optionally, PLC logic can be used to set module configuration and to control the operation of the module.
Figure 1. 2572 Front Panel
CTI 2572 Installation and Operation Gui de
1
1.2. Ethernet Ports
The 2572 provides an IEEE 802.3 10BaseT port and an IEEE 802.3 AUI port. The 10BaseT port
connects to Unshielded Twisted Pair (UTP) cable using an RJ-45 connector. The 15-pin AUI connector is used to attach a transceiver to the 2572. The transceiver, in turn, connects to the desired Ethernet medium. Different transceivers are available for the various 802.3 media. Thus, using a transceiver, the 2572 can connect to coaxial, UTP, or fiber optic cable.
Only one of the Ethernet ports is active at a time. The 2572 module automatically selects the port to
Figure 2. 2572 Ethernet Ports
be used based on the signal received. If a signal known as a link beat is detected on the 10BaseT port, then the 10BaseT port will be selected. If a link beat is not detected on the 10BaseT port, then the AUI port will be selected.
The auto-selection feature allows you to run redundant cabling, if you wish. If the link beat is lost on the primary 10BaseT port (typically indicating a cable problem), the 2572 will automatically switch over to the AUI port. When the link beat returns on the 10BaseT port, the module will switch back to the 10baseT port. A bit in the Module Status Word can be used by PLC logic to monitor which port is active. If bit 6 is on, then the AUI port is selected; if the bit is off, then the 10BaseT port is selected. See Appendix C for more information.
Ethernet transceivers are typically powered from the AUI port. The 2572 will supply the AUI port with power derived from the PLC backplane. In certain configurations, however, you may wish to conserve backplane power. For these circumstances, the 2572 module provides a connector that allows you to attach an external 12 VDC power supply. The external power supply can then supply power to the AUI port. Refer to Chapter 2 of this manual for installation details.
2
CTI 2572 Installation and Operation Gui de
1.3. Serial Ports
The 2572 is equipped with two serial ports. These ports are provided for use with module
configuration and diagnostic programs. In addition, the ports may be used to access the local PLC. Devices that communicate with the PLC using the Non Intelligent Terminal Protocol (NITP) can access the PLC processor as if they were directly connected to the PLC program port.
Optionally, NITP commands sent to a serial port can be redirected to another node on the TCP/IP network. Using this feature, PLC programming software program running on a PC connected to a 2572 serial port can perform remote programming on another PLC on the network. This feature might be used where a programming tool that uses TCP/IP (such as SoftShop programming software) is not available.
Port 1 uses a male DB9 connector to provide a subset of RS-232C. Port 2 provides an RS-422 electrical interface using a female DB9 connector. Since the pin configurations of the ports match those of SIMATIC TI545 PLCs and the 2571 Programming Port Expander module, standard cables can be used. The ports may be configured via switches for baud rates of 1200, 2400, 9600, or 19,200. Optionally, PLC logic can be used to set the communications parameters for the ports. Both ports can operate concurrently with the Ethernet port; however, heavy serial port activity may degrade network performance. See Appendix A for a diagram showing the port pin configurations.
Figure 3. 2572 Serial Ports
CTI 2572 Installation and Operation Gui de
3
1.4. LED Indicators
The 2572 provides an array of LEDs that inform the user of the module status and communications activity. The functions of the LEDs are described below:
ACTIVE Active Status. Indicates
the status of the module hardware. Solid illumination indicates the module status is good. Slow blinking indicates the module has detected a fault condition. Rapid blinking indicates that the network parameters have not been set or are invalid.
XMT Transmit. There is one LED each for Serial Port 1, Serial Port 2, and Ethernet,
which lights when data is transmitted on the applicable port.
RCV Receive. There is one LED each for Serial Port 1, Serial Port 2, and Ethernet. These
LEDs will light when a signal is received on the applicable port. The Ethernet LED will flash when any network traffic is detected, not just valid packets or packets addressed to the module.
Figure 4. LED Indicators
LB Link Beat. Indicates that a link beat signal is being received on the 10BaseT port and
that the 10BaseT port is selected. This LED should be lit if 10BaseT is being used.
AUI Attachment Unit Interface. Lights to indicate that the AUI port is selected for
Ethernet communications. If a link beat is not detected on the 10BaseT port, the AUI port will be automatically selected.
NOTE:
The fact that the AUI LED is lit does not indicate that the attached transceiver is operating properly.
POL Polarity Reversed. Lights when the polarity for the UTP cable connected to the
10BaseT port has been reversed. This is a warning only, since the 2572 hardware will correct for reversed polarity.
COL Collision. Lights when a collision is detected. Some collisions are normal when
using Ethernet. Excessive collision activity may indicate faulty cable termination, defective transceivers, or an overloaded network.
4
CTI 2572 Installation and Operation Gui de
1.5. Functional Overview
The 2572 can operate as both a PLC server and a PLC client. As a PLC server, the 2572 responds to messages sent by another network node. As a PLC client, the 2572 initiates messages on command from the PLC.
PLC Server Function
The 2572 can function as a server to clients who wish to access the PLC. Figure 5 illustrates the
typical message dialog between the client, the 2572, and the PLC.
1) The client node sends a command message to the 2572 via TCP/IP. For example, the client
may request that the 2572 read and return 25 words of V memory.
1) Command Message
4) Response Message
Client Node
2
2) PLC Command
5
3) PLC Response
7 2
Server PLC / 2572
P L C
Figure 5. PLC Server Function
2) Based on the contents of a command message, the 2572 sends commands and data to the
PLC processor via the backplane. For example, the 2572 would issue the applicable command to the PLC to retrieve 25 words of V memory.
3) The PLC processor responds to the command via the backplane. In the example, the PLC
would return 25 V memory words.
4) After the PLC responds, the 2572 builds the appropriate message and returns it to the client
node. In this example, the 2572 would build a network message containing the 25 words of data and send it to the client that requested it.
Messages between the 2572 and the client node are encapsulated in the TCP/IP protocol. The client
device must create the TCP/IP packet containing the command and must process responses from the 2572 returned via TCP/IP. The client node may be a suitably programmed computer or another 2572 on the network (see next section). Please reference the CTI 2572 Programming Reference Manual for details regarding the message interface.
The 2572 will support multiple concurrent client/server sessions. To operate the CTI 2572 as a PLC server, no PLC logic changes are required. However, you may wish to add PLC logic to set the network parameters for the module (see page 19, section 2.6. Using PLC Logic to Start the Network
Server).
CTI 2572 Installation and Operation Gui de
5
PLC Client Function
The 2572 can also function as a PLC Client. As a PLC Client, the 2572 acts as an agent for the PLC; it sends messages to other nodes and processes the responses under control of the PLC logic. Data in
the PLC program specifies the recipient and data contents of the message. PLC logic sets a “trigger” bit to cause the 2572 to send the message.
.
1) 2572 Command
P L C
4) 2572 Response
Client PLC / 2572 Server Node
Figure 6. PLC Client Function
In the example above:
1) When the PLC detects a specified event, it sends a command to the local 2572. For example, the command could be to read 5 words from another node on the network.
2) Based on the command, the 2572 then sends the applicable command via TCP/IP to the specified network (server) node.
2 5 7 2
2) Command Message
3) Response Message
3) The server node processes the command and returns a response via TCP/IP. In the example, the server node would return a message containing the specified words.
4) The 2572 processes the network message and notifies the PLC that the operation is complete. In the example, the 2572 would place the words in a specified PLC memory location and signal completion of the task.
The 2572 can support multiple concurrent client sessions. The server node shown in the illustration could be another 2572 or a computer programmed to process the commands and send the appropriate responses. Information describing the PLC logic required for client operation can be found in Chapter 3 of this manual.
The 2572 can support multiple server sessions and multiple client sessions concurrently. Therefore, networked PLCs can use the facilities of the 2572 to participate in multi-session peer-to-peer communications.
6
CTI 2572 Installation and Operation Gui de
1.6. TCP/IP Overview
The CTI 2572 module uses TCP/IP (Transmission Control Protocol/Internet Protocol) to transport messages between the module and other nodes on the network. TCP/IP is a suite of protocols that provide routing and delivery services for messages between application programs running on different processors (called hosts in TCP/IP terminology). You may select between connectionless (packet based) or connection-oriented (stream based) delivery services.
Connectionless Delivery
Connectionless delivery services allow you to send a message to another node without previously establishing a logical connection to the other node. TCP/IP provides a format known as the
USER
DATAGRAM PROTOCOL (UDP) for sending and receiving connectionless messages. Connectionless delivery is simple to implement and consumes a small amount of system resources. However, delivery of UDP messages is not confirmed by the network protocol. It is left to higher level protocols to acknowledge receipt of a message. Since the Common ASCII Message Protocol (CAMP) used with the 2572 will acknowledge receipt of a command message, UDP is the preferred protocol for most applications, such as process monitoring, which obtain data from the PLC.
Connection-Oriented Delivery
With connection-oriented services, you must first establish a logical connection (known as a virtual circuit) before network nodes can exchange messages. TCP/IP uses the
PROTOCOL (TCP) to implement connection-oriented services. TCP provides guaranteed delivery and message flow control. If a message is not delivered correctly, the TCP protocol will automatically retry. Since TCP is stream oriented, meaning the application program sees a properly sequenced stream of data rather than individual packets, it is often used for file transfer applications such as program downloads. You may choose to use TCP for applications, such as data logging, which require a specific piece of data be delivered in order.
TRANSMISSION CONTROL
Socket Interface
TCP/IP uses a standard structure known as a socket, for the application program interface. The de facto socket standard is the Berkeley Socket, named for the University of California at Berkeley, who originally distributed TCP/IP. Originally, the Berkeley Sockets were used with only the Unix operating system. Today, Microsoft Windows includes TCP/IP support using the Winsock standard, a derivative of the Berkley Socket standard.
Summary
The TCP/IP protocol is used to send and receive messages via the network. It will function over the local Ethernet network or over Wide Area Networks. TCP/IP supports both connectionless (UDP) and connection oriented (TCP) services. UDP is usually sufficient for most applications because the higher-level application protocol (CAMP) incorporates an acknowledgment to commands. TCP/IP network software for an IBM compatible personal computer is readily available from a wide range of sources. For a complete discussion of the TCP/IP protocol, see Internetworking with TCP/IP by Douglas Comer (1991, Prentice Hall) or other commonly available reference material.
CTI 2572 Installation and Operation Gui de
7
1.7. PLC Command Interface
Some 2572 functions require that you use PLC logic to control the operation of the module. The 2572 module provides a standard PLC logic interface for sending messages and processing responses. The interface consists of two parts:
Command Blocks - Command Blocks are blocks of contiguous V memory words used to store
module commands and associated parameters. The exact content of the Command Block will vary with the command being issued.
Module WX/WY Words - The 2572 module logs in as a Special Function module and is assigned
two WX words and six WY words. PLC logic uses the WY words to select the Command Block and to trigger the command execution. The status of the module and of command execution can be monitored via the WX words.
Figure 7 illustrates how the module WX/WY words and the command blocks are used together. The 2572 writes values in the WX words, the PLC writes values in the WY words. WX1 and WY3 contains bits allow the PLC to monitor and control module global status. WY4 and WX2 contain bits that allow the PLC to trigger commands and monitor command status. The Command Slots (WY5-8) are used to point to the starting V Memory addresses of the Command Blocks.
To use the module command interface, your PLC logic typically loads a Command Slot with the address of the desired command block. It then sets a corresponding trigger bit in WY4 to cause the 2572 to execute the command. Your logic then monitors the condition of the command status bits in WX2 to determine whether the command completed successfully.
MODULE WX/ WY
COMMAND
BLOCKS
WX1
WX2
WY3
WY4
WY5
WY6
WY7
WY8
MODULE STATUS WORD
COMMAND STATUS WORD
MODULE CONTROL WORD
COMMAND CONTROL WORD
COMMAND SLOT 1
COMMAND SLOT 2
COMMAND SLOT 3
COMMAND SLOT 4
Figure 7. 2572 PLC Interface
Please refer to Appendix D for a complete description of the PLC Command Interface.
8
CTI 2572 Installation and Operation Gui de
1.8. Getting Started
Assigning an IP Address
Before proceeding you must determine what IP address you will assign to the module. If you are connecting to an existing network, your network administrator will provide this information. If you plan on connecting your network to the Internet you should contact the Internet Network Information Center (NIC) for IP address assignment. If you are installing a stand-alone network, you may choose any set of IP addresses as long as they adhere to IP addressing conventions. See Appendix E of this manual for a description of the IP Address numbering conventions.
Choosing and implementing a Module Startup Method
Before the 2572 will accept TCP/IP messages, the module Network Server must be started. You can use PLC logic to assign the IP address and to start the Network Server or you can have the module automatically start the Network Server using an IP address stored in the 2572 EEPROM. See Chapter 2 for a description of these methods. If you choose to use PLC logic, you will need to create a command block and incorporate a few rungs of ladder into your program. See Section 2.6. Using PLC Logic to Start the Network Server on page 19.
Setting Module Switches
Module dipswitches configure the serial ports and select the startup method. See Section 2.4. Setting the 2572 Switches on page 14 for a complete description.
Installing the Module in the PLC I/O Base
The 2572 is a single wide module that installs in a standard SIMATIC 505 PLC rack. For best performance you should install the 2572 in the first I/O slot of the local base. Chapter 2 describes unpacking and installation of the module.
Logging the Module in the PLC I/O Configuration
When you initially install the module in the PLC I/O base, you must log the module into the PLC I/O configuration. The 2572 logs in as 2 WX and 6 WY words. See Checking PLC Login in Chapter 2 on page 18.
NOTE:
The module will not operate properly until it has been logged in.
Connecting the Module to the Network
You can choose to connect the module directly to 10BaseT cabling or, via a transceiver, to any IEEE
802.3 compliant media. See Section 2.8. Connecting Cables on page 26.
Checking out the Module
You can use both the module indicators and commonly available software to ensure the module is operating properly. Section 2.9. Module Checkout on page 27, describes these procedure. Chapter 4 also describes the module operation.
CTI 2572 Installation and Operation Gui de
9
Using the Module
Assuming you have completed the above steps successfully, the 2572 module is ready for use as a PLC Server. If you wish to implement PLC Client functions, please refer to Chapter 3 of this manual.
10
CTI 2572 Installation and Operation Gui de
CHAPTER 2. INSTALLATION
The installation of the Model 2572 Ethernet TCP/IP Adapter Module consists of the following steps:
1) Planning the installation,
2) Unpacking and configuring the module,
3) Physical installation,
4) Setting IP information,
5) Connecting cables,
6) Checking the module operation.
2.1. Installation Planning
Ethernet Media
The Model 2572 attaches directly to 10BaseT media (Unshielded Twisted Pair) via the RJ-45
connector. You should select cabling rated CAT 5 or better. Should you choose another Ethernet medium, you must obtain the appropriate transceiver to attach to the AUI port. Ensure that the cables you use for Ethernet communications meet the IEEE 802.3 specifications and are appropriate for the environment in which you are operating.
NOTE:
Check your cabling carefully. Faulty cables and/or connectors are the
leading cause of Ethernet communications problems.
Serial Communications
The serial ports on the 2572 module are provided for configuration and diagnostic purposes. For typical applications, you can use a standard serial PLC programming cable. Although you may use the ports to access the PLC, applications or devices that place a heavy transaction load on the module will degrade network performance. If you have a need to service these devices, consider installing a separate CTI 2573 module.
Establishing Network Parameters
Before the 2572 can communicate on a TCP/IP network, you must establish the network parameters.
These include an IP Address and Subnet Mask for the module, a TCP/UDP port number for the PLC Network Server function, and, if your network contains a router, the IP address of the Default Router. See Appendix E for a complete description of TCP/IP address nomenclature. You may also wish to refer to general publications describing TCP/IP.
You have a choice of two methods for establishing the network parameters. One method allows you to use the PLC program to set the IP address and other network parameters. The second method
CTI 2572 Installation and Operation Gui de
11
allows you to load the information directly from data stored in EEPROM on the 2572. You will need to decide which method best suits your requirements.
NOTE:
Unless your application requirements dictate otherwise, CTI recommends that you allow the PLC to
establish the network parameters.
If you choose to establish the network parameters using PLC logic, the 2572 will wait for the PLC to initiate network startup. Using a special 2572 startup command, the PLC can set the network parameters. When the module is reset for any reason (for example, during module replacement), the PLC must restart the server software and re-load the network parameters. The PLC logic to perform this function is described in Section 2.6 on page 19. Since the IP information is reloaded from the PLC and is not stored in the module, the IP address remains with the PLC, even if the 2572 modules are swapped.
If you choose to obtain the network parameters from the EEPROM, the module automatically initiates network startup based on the values in EEPROM. No PLC logic is required to set the network parameters. Since the IP address is not associated with the PLC program, you can download a common program to multiple PLCs using the TCP/IP network. However, if you arbitrarily swap 2572 modules between PLCs, the IP address will move with the module. The effect of inadvertently swapping IP addresses can cause major problems, since communications directed at one PLC would actually be going to another PLC.
WARNING:
If you choose to obtain the network parameters from EEPROM, you should ensure your
maintenance procedures safeguard against inadvertent module swaps.
NOTE:
You will need to specify the IP address of the module, the logical port number for the PLC server
function, subnet mask, and the IP address of the default router. You may need to obtain some of this
information from your network administrator before you begin.
2.2. Power Requirements
The Model 2572 requires 6 watts of +5 VDC power, not including any power supplied to a
transceiver connected to the AUI port. If your media configuration requires a transceiver and you wish to power it from the AUI port, you should include the transceiver power requirement in your power calculations. The formula for slot power calculation is:
P = 6 + (TP x 1.15) where P = total power slot requirement in watts and TP = transceiver power requirement in watts.
IEEE 802.3 specifications allow a transceiver to draw a maximum of 500 ma at 12 VDC from the AUI port. In practice, many transceivers draw considerably less. Should the total power required
12
CTI 2572 Installation and Operation Gui de
exceed the backplane limitation, you may power the AUI from an external 12 VDC power supply. The 2572 module provides a front panel connector for attaching an external AUI power supply.
NOTE:
The AUI external power circuit contains a reverse protection diode that may induce up to a 0.5 volt
drop. Most transceivers can tolerate this voltage drop. If your transceiver cannot, you should adjust
your external power supply to compensate.
CAUTION:
If you are using a transceiver, make sure that you have included the power requirements for the
transceiver in your calculations. Before inserting the module into the I/O base, ensure that the
PLC power supply capacity is not exceeded.
2.3. Unpacking the Module
Open the shipping carton and remove the special anti-static bag that contains the module. After discharging any static build-up, remove the module from the static bag. Do not discard the
static bag. Always use this bag for protection against static damage when the module is not inserted into the I/O base.
CAUTION:
The components on the 2572 module printed circuit card can be damaged by static electricity
discharge. To prevent this damage, the module is shipped in a special anti-static bag. Static
control precautions should be followed when removing the module from the bag and when
handling the printed circuit card during configuration.
CTI 2572 Installation and Operation Gui de
13
2.4. Setting the 2572 Switches
Switches on the 2572 are used to select the following:
AUI Power
Serial Port Baud Rate
Hardware Handshaking (RS-232 port)
DataShare Enable
Network Startup Option
EEPROM Write Protect
Serial Port Protocol
Figure 8 indicates the location of the switches.
AUI Power Source Switch
The AUI port allows external transceivers to
be attached to the module. The AUI power source switch is used to select whether transceiver power is obtained from the PLC backplane or an external power source. In most cases, you can set the switch to the I
NTERNAL position. If you are using a
transceiver that exceeds your backplane power budget, use the External setting and provide an external power supply. If you are not using the AUI port, the position of this switch does not matter.
Figure 8. 2572 Switch Locations
Switchblock 1
Switchblock 1 is used to set the communications parameters for serial port 1.
Figure 9. Switchblock 1
14
CTI 2572 Installation and Operation Gui de
Switchblock 2
Switchblock 2 is used to set the communications parameters for serial port 2. In addition, switches 3,4, and 4 are used to set other module options.
Figure 10. Switchblock 2
NOTE:
The switches on some modules may be labeled OPEN and CLOSED. The Closed position is equivalent
to ON.
Switch settings not shown are reserved and should set to OFF.
Serial Port Protocol
Switches 6, 7, and 8 on each switch block are used to set the protocol used by the port.
Protocol Description Use CAMP/NITP Supports both CAMP (Common ASCII
Message Protocol) and NITP (Non­Intelligent Terminal Protocol).
NITP Only Rejects message formats that are not
strictly NITP compliant.
Loopback Loopback generates a series of ASCII
characters that may be directed back to the serial port via a loopback connector.
PLC Select Allows the PLC logic to select the port
protocol.
NOTE:
For typical operation, you should set the switches to use the CAMP/NITP protocol.
CTI 2572 Installation and Operation Gui de
CAMP is used to transfer large blocks of data and to perform module specific functions. NITP is used by many PLC programming packages.
Applications which require strict adherence to the NITP specifications
Testing serial ports and cables.
Used for custom port protocols
15
Serial Port Baud Rate
You can individually set the baud rate settings for each serial port. For most applications, a baud rate
of 9600 provides a good balance between performance and reliability.
Port 1 Hardware Handshaking
Hardware handshaking for port 1 can be disabled or to enabled via a switch on Switchblock SW1. If
hardware handshaking is enabled, the attached device must raise CTS before the 2572 will transmit data. See the diagram below. The switches on some modules may be labeled O The C
LOSED position is equivalent to ON.
NOTE:
Unless the device you are attaching explicitly requires hardware handshaking, you should leave
PEN and CLOSED.
hardware handshaking disabled.
DataShare
Switch 3 on Switchblock 2 (SW2) enables the DataShare Protocol. When this is enabled, other protocol functions are significantly restricted. See CHAPTER 6. DATASHARE P.
Network Startup Options
Switch 4 on Switchblock SW2 allows you to select how the 2572 starts up the PLC Network Server
function. If you set the switch to PLC S Network Server command (see Section 2.6, page 19). The command block for this command contains the network parameters (including IP address).
If you set the switch to the AUTOSTART position, then the 2572 will automatically start the Network Server function, obtaining the network data from EEPROM on the 2572. The switches on some modules may be labeled O
Before you can use the AUTOSTART option you must store your network data in EEPROM. You can
PEN and CLOSED. The CLOSED position is equivalent to ON.
use either PLC logic or a serially attached PC with a CTI supplied program to write the EEPROM. The data will remain stored in EEPROM until changed. See page 25 for information on writing EEPROM. The IP address stored in the EEPROM has purposely been set to an invalid IP address at the factory.
Unless you have a significant reason to do otherwise, you should set the switch to PLC START and use PLC logic to start the Network Server. Then, if you swap out a module, the PLC will automatically load the new module with the correct IP address information and other network parameters. If you choose the A
UTOSTART option, your maintenance procedures should guard
against inadvertent module swaps, since the IP address will move with the module.
TART, then the 2572 will wait for the PLC to issue a Start
16
CTI 2572 Installation and Operation Gui de
EEPROM Write Protect
Switch 5 on switchblock SW2 protects the data in the EEPROM from being overwritten. When
W
RITE PROTECT is on, the network parameters stored in the EEPROM cannot be changed by the PLC
program or by a PC attached to a serial port. If a program attempts to write to the EEPROM when the W
RITE PROTECT switch is on, the 2572 will return an error code.
See Section 2.6 on page 19 for procedures used to start the PLC network server using PLC logic. See Section 2.7 on page 120 and Section 2.8 on page 25 for information on reading and writing the module EEPROM.
NOTE:
Switchblock switch positions are read only at module startup.
The 2572 module is shipped with all DIP switches in the OFF (OPEN) position. This corresponds to:
Baud Rate ....... ..........................9600
Hardware Handshaking..............DISABLED
Serial Port Protocol.....................CAMP/NITP
Network Startup Mode................PLC START
EEPROM Write Protect..............PROTECT OFF
DataShare ....... ..........................DISABLED
2.5. Physical Installation
Inserting the Module into the I/O Base
Hold the top and bottom of the bezel and slide the module carefully into the slot, pushing it all the
way into the base. If you have inserted the module correctly, you will feel a slight increase in resistance as the module mates with the base backplane connector. Once the module is fully seated in the slot, tighten the captive screws at the top and bottom to hold the module in place. To remove the module from the I/O base, loosen the captive screws, then remove the module. Take care not to damage the connector at the back of the module when inserting or removing the module.
Power Up
Turn on the base power supply. Once the 2572 diagnostics have completed and the network
parameters are set, the ACTIVE indicator should illuminate. If the indicator does not illuminate or exhibits a blinking pattern, see Chapter 5 of this manual for troubleshooting information.
CTI 2572 Installation and Operation Gui de
17
Checking PLC Login
Next, log the module into the PLC I/O configuration. The 2572 logs in as a special function module
with 2 WX and 6 WY words. To configure the PLC I/O refer to your PLC programming software manual. In the example below, the 2572 module is installed into slot 1 on I/O base 0 and will be logged in starting at address 1. Your configuration may differ.
I/O MODULE DEFINITION FOR CHANNEL . . . 1 BASE . . . . . . .
00 I/O NUMBER OF BIT AND WORD I/O SPECIAL
SLOT ADDRESS X Y WX WY FUNCTION
01 00001 00 00 02 06 YES
02 00000 00 00 00 00 NO
.. ...... .. .. .. .. ...
15 00000 00 00 00 00 NO 16 00000 00 00 00 00 NO
Figure 11. Sample I/O Configuration
After you read the I/O base, if the number of WX and WY words are the same as those shown in the example above and Special function = YES, then the PLC can recognize the module. Change the address as required by your application and save the result. If the line is blank or erroneous, re-check the module to ensure that it is firmly seated in the I/O base slot. Generate the PLC I/O configuration chart again by reading the I/O base. If the problem persists, contact your distributor or contact CTI.
NOTE:
If you do not log the module in correctly, it will not function properly.
18
CTI 2572 Installation and Operation Gui de
2.6. Using PLC Logic to Start the Network Server
The Start Network Server command is used when you want to establish the network parameters using PLC logic. When you use PLC logic to set the network parameters, you can ensure that the IP address is directly associated with the PLC and not the module.
NOTE:
Before you can use PLC logic to start up the PLC network server function, the Network Startup
Option switch must be set to PLC Start (See Figure 10. Switchblock 2 on page 15).
The 2572 uses the PLC V memory to store command information and the module WX/WY words to control execution of the commands. If you are not familiar with this interface, please refer to Appendix D of this manual. Also see the ladder logic example on page 24.
NOTE:
If you store the network parameters in EEPROM and use the module AUTOSTART switch option, you
are not required to execute this command.
The network data parameters are set by the PLC when the Start Network Server command block is executed. This block is shown on the following page. In the illustration, a bold entry is a required value. A non-bold entry is a recommended value that you should use unless you have reason to do otherwise. Values for the command block entries are shown in both hexadecimal and decimal (integer) format. Using your PLC programming software, you can configure a chart to display the values either way.
This command should be executed only when the Network Configuration Required bit (NET CFG) is set. The N reset for any reason. It remains on until the network parameters have been set. If you have chosen the PLC Start option for network startup, you must successfully complete this command before the 2572 will respond to any other network commands. See the ladder example on page 24.
When you trigger the Start Network Server command, if the command block contains invalid data,
the 2572 will return an error code and then halt. To recover, you must correct the command block
ET CFG bit is set shortly after power is first applied to the module or after the module is
NOTE:
entry and reset the module by cycling power.
CTI 2572 Installation and Operation Gui de
19
Start Network Server Command Block
Offset Description Hex
Value
0 Command Error Word 1 Command (Start Network Server) 2 Connection Number (19291 - 19299) 4B62 19298
3 Protocol Manager Number
4
5 TCP Keep Alive Interval in Seconds (0=default = 60)
6 IP Address of this Module (High 16 bits) 7 IP Address of this Module (Low 16 bits) 8 TCP / UDP Port Number 05E1 1505 9 IP Address of Default Router (High 16 bits) 10 IP Address of Default Router (Low 16 bits) 11 Max Number of TCP Connections (0=default) 0000 0 12 Subnet Mask (High 16 bits)
13 Subnet Mask (Low 16 bits) 14 Unused - reserved for future use (Set to 0) 15 Unused - reserved for future use (Set to 0)
Startup Option Bits (see description below) 0000
(Set to 65000 or greater to disable Keep Alive)
0000 0 0004 4
0023 35
0000 0
0000 0 0000 0
Offset 0 Error Word - Set to 0 so that any previous error code is cleared.
Decimal Value
0
Offset 1 Command Code - The Command for Start Network Server is 4. Offset 2 Connection Number - You should set this to number in the range of 19291 to 19299
to prevent inadvertent conflict with any client connections you may create. The value of 19298 is used in CTI examples.
Offset 3 Protocol Manager Number - Protocol Managers control the operation of the serial
and network ports. Protocol Manager 35 (23 hex) selects the PLC Network Server.
Offset 4 Startup Option Bits - These bits allow you to configure certain options for the PLC
server. The bits are used as follows:
Bit 1 Bit 2 Bit 3 Bits 4-16 TCP Server Disable
0 = TCP Enabled 1 = TCP Disabled
20
UDP Server Disable 0 = UDP Enabled 1 = UDP Disabled
Echo Server Disable 0 = Server Enabled 1 = Server Disabled
CTI 2572 Installation and Operation Gui de
Reserved (set to 0)
Loading...
+ 128 hidden pages