Mitsubishi MELSEC-F, FX3U-ENET, FX3UC-ENET User Manual

USER’S MANUAL
FX3U-ENET
A - 1 A - 1
SAFETY PRECAUTIONS
(Read these precautions before use.)
Before installation, operation, maintenance or inspection of this product, thoroughly read through and
understand this manual and all of the associated manuals. Also, take care to handle the module properly
and safely.
This manual classifies the safety precautions into two categories: “DANGER” and “CAUTION.”
!
DANGER
CAUTION
!
Indicates that incorrect handling may cause hazardous conditions, resulting in death or severe injury.
Indicates that incorrect handling may cause hazardous conditions, resulting in medium or slight personal injury or physical damage.
Depending on the circumstances, procedures indicated by CAUTION may also cause severe injury. It is important to follow all precautions for personal safety. Store this manual in a safe place so that it can be taken out and read whenever necessary. Always forward it to the end user.
[Design Precautions]
!
DANGER
To prevent malfunctions of the PLC system that may be caused by illegal e-mail, take proper countermeasures (such as virus detection) so that illegal e-mail is not received by the mail server of this module.
If it is necessary to ensure the security of the PLC system against unauthorized access from external devices via the Internet, appropriate measures must be incorporated by the user.
When controlling the PLC (modifying data) while it is in operation by connecting computer peripheral devices to the main unit or connecting personal computers to the extension device, make sure to have an interlock circuit outside of the PLC to ensure safe system operation.
A - 2 A - 2
[Design Precautions]
!
DANGER
Do not write any data in the "system area" of the buffer memory of the extension device. When writing a value to the buffer memory including "System Area," pay close attention not to change the system bit. If data is written to the "system area" or the "use prohibited" signal is output, there is a risk that the PLC system may malfunction.
When the program examples introduced in this manual are applied to the actual system, examine the safety of the control in the target system.
!
CAUTION
When the status control (remote RUN/STOP) of the PLC is performed from the external device, select the "Always wait for OPEN" parameter set by an user in advance. (Select with the initial timing setting (BFM#24 b8) in the operational setting.) When "Do not wait for OPEN" is selected, the communication line at remote STOP is closed. The communication line cannot be reopened on the PLC side after that, and the remote RUN from the external device cannot start.
[Installation Precautions]
!
CAUTION
Use the product within the generic environment specifications described in chapter 3 of this manual. Never use the product in areas with excessive dust, oily smoke, conductive dusts, corrosive gas (salt air, Cl
2, H2S, SO2 or NO2), flammable gas, vibration or impacts, or exposed to high
temperature, condensation, or rain and wind. If the product is used in such conditions, electric shock, fire, malfunctions, deterioration or damage may occur.
When drilling screw holes or wiring, make sure cutting or wire debris does not enter the ventilation slits. Failure to do so may cause fire, equipment failures or malfunctions.
Be sure to remove the dust proof sheet from the PLC's ventilation port when installation work is completed. Failure to do so may cause fire, equipment failures or malfunctions.
Connect the extension cables securely to their designated connectors. Unsecured connection may cause malfunctions.
A - 3 A - 3
[Wiring Instructions]
!
DANGER
Before mounting or wiring the module, make sure to shut off all of the external power supply. Failure to do so may cause electric shocks or damage the module.
When turning on the power and operating after mounting or wiring the module, make sure to install the accessory terminal covers to the product. Otherwise, it may cause electric shocks.
!
CAUTION
Make sure to place the communication cables and the power cables in a duct or fasten them using a clamp. If the cables are not placed in a duct or fastened with a clamp, their positions can be unstable, moved and pulled inadvertently. This may damage the module and the cables, or cause the module malfunction due to unsecured cable connections.
When disconnecting the communication cables and the power cables, do not pull the cables. When disconnecting a cable with a connector, hold the connector to the module by hand and pull it out to remove the cable. When disconnecting a cable connected to a terminal block, loosen the screws on the terminal block before removing the cable. If a cable is pulled while being connected, it may cause the module malfunction or damage the module and the cable.
Do not bundle the control line and the communication cables together with or lay it close to the main circuit or power line. As a guideline, lay the control line and the communication cables at least 100mm (3.94") or more away from the main circuit or power line. Noise may cause malfunctions.
Before connecting twisted pair cables, the ground pin brush grounded via a resistor enables discharging static electricity on the cables effectively. This can prevent the electrostatic discharge to the product.
A - 4 A - 4
[Setup and Maintenance Precautions]
!
DANGER
Do not touch any terminal while the PLC’s power is on. Doing so may cause electric shock or malfunctions.
Before cleaning or retightening terminal screws and module mounting screws, externally cut off all phases of the power supply. Failure to do so may cause electric shock, fire, malfunctions and product damage.
Before modifying or disrupting the program, forcible output, RUN and STOP while they are in operation, carefully read through this manual and the associated manuals and ensure the safety of the operation. An operation error may damage the machinery or cause accidents.
!
CAUTION
Do not disassemble or modify the PLC. Doing so may cause fire, equipment failures, or malfunctions. For repair, contact your local Mitsubishi Electric distributor.
Cut off all phases of the power supply externally before installation or wiring work in order to avoid damage to the product or electric shock.
[Precautions When Disposing of This Product]
!
CAUTION
Dispose of this product as an industrial waste.
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. Other company and product names herein are either trademarks or registered trademarks of their respective owners.
A - 5 A - 5
CONTENTS
SAFETY PRECAUTIONS..............................................................................................................................A- 1
CONTENTS....................................................................................................................................................A- 5
About Manuals ...............................................................................................................................................A- 9
Associated Manuals .......................................................................................................................................A- 9
Applicable Standard .......................................................................................................................................A-10
The Manual's Usage and Structure ...............................................................................................................A-11
About the Generic Terms and Abbreviations ................................................................................................A-14
1 OVERVIEW 1- 1 to 1- 9
1.1 Overview of the Ethernet Module ........................................................................................................... 1- 1
1.2 Features of the Ethernet Module ............................................................................................................ 1- 3
1.3 Software Configuration ........................................................................................................................... 1- 7
2 SYSTEM CONFIGURATIONS 2- 1 to 2- 3
2.1 Applicable Systems................................................................................................................................. 2- 1
2.2 Devices Required for Network Configuration......................................................................................... 2- 2
3 SPECIFICATIONS 3- 1 to 3-28
3.1 Performance Specifications .................................................................................................................... 3- 1
3.2 Data Codes for Communication .............................................................................................................3- 3
3.3 Relationship between the External Devices and Additional Functions for Each Communication
Function................................................................................................................................................... 3- 5
3.4 Ethernet Module Function List................................................................................................................ 3- 6
3.5 List of Setting Items for Ethernet Modules .............................................................................................3- 7
3.6 List of Applications and Assignments of the Buffer Memory ................................................................. 3- 8
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION 4- 1 to 4-18
4.1 Loading and Installation .......................................................................................................................... 4- 1
4.1.1 Handling precautions ....................................................................................................................... 4- 1
4.1.2 Installation environment ...................................................................................................................4- 3
4.2 Settings and Procedures Prior to Starting the Operation ...................................................................... 4- 4
4.3 Components of the Ethernet Module ..................................................................................................... 4- 6
4.4 Connecting to the Network ..................................................................................................................... 4- 8
4.4.1 Connecting to the 10BASE-T/100BASE-TX network ..................................................................... 4- 9
4.5 Setting Ethernet Parameters .................................................................................................................. 4-10
4.6 Operational Settings................................................................................................................................ 4-11
4.7 Self-Diagnostic Tests ..............................................................................................................................4-15
4.7.1 Self loopback test ............................................................................................................................. 4-15
4.7.2 Hardware test (H/W Test) ................................................................................................................ 4-16
4.8 Maintenance and Inspection................................................................................................................... 4-17
4.8.1 Maintenance and inspection ............................................................................................................ 4-17
4.8.2 Installing and uninstalling the module.............................................................................................. 4-18
A - 6 A - 6
5 COMMUNICATION PROCEDURE 5- 1 to 5-49
5.1 Overview of the Communication Procedure .......................................................................................... 5- 1
5.2 Initial Processing .....................................................................................................................................5- 3
5.2.1 Initial processing............................................................................................................................... 5- 3
5.2.2 Initial settings .................................................................................................................................... 5- 4
5.2.3 Re-initialization .................................................................................................................................5-10
5.3 Router Relay Parameter .........................................................................................................................5-13
5.4 Confirming the Completion of the Initial Processing .............................................................................. 5-18
5.4.1 PING command (Personal computer
Ethernet module) ............................................................ 5-19
5.4.2 Loop back test (Communication using MC protocol) ...................................................................... 5-20
5.5 Open Settings.......................................................................................................................................... 5-21
5.6 Open Processing/Close Processing of the Connection......................................................................... 5-28
5.6.1 Active open processing/close processing .......................................................................................5-30
5.6.2 Passive open processing/close processing .................................................................................... 5-36
5.6.3 UDP/IP open processing/close processing ..................................................................................... 5-43
5.7 Pairing Open ........................................................................................................................................... 5-46
5.7.1 Pairing open ..................................................................................................................................... 5-46
5.7.2 Example of pairing open settings .................................................................................................... 5-47
5.8 Hub Connection Status Monitor Function .............................................................................................. 5-49
6 FIXED BUFFER COMMUNICATION
(WITH THE PROCEDURE EXIST CONTROL METHOD) 6- 1 to 6-17
6.1 Control Method........................................................................................................................................ 6- 1
6.2 Sending Control Method ......................................................................................................................... 6- 3
6.3 Receiving Control Method ...................................................................................................................... 6- 5
6.3.1 Receive processing with the main program .................................................................................... 6- 5
6.4 Data Format ............................................................................................................................................ 6- 7
6.4.1 Header .............................................................................................................................................. 6- 7
6.4.2 Application data ................................................................................................................................ 6- 8
6.5 Programming........................................................................................................................................... 6-12
6.5.1 Precautions when creating programs .............................................................................................. 6-12
6.5.2 Fixed buffer communication program example (with the procedure exist control method)........... 6-13
7 FIXED BUFFER COMMUNICATION
(WITH THE NO PROCEDURE CONTROL METHOD) 7- 1 to 7-13
7.1 Control Method........................................................................................................................................ 7- 1
7.2 Sending Control Method ......................................................................................................................... 7- 4
7.3 Receiving Control Method ...................................................................................................................... 7- 6
7.3.1 Receive processing with the main program .................................................................................... 7- 6
7.4 Data Format ............................................................................................................................................ 7- 8
7.5 Programming........................................................................................................................................... 7- 9
7.5.1 Precautions when creating programs .............................................................................................. 7- 9
7.5.2 Fixed buffer communication program example (with the no procedure control method) ..............7-10
A - 7 A - 7
8 COMMUNICATION USING MC PROTOCOL 8- 1 to 8- 6
8.1 Data Communication Function ............................................................................................................... 8- 1
8.1.1 Accessing the PLC using MC protocol ............................................................................................ 8- 1
8.1.2 How to Read the Control Procedures of the MC Protocol.............................................................. 8- 3
8.1.3 Access Timing on the PLC Side ...................................................................................................... 8- 4
8.1.4 PLC setting for performing data communication............................................................................. 8- 5
8.1.5 Precautions on Data Communication .............................................................................................. 8- 5
9 WHEN COMMUNICATING DATA USING MC PROTOCOL 9- 1 to 9-40
9.1 Message Formats and Control Procedures ........................................................................................... 9- 1
9.1.1 How to read the command reference section .................................................................................9- 1
9.1.2 Message format and control procedure........................................................................................... 9- 3
9.1.3 Contents of data designation items ................................................................................................. 9- 7
9.1.4 Character area transmission data ................................................................................................... 9-11
9.2 List of Commands and Functions for The MC protocol .........................................................................9-15
9.3 Device Memory Read/Write.................................................................................................................... 9-16
9.3.1 Commands and device range.......................................................................................................... 9-16
9.3.2 Batch read in bit units (command: 00)............................................................................................. 9-19
9.3.3 Batch write in bit units (command: 02) ............................................................................................ 9-21
9.3.4 Test in bit units (random write) (command: 04) .............................................................................. 9-23
9.3.5 Batch read in word units (command: 01) ........................................................................................ 9-25
9.3.6 Batch write in word units (command: 03) ........................................................................................9-29
9.3.7 Test in word units (random write) (command: 05) .......................................................................... 9-33
9.4 Remote RUN/STOP, PLC model name code read ............................................................................... 9-35
9.4.1 Commands and control contents..................................................................................................... 9-35
9.4.2 Remote RUN (command: 13) / Remote STOP(Command: 14) ..................................................... 9-36
9.4.3 PLC model name read (command: 15) ...........................................................................................9-37
9.5 Loopback Test......................................................................................................................................... 9-39
9.5.1 Loopback test (command: 16) ......................................................................................................... 9-39
10 USING THE E-MAIL FUNCTION 10- 1 to 10-26
10.1 E-mail Function ...................................................................................................................................10- 1
10.1.1 E-mail send and reception by the PLC........................................................................................ 10- 1
10.2 Configuration and Environment of the Applicable System ................................................................ 10- 3
10.3 Precautions for Using the E-mail Function......................................................................................... 10- 4
10.4 E-mail Specifications........................................................................................................................... 10- 6
10.5 Processing Procedure of the E-mail Function ................................................................................... 10- 7
10.6 E-mail Settings .................................................................................................................................... 10- 8
10.7 Sending/Receiving E-mail (Attached Files) by the PLC ....................................................................10-12
10.7.1 When sending data as an attached file ....................................................................................... 10-12
10.7.2 When receiving data in an attached file ......................................................................................10-17
10.7.3 Contents of the attached files ......................................................................................................10-22
10.8 Sending E-mail (Main Text) by the PLC............................................................................................. 10-24
10.8.1 When sending data as main text of e-mail .................................................................................. 10-24
A - 8 A - 8
11 TROUBLESHOOTING 11- 1 to 11-45
11.1 How to Check Errors Using LED Displays .......................................................................................... 11- 2
11.1.1 Checking error display ..................................................................................................................11- 2
11.1.2 How to turn off COM.ERR LED and to read/clear error information ........................................... 11- 4
11.2 How to Check an Error Through FX Configurator-EN (GX Developer) ............................................. 11- 6
11.2.1 Buffer memory that can be monitored with the FX Configurator-EN (GX Developer)
diagnostic function......................................................................................................................... 11- 7
11.2.2 Ethernet diagnostics...................................................................................................................... 11- 9
11.3 Checking the error information by the buffer memory batch monitoring function .............................. 11-10
11.4 Error Code List ..................................................................................................................................... 11-11
11.4.1 Type of error incident ....................................................................................................................11-11
11.4.2 End codes (Complete codes) returned to an external device during data communication........ 11-19
11.4.3 Abnormal codes returned during communication using MC protocol ......................................... 11-20
11.4.4 Error codes stored in the buffer memory...................................................................................... 11-21
11.5 Troubleshooting Flowchart .................................................................................................................. 11-34
11.5.1 Sending errors during fixed buffer communication
(common to procedure exist and no procedure)......................................................................... 11-37
11.5.2 Receiving errors during fixed buffer communication
(common to procedure exist and no procedure)......................................................................... 11-39
11.5.3 Errors in communication using MC protocol ................................................................................ 11-42
11.5.4 Sending errors during e-mail communication .............................................................................. 11-44
11.5.5 Receiving errors during e-mail communication ............................................................................ 11-45
APPENDIX App- 1 to App-25
Appendix 1 Processing Time .....................................................................................................................App- 1
Appendix 2 ASCII Code List ......................................................................................................................App- 4
Appendix 3 References..............................................................................................................................App- 4
Appendix 4 Program Examples .................................................................................................................App- 5
Appendix 4.1 Program example for communication using MC protocol -1 ..........................................App- 6
Appendix 4.2 Program example of communication using MC Protocol -2...........................................App-14
Appendix 5 Differences between the Ethernet and the IEEE802.3 .........................................................App-19
Appendix 6 ICMP Protocol Supported by the Ethernet Module ...............................................................App-19
Appendix 7 Setting Value Recording Sheets ............................................................................................App-20
A - 9 A - 9
About Manuals
This manual explains the mounting of FX3U-ENET, the specifications, broadcast functions and communication methods. For the instructions and programs of the sequence as well as the parameter settings by FX Configurator-EN, also refer to the following manuals.
Associated Manuals
Manual name Manual No. Description FX3U-ENET User’s Manual
JY997D18101
MODEL CODE: 09R716
This manual
FX3U-ENET INSTALLATION MANUAL
JY997D15901 Installation of FX
3U-ENET block.
FX3U Series HARDWARE MANUAL
JY997D18801
Extracts the I/O specifications, wiring, and installation of FX
3U Series PLC from FX3U Series
User’s Manual – Hardware Edition.
FX3U Series User’s Manual
- Hardware Edition
JY997D16501
MODEL CODE: 09R516
Explains FX3U Series PLC specification details for I/O, wiring, installation, and maintenance.
FX3UC(D, DSS) Series HARDWARE MANUAL
JY997D28601
Extracts the I/O specifications, wiring, and installation of FX
3UC(D, DSS) Series PLC from
FX
3UC Series User’s Manual – Hardware Edition.
FX3UC-32MT-LT-2 HARDWARE MANUAL
JY997D31601
Extracts the I/O specifications, wiring, and installation of FX
3UC-32MT-LT-2 from FX3UC Series
User’s Manual – Hardware Edition.
FX3UC Series User’s Manual
- Hardware Edition
JY997D28701
MODEL CODE: 09R519
Explains FX3UC Series PLC specification details for
I/O, wiring, installation, and maintenance. FX3U/FX3UC Series Programming Manual
- Basic & Applied Instruction Edition
JY997D16601
MODEL CODE: 09R517
Describes PLC programming for basic/ applied
instructions and devices.
FX Configurator-EN Operation Manual
JY997D20501
MODEL CODE: 09R919
The operation method of FX Configurator-EN.
How to obtain manuals
For the necessary product manuals or documents, consult with the Mitsubishi Electric dealer.
How to obtain FX Configurator-EN
The parameter setting software, FX Configurator-EN is not supplied with this product. Consult with the Mitsubishi Electric dealer.
A - 10 A - 10
Applicable Standard
Certification of UL, cUL standards
The following product has UL and cUL certification.
UL, cUL File Number: E95239 Models: MELSEC FX
3U
series manufactured
FX
3U
-ENET
Compliance with EC directive (CE Marking)
This note does not guarantee that an entire mechanical module produced in accordance with the contents of this note will comply with the following standards. Compliance to EMC directive and LVD directive of the entire mechanical module should be checked by the user / manufacturer. For more details please contact the local Mitsubishi Electric sales site.
Requirement for Compliance with EMC directive
The following products have shown compliance through direct testing (of the identified standards below) and design analysis (through the creation of a technical construction file) to the European Directive for Electromagnetic Compatibility (89/336/EEC) when used as directed by the appropriate documentation.
Type: Programmable Controller (Open Type Equipment) Models: MELSEC FX
3U
series manufactured
from August 1st, 2005 FX
3U
-ENET
Standard Remark EN61131-2:2003 Programmable controllers Equipment requirements and tests
Complies with all relevant aspects of the following standards.
EMI
Radiated Emissions
Conducted Emissions
EMC
Radiated electromagnetic field immunity
Fast Transient burst
Electrostatic discharge
High-energy surge
Voltage drops and interruptions
Conducted RF
Power frequency magnetic field
Notes for compliance to EMC regulation.
It is necessary to install the (FX
3U
-ENET) in a shielded metal control panel.
For more details please contact the local Mitsubishi Electric sales site.
A - 11 A - 11
The Manual's Usage and Structure
How to use this manual
In this manual, explanations are given for each application of the Ethernet modules (FX
3U-ENET).
Please use this manual using the following key items below as a reference.
(1) Features and utility lists
(a) Features and functions
• Chapter 1 describes the features of the Ethernet modules.
• Chapter 3 describes the common functions and specifications of the Ethernet modules.
(b) Items included in this package and network configured items
• Section 2.2 describes the system configuration of the Ethernet module. Parts and components other than those packaged with the module must be purchased separately by the user.
(2) Processing required prior to starting the operation of the Ethernet
module
(a) Startup procedure
• Section 4.2 describes an outline of the procedures to do before starting the operation of the Ethernet module.
(b) Connection to the Ethernet network system.
• Section 2.2 describes the devices required to connect to the Ethernet network system.
• Section 4.4 describes the connection methods for each type of interface.
(c) Parameter settings required before starting Ethernet module operation
• Section 3.6 describes the parameter settings required in order to use each function. Confirm the required parameters, set them according to the relevant section, and save the setting values in the PLC to which the Ethernet module is installed.
• Section 4.5 describes the types of Ethernet parameter setting in order to use the Ethernet module.
(d) Checking for Ethernet module failures
• Section 4.7 describes the self-diagnostic test for the Ethernet module.
A - 12 A - 12
(e) Checking for connection errors with the external devices
• Section 5.4.1 describes how to check for connection errors using the
"PING" command.
• Section 5.4.2 describes how to check for connection errors by performing
the loopback test through MC protocol-based communication.
(3) Connection between the Ethernet module and external devices
(a) Communication procedures
• Section 5.1 describes an outline of the communication procedures
(b) Connections with the external devices
• Section 5.6 describes the connections (open and close processing) for
each communication method (TCP/IP) and the open method (Active, Passive), including programming procedures.
(4) Details on the data communication functions
(a) Communication functions
• Section 1.2 describes an overview of the Ethernet module communication
functions and related section numbers that can be referenced for more detailed explanations.
(5) Data communication functions and programming
(a) Reading from and writing to the PLC
• Data is read from and written to the PLC with communication functions
using MC protocol.
• Chapter 8 is an overview of the communication functions using MC protocol.
• Chapter 9 is a detail on the communication functions using MC protocol.
(b) Sending and receiving data between the PLC and the external devices
• Data communication between the PLC and external devices is performed with the fixed buffer communication functions.
• Chapters 6 and 7 explains the communication functions and programming using the fixed buffers.
A - 13 A - 13
(6) Checking for error occurrences and taking corrective actions
(a) Error codes
• Chapter 11 describes troubleshooting, how to check for errors, and the contents and reference manuals for error codes.
(b) Error code storase area in the buffer memory of the Ethernet module
• Section 11.3 describes the error code storage areas in the buffer memory.
FX Configurator-EN
Using FX Configurator-EN to set parameters, the sequence programs for communicating with external devices can be simplified. For details on the parameter settings from FX Configurator-EN, refer to the FX Configurator-EN operation manual.
A - 14 A - 14
About the Generic Terms and Abbreviations
This manual uses the following generic terms and abbreviations to describe the Model FX
3U
-ENET Ethernet interface block.
Generic Term/Abbreviation
Description
Ethernet Address
A machine-specific address that is also referred to as the MAC (Media Access Control Address). This is used to identify the addresses of external devices over a network. The Ethernet address of the Ethernet module can be verified on the MAC ADD column of the rating plate.
Ethernet module
Abbreviation for the FX
3U
-ENET Ethernet Interface block
(Described as the Ethernet module or FX
3U
-ENET in the figures)
Ethernet network
Abbreviation for 10BASE-T and 100BASE-TX networks
GX Developer
Abbreviation for GX Developer (SWnD5C-GPPW-E). (n in the model name is 4 or later)
External device
Generic term for personal computers, computers, workstations (WS) and Ethernet module etc. that are connected by Ethernet for data communication
Personal computer
Generic term for an IBM PC/AT (or IBM compatible) personal computer
Main unit
Generic name for FX Series PLC main unit
FX Configurator-EN (GX Developer)
Software for setting the Ethernet module parameters. The software is described in this manual as
"FX Configurator-EN (GX Developer)" because it can be launched
both independently as well as from the [Tools] menu in GX Developer.
1 - 1 1 - 1
MELSEC-F
1 OVERVIEW
1
1 OVERVIEW
This manual provides information on the specifications of the Ethernet interface block, FX
3U-ENET (hereinafter called FX3U-ENET or the Ethernet module), as well as the
procedures before starting operation, the control procedures and data communication method for communicating with external devices, maintenance, inspection, and troubleshooting.
1.1 Overview of the Ethernet Module
The Ethernet module is an interface module on the PLC side for connecting the FX3U / FX
3UC series PLC with the host system, such as a personal computer work station,
and other PLCs using the TCP/IP or UDP/IP communication protocol via Ethernet (100BASE-TX, 10BASE-T).
Router
Router
Local station
External device
GX Developer
External device
Internet service Provider
Internet service Provider
External device
Internet
(Public dial-up line)
Mail server
Hub
Hub
Mail server
1 - 2 1 - 2
MELSEC-F
1 OVERVIEW
1
1) Collection and modification of PLC data (Communication using the MELSEC Communication Protocol (referred to below as the MC Protocol))
2) Transmission and reception of arbitrary data to/from external devices (Communication using fixed buffers)
3) Data transmission/reception by e-mail (When using the e-mail function)
By using the FX Configurator-EN (GX Developer) to set each parameter,
the sequence programs for communication can be significantly simplified.
1 - 3 1 - 3
MELSEC-F
1 OVERVIEW
1.2 Features of the Ethernet Module
(1) Data communication using MC protocol (Details are explained in
Chapter 8 and Chapter 9)
Using MC protocol, the device data of the PLC can be read from/written to the host system. This protocol is a passive protocol that communicates data solely according to the requests from the host system. It does not require a sequence program for data communication after a connection is established.
External device
Local station
Command
Response
(2) Communication using fixed buffers (Details are explained in
Chapters 6 and 7)
With communication using fixed buffers, a maximum of 1023 words of arbitrary data can be sent or received between PLCs or between the PLC and an arbitrary device. An Ethernet module is provided with 8 fixed buffer data areas each with 1023 word storage space, and each is assigned as either a sending or receiving buffer for an arbitrary device. Since communication using MC protocol is passive, communication using fixed buffers is an active protocol. Data can be sent from the PLC side to another PLC and an arbitrary device when equipment errors occur or when some specified conditions are satisfied.
Receive/send
Receive/send
External device
External device
Local station
1 - 4 1 - 4
MELSEC-F
1 OVERVIEW
(3) Communication by e-mails (Details are explained in Chapter 10)
Data can be sent to and received from an external device at a remote location using e-mail via an Internet line.
(a) Sending/receiving e-mail from the PLC
The following data can be sent/received by e-mail.
1) Sending/receiving data as attached files Up to 2K words of data can be sent to or received from a personal computer or other Ethernet module with mail function as a file attached to an e-mail.
2) Sending data as main text Up to 256 words of data can be sent to a personal computer or portable terminal in the main text of an e-mail.
Internet
(Public dial-up line)
Router Router
Local station
External device
Internet service provider
Internet service provider
E-mail sending/ receiving
Hub
Mail server
Mail server
Hub
1 - 5 1 - 5
MELSEC-F
1 OVERVIEW
(4) Connecting FX Configurator-EN (Details are explained in the
Operating Manuals for FX Configurator-EN)
(a) Simplifying sequence programs using FX Configurator-EN (GX Developer)
FX Configurator-EN (GX Developer) supports the parameter setting function to perform the Ethernet module initialization and the open processing with external devices. By setting up the following parameters with FX Configurator-EN (GX Developer), access is enabled from the external device to the PLC. It can also simplify sequence programs used to perform communication by Ethernet modules.
• IP address setting • E-mail settings
• Port number setting • Each timer setting
• Protocol type setting For more information on setting up the Ethernet module, see Section 3.5, “List of Setting Items for Ethernet Modules” and other applicable reference sections.
Local station
External device
External device
Ethernet
FX configurator-EN
Parameter setting
Serial communication
(GX Developer)
1 - 6 1 - 6
MELSEC-F
1 OVERVIEW
(b) Connecting multiple MELSOFT products (GX Developer, MX Component)
This product can be connected with one or more MELSOFT product, via TCP/IP communication or UDP/IP communication.
1) Connection via TCP/IP communication
• If a MELSOFT product is to be connected with the FX configurator­EN (GX Developer) open settings, a maximum of four units can be connected with GX Developer.
• If a MELSOFT product is to be connected, the settings of buffer memory for the MELSOFT connection or the following settings using FX Configurator-EN (GX Developer) are required. For FX Configurator-EN (GX Developer), on the “Open settings” screen, set “TCP” in the protocol field of the connection number to be used, and “MELSOFT connection” in the open method field. (See Section 5.5.)
Connection via TCP/IP communication only
Multiple units (Maximum four units)
(Protocol used)(External device)
For use when the user specifies a MELSOFT connection. "Ethernet open setting" parameter is needed.
1 - 7 1 - 7
MELSEC-F
1 OVERVIEW
1.3 Software Configuration
The Ethernet modules support the TCP/IP and UDP/IP protocols.
User program
Buffer memory
Communication using fixed buffers
Communication using the MC protocol
Communication by e-mails
TCP/UDP
IP
ICMP
ARP
Ethernet
(100BASE-TX,10BASE-T)
TCP
IP
UDP
Ethernet
(100BASE-TX, 10BASE-T)
ICMP
ARP
System call
PLC
Ethernet module
Personal computer/work-station(example)
PLC
Main Unit
SMTP POP3 DNS
OSI reference model corres­ponding to the PLC configuration
(Layers)
Application layer Presentation layer Session layer
7 6 5
Transport layer4
Network layer3
Data link layer2 Physical layer
1
Socket
From/To instruction
(1) TCP (Transmission Control Protocol)
This protocol guarantees data credibility and reliability in communication between a personal computer/work station and PLC that are connected via network, and provides the following functions:
• Creates a logical connection by establishing a connection (logical line) as if a dedicated line was created between external devices.
• A maximum of 8 connections can be established and communicated to at the same time in the Ethernet module.
• Data reliability is maintained by the sequence control using the sequence numbers, the data retransmission function and the check sum.
• The communication data flow can be controlled by operations using Windows.
1 - 8 1 - 8
MELSEC-F
1 OVERVIEW
(2) UDP (User Datagram Protocol)
This protocol may not guarantee data credibility or reliability in communication between a personal computer/work station and PLC that are connected via network. Thus, even if the data does not reach the target node, it will not be retransmitted.
• Because it is connectionless, communication efficiency is much improved than TCP/IP.
• A check sum is used to increase the reliability of the communication data. When greater reliability must be maintained, a user application or the TCP should be utilized re-try operation.
(3) IP (Internet Protocol)
• Communication data is sent and received in datagram format.
• Communication data can be divided and reassembled.
• Routing option is not supported.
(4) ARP (Address Resolution Protocol)
• This protocol is used to get the Ethernet physical addresses from the IP addresses.
(5) ICMP (Internet Control Message Protocol)
• This protocol is used to exchange errors which occur on an IP network and various information related to the network.
• Provides a function to transmit IP error messages.
• See Appendix for information regarding the types of ICMP supported.
(6) DNS (Domain Name System)
• This system translates IP addresses to names that are easy to remember by the user.
(7) SMTP (Simple Mail Transfer Protocol)
• This protocol transfers mail.
(8) POP3 (Post Office Protocol Ver. 3)
• This protocol transfers mail received by a mail server to a local computer.
(9) Flag bit of TCP/IP (SYN, ACK, PSH, FIN, RST, and URG)
In the communication of TCP/IP, these flag bits indicate the segment where the connect/disconnect, response confirmation, or emergency data are executed.
1) SYN (Synchronized Bit)
When this bit is ON (1), it indicates that the initial sequence number value is set in the sequence number field. This bit is used when the connection is newly opened.
2) ACK (Corresponding Bit)
When this bit is ON (1), it indicates that ACK (confirmation response number) field is valid. It also indicates that this segment includes the information on response confirmation. When this bit is OFF (0), it indicates that ACK (confirmation response number) field is invalid.
1 - 9 1 - 9
MELSEC-F
1 OVERVIEW
3) PSH (Push Bit)
When this bit is ON (1), the host that has received this segment sends the data to the upper application with high priority. This bit is to be turned ON when the data should be sent to an external device as soon as possible. When this bit is OFF (0), the timing when the received data is sent to the upper application depends on the TCP layer of the receiving side.
4) FIN (Fin Bit)
When this bit is ON (1), it indicates that there is no more data to be sent from the segment source and that the send source wants to disconnect. However, data can be received from the external device. The connection is on until the segment whose FIN bit is ON is received from the external device.
5) RST (Reset Bit)
When this bit is ON (1), the host from which the segment has sent disconnects unilaterally (forcibly). Disconnection by this method is used when an unrecoverable error with the normal method has occurred or when the host has been restored after being down.
6) URG (Emergency Data Flag)
When this bit is ON (1), it indicates that this data segment includes the emergency data flag.
2 - 1 2 - 1
MELSEC-F
2 SYSTEM CONFIGURATIONS
2
2 SYSTEM CONFIGURATIONS
This section explains the system configurations that may be combined with the Ethernet modules.
2.1 Applicable Systems
Ethernet modules can be used with the following systems:
(1) Applicable PLC and number of modules that can be mounted
The following table lists the PLC where the Ethernet module can be mounted and the number of modules that can be mounted.
Series name Compatible version
Number of I/O points
occupied
Number of modules that can
be mounted
FX3U
System version V2.21 or more
8 points for input or output 1
FX3UC (An FX2NC-CNV-IF or FX
3UC-1PS-5V is necessary)
System version V2.21 or more
8 points for input or output 1
(2) Applicable software packages
When using the Ethernet module, the FX configurator-EN (GX Developer) for software packages applicable to the Ethernet module can be used. Refer to the manual of FX configurator-EN for the details.
1) The Ethernet module is set with FX configurator-EN (GX Developer) [Configurable by BFM].
2) To use FX configurator-EN, either of the following software should be installed.
• GX Developer (V 8.25B or later)
• IEC Developer (V 7.00A or later)
3) For starting FX configurator-EN, the following shows two kinds of methods.
• Independently starting FX configurator-EN
• Starting from [Tools] menu of GX Developer
4) The installation form of FX configurator-EN differs depending on sales territory or country of this product.
Consult with the dealer of this product for details.
2 - 2 2 - 2
MELSEC-F
2 SYSTEM CONFIGURATIONS
2
2.2 Devices Required for Network Configuration
This section explains the devices that are required to configure a network. Network installation work requires sufficient safeguard; ask a network specialist for installation.
When connecting FX
3U
-ENET to a network, either a 10BASE-T or 100BASE-TX can be used. The Ethernet module detects whether it is 10BASE-T or 100BASE-TX, and the full-duplex or half-duplex transmission mode according to the hub. For connection to the hub without the auto detection function, set the half-duplex mode on the hub side.
(1) Connection using the 100BASE-TX
External device
Twisted pair cable
Hub
* Up to 2 levels are allowed
for cascade connection
Ethernet module
Use devices that satisfy the standards of IEEE802.3 and 100BASE-TX.
• Shielded twisted pair cable (STP cable), category 5
Straight cables can be used.
(Correct operation is not guaranteed if a crossed cable is used to connect to an external device via the 100BASE-TX of the Ethernet module. However, it is possible to use crossed cables to connect two Ethernet modules for data communication or to connect an Ethernet module.)
• RJ45 jacks
• 100Mbps hub
2 - 3 2 - 3
MELSEC-F
2 SYSTEM CONFIGURATIONS
(2) Connection using the 10BASE-T
External device
Twisted pair cable
Hub
* Up to 4 levels are allowed for cascade connection
Ethernet module
Use devices that satisfy the standards of IEEE802.3 and 10BASE-T.
• Shielded twisted pair cable (STP cable), category 3 (4, 5)
Straight cables can be used.
(Correct operation is not guaranteed if a crossed cable is used to connect to an external device via the 10BASE-T of the Ethernet module. However, it is possible to use crossed cables to connect two Ethernet modules for data communication or to connect an Ethernet module.)
• RJ45 jacks
• 10Mbps hub
POINT
• During the high-speed communication (100 M bps) via 100BASE-TX connection, a communication error may occur due to the effect of high frequency noise from devices other than PLC in a given installation environment. The following describes countermeasures on the FX
3U
-ENET side to prevent the
effect of high frequency noise for construction of a network system.
(1) Wiring connection
• Do not bundle the twisted pair cables with the main circuit and power wires, and do not install them close to each other.
• They should be installed at least 100 mm (3.94 in) away from each other.
• Make sure to place the twisted pair cables in a duct.
(2) Communication method
• Data communication with an external device is performed using TCP/IP communication.
• Increase the number of communication retries as necessary.
[When the error cannot be solved]
• Communication is performed at a data transmission rate of 10 M bps by
changing the connection hub for the FX
3U-ENET to a hub capable of
handling 10 M bps.
3 - 1 3 - 1
MELSEC-F
3 SPECIFICATIONS
3
3 SPECIFICATIONS
This section explains the Ethernet module performance specifications and transmission specifications. For more details on the general specifications, refer to the User's Manual for the PLC base module.
3.1 Performance Specifications
The following explains the performance specifications of the Ethernet module.
Item Specification
Data transmission speed 100 M bps 10 M bps
Communication mode Full-duplex/Half-duplex
Transmission method Base band
Maximum segment length 100 m (328’ 1”) *1
Transmission specifications
Maximum number of nodes/connection
Cascade connection Maximum 2 stages Cascade connection Maximum 4 stages
Number of simultaneously open connections allowed
8 connections
(Connections usable by the sequence program)
Fixed buffer 1023 word × 8
Attached file 2048 words × 1
Transmission data storage memory
E-mail
Main text 256 words × 1
Number of I/O occupied points 8 points
Power supply 24V DC +20%, -15%, ripple (p-p) less than 5%
External 24V current consumption 240 mA
Number of connectable units to the main unit 1
Applicable PLC
FX
3U/FX3UC PLC
Ver. 2.21 or later
External dimensions 90 (3.55”) (H) × 55 (2.17”) (W ) × 87 (3.43”) (D) [mm] (inches)
Weight 0.3 kg (0.66 lbs)
Attached file 2048 words x 1
Data size
Main text 256 words x 1
Data transfer method
When sending: Sends either a file as attachment or main text (select one).
When receiving: Receives a file as att achment.
Subject US-ASCII format or ISO-2022-JP (Base64)
Attached file format MIME format
MIME Version 1.0
Data of attached file format
Binary/ASCII/CSV can be selected.
File name: XXXX.bin (binary), XXXX.asc (ASCII), XXXX.csv (CSV)
(CSV: Comma Separated Value)
Division of attached file
Cannot be divided (only one file can be sent/received) * If any divided files are received, only the first file will be received and the remaining files will be discarded.
When sending (encode)
Subject : Base64/7 bits Main text : 7 bits Attached file : Base64
When receivi ng (decode)
Subject : (Does not decode) Main text : (Cannot be received)
Attached file : Base64/7 bits/Quoted Printable * If e-mail is sent from the external device to the PLC side, specif y the encoding method (Base64/7 bits of the attached file.
Encryption No
Compression No
Communication with mail server
SMTP (sending server) Port number = 25
POP3 (receiving server) Port number = 110
Transmission specifications Transmission and reception
data
Operation check mailer Microsoft
®
Corporation (Outlook Express 6.0)
1 Length between the Hub and node.
3 - 2 3 - 2
MELSEC-F
3 SPECIFICATIONS
3
NOTE
The following explains each of the transmission specification items.
[Connecting using the 10BASE-T] [Connecting using the 100BASE-TX]
Hub
Maxmum 100m
Maxmum 100m
Up to 4 levels
Up to (2) levels are allowed for cascade connection.
Hub
Maxmum 5m
Maxmum 100m
Loading...
+ 268 hidden pages