Modicon Quantum Ethernet Web Embedded Server Module User Guide 840 USE 115 00 Version 1.
Data, Illustrations, Alterations Data and illustrations are not binding. We reserve the right to alter products in line with our policy of continuous product development. If you have any suggestions for improvements or amendments or have found errors in this publication, please notify us using the form on one of the last pages of this publication. Training Schneider Automation Inc. offers suitable further training on the system.
Modicon Quantum Ethernet Web Embedded Server Module User Guide 840 USE 115 00 Vesion 1.
Document Set Quantum Automation Series Hardware Reference Guide 840 USE 100 00, Version 6.0 Modicon Quantum Ethernet TCP/IP Module User Guide 840 USE 107 00, Version 3.
Preface The data and illustrations found in this book are not binding. We reserve the right to modify our products in line with our policy of continuous product development. The information in this document is subject to change without notice and should not be construed as a commitment by Schneider Automation, Inc. Schneider Automation assumes no responsibility for any errors that may appear in this document.
iv 840 USE 115 00 Version 1.
Contents About This Book ............................................................................................. 1 Document Scope .............................................................................................. 1 Validity Note ..................................................................................................... 2 Related Documentation .................................................................................... 2 Chapter 1 1.1 1.1.1 1.1.2 1.2 1.2.1 1.2.2 1.2.3 1.
Contents 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.5 Chapter 3 3.1 3.2 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.2.10 3.2.11 3.2.12 3.2.13 Chapter 4 4.1 4.2 4.3 Chapter 5 5.1 5.2 5.3 5.4 5.5 Chapter 6 6.1 6.1.1 6.1.2 6.1.3 6.1.4 6.1.5 6.1.6 6.1.7 vi Selecting the Ethernet Framing Type ............................................................. 21 Assigning a Slot Number ................................................................................ 21 Assigning the IP Network Address ....
Contents 6.1.8 6.1.9 6.2 6.3 Application LED ............................................................................................. Reading and Clearing the Error Log .............................................................. Hot Swapping An Ethernet Module ................................................................ Downloading a New Software Image ............................................................. 57 57 60 61 Appendix A Specifications .........................................
Contents viii 840 USE 115 00 Version 1.
About This Book Document Scope This manual will acquaint you with the Quantum Ethernet web embedded server modules and their parts, tell you how to install them, describe changes you may make in configuration, review the operation of the modules and provide maintenance procedures. It also describes how to obtain statistics about the embedded server module and its controller from the embedded World Wide Web site.
About This Book Validity Note For the Ethernet web embedded server module to work properly, you must have the proper version of other system components. Use the version specified in the table below or a later version. Version Quantum Embedded Server Firmware Modsoft Concept ModLink 1.1 2.6 2.1 2.0 Related Documentation The following manuals may also be helpful. Be sure to order the version specified or a later version.
Introduction 1.1 1 Ethernet Web Embedded Server Modules The Quantum Ethernet Web embedded server modules make it possible for a Quantum industrial control system to communicate with devices on an Ethernet network. For example, the modules can be used to link a Quantum Automation Series controller to a PC. Each module contains a World Wide Web server, which allows users to obtain statistics about the NOE module and its controller from an embedded web site.
Introduction 1.1.2 Models for Fiber Optic and Twisted Pair Cable Systems Modicon has designed two Ethernet web embedded server modules: one for fiber optic networks and the other for networks using twisted pair cabling. Both are covered in this manual. Type of Cable Network 4 Part Number Twisted Pair 140 NOE 211 10 Fiber Optic 140 NOE 251 10 840 USE 115 00 Version 1.
Introduction 1.2 Front Panel Components On the front panel of each Ethernet embedded web server module, you will find an LED display, a global address label and a cable connector. Model Number Module Description Color Code 140 NOE 211 10 Ethernet TCP/IP Active Ready Fault Run Coll Link LED Display Removable Door Kernel Global Address Label Cable Connector Figure 1 140 NOE 211 10 Ethernet Web Embedded Server Module for Twisted Pair Networks 840 USE 115 00 Version 1.
Introduction Model Number Module Description Color Code 140 NOE 251 10 Ethernet TCP/IP Active Ready Fault Run LED Display Coll Link Removable Door Kernel Global Address Label Transmit Cable Connector Receive Cable Connector Figure 2 140 NOE 251 10 Ethernet Web Embedded Serve Module for Fiber Optic Networks 6 840 USE 115 00 Version 1.
Introduction 1.2.1 LED Display 140 NOE 211 10 Ethernet TCP/IP Active Ready Run Link Kernel Figure 3 840 USE 115 00 Version 1.0 Fault Coll Appl LED Display LED Color Indication When On Active Green Module is communicating with backplane. Ready Green Module has passed internal diagnostic tests. Run Green Flashes during normal operation. Link Green Ethernet link to hub is ok. Kernel Amber If steady, module is operating in kernel mode. If flashing, module is waiting for download.
Introduction 1.2.2 Address Labels Each Quantum Ethernet web embedded server module has two address labels. One identifies the Ethernet or MAC address. The other label allows you to record the module’s Internet Protocol (IP) network address. Ethernet Address Label The Ethernet address or MAC address is assigned at the factory and is recorded on a label on the front panel, above the cable connector. This is a unique 48-bit global assigned address. It is set in PROM.
Introduction Example Calculating the Derived IP Network Address Locate the global address label on the front panel of the module. IEEE GLOBAL ADDRESS 0000540B72A8 Note the rightmost eight digits. 5 4 0 B 7 2 A 8 Convert them from hexadecimal to decimal. Each pair of hexadecimal numbers will result in a decimal number between 0 and 255. This is the derived IP address. 84.11.114.
Introduction 1.2.3 Twisted Pair Connector Pins 8 1 Figure 5 NOE 211 Connector For the NOE 211, Schneider Automation recommends that you use Category 5 UTP cabling, which is rated to 100 Mbps, with an RJ-45 connector. You may also use Category 3 UTP cabling, which is rated to 16 Mbps. The eight pins are arranged vertically and numbered in order from the bottom to the top. The RJ-45 pinout used by this module is: z z z z 1.2.
Introduction 1.3 Utility Diskette Included with this manual is a diskette containing two utilities for the Ethernet module: the Network Options Ethernet Tester utility and the ERRLOG utility. 1.3.1 Network Options Ethernet Tester This utility will allow you to: z z z establish a connection get and clear statistics read and write registers The Network Options Ethernet Tester communicates with the module over the Ethernet, from an IBM-compatible PC operating with Windows 3.
Introduction 1.4 Ethernet and Your Application Careful planning of your network can help you achieve optimum performance. You should consider whether Ethernet meets the demands of your application, which devices are compatible with your network and how to minimize congestion on the network. 1.4.1 Meeting the Demands of Your Application The Quantum Ethernet web embedded server modules provide connectivity to many different systems via an Ethernet network.
Introduction Ethernet network traffic, message length and routing are all variable and can be unpredictable. This can give rise to congestion and message collisions. When collisions occur, Ethernet uses a variable delay before retransmitting messages. Therefore, absolute determinism -- or totally predictable performance -- cannot be guaranteed on busy Ethernet networks. 1.4.2 Compatibility Ethernet technology allows devices from different vendors to coexist on the same network.
Introduction Segregating Traffic The best method to protect Quantum Automation traffic from information systems traffic is to provide a completely separate physical network for automation control. Another method is to use readily available Ethernet devices such as bridges and routers to logically segment the network, isolating office traffic from control data. Minimizing Delays Components such as repeaters, bridges, routers and hubs take a finite time to process each message.
Installing and Configuring the Module 2.1 2 Before You Begin . . . Quantum Ethernet web embedded server modules come fully configured. They are designed to go straight from the box to the backplane. But before you install your module, you must verify that: z z the default configuration is appropriate for your network your Ethernet network is properly constructed CAUTION DUPLICATE ADDRESS HAZARD The default configuration includes the IP network address.
Installing and Configuring the Module Consult your network administrator to see if any of these conditions apply. If they do, follow the directions on page 20 for changing the default configuration. Note: If you will be changing the default configuration, you should stop the controller, then install the module, then change the configuration before starting the controller again. The Ethernet web embedded server module only reads its configuration data at power-up and when it is reset.
Installing and Configuring the Module 2.2 Installing the Module The Ethernet web embedded server module comes fully ready to be installed. Installation consists of mounting the module on the backplane and connecting the cable. 2.2.1 Are You Really Ready to Install? Check! Have you reviewed the configuration and network guidelines on page 15? You must meet those guidelines before installing the module.
Installing and Configuring the Module 2.2.3 Connecting the Cable Twisted Pair If you are using twisted pair cable, Modicon recommends Category 5, which is rated to 100 Mbps. Use RJ-45 connectors. Slip the connector into the port. It should snap into place. Fiber Optic Use 62.5/125 fiber optic cable with ST-style connectors. Modicon sells a 3 m cable with connectors (990 XCA 656 09). Remove the protective plastic coverings from the cable ports and the tips of the cable.
Installing and Configuring the Module Turn the locking ring to align an arrow with the key. Then align the key with the keyway. As a result, the locking tab, groove and lock should also be aligned. Slide the clasp up to the locking ring. Gripping the cable with the clasp, plug the cable into the lower (receive) cable connector. If it does not connect easily, realign the key with the arrow and try again.
Installing and Configuring the Module 2.3 Changing the Default Configuration If any of the following conditions apply, you should stop the controller, then install the module, then change the default configuration before starting the controller again: z z z z The module will be communicating on an open Ethernet network. The module’s IP address is already in use. The network uses IEEE 802.3 framing. You must specify a default Ethernet gateway and subnet mask.
Installing and Configuring the Module modsoft Dec F2 Goto F4 F5 F6 Quantum TCP/IP CONFIG EXT. Ethernet Framing Type: Ethernet II Hex F1 Bin F3 Quantum Backplane Slot: 0 Internet Address: (B4) : (B3) : (B2) : (B1) : 0 0 0 0 Lev 8 F8 Quit OFF F9 Screen 1 / 6 B4. B3. B2. B1 Note: 000.000.000.000 represents the TCP/IP Board Default Internet Address DEC DEC DEC DEC Default Gateway Address: (G4) : 0 DEC (G3) : 0 DEC (G2) : 0 DEC (G1) : 0 DEC SubNetwork MASK: FFFFFF00 F7 G4. G3. G2. G1 Note: 000.000.
Installing and Configuring the Module 2.4.3 Assigning the IP Network Address The Internet Protocol (IP) network address is a 32-bit address in the form xxx.xxx.xxx.xxx, where each group xxx is a decimal number ranging from 0 to 255. If the module will be communicating on an open network or if the module’s derived IP address is already being used, consult your network administrator to obtain a unique address. Type the new address in fields B4 through B1.
Installing and Configuring the Module 2.4.6 Configuring More Than One Ethernet Module You may configure from two to six Ethernet modules in a single controller, depending on the model. A 140 CPU 113 or 213 will accept a total of two network option modules, including NOE, NOM, NOP, CRP 811and other modules. A 140 CPU 424, 434 or 534 will accept six. The first Ethernet web embedded server module configured requires 20 words of memory. Each additional module requires an additional 16 words of memory.
Installing and Configuring the Module 2.5 Configuring the Module with Concept Once the Ethernet web embedded server module has been installed in the backplane and you have consulted your network administrator about whether to change the IP address or framing or to specify a gateway or subnet mask: 1. Open the Concept project without connecting to the controller. The controller and I/O should be configured. 2. Set the number of Ethernet modules in the configuration extension. 3.
The MSTR Instruction 3.1 3 Introduction All NOE 2X1 10 Quantum Ethernet web embedded server modules provide the user with the capability of transferring data to and from nodes on a Modbus Plus or TCP/IP network through the use of a special MSTR (master instruction). All PLCs that support networking communication capabilities over Modbus Plus and Ethernet can use the MSTR ladder logic instruction to read or write controller information. 3.
The MSTR Instruction MSTR Operation Code TCP/IP Ethernet Support Write global database 5 not supported Read global database 6 not supported Get remote statistics 7 supported Clear remote statistics 8 supported Peer Cop health 9 supported Reset Option Module 10 supported Read CTE(config extension) 11 supported Write CTE (config extension) 12 supported Up to four MSTR instructions can be simultaneously active in a ladder logic program.
The MSTR Instruction 3.2.2 Representation Enables selected MSTR operation control block Terminates active MSTR operation data area Operation terminated unsuccessfully MSTR length Operation successful Operation is active Figure 16 MSTR Block Structure Inputs The MSTR instruction has two control inputs: z z Outputs z z z 840 USE 115 00 Version 1.
The MSTR Instruction Middle Node Content Register Content Displayed Identifies one of ten MSTR operations legal for TCP/IP (1 ... 4 and 7 ... 12). First implied Displays error status. Second implied Displays length (number of registers transferred). Third implied Displays MSTR operation-dependent information. Fourth implied High byte: Destination index. Low byte: Quantum backplane slot address of the web embedded server module. Fifth implied Byte 4 of the 32-bit destination IP Address.
The MSTR Instruction Hex Error Code Meaning 1001 User has aborted the MSTR element. 2001 An unsupported operation type has been specified in the control block. 2002 One or more control block parameters has been changed while the MSTR element is active (applies only to operations that take multiple scans to complete). Control block parameters may be changed only when the MSTR element is not active. 2003 Invalid value in the length field of the control block.
The MSTR Instruction 30 Hex Error Code Meaning 5016 An argument is valid 5017 An internal table has run out of space. 5020 The connection is broken. 5023 This operation would block and the socket is nonblocking. 5024 The socket is nonblocking and the connection cannot be completed. 5025 The socket is nonblocking and a previous connection attempt has not yet completed. 5026 socket opreation on a nonsocket. 5027 The destination address is invalid. 5028 Message too long.
The MSTR Instruction CTE Error Codes 3.2.4 Hex Error Code Meaning 5047 The MTU is invalid 5048 The hardware length is invalid. 5049 The route specified cannot be found. 504A Collision in select call: these conditions have already been selected by another task. 504B The task id is invalid. The following error codes are returned if there is a problem with the Ethernet configuration extension table (CTE) in your program configuration.
The MSTR Instruction 3.2.5 Register Function Content Second implied Length Write = number of registers to be sent to slave. Read = number of registers to be read from slave. Third implied Slave device data area Specifies starting 4x register in the slave to be read from or written to (1 = 4001, 49 =40049). Fourth implied Low byte Quantum backplane slot address of the NOE module. Fifth ... eighth implied Destination Each register contains one byte of the 32-bit IP address.
The MSTR Instruction 3.2.6 Clear Local Statistics MSTR Operation The Clear Local Statistics operation (type 4 in the displayed register of the top node) clears statistics relative to the local node where the MSTR has been programmed.
The MSTR Instruction Control Block Utilization The registers in the MSTR control block (the top node) contain the Get Remote Statistics information as described in the following table: Register 3.2.8 Function Content Displayed Operation Type 7 First implied Error status Displays a hex value indicating an MSTR error, when relevant. Second implied Length Starting from an offset, the number of words of statistics from the local processor’s statistics table. The length must be > 0 < data area.
The MSTR Instruction 3.2.9 Peer Cop Health MSTR Operation The peer cop health operation (type 9 in the displayed register of the top node) reads selected data from the peer cop communications health table and loads that data to specified 4x registers in state RAM. The peer cop communications health table is12 words long, and the words are indexed via this MSTR operation as words 0 ... 11.
The MSTR Instruction Type of Word Status Index Global Input Specific Output Specific Input Bit-To-Network Node Relationship 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 1 0 0 4 16 15 14 13 12 11 10 9 8 7 5 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 6 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 7 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50
The MSTR Instruction 3.2.10 Reset Option Module MSTR Operation The Reset Option Module operation (type 10 in the displayed register of the top node) causes a Quantum web embedded server module to enter a reset cycle to reset its operational environment.
The MSTR Instruction Control Block Utilization The registers in the MSTR control block (the top node) contain the Read CTE information as described in the following table: Register Function Content Displayed Operation Type 11 First implied Error status Displays a hex value indicating an MSTR error, when relevant. Second implied Not applicable CTE Display Implementation Third implied Not applicable Fourth implied Low byte Fifth ...
The MSTR Instruction 3.2.12 Write CTE (Config Extension Table) MSTR Operation The Write CTE operation (type 12 in the displayed register of the top node) reads an indicated number of bytes from PLC memory, starting at a specified byte address, to an indicated Ethernet configuration extension table at a specified offset. The content of the Ethernet CTE table is displayed in the middle node of the MSTR block.
The MSTR Instruction 3.2.13 TCP/IP Ethernet Statistics A TCP/IP Ethernet board responds to “Get Local Statistics” and “Set Local Statistics” commands with the following information: 40 Word Meaning 00 ...
Retrieving Data via the World Wide Web 4.1 4 Introduction Each Ethernet web embedded server module contains a World Wide Web server.
Retrieving Data via the World Wide Web 4.2 Accessing the Web Utility Home Page Before you can access the module’s home page, you must learn its full IP address or URL from your system administrator. Type the address or URL in the Address or Location box in the browser window which will then bring Schneider’s web utility home page onto the screen. (See Figure 17.
Retrieving Data via the World Wide Web Figure 18 Quantum Web Utility Page 4.3 Web Utility for Quantum Page The Quantum web utility page contains hyperlinks to seven pages of data: z z z z z z z Configured Local Rack Controller Status Ethernet Statistics RIO Status Configured RIO Configured DIO Data Editor These pages are discussed in detail in the Web Utility Users Manual for Quantum & Premium PLCs, 890 USE 152 00. 840 USE 115 00 Version 1.
Retrieving Data via the World Wide Web 44 840 USE 115 00 Version 1.
Using the Network Options Ethernet Tester 5.1 5 Introduction An Ethernet module may act as a client or as a server. If it will be acting as a client -- that is, initiating transactions on the network for its Quantum controller -- then you must program an MSTR block in ladder logic. For details about the MSTR block, please refer to Chapter 3 on page 25. The Ethernet module may also act as a server, responding to requests and commands from devices on the network for its Quantum controller.
Using the Network Options Ethernet Tester 5.2 Installing the Network Options Ethernet Tester Insert the utility diskette in your disk drive. Run A:\Setup.exe. 5.3 Establishing a Connection with an Ethernet Module To establish a connection with an Ethernet module using the Network Options Ethernet Tester, you must know the module’s IP network address or host name.
Using the Network Options Ethernet Tester Type the module’s IP network address or host name in the box provided. Click the OK button. This dedicates a connection from your PC to the designated Ethernet module and brings you to the main menu. (module address) (module address) (module address) Figure 20 Main Menu To activate the connection, select Management and choose Connect from the pulldown menu or click on the connect button in the toolbar.
Using the Network Options Ethernet Tester 5.4 Getting and Clearing Statistics To get statistics from the Ethernet module, select Messages and choose Get Statistics from the pulldown menu or click on the get statistics button in the toolbar. Figure 21 Get Statistics Box The polling interval is the number of seconds between transactions. Type a polling interval in the box provided and click OK. Complete statistics for the module will be printed in the window for this connection.
Using the Network Options Ethernet Tester z MAC Address. Figure 22 Sample Statistics z Status. The hex value displayed may be 0001, 8001 or C001: 840 USE 115 00 Version 1.0 0001 indicates that the module is running, the Link indicator is not lit and no entry exists in the crash log 8001 indicates that module is running and the Link indicator is lit. No entry exists in the crash log. C001 indicates that the module is running, the Link indicator is lit and an entry exists in the crash log.
Using the Network Options Ethernet Tester z z z z z z z z z z z z z z z Receive Interrupts and Transmit Interrupts. The number of times the PCNET controller chip has generated interrupts. Transmit timeout errors. The number of times the transmitter has been on the channel longer than the interval required to send the maximum length frame of 1519 bytes. This is also known as a babble error. Collision errors. The number of collisions detected by the Ethernet chip. Missed packet errors.
Using the Network Options Ethernet Tester 5.5 Reading and Writing Registers To read registers, select Messages and chose Read Registers from the pulldown menu or click on the read register button in the toolbar. Figure 23 Read Register Box Type in a polling interval, the first 4x register you want to read and the number of registers to read. The polling interval is the number of seconds between transactions. When typing the 4x register number, omit the leading 40 or 400, as in Figure 23 above. Click OK.
Using the Network Options Ethernet Tester To change the polling interval without interrupting communication with the Ethernet module, select Messages and choose Poll Interval. Type the new polling interval in the box. Figure 24 Write Register Box If you try to read or write registers and an error occurs, the NOE Tester will display a Read Request Error or Write Request Error. The error codes correspond with MSTR block error codes. For more information, refer to the Ladder Logic Block Library User Guide.
Maintenance 6.1 Responding to Errors 6.1.1 Detecting Errors 6 When faults occur, the LED display can help you determine what went wrong. During normal operation, the LEDs should display the following pattern: 140 NOE 211 10 ETHERNET TCP/IP Active Ready Run Link Figure 25 LED Display During Normal Operation 840 USE 115 00 Version 1.
Maintenance The Run indicator will flash. The Coll LED also may flash, indicating that collisions are occurring on the Ethernet network. Such collisions are normal. If a fault has occurred, the normal LEDs may be extinguished or other indicators may light. This section will discuss errors reported by the Active, Ready, Coll, Link, Kernel, Appl and Fault indicators. For each type of error, try the suggested remedies in the order given.
Maintenance 6.1.4 Link LED If the Link LED fails to light, the module is not communicating with the Ethernet hub. Troubleshooting 6.1.5 1. Make sure that the cable has been installed correctly and the module is functioning properly. 2. Verify that the hub is working properly. Kernel LED If the Ready LED is on and the Kernel LED is flashing, the module has detected an invalid software image.
Maintenance 6.1.7 Collision LED If the twisted pair cable has not been connected properly, the Coll LED will shine steadily and the Link LED will be extinguished. (This condition does not occur with fiber optic modules.) 140 NOE 211 10 ETHERNET TCP/IP Active Ready Coll Figure 27 LED Display for Improperly Connected Twisted Pair Cable Troubleshooting 1. Make sure the cable has been installed properly and is working properly. 2. Verify that the Ethernet hub is functioning properly.
Maintenance If the Coll LED is flashing, the module is reporting collisions on the Ethernet network. While such collisions are normal, the frequency of the flashes is an indication of the volume of traffic on the network. The flashes may be so frequent that the LED appears to be shining steadily. Heavy traffic will slow communications. If response time is important to your application, you should consider segmenting your network to reduce the frequency of collisions. 6.1.
Maintenance The default is 0. Example ERRLOG 49 1 This is the minimum command. It will display the error log of the Ethernet web embedded server module in slot 1 of the controller at Modbus Plus address 49. . Example ERRLOG 49.50 4 /d /s5d /n1 > TRACE.OUT This will display the error log of the Ethernet web embedded server module in slot 4 of the controller at Modbus Plus address 49.50. It will display debug information, use software interrupt 5d and use Modbus Plus adapter number 1.
Maintenance Example Sample Error Log Path DM. 24. 0. 0. 0. 0 was opened. Quantum Ethernet firmware Ver. 1.00 Error Log Entry Number: 07/15/96 09:31:35 1 File name: user_lgc.cpp, Line: 200, error code: 0x0101 EAX=00000001 EDX=00000001 ECX=00300101 EBX=00000000 EBP=00012efc ESI=00000000 EDI=00000000 ESP=00012edc EFLAGS=00000046 EIP=03f0e0f4 Record the information in the entry and report it to your Schneider Automation customer representative.
Maintenance 6.2 Hot Swapping An Ethernet Module You may replace your Ethernet web embedded server module while the controller is running. However, you should first make sure that the IP network address of the replacement module will be unique on your network. The new Ethernet module will inherit any configuration changes you had made. If the original Ethernet module was given a user-configured address, the new module will assume that address.
Maintenance 6.3 Downloading a New Software Image From time to time, Schneider Automation may release improved versions of the Quantum Ethernet embedded server firmware. These new software images may be downloaded through Modsoft using the following procedure. 1. Stop the controller. 2. From the main Modsoft menu, select Transfer. From the Transfer pulldown menu, select Download Exec. Figure 29 Main Menu Transfer Options 3. From the Device to Download menu, select Local Head.
Maintenance Now you must specify which PLC is controlling the Ethernet web embedded server module and the backplane slot (head) number for that module. 62 4. Modsoft will prompt you for the filename of the executive. It is referring to the new software image. Load the diskette with the file in the floppy drive and type the drive designation and filename in the space provided, separated by a colon, ie. a:\filename.ext. 5. Restart the controller. 840 USE 115 00 Version 1.
Specifications A Communication Ports Ethernet ports transmit and receive Modbus commands encapsulated in TCP/IP protocol: TCP/UDP system port number 502 used with ASA protocol_id of 0 NOE 211 10 1 10BASE-T Ethernet network (RJ-45) port NOE 251 10 1 10BASE-FL Ethernet network (ST-style) port Power Dissipation 5W Bus Current Required 1A Operating Conditions Temperature 0 to 60°C Humidity 0 to 95% Rh noncondensing @ 60°C Altitude 15,000 ft (4500 m) Vibration 10-57 Hz @ 0.0075 mm d.a.
Specifications 64 840 USE 115 00 Version 1.
Ethernet Developers Guide B.1 B Introduction This appendix describes the design of the sample TCP/IP application named Network Options Ethernet Tester (NOET). The NOET application is a multiple document interface windows application that verifies the installation of the Quantum Ethernet TCP/IP module and also serves as a sample application for developers. TCP/UDP system port number 502 is used with ASA protocol_id of 0. B.2 References Inside Visual C++, Second Edition, David J.
Ethernet Developers Guide B.3 Overview The sample application performs the following steps: z z z z Invoke Identifier Calls the window socket function socket to create a socket. Calls the window socket function setsockopt to set the socket attributes. Calls the window socket function connect to establish a connection. Encodes the request. The request consists of a header followed by a Modbus message.
Ethernet Developers Guide B.5 Class Descriptions The following list describes the different classes: 840 USE 115 00 Version 1.0 1. CSample_app. The Csample_app is the application class. This application was generated by the application wizard, and the source is in the file sam_app.cpp. The class declaration is in sam_app.h. 2. CMainFrame. The CMainFrame is derived from the MFC class CMDIFrameWnd and is the application’s main window frame. The source for CMainFrame is in mainfrm.
Ethernet Developers Guide 9. CReadDlg. The CReadDlg class is the dialog class for determining the registers to read. It is derived from the CDialog class. The declaration is in the readdlg.h file, and the implementation is in the readdlg.cpp file. Both of these files were generated by The Visual C++ class wizard. 10. CWriteDlg. The CWriteDlg class is the dialog class for determining the registers to write and the write data. It is derived from the Cdialog class. The declaration is in the writedlg.
Ethernet Developers Guide B.7 The CSample_View Class The CSample_View class manages the TCP/IP connection, sends requests to remote nodes, and displays either connection state, or the results of a transaction. In addition it sets the states of the tool bar buttons and menu items. B.7.1 Accessing TCP/IP The CSample_View interfaces with window sockets via its application programming interface, and via messages sent by the window sockets DLL to the CSample_View window.
Ethernet Developers Guide One of the parameters to the WSAAsyncSelect is a user defined message the window socket DLL sends to the window. The sample application user message is WM_TCPIP_EVENT and is defined in the file wn_msh.h. MFC architectural framework calls the CSample_View tcpip_event member function to process this message. Like all functions which process messages, tcpip_event parameters are a word and a long word.
Ethernet Developers Guide B.8 Timers CSample_View requires to periodically receive a timer message. This message triggers the CSample_View to transmit a message. Since window timers are a limited resource, the window associated with CMainFrame class receives the timer messages. CMainFrame member AddTimerList function will place a window on its timer list. When CMainFrame processes the WM_TIMER message, it sends each window on its time list the user defined WM_POLL_INTERVAL message.
Ethernet Developers Guide B.10 Transmit State Machine The transmit state machine establishes a connection, and periodically transmits a request. The different states for the transmit state machine are as follows. z z z z z z z IDLE. In the IDLE state, there is no connection. RESOLVING_NAME. In the RESOLVING_NAME state, CSample_View is waiting for the window socket DLL to convert a node’s name into an IP address. CONNECTING.
Ethernet Developers Guide If the remote node is an IP address, or if it’s a name that has been resolved, then CSample_View tcpip_connect_rq function is called to initiate a connect request to the remote node. The listen port for the connect request is five hundred and two, and is defined by the constant MBAP_LISTEN_PORT in modbus.h. If tcpip_connect_rq succeeded in initiating a connect request, then tcpip_connect_rq changes the transmit state to CONNECTING, otherwise it changes the transmit state to IDLE.
Ethernet Developers Guide The receive state machine (which is described below) processes the response to a request. When the receive state machine has completed receiving the response, it changes the transmit state machine from the TX_DONE state to the WAIT_TO_TX state. Recall that the TransmitUserRequest saves the time. CSample_View OnPollInterval uses this saved time to determine if a new request needs to be transmitted.
Ethernet Developers Guide The receive state machine maintains a variable which is the number of bytes received. Initially the receive state machine is in the RX_HEADER state, and the number of bytes received is zero. When OnTcpIpRead is called and the receive state is RX_HEADER OnTcpIpRead calls rx_msg with receive size equal to the header size. On return OnTcpIpRead examines the number of bytes received.
Ethernet Developers Guide The member function rx_msg calls the window socket recv function to read data. The recv function either returns a non negative number that is the number of bytes read or it returns an error. If the number bytes read is zero, then the connection no longer exits, and rx_msg closes the socket, and sets the transmit state to IDLE. If the recv function returns the error indicating that no receive data is available, then rx_msg just returns.
Quantum Ethernet TCP/IP Modbus Application Protocol C.1 C Introduction The Modbus Application Protocol (MBAP) is a layer-7 protocol providing peer-topeer communication between programmable logic controllers (PLCs) and other host-based nodes on a LAN. Collectively these nodes implement all or part of a control application used for industrial automation applications in the automotive, tire and rubber, food and beverage, and utilities industries, to name a few.
Quantum Ethernet TCP/IP Modbus Application Protocol C.1.1 Modbus Application Protocol PDU The Modbus Application Protocol PDU, mbap_pdu, is received at TCP port number 502. The current maximum size of the mbap_pdu for this class of services is 256 bytes.
Quantum Ethernet TCP/IP Modbus Application Protocol Example Modbus Application Protocol PDU Here are the values for a sample mbap_pdu for reading a register: 00 01 00 00 00 06 01 03 00 00 00 01 This example has the folowing structure and content: inv_id 00 01 proto_id 00 00 len 00 00 dst_idx 01 func_code03 data C.1.2 00 00 00 01 Modbus Application Protocol Service Classes There are several classes of service that are part of the Modbus Application Protocol.
Quantum Ethernet TCP/IP Modbus Application Protocol C.2 Modbus Application Protocol PDU Analysis The Modbus Application Protocol PDU is transmitted over a TCP/IP Ethernet stack. Both Ethernet II and IEEE 802.3 framing will be accommodated. Ethernet II framing is the default. . . . from the wire in for IEEE 802.3 framing . . . . . . is IEEE 802.3 framing if length <=1500 . . . 802.3_pdu ::= {dst_addr[6], src_addr[6], length[2], data=802.2_pdu} *an IEEE 802.
Quantum Ethernet TCP/IP Modbus Application Protocol The header is 7 bytes long, and includes the following fields: inv_id[2 bytes] invocation id used for transaction pairing proto_id[2 bytes] used for intra-system multiplexing,default is 0 for Modbus services len[2 bytes] the len field is a byte count of the remaining fields and includes the dst_id and data fields. The remainder of the pdu includes two fields: dst_idx[1 byte] destination index is used for intra-system routing of packets.
Quantum Ethernet TCP/IP Modbus Application Protocol C.3 TCP/IP Specific Issues C.3.1 Broadcast/Multicast Although broadcast and/or multicast are supported by both IP network address and IEEE 802.3 MAC address, the Modbus Application Protocol does not support either broadcast or multicast at the application layer. Schneider Automation’s Quantum PLCs use broadcast addressing because they use ARP as the means of locating the destination node.
Quantum Ethernet TCP/IP Modbus Application Protocol C.4 Reference Documents [1] ANSI/IEEE Std 802.3-1985, ISO DIS 8802/3, ISBN - 0-471-82749-5, May 1988 [2] ANSI/IEEE Std 802.
Quantum Ethernet TCP/IP Modbus Application Protocol 84 840 USE 115 00 Version 1.
Suppliers D A variety of Ethernet installation tools, cable diagnostic tools, cables, connectors and other related equipment is readily available from mail order suppliers or at your local computer supply store. Cable testing equipment is available from: z z z z Datacom Technologies 1-800-468-5557 Microtest, Inc. 1-800-526-9675 Scope Communications, Inc. 1-508-393-1236 Wavetek, Inc. 1-800-854-2708 Schneider Automation has not qualified and does not endorse any of these products.
Suppliers 86 840 USE 115 00 Version 1.
Glossary A address On a network, the identification of a station. In a frame, a grouping of bits that identifies the frame’s source or destination. API Application Program Interface. The specification of functions and data used by one program module to access another; the programming interface that corresponds to the boundary between protocol layers. ARP Address Resolution Protocol.
Glossary D default gateway The IP address of the network or host to which all packets addressed to an unknown network or host are sent. The default gateway is typically a router or other device. DNS Domain Name System. A protocol within TCP/IP used to find IP addresses based on host names. F field A logical grouping of contiguous bits that convey one kind of information, such as the start or end of a message, an address, data or an error check.
Glossary hub A device which connects a series of flexible and centralized modules to create a network. I ICMP Internet Control Message Protocol. A protocol within TCP/IP used to report errors in datagram transmission. Internet The global interconnection of TCP/IP based computer communication networks. IP Internet Protocol. A common network layer protocol. IP is most often used with TCP. IP Address Internet Protocol Address. A 32-bit address assigned to hosts using TCP/IP.
Glossary O OSI model Open System Interconnection model. A reference standard describing the required performance of devices for data communication. Produced by the International Standards Organization. P packet The unit of data sent across a network. PING Packet Internet Groper. A program used to test whether a destination on a network can be reached. port An access point for data entry or exit within a host using TCP services.
Glossary socket The association of a port with an IP address, serving as an identification of sender or recipient. stack The software code which implements the protocol being used. In the case of the NOE modules it is TCP/IP. STP Shielded Twisted Pair. A type of cabling consisting of several strands of wire surrounded by foil shielding, twisted together. subnet A physical or logical network within an IP network, which shares a network address with other portions of the network.
Glossary WWW 92 World Wide Web. A hypertext-based, distributed information system in which clients and servers are freely available. 840 USE 115 00 Version 1.
Index A address lables 8 assigning default Gateway address 22 IP network address 22 subnet mask 22 B backplane mounting module to 17 bandwith of Ethernet switches 14 broadcast addressing 82 C cable fiber optic 18 twisted pair pinout 10 compatibility protocol stack 13 Concept configuring the module 24 configuration custom set up before installation 16, 20 default changing 20 complete 3 840 USE 115 00 Version 1.
Index predictability 12 Ethernet address label 8 set by factory 8 Ethernet Developers Kit 13 EtherNet framing type selecting 21 Ethernet Home Page 42 Ethernet hub NOE connection to 16 troubleshooting 56 Ethernet networks 3 local may use default IP network address 8, 16 open custom IP network address required 8, 16 Ethernet switches 14 Ethernet TCP/IP modules address labels 8 fiber optic connector 10 fully configured 3, 16 hot swap 3 installing 17 LED display 7 twisted pair connector 10 twisted pair model v
Index MSTR 25 clear local statistics operation 33 clear remote statistics operation 34 CTE display implementation 38 CTE error codes 31 description of 25 get local statistics operation 32 get remote statistics operation 33 inputs 27 node content 27 Opcode 26 outputs 27 Peer Cop health operation 35 PLC compatibility 26 read/write operations 31 reset option module operation 37 size 26 TCP/IP EtherNet error codes 28 N Netscape Navigator 41 network performance guidelines for improving 13 network delays minimi