Mitsubishi Melsec-L Series User Manual

Mitsubishi Melsec-L Series User Manual

Ethernet interface module
Hide thumbs Also See for Melsec-L Series:
Table of Contents

Advertisement

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi Melsec-L Series

  • Page 3: Safety Precautions

    SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual and the relevant manuals carefully and pay full attention to safety to handle the product correctly. In this manual, the safety precautions are classified into two levels: " WARNING"...
  • Page 4 [Design Precautions] WARNING ● For the operating status of each station after a communication failure, refer to relevant manuals for each network. Incorrect output or malfunction due to a communication failure may result in an accident. ● To prevent the malfunction of the programmable controller system due to harmful e-mails, take preventive measures (such as antivirus measures) so that the mail server for this module does not receive harmful e-mails.
  • Page 5 ● Use the programmable controller in an environment that meets the general specifications in the Safety Guidelines included with the MELSEC-L series CPU module. Failure to do so may result in electric shock, fire, malfunction, or damage to or deterioration of the product.
  • Page 6 [Setup and Maintenance Precautions] WARNING ● Shut off the external power supply (all phases) used in the system before cleaning the module. Failure to do so may result in electric shock. [Setup and Maintenance Precautions] CAUTION ● Do not disassemble or modify the module. Doing so may cause failure, malfunction, injury, or a fire. ●...
  • Page 7: Conditions Of Use For The Product

    PRODUCT in one or more of the Prohibited Applications, provided that the usage of the PRODUCT is limited only for the specific applications agreed to by Mitsubishi and provided further that no special quality assurance or fail-safe, redundant or other safety features which exceed the general specifications of the PRODUCTs are required.
  • Page 8: Introduction

    INTRODUCTION Thank you for purchasing the Mitsubishi MELSEC-L series programmable controllers. This manual describes the operating procedure, system configuration, parameter settings, functions, programming, and troubleshooting of the LJ71E71-100 Ethernet interface module (hereafter referred to as E71). Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the functions and performance of the MELSEC-L series programmable controller to handle the product correctly.
  • Page 9: Relevant Manuals

    RELEVANT MANUALS The manuals related to this product are listed below. Please place an order as needed. (1) E71 (relevant) manuals Manual name Description <manual number, model code> MELSEC-Q/L Ethernet Interface Module User's The e-mail function, CPU module monitoring function, communications over CC- Manual (Application) Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, or MELSECNET/10, communications using data link instructions, and file transfer...
  • Page 10: Table Of Contents

    CONTENTS CONTENTS SAFETY PRECAUTIONS ............. 1 CONDITIONS OF USE FOR THE PRODUCT .
  • Page 11 7.2.4 Passive open procedure ........... . UDP/IP Communications .
  • Page 12 11.2.2 How a connected device writes data ......... . 11.3 Parameter Setting.
  • Page 13 CHAPTER 14 TROUBLESHOOTING 14.1 Before Troubleshooting ........... . . 14.2 Troubleshooting Procedure .
  • Page 14 Appendix 7 Sample Program on the Connected Device Side ......® ....... . . 273 Appendix 7.1 When Visual C++ .NET is used...
  • Page 15: Manual Page Organization

    MANUAL PAGE ORGANIZATION In this manual, pages are organized and the symbols are used as shown below. The following illustration is for explanation purpose only, and should not be referred to as an actual documentation. "" is used for window names and items.
  • Page 16 Pages describing instructions are organized as shown below. The following illustration is for explanation purpose only, and should not be referred to as an actual documentation. Instruction name Execution condition of the instruction Structure of the instruction in the ladder mode A device with applicable to the instruction.
  • Page 17 For details on each device, refer to the following. User's manual (function explanation, program fundamentals) for the CPU module used The following data types can be used. Data type Description Bit data or the start number of bit data BIN 16-bit 16-bit binary data or the start number of word device BIN 32-bit 32-bit binary data or the start number of double-word device...
  • Page 18: Term

    TERM Unless otherwise specified, this manual uses the following terms. Term Description The abbreviation for Address Resolution Protocol. This protocol is used to obtain the MAC address of Ethernet from an IP address. BUFRCV The abbreviation for ZP.BUFRCV BUFRCVS The abbreviation for Z.BUFRCVS BUFSND The abbreviation for ZP.BUFSND CLOSE...
  • Page 19 Term Description UINI The abbreviation for ZP.UINI WRITE The abbreviation for JP.WRITE and GP.WRITE ZNRD The abbreviation for J.ZNRD and JP.ZNRD ZNWR The abbreviation for J.ZNWR and JP.ZNWR A module that has functions other than an input or output, such as an A/D converter module and Intelligent function module D/A converter module A number used to logically divide one network into multiple subnetworks and manage them easily.
  • Page 20: Packing List

    PACKING LIST The following items are included in the package of this product. Before use, check that all the items are included. LJ71E71-100 LJ71E71-100 Before Using the Product...
  • Page 21: Chapter 1 Features

    CHAPTER 1 FEATURES CHAPTER 1 FEATURES An Ethernet module (hereafter abbreviated as E71) is an interface module on the programmable controller side for connecting a programmable controller system to the host system, such as a personal computer and a workstation, over Ethernet.
  • Page 22 (1) Connection with MELSOFT products and a GOT In Ethernet, a programming tool can create programming of a programmable controller and monitor a programmable controller (MELSOFT connection), and the GOT can monitor and test a programmable controller. Remote operations making full use of the Ethernet capability, long-distance connectivity and high-speed communications, are achieved.
  • Page 23 CHAPTER 1 FEATURES (3) Exchange of data with connected devices (communications using a fixed buffer and random access buffer) (a) Communications using a fixed buffer Up to 1K-word data can be exchanged among programmable controllers or between a programmable controller and the host system. While MC protocol communications are passive, communications using a fixed buffer are an active protocol.
  • Page 24 (5) E-mail sending/receiving (e-mail function) This function sends and receives e-mails to and from a connected device in a remote location via the Internet. For details, refer to the following. MELSEC-Q/L Ethernet Interface Module User's Manual (Application) (a) E-mail sending/receiving through the CPU module The following data can be sent and received using the MSEND/MRECV instructions.
  • Page 25 CHAPTER 1 FEATURES (6) Data sending/receiving using the Web function The system administrator can monitor a CPU module in a remote location via the Internet using a Web browser. For details, refer to the following. MELSEC-Q/L Ethernet Interface Module User's Manual (Web function) HTTP MC protocol header...
  • Page 26: Chapter 2 Part Names

    CHAPTER 2 PART NAMES This chapter describes the E71 parts. Name Application Module joint lever A lever to fix modules Indicates operating status. In normal operation An error has occurred. ( Page 191, Section 14.4.1) INIT. Indicates initial process status. Normal completion Not processed Indicates open process status.
  • Page 27 CHAPTER 2 PART NAMES Name Application SPEED Indicates a transmission speed. 100Mbps 10Mbps or a cable not connected SD/RD Indicates data communication status. Data communications in progress Data not sent or not received ( Page 192, Section 14.4.3) 10BASE-T/100BASE-TX A connector to connect an E71 to the 10BASE-T or 100BASE-TX network (An E71 judges whether communication connector to connect to the 10BASE-T or 100BASE-TX network based on the hub.) (RJ45)
  • Page 28: Chapter 3 Specifications

    CHAPTER 3 SPECIFICATIONS This chapter describes the performance specifications, functions, CPU module I/O signals, and buffer memory areas of an E71. General Specifications For the general specifications of an E71, refer to the following. "Safety Guidelines", the manual included with the CPU module Performance Specifications The following table lists the performance specifications of an E71.
  • Page 29 CHAPTER 3 SPECIFICATIONS Specifications Item LJ71E71-100 100BASE-TX 10BASE-T Attachment 6k words × 1 Data size Main text 960k words × 1 When sending: Send either a file as attachment or main text (select one). Data transfer method When receiving: Receive a file as attachment. Subject Us-ASCII format or ISO-2022-JP (Base64) Attachment format...
  • Page 30: Function List

    Function List This section lists the E71 functions. 3.3.1 Function list The following table lists the functions of the E71. (1) Basic functions The following table lists the basic E71 functions explained in this manual. Function Description Reference Connecting with MELSOFT products and a An E71 can be connected with MELSOFT products, such as a Page 81, CHAPTER 8 programming tool and MX Component, and a GOT.
  • Page 31: Use With Other Functions

    CHAPTER 3 SPECIFICATIONS (2) Special functions The following special functions are also available. For the functions, refer to the following. MELSEC-Q/L Ethernet Interface Module User's Manual (Application) Function Description Data are sent/received using an e-mail. • Data sent/received by a CPU module E-mail function •...
  • Page 32: List Of I/O Signals

    List of I/O Signals The following table lists the I/O signals for an E71. The I/O signal assignment of when the start I/O number of an E71 is 0000 is listed below. Device Device Signal name Signal name number number For fixed buffer communication of connection No.1 (ON: Connection No.1 (ON: At sending request or reception Sending normal completion or reception completion,...
  • Page 33 CHAPTER 3 SPECIFICATIONS Device Device Signal name Signal name number number Open completed for connection No.3 Use prohibited (ON: Open completion signal, OFF: -) Open completed for connection No.4 Use prohibited (ON: Open completion signal, OFF: -) Open completed for connection No.5 Use prohibited (ON: Open completion signal, OFF: -) Open completed for connection No.6...
  • Page 34: Buffer Memory

    Buffer Memory This section describes the E71 buffer memory. 3.5.1 Configuration of the buffer memory This section describes a buffer memory configuration. (1) Buffer memory address configuration A buffer memory area consists of 16 bits per address. b15 b14 b13 b12 b11 b10 b8 b7 b6 b5 b4 b3 b2 b1 b0 (2) Buffer memory area configuration Buffer memory consists of user areas and system areas.
  • Page 35: List Of Buffer Memory Addresses

    CHAPTER 3 SPECIFICATIONS 3.5.2 List of buffer memory addresses The following table lists the buffer memory addresses of an E71. Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) 0 and 1 C00001FE Own station E71 IP address and 1 2 and 3 System area...
  • Page 36 Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) 1388 Auto-open UDP port number × Initial process parameter 21 to 29 setting area System area to 1D TCP Maximum Segment Transmission setting area • 0 : Enable TCP Maximum Segment Size Option transmission 8000 •...
  • Page 37 CHAPTER 3 SPECIFICATIONS Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) Connection No.1 Usage of fixed buffer (b0) • 0: For sending, or communications using a fixed buffer are not performed • 1: For receiving Destination existence confirmation (b1) •...
  • Page 38 Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) Own station port No. 41 and 42 Destination IP address and 2A Connection No.1 Destination Port No. 44 to 46 FFFFFFFFF Destination MAC address × to 2E 47 to 53 Connection No.2 (The bit configuration is the same as Connection No.1.) to 35 Communication...
  • Page 39 CHAPTER 3 SPECIFICATIONS Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) Own station port No. × 121 and 122 Destination IP address × and 7A Destination Port No. × Open error code × Connection Fixed buffer sending error ×...
  • Page 40 Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) LED on/off status (Stores the on/off status of the LEDs on the front of the Ethernet module) INIT. LED (b0) • 0: OFF • 1: ON (initial process completed) OPEN LED (b1) •...
  • Page 41 CHAPTER 3 SPECIFICATIONS Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) Status of settings with a programming tool Communication data code setting (b1) • 0: Communications in a binary code • 1: Communications in an ASCII code Initial/open method setting (b2) •...
  • Page 42 Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) Error code/end code × Subheader × Command code × Connection No. × Error log block 1 Own station port No. × 234 and 235 Destination IP address × and EB Destination Port No.
  • Page 43 CHAPTER 3 SPECIFICATIONS Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) 373 to 375 System area (175 to 177 376 and 377 Received IP packet count × (178 and 179 Received IP packet count 378 and 379 discarded due to sumcheck ×...
  • Page 44 Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) 482 to 511 Status for each Error log area System area (1E2 to 1FF protocol 512 and 513 Sub-net mask (200 and 201 514 and 515 Default router IP address (202 and 203 Number of registered routers...
  • Page 45 CHAPTER 3 SPECIFICATIONS Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) 550 and 551 System area (226 and 227 Number of conversion table data (228 Communication request 553 and 554 destination/source stations network (229 and 22A number and station number Conversion 555 and 556 External station Ethernet module IP...
  • Page 46 Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) 1664 Data length × (680 Fixed buffer No.1 1665 to 2687 Fixed buffer data × (681 to A7F 2688 to 3711 Fixed buffer No.2 (The bit configuration is the same as Fixed buffer No.1.) (A80 to E7F 3712 to 4735...
  • Page 47 CHAPTER 3 SPECIFICATIONS Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) Open completion signal • 0: Open incomplete • 1: Open completed 20480 × (5000 Connection No.1 (b0) Connection No.2 (b1) Connection No.16 (b15) 20481 Connection System area (5001 status information...
  • Page 48 Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) System port use prohibited designation • 0: Use allowed • 1: Use prohibited 20488 • Auto-open UDP port (b0) System port × (5008 • MELSOFT application transmission port System port use prohibited (UDP) (b1) information area...
  • Page 49 CHAPTER 3 SPECIFICATIONS Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) 20629 to 20633 Connection No.8 (The bit configuration is the same as Connection No.1.) (5095 to 5099 20634 to 20638 Connection No.9 (The bit configuration is the same as Connection No.1.) (509A to 509E 20639 to 20643...
  • Page 50 Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) 20694 to 20736 System area (50D6 to 5100 20737 Error log pointer × (5101 20738 Log counter × (5102 (HTTP response code 100 to 199) 20739 Log counter × (5103 (HTTP response code 200 to 299) 20740...
  • Page 51 CHAPTER 3 SPECIFICATIONS Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) 20835 to 20841 Error log block 14 (The bit configuration is the same as Error log block 1.) (5163 to 5169 20842 to 20848 HTTP status Error log block 15 (The bit configuration is the same as Error log block 1.) (516A to 5170...
  • Page 52 Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) 22560 Own station port No. × (5820 22561 and 22562 Destination IP address × (5821 and 5822 22563 Destination Port No. × (5823 22564 Open error code × (5824 22565 Connection Fixed buffer sending error...
  • Page 53 CHAPTER 3 SPECIFICATIONS Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) 22640 Number of mails remaining on the server × (5870 22641 Dedicated instruction normal completion × (5871 count 22642 Dedicated instruction abnormal end count × (5872 22643 Normal receiving count ×...
  • Page 54 Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) 22693 to 22736 Error log block 2 (The bit configuration is the same as Error log block 1.) (58A5 to 58D0 22737 to 22780 Error log block 3 (The bit configuration is the same as Error log block 1.) (58D1 to 58FC 22781 to 22824...
  • Page 55 CHAPTER 3 SPECIFICATIONS Address Programming Initial Application Name tool setting Decimal value applicability (Hexadecimal) 23361 Error code × (5B41 23362 Command code × (5B42 23363 to 23370 Error log × (5B43 to 5B4A block 1 23371 to 23374 Date × (5B4B to 5B4E 23375 to 23404...
  • Page 56: Chapter 4 Procedures Before Operation

    CHAPTER 4 PROCEDURES BEFORE OPERATION This chapter describes how to connect an E71 to Ethernet. For how to communicate with connected devices after the E71 is connected, refer to the communication procedure. ( Page 62, CHAPTER 7) Checkbox System consideration Page 26, CHAPTER 3, Page 56, CHAPTER 5 Design the system configuration of the E71.
  • Page 57 CHAPTER 4 PROCEDURES BEFORE OPERATION Memo...
  • Page 58: Chapter 5 System Configuration

    CHAPTER 5 SYSTEM CONFIGURATION Overall System Configuration The following is a system configuration example of when using an E71. Display unit (optional) I/O modules Power supply module CPU module intelligent function modules END cover...
  • Page 59: Network Components

    CHAPTER 5 SYSTEM CONFIGURATION Network Components This section describes the devices used for Ethernet. Connected device An E71 determines whether to use 100BASE-TX or 10BASE-T and the full-duplex or half-duplex transmission mode according to the hub. For connection to a hub without the automatic negotiation function, set the half-duplex mode on the hub side.
  • Page 60: Applicable Systems

    Consult a network specialist for required devices. Applicable Systems This section describes MELSEC-L series systems that include an E71. (1) Applicable CPU modules and the number of connectable modules An E71 can be connected to an LCPU with an serial number (first five digits) of 14112 or later.
  • Page 61: Chapter 6 Installation And Wiring

    CHAPTER 6 INSTALLATION AND WIRING CHAPTER 6 INSTALLATION AND WIRING This chapter describes installation and wiring of the E71. Installation This section describes installation of the E71. (1) Installation method For the module installation environment and position, refer to the following. MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection) (2) Handling precautions Do not drop or apply strong shock to the E71 case since it is made from resin.
  • Page 62: Wiring

    Wiring This section describes Ethernet cable wiring and wiring precautions. For a network configuration and cables and hubs used, refer to "SYSTEM CONFIGURATION". ( Page 56, CHAPTER 5) (1) Ethernet cable connection The following is how to connect and disconnect an Ethernet cable. (a) Connecting the cable Power off the E71 and the connected device.
  • Page 63 CHAPTER 6 INSTALLATION AND WIRING (2) Precautions This section describes wiring precautions. (a) Handling Place the Ethernet cable in a duct or clamp them. If not, dangling cable may swing or inadvertently be pulled, resulting in damage to the module or cables or malfunction due to poor contact. Do not touch the core of the cable-side or module-side connector, and protect it from dirt or dust.
  • Page 64: Chapter 7 Communication Procedure

    CHAPTER 7 COMMUNICATION PROCEDURE This chapter describes the procedure for communicating with connected devices after the E71 is connected to Ethernet. For the procedure for connecting the E71 to Ethernet, refer to "PROCEDURES BEFORE OPERATION". Page 54, CHAPTER 4 Continued from PROCEDURES BEFORE OPERATION Parameter settings Page 63, Section 7.1, Set the parameters (excluding the basic setting and Ethernet operation...
  • Page 65: Setting Parameters Required For Communications

    CHAPTER 7 COMMUNICATION PROCEDURE Setting Parameters Required for Communications This section describes how to set parameters to communicate between the E71 and connected devices. 7.1.1 Parameter list The following table lists parameters set through a programming tool. Item Description Reference Network Type Start I/O No.
  • Page 66: Basic Setting

    7.1.2 Basic setting Set items, such as a network number and station number. Project window [Parameter] [Network Parameter] [Ethernet/CC IE Field] Select "Ethernet" under "Network Type". Item Description Setting range Network Type Select "Ethernet". Within the number of I/O points of the Start I/O No.
  • Page 67: Ethernet Operation Setting

    CHAPTER 7 COMMUNICATION PROCEDURE 7.1.3 Ethernet Operation Setting Configure the settings, such as an IP address, to connect the E71 to Ethernet. Project window [Parameter] [Network Parameter] [Ethernet/CC IE Field] Select "Ethernet" under "Network Type". button Item Description Setting range •...
  • Page 68 (1) Initial Timing This setting configures the open timing of the connection where "TCP" (Passive open) or "UDP" has been selected under "Open System" in the open setting. ( Page 67, Section 7.1.4) (a) Do not wait for OPEN (Communications impossible at STOP time) Connections are opened or closed using a program.
  • Page 69: Open Setting

    CHAPTER 7 COMMUNICATION PROCEDURE 7.1.4 Open Setting Configure settings to open connections for data communications with connected devices. Project window [Parameter] [Network Parameter] [Ethernet/CC IE Field] Select "Ethernet" under "Network Type". button Item Description Setting range IP Address/Port No. Input •...
  • Page 70 Item Description Setting range • DEC: 1025 to 4999, 5003 to 65534 Host Station Port No. Set the E71 connection port numbers. • HEX: to 1387 , 138B FFFE • DEC: 0.0.0.0 to 255.255.255.255 Destination IP Address Set the IP address of the connected device. •...
  • Page 71 CHAPTER 7 COMMUNICATION PROCEDURE ● Note the following points when setting port numbers. : Can be set, ×: Cannot be set Communication protocol Connection status Description TCP/IP UDP/IP Connected device When connecting multiple connected devices, set multiple own station port numbers. Connected device When connecting multiple connected devices, set a single Connected device...
  • Page 72: Tcp/Ip Communications

    TCP/IP Communications This section describes TCP/IP communications. 7.2.1 Establishing a connection TCP/IP communications require establishing connections between communication devices. When the server-side device is in standby status after performing a Passive open process, a connection is established after the client-side device issues an open request (Active open process) to the server and a response is received.
  • Page 73: Communication Process

    CHAPTER 7 COMMUNICATION PROCEDURE 7.2.2 Communication process This section describes the process from establishing a connection to terminating communications. Server Client Connected device After the server performs Passive open, it will wait for an open request from the client. Passive open When the client sends Active open request and Open request...
  • Page 74 ● The corresponding bit of Open completion signal (address: 5000 ) automatically turns off and the communication line is closed in the following situations: • A timeout has occurred in the alive check function. ( Page 153, Section 12.6) • An E71 has received a close request and the ABORT (RST) instruction from a connected device. •...
  • Page 75: Active Open Procedure

    CHAPTER 7 COMMUNICATION PROCEDURE 7.2.3 Active open procedure Active open is a connection method that performs an active open process on a connected device in Passive open wait status. The procedure that the E71 performs an Active open process is as follows. For the OPEN/CLOSE instructions, refer to "DEDICATED INSTRUCTIONS".
  • Page 76 After parameter communications, check that the initial process of the E71 is normally completed. (Initial normal completion signal (X19): ON) Start the open process using the OPEN instruction. (Open request signal (address: 5002 (b0)): ON) The E71 performs the open process. (The E71 sends an open request (SYN) to the connected device.) When the open process is normally completed, data communications are enabled.
  • Page 77: Passive Open Procedure

    CHAPTER 7 COMMUNICATION PROCEDURE 7.2.4 Passive open procedure The E71 has the following two connection methods for Passive open. • Unpassive: Performs a passive open process on connections for all devices connected to the network, regardless of the IP address and port number of the destination device. •...
  • Page 78 When the open/close processes are performed from the E71 side using a dedicated instruction, even if "Always wait for OPEN" has been selected for the Ethernet operation setting, the connection will not return to the open acceptance enable status after the close process is completed. (2) When "Do not wait for OPEN (Communications impossible at STOP time)"...
  • Page 79 CHAPTER 7 COMMUNICATION PROCEDURE After parameter communications, check that the initial process of the E71 is normally completed. (Initial normal completion signal (X19): ON) Start the open process using the OPEN instruction. (Open request signal (address: 5002 (b0)): ON) The E71 starts the open process upon receiving the open request (SYN) from the connected device. When the open process is normally completed, Open completion signal (address: 5000H (b0)) turns on and data communications are enabled.
  • Page 80: Udp/Ip Communications

    UDP/IP Communications This section describes UDP/IP communications. In UDP/IP communications, the system does not establish a connection and does not check whether each data has arrived at the destination normally, thereby reducing the load on the line. However, UDP/IP communications do not guarantee data reliability as the TCP/IP communications do. 7.3.1 Communication process Unlike TCP/IP communications, UDP/IP communications do not require connections to be established with connected...
  • Page 81: Open Procedure

    CHAPTER 7 COMMUNICATION PROCEDURE 7.3.2 Open procedure The open/close processes are performed by the procedures described below, according to the Ethernet operation setting. (1) When "Always wait for OPEN (Communication possible at STOP time)" is selected for the Ethernet operation setting After the E71-connected station is started up, the connection in UDP/IP communications automatically opens and data sending/receiving are enabled.
  • Page 82 (2) When "Do not wait for OPEN (Communications impossible at STOP time)" is selected for the Ethernet operation setting Executing the OPEN/CLOSE instructions is required on the E71 to make the E71 enter open/close wait status open/close wait status before receiving an open/close request from the connected device. When the open process is normally completed, data sending and receiving are enabled.
  • Page 83: Chapter 8 Connecting Melsoft Products And A Got

    CHAPTER 8 CONNECTING MELSOFT PRODUCTS AND A GOT CHAPTER 8 CONNECTING MELSOFT PRODUCTS AND A GOT This chapter describes the connection of the E71 with MELSOFT products (such as a programming tool and MX Component) and the GOT. Applications This section describes applications according to a connection type. (1) Programming and monitoring over Ethernet In Ethernet, a programming tool can create programming of a programmable controller and monitor a programmable controller (MELSOFT connection), and the GOT can monitor and test a programmable controller.
  • Page 84: Data Communication Procedure

    Data Communication Procedure This section describes the data communication procedure in the MELSOFT connection. Connecting the E71 and a personal computer (programming tool) Write the parameter settings ( Page 67, Section 7.1.4) in the CPU module. Configure connections by the number of connected products in the open setting only when connecting multiple MELSOFT products.
  • Page 85 CHAPTER 8 CONNECTING MELSOFT PRODUCTS AND A GOT Select "Ethernet Module" under "PLC side I/F" and double-click the item. The window shown to left appears. Set the station number and the IP address according to the network parameters. Set "Other Station Setting" and "Network Communication Route"...
  • Page 86: Chapter 9 Mc Protocol Communications

    CHAPTER 9 MC PROTOCOL COMMUNICATIONS Using MC protocol communications, connected devices that can send and receive data in accordance with the MC protocol can access a CPU module. Because an E71 processes and sends/receives data based on commands from connected devices, no programs for data communications are required on the programmable controller side. For MC protocol communications, refer to the following.
  • Page 87: Communication Structure

    CHAPTER 9 MC PROTOCOL COMMUNICATIONS Communication Structure When a connected device sends a message to an E71 in the MC protocol message format, the E71 performs the process according to the message. During communications, a CPU module including the E71 operates as a server, and the connected device (a personal computer or other terminals) operates as a client.
  • Page 88: Parameter Setting

    Parameter Setting Set the following parameters for MC protocol communications. • Basic setting ( Page 64, Section 7.1.2) • Ethernet operation setting ( Page 65, Section 7.1.3) • Open setting ( Page 67, Section 7.1.4) Item Description Setting range Fixed Buffer Communication Select the communication method for communications using a fixed buffer.
  • Page 89: Chapter 10 Communications Using A Fixed Buffer

    CHAPTER 10 COMMUNICATIONS USING A FIXED BUFFER CHAPTER 10 COMMUNICATIONS USING A FIXED BUFFER This chapter describes communications using a fixed buffer. 10.1 Applications In communications using a fixed buffer, a programmable controller can actively send data; therefore, data can be sent from the programmable controller to the host system when an error occurs in machine equipment or some other conditions are satisfied.
  • Page 90: Communication Structure

    10.2 Communication Structure This section describes the structure of communications using a fixed buffer. (1) Data flow In communications using a fixed buffer, data is sent/received using dedicated instructions. • Sending data: BUFSND instruction • Receiving data: BUFRCV instruction or BUFRCVS instruction When the "Procedure Exist"...
  • Page 91 CHAPTER 10 COMMUNICATIONS USING A FIXED BUFFER ● When changing connected devices, do not use the pairing open or alive check function. ● When "No Procedure" is selected for a connection, the connection is dedicated to "No Procedure" communications using a fixed buffer after the open process is completed.
  • Page 92: Data Sending Procedure

    10.3 Data Sending Procedure This section describes how an E71 sends data to the connected device. (1) Procedure exists The following is the data send process performed in the fixed buffer number 1 area for the connection number 1. Initial process Open process Sending data Receiving a response Initial normal completion...
  • Page 93 CHAPTER 10 COMMUNICATIONS USING A FIXED BUFFER (2) No procedure The following is the data send process performed in the fixed buffer number 1 area for the connection number 1. Initial process Open process Sending data Initial normal completion signal X19 Open completion signal (address: 5000H [b0]) BUFSND instruction...
  • Page 94: Data Receiving Procedure

    10.4 Data Receiving Procedure This section describes how an E71 receives data from the connected device. The following methods for receiving data are offered: • Data receiving using the main program (BUFRCV instruction) • Data receiving using an interrupt program (BUFRCVS instruction) 10.4.1 Data receiving using the main program (BUFRCV instruction) A receive process in the main program is performed using the BUFRCV instruction.
  • Page 95 CHAPTER 10 COMMUNICATIONS USING A FIXED BUFFER ● The items configured in the open setting become enabled when Open completion signal of an E71 is started up. ● When the buffer memory area that stores Fixed buffer reception status signal is turned off and on, execute the BUFRCV instruction.
  • Page 96 ● The items configured in the open setting become enabled when Open completion signal of an E71 is started up. ● When the buffer memory area that stores Fixed buffer reception status signal is turned off and on, execute the BUFRCV instruction.
  • Page 97: Data Receiving Using An Interrupt Program (Bufrcvs Instruction)

    CHAPTER 10 COMMUNICATIONS USING A FIXED BUFFER 10.4.2 Data receiving using an interrupt program (BUFRCVS instruction) A receive process in an interrupt program is performed using the BUFRCVS instruction. An interrupt program is started up when data is received from a connected device, and receive data for a CPU module can be read. The following settings are required to use an interrupt program: ( Page 98, Section 10.5.1) •...
  • Page 98 (2) No procedure The following is the receive process performed in the fixed buffer number 1 area for the connection number 1. Initial Open process process Receiving data Initial normal completion signal X19 Open completion signal (address: 5000 [b1]) BUFRCVS instruction In interrupt process (TCP only) Cycle...
  • Page 99: Parameter Setting

    CHAPTER 10 COMMUNICATIONS USING A FIXED BUFFER 10.5 Parameter Setting Set the following parameters to perform communications using a fixed buffer. • Basic setting ( Page 64, Section 7.1.2) • Ethernet operation setting ( Page 65, Section 7.1.3) • Open setting ( Page 67, Section 7.1.4) Item Description...
  • Page 100: Parameter Setting When Using An Interrupt Program

    10.5.1 Parameter setting when using an interrupt program Configure the parameter setting on a programming tool to start up an interrupt program. CPU module Control <Program> Connection No.1 number Interrupt interrupt pointer Connection No.2 Z.BUFRCVS (SI) No. (Ixx) Setting Setting of (2) of (1) Connection No.16...
  • Page 101 CHAPTER 10 COMMUNICATIONS USING A FIXED BUFFER (2) Interrupt settings The following is a setting example. Project window [Parameter] [Network Parameter] [Ethernet/CC IE Field] Select "Ethernet" under "Network Type". button Item Description Setting range Input Format The input format of each data is decimal number only. Device Code Select a device code.
  • Page 102: Data Format

    10.6 Data Format Communication data consists of a header and application data. 10.6.1 Header The header for TCP/IP or UDP/IP is used. Because an E71 automatically adds and deletes a header, the user setting is not required. (1) Detailed header sizes (a) TCP/IP Ethernet (14 bytes)
  • Page 103 CHAPTER 10 COMMUNICATIONS USING A FIXED BUFFER (a) Format • Communications using a binary code Application data area (command message) Maximum of 2 bytes 2 bytes 1017 words Text Subheader Data length Communication request source (command) setting Communication Subheader End code request destination 1 byte 1 byte...
  • Page 104 (b) Subheader Because an E71 automatically adds and deletes a header, the user setting is not required. Command Response Communications using a binary code Subheader Subheader "6" "0" "E" "0" Communications using an ASCII code Subheader Subheader (c) Data length setting The following are the data sizes of a text (command).
  • Page 105 CHAPTER 10 COMMUNICATIONS USING A FIXED BUFFER (d) Text (command) The following is the format of a command/response. • Communications using a binary code Command format Maximum of 1017 words Subheader Data specifying/ storing device for sending/ receiving instructions Data length setting n + 1 n + 2...
  • Page 106 (e) End codes An error code is stored in the end code added to a response. For the error codes, refer to the error code list. Page 210, Section 14.7.1) End codes are stored in the complete status area (in the control data) of the BUFSND and BUFRCV instructions, as well as the communication status storage area of the buffer memory.
  • Page 107: Pairing Open

    CHAPTER 10 COMMUNICATIONS USING A FIXED BUFFER (2) No procedure In the application data for communications in the "No Procedure" control method, the following data code is expressed in a binary code. Communications are performed using a binary code regardless of the communication data code setting.
  • Page 108: Parameter Setting

    10.7.2 Parameter setting The following is the pairing open setting. Item Description Setting range Set "Pairing Open" of the receive connection to "Enable". The next connection is Pairing Open automatically set as a send connection. When "Enable" has been set in "Pairing Open" for a send connection, the following window appears. When the button is selected, the applicable connection becomes a receive connection, and the next connection is automatically set as a send connection.
  • Page 109: Broadcast Communications

    CHAPTER 10 COMMUNICATIONS USING A FIXED BUFFER 10.8 Broadcast Communications Broadcast communications mean that the same data is sent to all E71-connected stations in the same Ethernet network and to the connected devices without specifying destinations. Broadcast communications can be performed only when the UDP/IP protocol is used and during "No Procedure"...
  • Page 110 Remark The following is the outline of the internal process of an E71 when data is received in the "No Procedure" control method or by broadcast communications. (The values specified in the buffer memory addresses 0 and 28 to 5F are used for the IP addresses and port numbers of the E71 in the own station as well as those of connected devices.) Data received...
  • Page 111: Parameter Setting

    CHAPTER 10 COMMUNICATIONS USING A FIXED BUFFER 10.8.2 Parameter setting The following is the parameter setting for broadcast communications. (1) When sending data The following is the parameter setting for data sending. Item Description Setting range Protocol Select "UDP". Fixed Buffer Select "Send".
  • Page 112 (2) When receiving data The following is the parameter setting for data receiving. Item Description Setting range Protocol Select "UDP". Fixed Buffer Select "Receive". Fixed Buffer Communication Procedure Select "No Procedure". Existence Confirmation Select "No Confirm". Set FFFFFFFF Destination IP Address Set FFFF Destination Port No.
  • Page 113: Precautions

    CHAPTER 10 COMMUNICATIONS USING A FIXED BUFFER 10.8.3 Precautions This section describes the precautions for broadcast communications. (1) Port number To perform broadcast communications, the user needs to determine the port numbers dedicated for data sending/receiving for broadcast communications and specify these port numbers. (2) Size of send/receive data per sending/receiving A maximum of 2046 bytes of data in the application data can be processed per sending/receiving.
  • Page 114: Example Of Communications Using A Fixed Buffer

    10.9 Example of Communications Using a Fixed Buffer This section describes an example of communications using a fixed buffer in the "Procedure Exist" control method between an E71 and the connected device. 10.9.1 System configuration The following system configuration is used for explanation purpose. LCPU-1 LCPU-2 (10.97.85.222)
  • Page 115 CHAPTER 10 COMMUNICATIONS USING A FIXED BUFFER (b) Ethernet operation setting The following is an example of the Ethernet operation setting. (c) Open setting The following is an example of the open setting.
  • Page 116 (2) Receiving side (LCPU-2 side) The following is an example of the parameter settings of the receiving side (LCPU-2 side). (a) Basic setting The following is an example of the basic setting. (b) Ethernet operation setting The following is an example of the Ethernet operation setting.
  • Page 117: Program

    CHAPTER 10 COMMUNICATIONS USING A FIXED BUFFER (c) Open setting The following is an example of the open setting. 10.9.3 Program (1) Sample program procedures This section describes the procedures for a sample program. (a) Sending side (LCPU-1 side) The following describes how communications are processed on the sending side (LCPU-1 side). Set each parameter on a programming tool and write the set parameters to the CPU module.
  • Page 118 (2) Sample program (a) Program on the sending side (LCPU-1 side) The following is a program on the sending side (LCPU-1 side). <<Open processing program>>...
  • Page 119 CHAPTER 10 COMMUNICATIONS USING A FIXED BUFFER <<Fixed buffer No.1 send program>> Process upon completion Process upon abnormal end...
  • Page 120 <<Close processing program>>...
  • Page 121 CHAPTER 10 COMMUNICATIONS USING A FIXED BUFFER (b) Receiving side (LCPU-2 side) The following is a program on the receiving side (LCPU-2 side). <<Fixed buffer No.1 receive program>> Process upon completion Process upon abnormal end Secure sufficient device areas according to the maximum length of data sent from the send source to prevent the device areas used for other purposes from being overwritten by the receive data.
  • Page 122: Chapter 11 Communications Using A Random Access Buffer

    CHAPTER 11 COMMUNICATIONS USING A RANDOM ACCESS BUFFER This section describes communications using a random access buffer. 11.1 Applications In communications using a random access buffer, data can be freely read from and written to any connected device (not including an E71). A random access buffer is used as a common buffer area for all the connected devices in the Ethernet network.
  • Page 123: Communication Structure

    CHAPTER 11 COMMUNICATIONS USING A RANDOM ACCESS BUFFER 11.2 Communication Structure This section describes the structure of communications using a random access buffer. (1) Data flow The data flow in communications using a random access buffer is as follows. The FROM/TO instructions or intelligent function module devices are used to access a random access buffer from a CPU module.
  • Page 124: How Data Is Read From A Connected Device

    11.2.1 How data is read from a connected device The following figure shows how an E71 sends data in response to a read request sent from a connected device. Read request (command) CPU module ACK (TCP only) Random access Writing using buffer Response/data read the TO instruction...
  • Page 125: Parameter Setting

    CHAPTER 11 COMMUNICATIONS USING A RANDOM ACCESS BUFFER 11.3 Parameter Setting Set the following parameters to perform communications using a random access buffer. • Basic setting ( Page 64, Section 7.1.2) • Ethernet operation setting ( Page 65, Section 7.1.3) •...
  • Page 126: Data Format

    11.4 Data Format Communication data consists of a header and application data. 11.4.1 Header The header for TCP/IP or UDP/IP is used. Because an E71 automatically adds and deletes a header, the user setting is not required. (1) Detailed header sizes (a) TCP/IP Ethernet (14 bytes)
  • Page 127: Application Data

    CHAPTER 11 COMMUNICATIONS USING A RANDOM ACCESS BUFFER 11.4.2 Application data In the application data for communications with the "Procedure Exist" control method, the following data code is expressed in a binary code or an ASCII code. To switch between a binary code and an ASCII code, use the Ethernet operation setting.
  • Page 128 (2) Subheader Because an E71 automatically adds and deletes a header, the user setting is not required. b7 b6 b5 b4 b3 b2 b1 b0 Only for command (none at response) Command/response type (When communications are performed using the random access buffer, this format is used.) For data reading: 61 For data writing: 62...
  • Page 129 CHAPTER 11 COMMUNICATIONS USING A RANDOM ACCESS BUFFER (4) Data length setting Set the number of words of the read/written data in the random access buffer range. (a) Communications using a binary code Specify the number of words using a binary value. (Maximum of 1017 words) 2 bytes (b) Communications using an ASCII code Specify the number of words using an ASCII code value expressed in hexadecimal.
  • Page 130 • Communications using an ASCII code Data length 2 (maximum of 1016 words) ASCII-binary conversion Random access buffer Specified address n + 1 n + set number of words to be read (Maximum of 508 words) n + 1 (a) End code An error code is stored in the end code added to a response.
  • Page 131: Examples Of Command And Response Formats

    CHAPTER 11 COMMUNICATIONS USING A RANDOM ACCESS BUFFER 11.4.3 Examples of command and response formats This section describes examples of command and response formats. (1) Writing data to a random access buffer upon a write request from a connected device (a) Communications using a binary code •...
  • Page 132 (b) Communications using an ASCII code • Command format (from the connected device to the E71) Start address Data length Subheader Text (20 words) ASCII-binary conversion Random access buffer Physical address Logical address 2680 ( 9856) ( 0) 2681 ( 9857) ( 1) 2682 ( 9858)
  • Page 133 CHAPTER 11 COMMUNICATIONS USING A RANDOM ACCESS BUFFER (2) Reading data from a random access buffer upon a read request from a connected device (a) Communications using a binary code • Command format (from the connected device to the E71) Subheader Start address Data length...
  • Page 134 (b) Communications using an ASCII code • Command format (from the connected device to the E71) Subheader Start address Data length • Command format (from the connected device to the E71) End code Subheader Text (20 words) ASCII-binary conversion Random access buffer Physical address Logical address 2680...
  • Page 135: Precautions When Creating Programs

    CHAPTER 11 COMMUNICATIONS USING A RANDOM ACCESS BUFFER 11.5 Precautions when Creating Programs This section describes the precautions when creating programs for communications using a random access buffer. (1) Completion of the initial and open processes The initial process and the connection open process need to be completed. (2) Send request from a CPU module A CPU module cannot issue send requests.
  • Page 136: Example Of Communications Using A Random Access Buffer

    11.7 Example of Communications Using a Random Access Buffer The following figure shows an example of a write operation from a connected device. Connected device CPU module Random access buffer Device memory R20000 11710 Data received Data received 11719 R20009 11720 Receive process program Receive completion flag...
  • Page 137: Chapter 12 Other Functions

    CHAPTER 12 OTHER FUNCTIONS CHAPTER 12 OTHER FUNCTIONS This chapter describes basic functions of the E71 other than those described in the preceding chapters. 12.1 Router Relay Function This section describes the router relay function. 12.1.1 Applications This function allows the E71 to communicate with connected devices on other Ethernet networks via a router and gateway.
  • Page 138 Item Description Setting range Router Relay Function Select whether to use the router relay function. Not Used/Use C0000000 to FFFFFFFC Subnet Mask Pattern Refer to (1) in this section. A value other than 00000000 Default Router IP Address Refer to (2) in this section. FFFFFFFF Input Format Select the input format of router information.
  • Page 139 CHAPTER 12 OTHER FUNCTIONS (2) Default router IP address Set the IP address of the router (default router) when the E71 communicates with the connected devices on other Ethernet networks via a router other than the one specified in the router information. Set the value that satisfies the following conditions.
  • Page 140 When the network addresses differ between the E71 on the own station and the connected device Network address Own station E71 IP address (Class B) 1 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 1 0 1 1 1 1 0 0 0 0 0 0 0 1 Connected device 1...
  • Page 141: Communications Using An Auto-Open Udp Port

    CHAPTER 12 OTHER FUNCTIONS (b) Router IP address Set the IP addresses of the routers when the E71 communicates with the connected devices on other Ethernet networks via a router other than the default router. Set the value that satisfies the following conditions. •...
  • Page 142: Remote Password

    However, this function does not guarantee prevention of all unauthorized access. To have the programmable controller system fully secured against unauthorized access from the connected devices, take additional measures. Mitsubishi Electric Corporation does not hold any responsibility for any system problems caused by unauthorized access. The following are examples of measures against unauthorized access.
  • Page 143: Remote Password Setting Processes (Unlock And Lock Processes)

    CHAPTER 12 OTHER FUNCTIONS 12.3.2 Remote password setting processes (unlock and lock processes) This section describes the processes that enable/disable access from the connected devices to the programmable controller. (1) Access permission process (unlock process) To access the specified CPU module, the connected device performs a remote password unlock process for the remote password-protected E71 on the station in direct connection (own station).
  • Page 144: Remote Password Check Procedure

    12.3.3 Remote password check procedure This section describes the procedure of the remote password check performed by the E71. (1) Communications in which an entered remote password is checked When the following parameters have been set for the E71 on the LCPU station, the E71 checks a remote password for communication requests listed below.
  • Page 145 CHAPTER 12 OTHER FUNCTIONS (3) Stations that can be accessed when the remote password check is performed When the CPU module is protected with a remote password, the stations accessible by the connected device and the LCPU stations that can perform the remote password unlock/lock processes are limited to those in the same network.
  • Page 146 When a remote password and the remote password check have been set in multiple LCPU stations Station 1-2 Station A LCPU Network No.1 Ethernet Station 1-1 Station 3-2 Remote Remote Remote Remote password password password password check check Station B LCPU LCPU Programming tool...
  • Page 147: Differences In Functions According To The Remote Password Check Status (Enabled/Disabled)

    CHAPTER 12 OTHER FUNCTIONS 12.3.4 Differences in functions according to the remote password check status (enabled/disabled) The following table lists the behavior of the functions according to the remote password check status (enabled/disabled). Remote password check setting Function Disabled Enabled After an initial process is completed, After the remote password is entered, Connection with MELSOFT products and a...
  • Page 148: Precautions

    12.3.5 Precautions The precautions for using the remote password function of the E71 are provided below. (1) Timing of activating a remote password To enable the remote password setting, power off or reset the CPU module. After a remote password has been set, restart the CPU module.
  • Page 149 CHAPTER 12 OTHER FUNCTIONS (7) When the unlock process or lock process fails If the remote password unlock/lock process fails, check the remote password of the CPU module then perform the unlock/lock process again. (a) E71 operation in case of a process failure If the number of process failures exceeds the notification accumulated count set in the buffer memory area, the E71 performs the following operations.
  • Page 150: Parameter Settings

    12.3.6 Parameter settings The remote password setting of the E71 is described. Project window [Parameter] [Remote Password] Item Description Setting range Password Setting Enter a password set for the CPU module. Select the module model that checks an Model Name entered remote password against the LJ71E71-100 Remote...
  • Page 151 CHAPTER 12 OTHER FUNCTIONS When determining a remote password, take care of the following. • Avoid a simple character string (e.g. Character string consisting of alphanumeric characters only). • Combine alphanumeric characters and special characters (e.g. "?", "!", "&", and "%"). •...
  • Page 152: Hub Connection Status Monitor Function

    12.4 Hub Connection Status Monitor Function The current connection status and transmission speed of an E71 and a hub and the number of times that the E71 detected disconnection can be checked using the following buffer memory areas. For details on buffer memory areas, refer to the list of buffer memory addresses.
  • Page 153: Ip Address In Use Detection Function

    CHAPTER 12 OTHER FUNCTIONS 12.5 IP Address in Use Detection Function If different stations in the same network use the same IP address, the address in use can be detected. This prevents a network from stopping due to incorrect IP address. When the connected device with the same IP address does not support the IP address in use detection function, the error is not detected.
  • Page 154 Remark When the MAC address of the station that has been already connected to the network is 00.26.92.89.2E.89, the IP address already in use is 10.97.24.01, and the MAC address of the station connected to the network later is 00.26.92.DE.26.90, the value stored in each buffer memory area is as follows.
  • Page 155: Alive Check Function

    CHAPTER 12 OTHER FUNCTIONS 12.6 Alive Check Function When the E71 has not communicated with the connected device for a certain period of time while the connection is open, this function checks whether the connected device is alive by sending an alive check message to the connected device and waiting for the response.
  • Page 156 (3) If a response message cannot be received from the connected device If a response message cannot be received from the connected device (or if an error has been detected) using the alive check function, the following processes are performed. •...
  • Page 157: Chapter 13 Dedicated Instructions

    CHAPTER 13 DEDICATED INSTRUCTIONS CHAPTER 13 DEDICATED INSTRUCTIONS Dedicated instructions facilitate programming for using intelligent function modules. This chapter describes dedicated instructions that can be used in the E71. 13.1 List of Dedicated Instructions (1) Dedicated instructions for using basic functions The following table lists dedicated instructions for using the functions explained in this manual.
  • Page 158: Parameter Settings For Using Dedicated Instructions

    13.2 Parameter Settings for Using Dedicated Instructions When using dedicated instructions, set the parameters of each function. 13.2.1 When using data link instructions When using data link instructions, set the following parameters. • Station No. <-> IP information setting • Routing parameters setting For details on the settings, refer to the following.
  • Page 159: Organization Of The Dedicated Instruction Sections

    CHAPTER 13 DEDICATED INSTRUCTIONS 13.4 Organization of the Dedicated Instruction Sections For the organization of the dedicated instruction sections, refer to Page 13.
  • Page 160: Zp.open

    13.5 ZP.OPEN This instruction establishes (opens) a connection with the connected device to perform data communications. Command ZP.OPEN ZP.OPEN "Un" (S1) (S2) (D1) Available device Link direct Setting Internal device Intelligent Index device Constant File data (system, user) function module register Others J\...
  • Page 161 CHAPTER 13 DEDICATED INSTRUCTIONS (2) Control data Device Item Setting data Setting range Set by To open a connection, specify whether to use the parameter settings of a programming tool or to use the settings stored in the following control data starting from (S2)+2. 0000 Execution (S2)+0...
  • Page 162 (3) Functions • This instruction performs the open process for a connection specified by (S1) for the module specified by Un. The setting value used for the open process is selected by (S2)+0. • Completion of the OPEN instruction can be checked with Completion device (D1)+0 and (D1)+1. Item Description Completion device...
  • Page 163 CHAPTER 13 DEDICATED INSTRUCTIONS (5) Program example The following shows a sample program that performs an Active open process on the connection number 1 for TCP/IP communications (when the I/O signals of the E71 are X/Y00 to X/Y1F). Necessary when the open setting of the programming tool is used. (In this case, the program marked with *2 is unnecessary.) Necessary when the open setting of the program is used.
  • Page 164: Zp.close

    13.6 ZP.CLOSE This instruction disconnects (closes) a connection with the connected device performing data communications. Command ZP.CLOSE ZP.CLOSE "Un" (S1) (S2) (D1) Available device Link direct Setting Internal device Intelligent Index device Constant File data (system, user) function module register Others J\...
  • Page 165 CHAPTER 13 DEDICATED INSTRUCTIONS (3) Functions • This instruction performs the close process for a connection specified by (S1) for the module specified by Un (connection closed). • Completion of the CLOSE instruction can be checked with Completion device (D1)+0 and (D1)+1. Item Description Completion device...
  • Page 166 (5) Program example The following shows a sample program that closes the connection number 1 (when the I/O signals of the E71 are X/Y00 to X/Y1F).
  • Page 167: Zp.bufsnd

    CHAPTER 13 DEDICATED INSTRUCTIONS 13.7 ZP.BUFSND This instruction sends data to the connected device through communications using a fixed buffer. Command ZP.BUFSND ZP.BUFSND "Un" (S1) (S2) (S3) (D1) Available device Link direct Setting Internal device Intelligent Index device Constant File data (system, user) function module...
  • Page 168 (3) Send data Device Item Setting data Setting range Set by Specify send data length. (Depending on the procedure of fixed buffer communications, the data length is the number of words or the number of bytes.) Procedure exists (communications using a binary 1 to 1017 Send data code): Number of words...
  • Page 169 CHAPTER 13 DEDICATED INSTRUCTIONS • Completion of the BUFSND instruction can be checked with Completion device (D1)+0 and (D1)+1. Item Description Completion device Turns on at the END process of the scan where the BUFSND instruction is completed and (D1)+0: turns off at the next END process.
  • Page 170 (6) Program example The following shows a sample program that sends data stored on the fixed buffer of the connection number 1 (when the I/O signals of the E71 are X/Y00 to X/Y1F). Process upon completion Process upon abnormal end...
  • Page 171: Zp.bufrcv

    CHAPTER 13 DEDICATED INSTRUCTIONS 13.8 ZP.BUFRCV This instruction reads data received from the connected device through communications using a fixed buffer (used in the main program). Command ZP.BUFRCV ZP.BUFRCV "Un" (S1) (S2) (D1) (D2) Available device Link direct Setting Internal device Intelligent Index device...
  • Page 172 (3) Receive data Setting Device Item Setting data Set by range Stores the data length of the data read from the fixed buffer data area. (Depending on the procedure of fixed buffer communications, the data length is the number of words or the number of bytes.) Procedure exists (communications using a binary Receive data...
  • Page 173 CHAPTER 13 DEDICATED INSTRUCTIONS • Completion of the BUFRCV instruction can be checked with Completion device (D2)+0 and (D2)+1. Item Description Completion device Turns on at the END process of the scan where the BUFRCV instruction is completed and (D2)+0: turns off at the next END process.
  • Page 174 (6) Program example The following shows a sample program that reads the receive data from the fixed buffer of connection number 1 (when the I/O signals of the E71 are X/Y00 to X/Y1F). Process upon completion Process upon abnormal end...
  • Page 175: Z.bufrcvs

    CHAPTER 13 DEDICATED INSTRUCTIONS 13.9 Z.BUFRCVS This instruction reads data received from the connected device through communications using a fixed buffer (used in an interrupt program). Command Z.BUFRCVS (S1) (D1) Z.BUFRCVS Available device Link direct Setting Internal device Intelligent Index device Constant File...
  • Page 176 (3) Functions • This instruction reads the receive data (for fixed buffer communications) of the connection specified by (S1) for the module specified by Un. CPU module Fixed buffer data area (D1) No.1 Receive data length Receive data BUFRCVS No.n Receive data No.16 [Operation while the BUFRCVS instruction is being executed]...
  • Page 177: Zp.errclr

    CHAPTER 13 DEDICATED INSTRUCTIONS 13.10 ZP.ERRCLR This instruction turns off LEDs of the E71 or clears error information stored in the buffer memory. Command ZP.ERRCLR "Un" (S1) (D1) ZP.ERRCLR Available device Link direct Setting Internal device Intelligent Index device Constant File (system, user) data...
  • Page 178 (2) Control data Device Item Setting data Setting range Set by (S1)+0 System area Stores the status at completion. • 0000 : Normal completion (S1)+1 Completion status System • Values other than 0000 : Abnormal end (error code) Specify error information to be cleared. •...
  • Page 179 CHAPTER 13 DEDICATED INSTRUCTIONS • Completion of the ERRCLR instruction can be checked with Completion device (D1)+0 and (D1)+1. Item Description Completion device Turns on at the END process of the scan where the ERRCLR instruction is completed and (D1)+0: turns off at the next END process.
  • Page 180 (5) Program example The following shows a sample program that clears the open error code of the connection number 1 (when the I/O signals of the E71 are X/Y00 to X/Y1F). Specify the open abnormal code of connection 1. Specify the error code clear. Execute the ERRCLR instruction.
  • Page 181: Zp.errrd

    CHAPTER 13 DEDICATED INSTRUCTIONS 13.11 ZP.ERRRD This instruction reads error information stored in the buffer memory of the E71. Command ZP.ERRRD ZP.ERRRD "Un" (S1) (D1) Available device Link direct Setting Internal device Intelligent Index device Constant File (system, user) data function module register Others...
  • Page 182 (2) Control data Device Item Setting data Setting range Set by (S1)+0 System area Stores the status at completion. • 0000 : Normal completion (S1)+1 Completion status System • Values other than 0000 : Abnormal end (error code) Specify error information to be read. •...
  • Page 183 CHAPTER 13 DEDICATED INSTRUCTIONS [Operation while the ERRRD instruction is being executed] Program Scan Scan Scan process process process Executed ERRRD instruction Completion device Completion device + 1 Abnormally ended Reading the error information • The ZP.ERRRD instruction is executed on the rising edge (OFF ON) of the read command. (4) Errors If a dedicated instruction ends with an error, Completion device (D1)+1 turns on, and the error code is stored in Completion status (S1)+1.
  • Page 184: Zp.uini

    13.12 ZP.UINI This instruction changes the setting, such as the Ethernet operation setting, and re-initializes the E71. Command ZP.UINI ZP.UINI "Un" (S1) (D1) Available device Link direct Setting Internal device Intelligent Index device Constant File (system, user) data function module register Others J\...
  • Page 185 CHAPTER 13 DEDICATED INSTRUCTIONS (2) Control data Device Item Setting data Setting range Set by (S1)+0 System area Stores the status at completion. • 0000 : Normal completion Completion (S1)+1 System status • Values other than 0000 : Abnormal end (error code) Specify 0000 to update the address information on...
  • Page 186 Device Item Setting data Setting range Set by Specify the Ethernet operation setting. • Communication data code setting (b1) 0: Binary Code 1: ASCII Code • TCP existence confirmation setting (b4) 0: Use the Ping 1: Use the KeepAlive • Send frame setting (b5) Ethernet 0: Ethernet As listed in the...
  • Page 187 CHAPTER 13 DEDICATED INSTRUCTIONS (3) Functions • This instruction re-initializes the module specified by Un. • Completion of the UINI instruction can be checked with Completion device (D1)+0 and (D1)+1. Item Description Completion device Turns on at the END process of the scan where the UINI instruction is completed and turns (D1)+0: off at the next END process.
  • Page 188 (4) Errors If a dedicated instruction ends with an error, Completion device (D1)+1 turns on, and the error code is stored in Completion status (S1)+1. (5) Program example The following pages show sample programs that change the following setting items using the UINI instruction. •...
  • Page 189 CHAPTER 13 DEDICATED INSTRUCTIONS (a) Changing the Ethernet operation setting The following page provides a sample program that changes the Ethernet operation setting (enables writing during RUN) (when the I/O signals of the E71 are X/Y00 to X/Y1F). Specify the change in the operation setting.
  • Page 190 (b) Changing the transmission speed and communication mode The following shows a sample program that changes the transmission speed to 10Mbps and the communication mode to half-duplex (when the I/O signals of the E71 are X/Y00 to X/Y1F). Change the settings to 10Mbps and half-duplex.
  • Page 191: Chapter 14 Troubleshooting

    CHAPTER 14 TROUBLESHOOTING CHAPTER 14 TROUBLESHOOTING This chapter describes how to identify causes of problems that occur when an E71 is used and take corrective action. 14.1 Before Troubleshooting Check that the POWER LED of the power supply module and the MODE LED of the CPU module are on. If either or both are off, troubleshoot the CPU module.
  • Page 192: Checking With The Module Error Collection Function

    The "Module's Detailed Information" window is displayed. Clicking the button displays the error details and corrective action. If the error details cannot be obtained in the step above, perform the troubleshooting below. • Checking the LEDs ( Page 191, Section 14.4) •...
  • Page 193: Checking The Leds

    Reset the CPU module and check if the RUN LED turns on. If the RUN LED Is it a watchdog timer error? still does not turn on, the E71 may be faulty. Please consult your local Mitsubishi representative. Is the E71 connected properly? Power off the E71, and connect the module properly.
  • Page 194: If The Sd/Rd Led Does Not Flash When Data Is Sent

    14.4.3 If the SD/RD LED does not flash when data is sent The following table lists the items to be checked and the actions to be taken if the SD LED does not flash when data is sent. Check item Action Is the ERR.
  • Page 195: Checking With A Display Unit

    CHAPTER 14 TROUBLESHOOTING 14.5 Checking with a Display Unit With the buffer memory monitor/test of a display unit, a value in the buffer memory can be checked without a programming tool, and a problem can be troubleshot. For how to monitor buffer memory with a display unit, refer to the following. MELSEC-L CPU Module User's Manual (Function Explanation, Program Fundamentals)
  • Page 196: Troubleshooting By Symptom

    14.6 Troubleshooting by Symptom The following describes how to troubleshoot for each phenomenon. When an error occurs in the E71, identify the cause with the programming tool. ( Page 189, Section 14.2) 14.6.1 Communications cannot be performed with the connected device.
  • Page 197: The E71 Frequently Fails To Receive A Message Sent From The Connected Device

    CHAPTER 14 TROUBLESHOOTING 14.6.2 The E71 frequently fails to receive a message sent from the connected device. The following table lists how to troubleshoot the problem when the E71 frequently fails to receive a message sent from the connected device. Check item Action There may be a heavy load on the Ethernet line due to data sending and...
  • Page 198: Mc Protocol Communications Cannot Be Performed

    14.6.4 MC protocol communications cannot be performed. The following table lists how to troubleshoot the problem when the E71 cannot perform MC protocol communications. Check item Action • Open the connection with the connected device. Has the connection with the connected device been opened? •...
  • Page 199: Data Cannot Be Sent With Communications Using A Fixed Buffer

    CHAPTER 14 TROUBLESHOOTING 14.6.5 Data cannot be sent with communications using a fixed buffer. The following table lists how to troubleshoot the problem when an E71 cannot send data with communications using a fixed buffer. Check item Action • Open the connection with the connected device. •...
  • Page 200: Data Cannot Be Received With Communications Using A Fixed Buffer

    14.6.6 Data cannot be received with communications using a fixed buffer. The following table lists how to troubleshoot the problem when an E71 cannot receive data with communications using a fixed buffer. Check item Action If the amount of the actually received data is smaller than the receive data Does the receive data length match with the amount of data length, receive the remaining data.
  • Page 201: Communications Using A Random Access Buffer Cannot Be Performed

    CHAPTER 14 TROUBLESHOOTING 14.6.7 Communications using a random access buffer cannot be performed. The following table lists how to troubleshoot the problem when an E71 cannot perform communications using a random access buffer. Check item Action • Open the connection with the connected device. Has the connection with the connected device been opened? •...
  • Page 202: An E-Mail Cannot Be Sent

    14.6.8 An e-mail cannot be sent. The following table lists how to troubleshoot the problem when an E71 cannot send an e-mail. (1) When sending an e-mail with a program Check item Action Was the MSEND instruction executed? Correct the execution conditions of the MSEND instruction. Check the error code in the MSEND instruction completion status area and Was the MSEND instruction completed normally? the e-mail sending error log to correct the error.
  • Page 203: An E-Mail Cannot Be Received

    CHAPTER 14 TROUBLESHOOTING 14.6.9 An e-mail cannot be received. The following table lists how to troubleshoot the problem when an E71 cannot receive an e-mail. Check item Action Was the MRECV instruction executed? Correct the execution conditions of the MSEND instruction. Check the error code in the MRECV instruction completion status area and Was the MRECV instruction completed normally? correct the error.
  • Page 204: Communications Using Data Link Instructions Cannot Be Performed

    14.6.10 Communications using data link instructions cannot be performed. The following table lists how to troubleshoot the problem when an E71 cannot perform communications using data link instructions. Check item Action Is the communication status of the connected device Correct the error of the connected device. normal? Is the number of resends set upon every instruction Modify the program to set the number of resends upon every instruction...
  • Page 205: Error Code List

    CHAPTER 14 TROUBLESHOOTING 14.7 Error Code List This section describes the error codes (abnormal codes) of the errors that may occur in each process for performing communications between the E71 and a connected device as well as errors caused by process requests issued from the CPU module of the own station, the error details, and the actions to be taken.
  • Page 206 (1) Initial error code (address: 69 The error codes generated when the initial process is executed are stored. Error codes are stored in binary when Initial abnormal completion signal (X1A) is on. The error codes are cleared when Initial normal completion signal (X19) turns on, but can be also cleared by the following processes: •...
  • Page 207 CHAPTER 14 TROUBLESHOOTING (5) Error log area (address: E0 to 1FF The following table lists the details of the error log area. The buffer memory addresses of the error log block are those of the error log block 1. For the addresses of the error log block 2 and later, refer to the list of buffer memory addresses.
  • Page 208 (6) HTTP status storage area (address: 5101 to 5177 The following table lists the HTTP status storage areas. The buffer memory addresses of the error log block are those of the error log block 1. For the addresses of the error log block 2 and later, refer to the list of buffer memory addresses.
  • Page 209 CHAPTER 14 TROUBLESHOOTING (7) E-mail status storage area (address: 5870 to 5FFF When the stored count exceeds FFFF , the count starts from 0 again. The following table lists the details of the e-mail status storage area. The buffer memory addresses of the error log block are those of the error log block 1. For the addresses of the error log block 2 and later, refer to the list of buffer memory addresses.
  • Page 210 Buffer memory name Address Description 5879 Error code An error code indicating the error details is stored. 587A Command code The system command code of the error message is stored. The first eight words of the sender's e-mail address of the error e-mail in the communications with the mail server are stored in the ASCII code.
  • Page 211 CHAPTER 14 TROUBLESHOOTING (b) Send area Buffer memory name Address Description The cumulative number of normal completions of the dedicated instruction (MSEND) is stored. Dedicated instruction normal 5B39 • 0: The MSEND instruction has not been executed or no executions have resulted in completion count normal completion.
  • Page 212: End Codes Returned To A Connected Device During Data Communications

    14.7.1 End codes returned to a connected device during data communications The following table lists the error codes stored in the end code appended to a response during data communications. : Stored in the end code appended to a response Data communication type Error Communications...
  • Page 213 CHAPTER 14 TROUBLESHOOTING Data communication type Error Communications Communications Error description Action MC protocol code using a fixed using a random communications buffer access buffer • The number of points for a command specified by a connected device exceeds the maximum number of processing points (number of processes that can be executed per communication) for each •...
  • Page 214 Data communication type Error Communications Communications Error description Action MC protocol code using a fixed using a random communications buffer access buffer • After unlocking the remote password using the MC protocol, perform communications using a • In communications using a fixed buffer, fixed buffer.
  • Page 215: Abnormal Codes Returned During Communications Using An A-Compatible 1E Frame

    Intelligent function module, intelligent function module, or the E71. • The control bus to the intelligent function module bus error Please consult your local Mitsubishi module is faulty. representative. • The intelligent function module is in failure.
  • Page 216: Error Codes Stored In The Buffer Memory

    14.7.3 Error codes stored in the buffer memory The following table lists the error codes stored in each buffer memory area when an error occurs. For the buffer memory areas where these error codes are stored, refer to the descriptions of the corresponding buffer memory area. Page 33, Section 3.5.2) Error Error description...
  • Page 217 CHAPTER 14 TROUBLESHOOTING Error Error description Action code Some of the various timer setting values for the initial C002 • Check and correct each timer setting value for the initial process. process are outside the allowable range. The setting value of the auto-open UDP port number for C003 •...
  • Page 218 Error Error description Action code An abnormal end response was received for • Read the response end code from the connection end code or C021 communications using a fixed buffer. error log area and perform the required action. • A response could not be received within the response •...
  • Page 219 CHAPTER 14 TROUBLESHOOTING Error Error description Action code • Correct the checksum value sent from the connected device and send the correct value. There is an error in the checksum of the receive data C041 • Check the situation of the line, such as noise, the distance when TCP is used.
  • Page 220 Error Error description Action code When "ASCII Code" has been selected in the • Select "Binary Code" in the Ethernet operation setting. Then communication data code setting in the Ethernet restart the Ethernet module to perform communications again. C050 operation setting, ASCII code data which cannot be •...
  • Page 221 CHAPTER 14 TROUBLESHOOTING Error Error description Action code • Read/write data without the device memory set for extension. The device memory cannot be extended for the target • Device memory can be extended only in an Ethernet module- C070 station. connected station and a Q/QnACPU via CC-Link IE Controller Network, MELSECNET/H, or MELSECNET/10.
  • Page 222 (4) Check if the hardware is normal according to the manual for each module. If the actions above do not solve the problem, please consult your local Mitsubishi representative. • Open the communication line. C0BC The specified communication line is closed.
  • Page 223 (4) Check if the hardware is normal according to the manual for each module. If the actions above do not solve the problem, please consult your local Mitsubishi representative. The open process of the UDP connection has not been • Perform the open process.
  • Page 224 (4) Check if the hardware is normal according to the manual for each module. If the actions above do not solve the problem, please consult your local Mitsubishi representative. • Follow the procedure below. (1) Check if the Ethernet module, the power supply module, and the CPU module are properly connected.
  • Page 225 (4) Check if the hardware is normal according to the manual for each module. If the actions above do not solve the problem, please consult your local Mitsubishi representative. • Follow the procedure below. (1) Check if the Ethernet module, the power supply module, and the CPU module are properly connected.
  • Page 226 (4) Check if the hardware is normal according to the manual for each module. If the actions above do not solve the problem, please consult your local Mitsubishi representative. • Check that the programmable controller CPU and each intelligent function module are properly connected.
  • Page 227 CHAPTER 14 TROUBLESHOOTING Error Error description Action code • Check that the programmable controller CPU and each intelligent function module are properly connected. • Check that the programmable controller CPU is not in the reset An error was detected in the programmable controller status.
  • Page 228 C0F0 Ethernet module may have a hardware error. Please consult your hardware test (H/W test). local Mitsubishi representative. • Perform the hardware test again. If an error occurs again, the An Ethernet module ROM error was detected in the C0F1 Ethernet module may have a hardware error.
  • Page 229 (4) Check if the hardware is normal according to the manual for each module. If the actions above do not solve the problem, please consult your local Mitsubishi representative. • Follow the procedure below. (1) Check if the Ethernet module, the power supply module, and the CPU module are properly connected.
  • Page 230 (4) Check if the hardware is normal according to the manual for each module. • If the actions above do not solve the problem, please consult your local Mitsubishi representative. • Follow the procedure below. (1) Check if the Ethernet module, the power supply module, and the CPU module are properly connected.
  • Page 231 (4) Check if the hardware is normal according to the manual for each module. If the actions above do not solve the problem, please consult your local Mitsubishi representative. • Check the cables and hubs. C111 A response could not be received from the DNS client.
  • Page 232 (4) Check if the hardware is normal according to the manual for each module. If the actions above do not solve the problem, please consult your local Mitsubishi representative. • Follow the procedure below. (1) Check if the Ethernet module, the power supply module, and the CPU module are properly connected.
  • Page 233 (4) Check if the hardware is normal according to the manual for each module. If the actions above do not solve the problem, please consult your local Mitsubishi representative. • Follow the procedure below. (1) Check if the Ethernet module, the power supply module, and the CPU module are properly connected.
  • Page 234 (4) Check if the hardware is normal according to the manual for each module. If the actions above do not solve the problem, please consult your local Mitsubishi representative. The SMTP server is in process, and an error response C13A was received.
  • Page 235 (4) Check if the hardware is normal according to the manual for each module. If the actions above do not solve the problem, please consult your local Mitsubishi representative. • Follow the procedure below. (1) Check if the Ethernet module, the power supply module, and the CPU module are properly connected.
  • Page 236 Error Error description Action code • Check if the IP address of the DNS server is correct. • Check if the mail server names (SMTP server names and POP C176 An error was returned from the DNS server. server names) are correct. •...
  • Page 237 C1A0 An illegal request was made. If the same error occurs, the Ethernet module may have a hardware error. Please consult your local Mitsubishi representative. C1A2 A response to the request could not be received. • Check and correct the response waiting time.
  • Page 238 (4) Check if the hardware is normal according to the manual for each module. If the actions above do not solve the problem, please consult your local Mitsubishi representative. • Request the lock process of the remote password from the The device is different from the one requesting the...
  • Page 239: Ethernet Diagnostics

    CHAPTER 14 TROUBLESHOOTING 14.8 Ethernet Diagnostics Items such as the module status, parameter settings, communication status, and error history of an E71 can be checked. Perform the diagnostics in the "Ethernet Diagnostics" window of the programming tool. [Diagnostics] [Ethernet Diagnostics...] Item Description Specify the E71 to be monitored.
  • Page 240: Checking The Status Of The E71 With The System Monitor

    14.9 Checking the Status of the E71 with the System Monitor Open the system monitor window of a programming tool to check the LED status, connection status, and operating status of the E71. Open the "System Monitor" window. [Diagnostics] [System Monitor] Select the module to diagnose in the "Main Block"...
  • Page 241 CHAPTER 14 TROUBLESHOOTING Item Description Display Format Switches the input format of "H/W LED Information" and "H/W SW Information". INIT. Indicates the statuses of the LEDs on the E71. OPEN 0000: Off ERR. 0001: On H/W LED COM. ERR. Information Indicates the connection statuses of the connection numbers 1 to 16.
  • Page 242: How To Turn Off The Com.err. Led

    14.10 How to Turn Off the COM.ERR. LED The COM.ERR. LED turns on when an error occurs during communications with the connected device. The COM.ERR. LED does not turn off even after the error cause is removed. Turn it off using the following methods. (1) Using an I/O signal Turn off the COM.ERR.
  • Page 243: Appendices

    APPENDICES APPENDICES Appendix 1 Processing Time Calculate the minimum processing time for each function using the expressions below. Note that the processing time may become longer depending on the load factor on the network (how congested the line is), the window size of each connected device, the number of connections, and system configuration.
  • Page 244 (2) Minimum processing time of communications using a random access buffer Trs = Kr + (Kdr × Df) + ACK processing time of a connected device (added only for TCP/IP communications) • Trs The time between the E71 receiving request data from a personal computer and it completing the process (unit: ms) •...
  • Page 245 APPENDICES (3) Minimum processing time of MC protocol communications (batch reading and batch writing) Tfs = Ke + (Kdt × Df) + Scr × number of scans required for the process + ACK processing time of the connected device The time between the E71 receiving request data from a personal computer and it •...
  • Page 246 (4) Processing time of the dedicated instructions The following table lists approximate operation processing time of each dedicated instruction. The operation processing time differs depending on the system configuration and the scan time on the sending/receiving stations. Processing time (unit: ms) Number of access points Instruction Instruction execution condition...
  • Page 247: Appendix 2 Port Numbers Used For The E71

    APPENDICES Appendix 2 Port Numbers Used for the E71 The following table lists port numbers reserved for an E71 system. Port number Application 1388 (5000) Auto-open UDP port (Default value) 1389 (5001) MELSOFT application transmission port (UDP) 138A (5002) MELSOFT application transmission port (TCP) The port number can be changed.
  • Page 248: Appendix 3 Initial Process

    The initial process is for enabling data communications with connected devices by setting the minimum number of parameters for the E71. In the MELSEC-L series, the initial process is performed automatically. (1) Checking the initial process result The results of the initial process can be checked using the LEDs and I/O signals.
  • Page 249 APPENDICES Item Description Setting range TCP ULP Timer Set Time to Live during packet sending in TCP/IP. 2 to 32767 Set the receive buffer value on the recipient. If the receive buffer on the recipient has no free space (window size = 0), data sending is waited until the recipient has free receive buffer space.
  • Page 250 When connecting Mitsubishi products to the line, configure the same settings for both modules. • Specify the setting value of each timer on the connected device side so that the following formula is met. The frequency of a communication error, such as a transmission timeout, may be higher if the timer values do not meet the formula.
  • Page 251 APPENDICES • When a communication failure occurs due to a problem such as noise, change the value so that the number of retries may increase. The number of retries is obtained using the following formula. (When using the default values, 2 = (60  20) - 1) TCP ULP timer value Number of retries...
  • Page 252: Appendix 3.2 Reinitialization Process

    Appendix 3.2 Reinitialization process The reinitialization process sets the E71 to the status after startup without restarting the programmable controller (or resetting the CPU module). Perform the reinitialization process using a program. (1) The purpose of a reinitialization process The purpose of a reinitialization process is described. (a) To update address information of a connected device held by the E71 To prevent other devices from illegally accessing the programmable controller using the IP address of the connected device with which communications are normally performed, the E71 holds the IP address of the...
  • Page 253 APPENDICES (2) Program for the reinitialization process Perform the reinitialization process using a program. The following shows the process timing and sample programs. (a) Process timing Close process Program Scan Scan Scan Scan Scan process process process process Initial normal completion signal (X19) Open completion signal (address: 5000...
  • Page 254 (c) Using the dedicated instruction (UINI instruction) The following shows an example where the reinitialization process is performed using the UINI instruction and the OPEN instruction is executed after the process is completed. (When the I/O signals of the E71 are X/Y00 to X/Y1F) Process upon completion Process upon abnormal end...
  • Page 255 APPENDICES Process upon completion Process upon abnormal end Process upon completion Communications enabled Process upon abnormal end...
  • Page 256 (d) Writing directly to the buffer memory The following shows an example where the stored values in the TCP Maximum Segment Transmission setting area and Communication condition setting (Ethernet Operation Setting) area is changed (when the I/O signals of the E71 are X/Y00 to X/Y1F). Create a program with a contact (such as a flag for user) indicating the status of the open completion signal storage area.
  • Page 257 APPENDICES Remark This is a sample program for communications using connection numbers 1 and 2. When using another connection number, specify the corresponding signals and bits. (3) Precautions (a) Buffer memory area settings The following parameters operate according to the settings of the corresponding buffer memory areas configured when a reinitialization process is performed.
  • Page 258: Appendix 4 Line Status Check

    Appendix 4 Line Status Check The E71 line status, parameter settings, and progress of the initial process can be checked. The following two methods can be used to check the line status. • PING test • Loopback test Appendix 4.1 PING test This section describes the PING test.
  • Page 259 APPENDICES (b) Operating procedure Use the following procedure. Click the button in the "Ethernet Diagnostics" window. [Diagnostics] [Ethernet Diagnostics] "Target Module Setting" under "Module No." Configure the settings and click the button. Click the button.
  • Page 260 The test results are displayed. (c) Action for abnormal end If the test fails, check the following and perform the test again. • Whether the E71 is properly connected • Connection to the Ethernet network • Parameter settings written in the CPU module •...
  • Page 261 APPENDICES (a) Applications By specifying the execution station and the target station, the PING test can be executed from a remote device. (b) Operating procedure Use the following procedure. Click the button in the "Ethernet Diagnostics" window. [Diagnostics] [Ethernet Diagnostics] "Target Module Setting"...
  • Page 262 The test results are displayed. (c) Action for abnormal end If the test fails, take the same action as that for the method using direct connection to the E71. ( Page 256, Appendix 4.1 (1)) (3) Performing a test with the PING command The PING test can be also executed using the PING command.
  • Page 263: Loopback Test

    APPENDICES Appendix 4.2 Loopback test This section describes the loopback test. (1) Performing a test using a programming tool This test is to check whether the initial process for each module has been completed. The test is executed on the network of stations connected to the programming tool, and loopback test messages are sent sequentially to each E71 on the network and in the station number range specified for the loopback test request designation.
  • Page 264 (b) Operating procedure Use the following procedure. Click the button in the "Ethernet Diagnostics" window. [Diagnostics] [Ethernet Diagnostics] "Target Module Setting" under "Module No." Configure the settings and click the button to display the test results. If the same IP address or station number is assigned to multiple stations, only the results of the station that responds first are displayed.
  • Page 265 APPENDICES (c) Action for abnormal end If the loopback test fails, "No response" or an error code is displayed. Displayed test Status of the Cause Action result target E71 Initial processing normal completion IP address Normal completion status (INIT. LED turns on.) Correct the following parameter settings.
  • Page 266 (2) Performing a test using the MC protocol The loopback test can be also executed using MC protocol communications. Note, however, that only the E71 in the own station can be used. The test cannot be executed on E71 modules in other stations over the network. For details, refer to the following.
  • Page 267: Appendix 5 Self-Diagnostic Tests

    APPENDICES Appendix 5 Self-Diagnostic Tests This section describes the self-diagnostic tests to check data communications and hardware of an E71. Appendix 5.1 Self-loopback test Hardware including the E71 communication circuit is checked. Send the test message destined to the own station of the E71 to the line.
  • Page 268: Appendix 5.2 Hardware Test (H/W Test)

    Error log area (address: E5 ) in the buffer memory. • E71 RAM/ROM error If the test fails, perform it again. If it fails again, there may be a hardware problem with the E71. Please consult your local Mitsubishi representative.
  • Page 269: Appendix 6 Differences From Ethernet Modules Of Other Series

    APPENDICES Appendix 6 Differences from Ethernet Modules of Other Series This section describes the differences between an E71 and Ethernet modules of other series. Appendix 6.1 Differences from a built-in Ethernet port LCPU For comparison of the specifications and functions between an LJ71E71-100 and a Built-in Ethernet port LCPU, refer to the following.
  • Page 270 (1) Functional comparison The following table lists the functional comparison. : Supported, ×: Not supported QE71(N) AJ71E71-S3, Function AJ71E71 AJ71E71N 9706 or earlier 9706B or later Initial process with the program Initial process Initial process with parameter settings × × ×...
  • Page 271 APPENDICES The response performance of the E71 to connected devices is faster than that of the A/QnA series modules. When the E71 is used, the compatibility with the A/QnA series modules cannot be precisely maintained. If there is a problem due to the performance of the connected device, create a timing similar to that of the existing system using the CPU module constant scan setting.
  • Page 272 (b) QE71(N) Program of connected devices Programs of the connected devices for a QE71(N) can be used for communications with the E71 except for the following programs. • Program for file operation-related commands • Program to access the data link system (A QCPU (Q Mode) cannot be connected to MELSECNET (II).) However, because the response speed of an E71 is different from that of a QE71(N), the program may not be used as is.
  • Page 273: Appendix 7 Sample Program On The Connected Device Side

    APPENDICES Appendix 7 Sample Program on the Connected Device Side The following shows a sample program for the connected device on the same Ethernet network as the E71. Each program example describes only the minimum programming that is required to perform a communication test. Change the IP address, port number and other values according to the system configuration used.
  • Page 274 (2) When the receive process of the connected device is not supported When the receive process of the connected device is not the one shown in (1), the following may occur when "Enable TCP Maximum Segment Size Option transmission" is set for communications. •...
  • Page 275 APPENDICES Appendix 7.1 ® When Visual C++ .NET is used This section describes the program execution environment, data communication details, and a sample program for ® when Visual C++ .NET is used on the program of a connected device. (1) Execution environment of the program example (a) CPU module side Item Description...
  • Page 276 (3) Programming tool setting Set the parameters using the programming tool as shown below. (a) Ethernet operation setting (b) Open setting...
  • Page 277 APPENDICES (4) Sample program on the connected device side The program example of the connected device accessing the L02CPU in the E71-connected station is described. When this program is executed, the contents of the following communication messages are displayed in order: •...
  • Page 278 This program is a sample program to conduct a connection test between the E71 and target device. This program accesses the data register (D) of the PLC CPU installed together with the E71 Copyright(C) 2005 Mitsubishi Electric Corporation All Rights Reserved /**************************************************************************/ #include <stdio.h>...
  • Page 279 APPENDICES int nErrorStatus; // Error information storage variable int Dmykeyin; // Dummy key input int Closeflag; // Connection completion flag int socketno; int main() WORD wVersionRequested=MAKEWORD(1,1); // Winsock Ver 1.1 request WSADATA wsaData; int length; // Communication data length unsigned char s_buf[BUF_SIZE]; // Send buffer unsigned char r_buf[BUF_SIZE];...
  • Page 280 hostdata.sin_family=AF_INET; hostdata.sin_port=sc.my_port; hostdata.sin_addr.s_addr=sc.my_addr.s_addr; if(bind(socketno,(LPSOCKADDR)&hostdata,sizeof(hostdata))!=SOCK_OK){ // Bind Sockerror(ERROR_BIND); // Error handling return(SOCK_NG); aj71e71.sin_family=AF_INET; aj71e71.sin_port=sc.aj_port; aj71e71.sin_addr.s_addr=sc.aj_addr.s_addr; if(connect(socketno,(LPSOCKADDR)&aj71e71,sizeof(aj71e71))!=SOCK_OK){ // Connection (Active open) Sockerror(ERROR_CONNECT); // Error handling return(SOCK_NG); Closeflag=FLAG_ON; // Connection completion flag ON // Set to non-blocking mode ulCmdArg = 1; ioctlsocket(socketno, FIONBIO, &ulCmdArg); // Set to non-blocking mode strcpy((char *)(s_buf), "03FF000A4420000000000500112233445566778899AA");...
  • Page 281 APPENDICES // Perform receiving size check and receiving processing simultaneously rbuf_idx = 0; // Receive data storage head index initialization recv_size = 0; // Initialize the number of receive data while(1) { length = recv(socketno, (char*) (&r_buf[rbuf_idx]), (BUF_SIZE - rbuf_idx), 0); // Response data receiving if(length == 0) { // Is connection cut off? Sockerror(ERROR_RECEIVE);...
  • Page 282 // Perform receiving size check and receiving processing simultaneously rbuf_idx = 0; // Receive data storage head index // initialization recv_size = 0; // Initialize the number of receive data while(1) { length = recv(socketno, (char*)(&r_buf[rbuf_idx]), (BUF_SIZE - rbuf_idx), 0); // Response data receiving if(length == 0) { // Is connection cut off?
  • Page 283 APPENDICES printf("\nAJ_test End.\n\n Normally completed. \n"); printf("Press any key to exit the program.\n"); Dmykeyin=getchar(); // Wait for key input return(SOCK_OK); void Sockerror(int error_kind) // Error handling function if(error_kind==ERROR_INITIAL){ printf("Initial processing is abnormal."); else{ nErrorStatus=WSAGetLastError(); switch(error_kind){ case ERROR_SOCKET: printf("Failed to create socket."); break;...
  • Page 284: Appendix 7.2

    Appendix 7.2 ® When Visual Basic .NET is used This section describes the program execution environment, data communication details, and a sample program ® for when Visual Basic .NET is used on the program of the connected device. (1) Execution environment of the program example (a) CPU module side Item Description...
  • Page 285 APPENDICES (3) Programming tool setting Set the parameters using the programming tool as shown below. (a) Ethernet operation setting (b) Open setting...
  • Page 286 (4) Sample program on the connected device side The program example of the connected device accessing the L02CPU in the E71-connected station is described. In this program, data of D0 to D4 (five points) in the L02CPU in the E71-connected station are read with an A- compatible 1E frame command (01: Batch read in word units).
  • Page 287 APPENDICES [Sample program (Form 1.vb)] Option Strict Off Option Explicit ON Imports System Imports System.Text Imports System.Net Friend Class Form1 Inherits System. Windows. Forms. Form #Region "Windows Form Designer generated code" Public Sub New() MyBase.New() If m_vb6FormDefInstance Is Nothing Then If m_InitializingDefInstance Then m_vb6FormDefInstance = Me Else...
  • Page 288 'Form overrides dispose to clean up the component list. Protected Overloads Overrides Sub Dispose(ByVal Disposing As Boolean) If Disposing Then If Not components Is Nothing Then components.Dispose() End If End If MyBase.Dispose(Disposing) End Sub ‘Required by the Windows Form Designer. Private components As System.ComponentModel.IContainer Public WithEvents Command5 As System.Windows.Forms.Button Public WithEvents Command4 As System.Windows.Forms.Button...
  • Page 289 APPENDICES Me.Command4.BackColor = System.Drawing.SystemColors.Control Me.Command4.Cursor = System.Windows.Forms.Cursors.Default Me.Command4.ForeColor = System.Drawing.SystemColors.ControlText Me.Command4.Location = New System.Drawing.Point(144, 152) Me.Command4.Name = "Command4" Me.Command4.RightToLeft = System.Windows.Forms.RightToLeft.No Me.Command4.Size = New System.Drawing.Size(73, 32) Me.Command4.TabIndex = 3 Me.Command4.Text = "Close" 'Command3 Me.Command3.BackColor = System.Drawing.SystemColors.Control Me.Command3.Cursor = System.Windows.Forms.Cursors.Default Me.Command3.ForeColor = System.Drawing.SystemColors.ControlText Me.Command3.Location = New System.Drawing.Point(64, 96) Me.Command3.Name = "Command3"...
  • Page 290 'Form1 Me.AutoScaleBaseSize = New System.Drawing.Size(5, 12) Me.BackColor = System.Drawing.SystemColors.Control Me.ClientSize = New System.Drawing.Size(280, 214) Me.Controls.Add(Me.Command5) Me.Controls.Add(Me.Command4) Me.Controls.Add(Me.Command3) Me.Controls.Add(Me.Command2) Me.Controls.Add(Me.Command1) Me.Cursor = System.Windows.Forms.Cursors.Default Me.Location = New System.Drawing.Point(329, 189) Me.Name = "Form1" Me.RightToLeft = System.Windows.Forms.RightToLeft.No Me.StartPosition = System.Windows.Forms.FormStartPosition.Manual Me.Text = "Form1" Me.ResumeLayout(False) End Sub #End Region #Region "Upgrade Wizard support code"...
  • Page 291 APPENDICES Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click 'Connect to the Ethernet interface module. Dim sock As New Sockets.Socket(Sockets.AddressFamily.InterNetwork, _ Sockets.SocketType.Stream, Sockets.ProtocolType.Tcp) Ajsock = sock Dim ip As IPAddress = Dns.Resolve("192.0.1.253").AddressList(0) Dim ipend As IPEndPoint = New IPEndPoint(ip, "8192") Me.Ajsock.Connect(ipend) MsgBox("Connection Completed") State = Me.Ajsock.Connected()
  • Page 292 Private Sub Command3_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command3.Click 'Close the TCP (UDP) connection socket (disconnect the line). Me.Ajsock.Shutdown(Net.Sockets.SocketShutdown.Both) Me.Ajsock.Close() MsgBox("The disconnection was successful", MsgBoxStyle.Information) State = Me.Ajsock.Connected() End Sub Private Sub Command4_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command4.Click 'End the program.
  • Page 293: Appendix 8 Checking The Serial Number, Function Version, And Mac Address

    APPENDICES Appendix 8 Checking the Serial Number, Function Version, and MAC address (1) Checking the serial number and function version The serial number and function version can be checked on the rating plate or with the system monitor. Refer to the following. MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection) (2) Checking the MAC address The MAC address can be checked on the rating plate or with the Ethernet diagnostics.
  • Page 294: Appendix 9 External Dimension Diagram

    Appendix 9 External Dimension Diagram This appendix provides the external dimension diagrams of an E71. DIN rail center 28.5 (Unit: mm)
  • Page 295: Appendix 10 Ascii Code List

    APPENDICES Appendix 10 ASCII Code List The following is the ASCII code table. Higher 4 bits Hexadecimal 8–F Binary 0000 0001 0010 0111 0100 0101 0110 0111 1000–1111 0000 (SP) 0001 0010 " 0011 0100 0101 0110 & 0111 Lower ‘...
  • Page 296: Index

    INDEX 0 to 9 ....57 ......29 100BASE-TX connection E-mail function .
  • Page 297 ..... . . 137 Router information ......139 Router IP address .
  • Page 298: Revisions

    Japanese Manual Version SH-081104-A This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.
  • Page 299: Warranty

    6. Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi. 7. Any other failure found not to be the responsibility of Mitsubishi or that admitted not to be so by the user. 2. Onerous repair term after discontinuation of production (1) Mitsubishi shall accept onerous product repairs for seven (7) years after production of the product is discontinued.
  • Page 300 Microsoft, Windows, Windows NT, and Windows Vista are registered trademarks of Microsoft Corporation in the United States and other countries. Pentium is a trademark of Intel Corporation in the United States and other countries. Ethernet is a trademark of Xerox Corporation. All other company names and product names used in this manual are trademarks or registered trademarks of their respective companies.
  • Page 302 Phone: +380 (0)44 / 494 33 55 Fax: +370 (0)5 / 232 2980 Fax: +380 (0)44 / 494-33-66 Mitsubishi Electric Europe B.V. /// FA - European Business Group /// Gothaer Straße 8 /// D-40880 Ratingen /// Germany Tel.: +49(0)2102-4860 /// Fax: +49(0)2102-4861120 /// info@mitsubishi-automation.com /// www.mitsubishi-automation.com...

This manual is also suitable for:

Melsec-lj71e71-100

Table of Contents