Mitsubishi Electric Melsec Q, Melsec L, Melsec-QJ71E71-100, Melsec-LJ71E71-100, Melsec-QJ71E71-B5 User Manual

...

SAFETY PRECAUTIONS

(Always read before starting use.)
Before using this product, please read this manual introduced in this manual carefully and pay full attention to safety to handle the product correctly. The instructions given in this manual are concerned with this product. For the safety instructions of the programmable controller system, please read the user's manual for the CPU module to use. In this manual, the safety instructions are ranked as "WARNING" and "CAUTION".
!
WARNING
!
CAUTION
!
Note that the Always follow the instructions of both levels because they are important to personal safety.
Please store this manual in a safe place and make it accessible when required. Always forward it to the end user.
CAUTION level may lead to a serious consequence according to the circumstances.
Indicates that incorrect handling may cause hazardous conditions, resulting in death or severe injury.
Indicates that incorrect handling may cause hazardous conditions, resulting in minor or moderate injury or property damage.
A - 1 A - 1
Precautions for using the MELSEC-Q series Ethernet interface module
[Design Precautions]
!
WARNING
For the operating status of each station after a communication failure, refer to relevant manuals
for the network. Erroneous outputs and malfunctions may lead to accidents. Not doing so can cause an accident due to false output or malfunction.
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.
To maintain the safety of the programmable controller system against unauthorized access from
external devices via the Internet, take appropriate measures.
When connecting a peripheral with the CPU module or connecting an external device, such as a
personal computer, with an intelligent function module to modify data of a running programmable controller, configure an interlock circuit in the program to ensure that the entire system will always operate safely. For other forms of control (such as program modification or operating status change) of a running programmable controller, read the relevant manuals carefully and ensure that the operation is safe before proceeding. Especially, when a remote programmable controller is controlled by an external device, immediate action cannot be taken if a problem occurs in the programmable controller due to a communication failure. To prevent this, configure an interlock circuit in the program, and determine corrective actions to be taken between the external device and CPU module in case of a communication failure.
Do not write any data to the "system area" of the buffer memory in the intelligent function
module. Also, do not use any "use prohibited" signals as an output signal from the programmable controller CPU to the intelligent function module. Doing so may cause malfunction of the programmable controller system.
A - 2 A - 2
[Design Precautions]
!
CAUTION
Do not bundle the control wires and the communication cables with the main circuit and the
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. Failure to do so may generate noise that may cause malfunctions.
When changing the operating status of the programmable controller CPU (such as remote
RUN/STOP) from the external device, select "Always wait for OPEN (Communication possible at STOP time)" for the "Initial timing" setting in the network parameter. The communication line will be closed when "Do not wait for OPEN (Communications impossible at STOP time)" is selected and the remote STOP is executed from the external device. Consequently, the programmable controller CPU cannot reopen the communication line, and the external device cannot execute the remote RUN.
[Installation Precautions]
!
WARNING
Use the programmable controller in an environment that meets the general specifications in the
user’s manual for the CPU module used. Using the programmable controller in any other operating environments may cause electric shocks, fires or malfunctions, or may damage or degrade the module.
To mount the module, while pressing the module mounting lever located in the lower part of the
module, fully insert the module fixing projection(s) into the hole(s) in the base unit and press the module until it snaps into place. Incorrect mounting may cause malfunction, failure or drop of the module. When using the programmable controller in an environment of frequent vibrations, fix the module with a screw.
Tighten the screws within the specified torque range.
Undertightening can cause drop of the screw, short circuit or malfunction. Overtightening can damage the screw and/or module, resulting in drop, short circuit, or malfunction.
Shut off the external power supply (all phases) used in the system before mounting or removing
a module. Failure to do so may result in damage to the product.
Do not directly touch any conductive parts and electronic components of the module.
Doing so can cause malfunction or failure of the module.
A - 3 A - 3
[Wiring Instructions]
!
CAUTION
Connectors for external connection must be crimped or pressed with the tool specified by the
manufacturer, or must be correctly soldered. If the connection is incomplete, it may cause the module to short circuit, catch fire, or malfunction.
Shut off the external power supply for the system in all phases before connecting the AUI cable. When connecting a cable with connector to the module, connect the connector part to the
module securely.
Make sure to place the communication and power cables to be connected to the module 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 may be unstable or moved, and they may be pulled inadvertently. This may damage the module and the cables or cause the module to malfunction because of faulty cable connections.
Tighten the terminal screws using the specified torque. If the terminal screws are loose, it may
cause the module to short-circuit, malfunction or fall off. If the terminal screws are tightened excessively, it may damage the screws and cause the module to short-circuit, malfunction or fall off.
When disconnecting the cable from the module, do not pull the cable by the cable part.
For the cable with connector, hold the connector part of the cable. For the cable connected to the terminal block, loosen the terminal screw. Pulling the cable connected to the module may result in malfunction or damage to the module or cable.
Prevent foreign matter such as dust or wire chips from entering the module.
Such foreign matter can cause a fire, failure, or malfunction.
A protective film is attached to the top of the module to prevent foreign matter, such as wire
chips, from entering the module during wiring. Do not remove the film during wiring. Remove it for heat dissipation before system operation.
Correctly solder coaxial cable connectors. Incomplete soldering may result in malfunction.
A - 4 A - 4
[Setup and Maintenance Precautions]
!
CAUTION
Never disassemble or modify the module. This may cause breakdowns, malfunctions, injuries or
fire.
Before mounting/dismounting the module, be sure to shut off all phases of external power supply
used by the system. Failure to do so may cause module failure or malfunctions.
Do not mount/remove the module onto/from base unit more than 50 times (IEC 61131-2
compliant), after the first use of the product. Failure to do so may cause the module to malfunction due to poor contact of connector.
Do not touch the terminals while the power is on. Doing so may cause electric shocks or
malfunctions.
Before cleaning up and retightening terminal screws and module fixing screws, be sure to shut
off all phases of external power supply used by the system. Not doing so may cause failure or malfunction of the module. If the screws are loose, it may cause the module to fallout, short circuits, or malfunction. If the screws are tightened too much, it may cause damages to the screws and/or the module, resulting in the module falling out, short circuits or malfunction.
Always make sure to touch the grounded metal to discharge the electricity charged in the body,
etc., before touching the module. Failure to do so may cause a failure or malfunctions of the module.
[Operating Precautions]
!
CAUTION
When changing data and operating status, and modifying program of the running programmable
controller from a personal computer connected to an intelligent function module, read relevant manuals carefully and ensure the safety before operation. Incorrect change or modification may cause system malfunction, damage to the machines, or accidents.
[Precautions When Disposing of This Product]
!
CAUTION
Dispose of this product as an industrial waste.
A - 5 A - 5
Precautions for using the MELSEC-L series Ethernet interface module
[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.
To maintain the safety of the programmable controller system against unauthorized access from
external devices via the Internet, take appropriate measures.
When connecting a peripheral with the CPU module or connecting an external device, such as a
personal computer, with an intelligent function module to modify data of a running programmable controller, configure an interlock circuit in the program to ensure that the entire system will always operate safely. For other forms of control (such as program modification or operating status change) of a running programmable controller, read the relevant manuals carefully and ensure that the operation is safe before proceeding. Especially, when a remote programmable controller is controlled by an external device, immediate action cannot be taken if a problem occurs in the programmable controller due to a communication failure. To prevent this, configure an interlock circuit in the program, and determine corrective actions to be taken between the external device and CPU module in case of a communication failure.
Do not write any data to the "system area" of the buffer memory in the intelligent function
module. Also, do not use any "use prohibited" signal as an output signal from the CPU module to the intelligent function module. Doing so may cause malfunction of the programmable controller system.
A - 6 A - 6
[Design Precautions]
!
CAUTION
Do not install the control lines or communication cables together with the main circuit lines or
power cables. Keep a distance of 100mm or more between them. Failure to do so may result in malfunction due to noise.
When changing the operating status of the CPU module (such as remote RUN/STOP) from the
external device, select "Always wait for OPEN (Communication possible at STOP time)" for the "Initial timing" setting in the network parameter. The communication line will be closed when "Do not wait for OPEN (Communications impossible at STOP time)" is selected and the remote STOP is executed from the external device. Consequently, the CPU module cannot reopen the communication line, and the external device cannot execute the remote RUN.
[Installation Precautions]
!
CAUTION
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.
To interconnect modules, engage the respective connectors and securely lock the module joint
levers until they click. Incorrect interconnection may cause malfunction, failure, or drop of the module.
Shut off the external power supply (all phases) used in the system before mounting or removing
a module. Failure to do so may cause the module to fail or malfunction.
Do not directly touch any conductive parts and electronic components of the module. Doing so
can cause malfunction or failure of the module.
[Wiring Precautions]
!
CAUTION
When connecting a cable with connector to the module, connect the connector part to the
module securely.
Place the cables 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.
Prevent foreign matter such as dust or wire chips from entering the module. Such foreign matter
can cause a fire, failure, or malfunction.
A protective film is attached to the top of the module to prevent foreign matter, such as wire
chips, from entering the module during wiring. Do not remove the film during wiring. Remove it for heat dissipation before system operation.
A - 7 A - 7
[Startup 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.
[Startup and Maintenance Precautions]
!
CAUTION
Do not disassemble or modify the module. Doing so may cause failure, malfunction, injury, or a
fire.
Shut off the external power supply (all phases) used in the system before mounting or removing
a module. Failure to do so may cause the module to fail or malfunction.
After the first use of the product (module and display unit), the number of
connections/disconnections is limited to 50 times (in accordance with IEC 61131-2). Exceeding the limit may cause malfunction.
Before handling the module, touch a conducting object such as a grounded metal to discharge
the static electricity from the human body. Failure to do so may cause the module to fail or malfunction.
[Operating Precautions]
!
CAUTION
When changing data and operating status, and modifying program of the running programmable
controller from an external device such as a personal computer connected to an intelligent function module, read relevant manuals carefully and ensure the safety before operation. Incorrect change or modification may cause system malfunction, damage to the machines, or accidents.
[Disposal Precautions]
!
CAUTION
When disposing of this product, treat it as industrial waste.
A - 8 A - 8

CONDITIONS OF USE FOR THE PRODUCT

(1) Mitsubishi programmable controller ("the PRODUCT") shall be used in conditions;
i) where any problem, fault or failure occurring in the PRODUCT, if any, shall not lead to any major or serious accident; and ii) where the backup and fail-safe function are systematically or automatically provided outside of the PRODUCT for the case of any problem, fault or failure occurring in the PRODUCT.
(2) The PRODUCT has been designed and manufactured for the purpose of being used in general
industries. MITSUBISHI SHALL HAVE NO RESPONSIBILITY OR LIABILITY (INCLUDING, BUT NOT LIMITED TO ANY AND ALL RESPONSIBILITY OR LIABILITY BASED ON CONTRACT, WARRANTY, TORT, PRODUCT LIABILITY) FOR ANY INJURY OR DEATH TO PERSONS OR LOSS OR DAMAGE TO PROPERTY CAUSED BY the PRODUCT THAT ARE OPERATED OR USED IN APPLICATION NOT INTENDED OR EXCLUDED BY INSTRUCTIONS, PRECAUTIONS, OR WARNING CONTAINED IN MITSUBISHI'S USER, INSTRUCTION AND/OR SAFETY MANUALS, TECHNICAL BULLETINS AND GUIDELINES FOR the PRODUCT. ("Prohibited Application") Prohibited Applications include, but not limited to, the use of the PRODUCT in; Nuclear Power Plants and any other power plants operated by Power companies, and/or any other
cases in which the public could be affected if any problem or fault occurs in the PRODUCT.
Railway companies or Public service purposes, and/or any other cases in which establishment of a
special quality assurance system is required by the Purchaser or End User.
Aircraft or Aerospace, Medical applications, Train equipment, transport equipment such as Elevator
and Escalator, Incineration and Fuel devices, Vehicles, Manned transportation, Equipment for Recreation and Amusement, and Safety devices, handling of Nuclear or Hazardous Materials or Chemicals, Mining and Drilling, and/or other applications where there is a significant risk of injury to the public or property.
Notwithstanding the above, restrictions Mitsubishi may in its sole discretion, authorize use of the 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. For details, please contact the Mitsubishi representative in your region.
A - 9 A - 9

REVISIONS

The manual number is given on the bottom left of the back cover.
Print Date Manual Number Revision
Dec., 1999 SH(NA)-080010-A First edition
Oct., 2000 SH(NA)-080010-B Reflect the contents of the function version B.
Put Windows
base software products together from Mitsubishi Programmable Controller MELSEC series to Mitsubishi integrated FA software MELSOFT series. Standardize the name from software package (GPP function) to product name (GX Developer).
Correction
Entire manual (change MELSECNET/10H to MELSECNET/H), Contents, About Manuals, About the Generic Terms and Abbreviations, Chapter 1 (entire), Section 1.2 (POINT), Section 2.1, 2.5 (2), 2.6.1, 2.6.2, 2.7.1,
2.7.2, Section 3.2.1 (2). 3.3.3 (4), Section 4.1, 4.3, 4.5.2, Section 5.1.1,
5.2, 5.3, 5.4, 5.5, 5.6.1, 5.6.1 (2) 2), 5.6.2, 5.6.4, Section 6.2 to 6.8, 6.9 (POINT before the function), 6.10 to 6.14
Addition
Entire manual (add the explanation on MELSECNET/H remote I/O station), Section 4.3 (4), Chapter 5 POINT
Jun., 2001 SH(NA)-080010-C Added the description of the model QJ71E71-100 Ethernet interface
module.
Oct., 2001 SH(NA)-080010-D
Apr., 2003 SH(NA)-080010-E
Dec., 2003 SH(NA)-080010-F
Jun., 2004 SH(NA)-080010-G
Additional model
QJ71E71-100
Correction
About Manuals, The Manual’s Usage and Structure, About the Generic Terms and Abbreviations, Section 1.1 (1), 1.2, Section 3.3.2 (3) (c), Section 4.2 (5), 4.3 (3), 4.4 (Table), 4.7, Section 5.4, 5.5 (c), Section 6.2,
6.3, 6.9 (POINT), 6.13 (Function), 6.14 (Function)
Addition
Chapter 2 (entire), Section 5.1, 5.6.4
Correction
Section 1.2, Section 2.1, 2.3, 2.4, 2.7.2 (4) (POINT), 2.8, Section 4.5.1 (3) (b), Chapter 5 POINT, Section 5.1.1, 5.4 (4), 5.5 (c) 2), 5.6.4 (2) (cpuchg), Section 6.5
Additional model
QJ71E71-B5
Deleted model
QJ71E71
Correction
SAFETY PRECAUTIONS, Section 1.2, Section 2.6 (POINT), 2.7, 2.8,
2.9, Section 3.2.1 (2), 3.3, , Section 4.2 (1), 4.6 (1), Section 5.6.4, Section
6.2, 6.3, 6.5, 6.6, 6.7, 6.10 (POINT), 6.11 (POINT), 6.12, 6.13, 6.14
Correction
Section 6.13 (POINT), 6.14 (POINT)
Correction
About the Generic Terms and Abbreviations, Section 1.2, Section 2.1.2 (1), Section 3.2.1 (2), Section 4.6, 4.8, Section 5.5 (5)(6), Section 6.4,
6.5, 6.6, 6.7, 6.8, 6.9, 6.11, 6.12
A - 10 A - 10
The manual number is given on the bottom left of the back cover.
Print Date Manual Number Revision
Aug., 2005 SH(NA)-080010-H
Correction
SAFETY PRECAUTIONS, Section 1.2, Section 2.1.2, 2.7, 2.8, 2.9, Section 6.4, 6.5, 6.6, 6.9, 6.12
Jun., 2006 SH(NA)-080010-I
Correction
Section 4.2, 4.7, Section 6.4, 6.7, 6.10, 6.11, 6.12, 6.13, 6.14
Addition
Section 6.1
Jun., 2007 SH(NA)-080010-J
Change of a term
"PLC" was changed to "programmable controller".
Correction
About the Generic Terms and Abbreviations, Section 1.2, Section 3.2.1, 3.3.3, Section 4.2, 4.4, 4.5.2, Section 6.2 to 6.14
Nov., 2007 SH(NA)-080010-K
Correction
Section 6.1
Oct., 2008 SH(NA)-080010-L
Correction
SAFETY PRECAUTIONS, The Manual's Use and Structure, About the Generic Terms and Abbreviations, Section 1.1, 1.2, 2.6, Chapter 3, Section 4.1 to 4.4, 4.5.2, 4.6, Section 5.5.1, 5.2, 5.5, 5.6.2, 5.6.4, Section 6.1 to 6.7, 6.9 to 6.14
Aug., 2010 SH(NA)-080010-M
Correction
Addition of "CC-Link IE Field Network" to the whole manual SAFETY PRECAUTIONS, About the Generic Terms and Abbreviations, Section 3.2.1, Section 4.4, Section 5.5, Chapter 6
Addition
CONDITIONS OF USE FOR THE PRODUCT
Feb., 2013 SH(NA)-080010-N Overall revision with the addition of the LJ71E71-100
Additional model
LJ71E71-100
Japanese Manual Version SH-080005-S
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.
1999 MITSUBISHI ELECTRIC CORPORATION
A - 11 A - 11

INTRODUCTION

Thank you for purchasing the Mitsubishi MELSEC-Q or -L series programmable controllers. This manual describes the functions and programming of the Ethernet interface module for Ethernet communications. Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the functions and performance of the MELSEC-Q or -L series programmable controller to handle the product correctly. When applying the program examples introduced in this manual to an actual system, ensure the applicability and confirm that it will not cause system control problems.
Please make sure that the end users read this manual.
REMARKS
• Unless otherwise specified, this manual describes the program examples in which the I/O numbers of X/Y00 to X/Y1F are assigned for an Ethernet interface module. For I/O number assignment, refer to the User's Manual (Function Explanation, Program Fundamentals) for the CPU module used.

CONTENTS

SAFETY PRECAUTIONS..............................................................................................................................A- 1
CONDITIONS OF USE FOR THE PRODUCT .............................................................................................A- 9
REVISIONS ....................................................................................................................................................A-10
CONTENTS....................................................................................................................................................A-12
RELATED MANUALS....................................................................................................................................A-15
The Manual's Use and Structure ...................................................................................................................A-16
About the Generic Terms and Abbreviations ................................................................................................A-20
1 OVERVIEW 1- 1 to 1- 5
1.1 Overview ................................................................................................................................................. 1- 1
1.2 Additional Functions in Function Version B or Later.............................................................................. 1- 4
2 USING THE E-MAIL FUNCTION 2- 1 to 2-41
2.1 E-mail Function .......................................................................................................................................2- 1
2.1.1 E-mail send and reception by the programmable controller CPU .................................................. 2- 1
2.1.2 Sending e-mail using the programmable controller CPU monitor function .................................... 2- 3
2.2 Configuration and Environment of the Applicable System .................................................................... 2- 5
2.3 Precautions for Using the E-mail Function............................................................................................. 2- 6
2.4 E-mail Specifications............................................................................................................................... 2- 8
2.5 Processing Procedure of the E-mail Function ....................................................................................... 2- 9
2.6 E-mail Setting Using a Programming Tool ............................................................................................. 2-10
2.7 Sending/Receiving E-mail (Attached Files) by the Programmable Controller CPU .............................2-15
2.7.1 When sending data as an attached file ........................................................................................... 2-15
2.7.2 When receiving data in the attached file ......................................................................................... 2-20
2.7.3 Contents of the attached files ..........................................................................................................2-26
2.8 Sending E-mail (Main Text) by the Programmable Controller CPU...................................................... 2-28
2.8.1 When sending data as main text of e-mail ...................................................................................... 2-28
2.9 Sending E-mails Using the Programmable Controller CPU Monitoring Function ................................ 2-32
A - 12 A - 12
2.9.1 News setting ..................................................................................................................................... 2-32
2.9.2 Receiving a news e-mail .................................................................................................................. 2-37
3 COMMUNICATIONS VIA OTHER NETWORKS 3- 1 to 3-22
3.1 CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10 Relay
Communication Function........................................................................................................................ 3- 1
3.2 Range of Accessible Other Station’s Programmable Controllers and Accessible Stations ................. 3- 2
3.2.1 Accessible range and stations ......................................................................................................... 3- 2
3.3 Settings for Accessing Other Stations.................................................................................................... 3- 5
3.3.1 Setting the Station No. <-> IP Information....................................................................................... 3- 6
3.3.2 Convert format between the Network No./station number and IP address/port number .............. 3- 9
3.3.3 Routing parameter settings.............................................................................................................. 3-15
3.4 Procedure for Accessing Other Stations ................................................................................................ 3-21
3.5 Precautions for Accessing Other Stations ............................................................................................. 3-21
4 WHEN THE Q/LCPU ACCESSES THE PROGRAMMABLE CONTROLLER OF ANOTHER STATION
USING THE DATA LINK INSTRUCTION 4- 1 to 4-42
4.1 Access to Other Stations with the Data Link Instruction........................................................................ 4- 1
4.2 Precautions for Accessing Other Stations ............................................................................................. 4- 2
4.3 Using the Data Link Instructions............................................................................................................. 4- 5
4.4 Data Link Instructions ............................................................................................................................. 4- 8
4.5 Data Sending/Receiving ......................................................................................................................... 4-12
4.5.1 Data sending/receiving for receive with the main program (SEND/RECV) ................................... 4-13
4.5.2 Data sending/receiving for receive with an interrupt program (SEND/RECVS) ............................ 4-19
4.6 Reading/Writing Word Devices of Other Stations (READ/WRITE)....................................................... 4-23
4.7 Reading/Writing Word Devices of Other Stations (ZNRD/ZNWR)........................................................ 4-31
4.8 Reading/Writing Clock Data, Remote RUN/Remote STOP (REQ) ...................................................... 4-37
4.9 Error Codes for Data Link Instructions ................................................................................................... 4-42
5 WHEN USING FILE TRANSFER FUNCTIONS (FTP SERVER) 5- 1 to 5-34
5.1 File Transfer Functions ...........................................................................................................................5- 1
5.1.1 FTP server support functions of the Ethernet module .................................................................... 5- 2
5.2 File Transferable Range ......................................................................................................................... 5- 4
5.3 FTP Parameter Settings for File Transfer from a Programming Tool ................................................... 5- 5
5.4 Procedure and Required Processing on the External Device Side (FTP Client) ................................. 5- 7
5.5 Precautions when Using the File Transfer Functions ............................................................................ 5-12
5.6 FTP Commands...................................................................................................................................... 5-16
5.6.1 File designation method ................................................................................................................... 5-16
5.6.2 Q/LCPU user file list ......................................................................................................................... 5-19
5.6.3 Response code ................................................................................................................................ 5-20
5.6.4 FTP operation command ................................................................................................................. 5-21
6 DEDICATED INSTRUCTIONS 6- 1 to 6-71
6.1 Dedicated Instruction List and Available Devices .................................................................................. 6- 1
6.2 ZP.MRECV.............................................................................................................................................. 6- 3
6.3 ZP.MSEND.............................................................................................................................................. 6- 8
6.4 JP/GP.READ ........................................................................................................................................... 6-13
6.5 JP/GP.RECV (for the Main Program)..................................................................................................... 6-19
6.6 Z.RECVS (for Interrupt Programs) ......................................................................................................... 6-24
A - 13 A - 13
6.7 J(P)/G(P).REQ (Remote RUN/STOP) ................................................................................................... 6-28
6.8 J(P)/G(P).REQ (Clock Data Read/Write) ............................................................................................... 6-34
6.9 JP/GP.SEND ........................................................................................................................................... 6-37
6.10 JP/GP.SREAD ...................................................................................................................................... 6-46
6.11 JP/GP.SWRITE..................................................................................................................................... 6-51
6.12 JP/GP.WRITE ....................................................................................................................................... 6-56
6.13 J(P).ZNRD............................................................................................................................................. 6-64
6.14 J(P).ZNWR ............................................................................................................................................ 6-68
APPENDIX App- 1 to App- 8
Appendix 1 Calculating the Setting Values of the Data Link Instructions (Control Data) .......................App- 1
Appendix 1.1 Calculation formulas .......................................................................................................App- 1
Appendix 1.2 Setting examples ............................................................................................................App- 4
INDEX Index- 1 to Index- 2
A - 14 A - 14

RELATED MANUALS

The manuals related to this product are listed below.
Please place an order as needed.
Manual name
Q Corresponding Ethernet Interface Module User's Manual (Basic)
Specifications of the Ethernet interface module, data communication procedures with external devices,
line connections (open/close), fixed buffer communication, random access buffer communication, and
troubleshooting (Sold separately)
MELSEC-L Ethernet Interface Module User's Manual (Basic)
Specifications of the Ethernet interface module, data communication procedures with external devices,
line connections (open/close), fixed buffer communication, random access buffer communication, and
troubleshooting
Manual number
(Model code)
SH-080009
(13JL88)
SH-081105ENG
(13J273)
MELSEC-Q/L Ethernet Interface Module User's Manual (Web function)
How to use the Web function of the Ethernet interface module (Sold separately)
MELSEC-Q/L MELSEC Communication Protocol Reference Manual
Communication methods and control procedures through the MC protocol for the external devices to
read and write data from/to the programmable controller CPU using the serial communication
module/Ethernet interface module (Sold separately)
SH-080180
(13JR40)
SH-080008
(13JF89)
A - 15 A - 15

The Manual's Use and Structure

How to use this manual
In this manual, explanations are given for each special function of the Ethernet modules (QJ71E71-100, QJ71E71-B5, QJ71E71-B2, and LJ71E71-100). Please use this manual using the following key items below as a reference.
(1) To learn about an overview of the special functions
• Chapter 1 provides an overview of each of the special functions available for the Ethernet modules.
(2) To use the e-mail transmission/reception function and the
programmable controller CPU monitoring function
• Section 2.2 describes the environment in which e-mails can be used.
• Section 2.6 illustrates the screens for parameter settings with a programming
• Section 2.9 describes the parameter settings to monitor the status of the
(3) To communicate with programmable controller CPUs of other
stations via a network module or an Ethernet module
tool to use the e-mail function.
programmable controller CPU.
• Section 3.2 describes the accessible range and accessible stations when
accessing other stations via the Ethernet modules.
• Section 3.3 describes the parameter settings using a programming tool to
communicate data with the programmable controller CPUs of other stations.
• Section 3.3.2 provides an overview of the processing for Station No. <-> IP
information conversion.
(4) To use the file transfer (FTP) function
• Section 5.3 describes the parameter settings using a programming tool to
transfer a file.
• Section 5.6 describes the FTP operation command on the FTP client (external
device) side that is supported by the Ethernet module.
POINT
To know about the following items, see the User's Manual (Basic).
(1) Detailed descriptions of the error codes
Troubleshooting, error check methods, descriptions and reference manuals of error codes
(2) Storage locations of the error codes for the Ethernet module
Storage locations (buffer memories) of error codes
A - 16 A - 16
Structure of this manual
(1) Setting Parameters with a programming tool
(a) By setting parameters with a programming tool, the sequence programs for
communicating with external devices can be simplified in the Ethernet module.
(b) In this manual, parameter settings using a programming tool are explained
in detail for each item displayed on the setting screens.
For details on the types of the setting screens, objectives of the settings,
the setting items and an outline of the setting operation using a programming tool, see the User's Manual (Basic).
(c) Refer to the chapters related to the functions to be used and set the
required parameters. Then load the set parameters to the programmable controller CPU of a station where an Ethernet module is connected.
A - 17 A - 17
(2) Setting screen of a programming tool
This manual explains the parameter settings with a programming tool in the following format.
The following illustration is for explanation purpose only, and should not be referred to as an actual documentation.
A - 18 A - 18
Depending on the function used, "(Address: H)" may be indicated after some
function names. This address indicates the buffer memory address of the Ethernet module in which the setting values from a programming tool are stored. For more details on the buffer memory, see the User's Manual (Basic).
Open the network parameter screens as follows.
QCPU: Project window [Parameter] [Network Parameter] [Ethernet/CC IE/MELSECNET]
LCPU: Project window [Parameter] [Network Parameter] [Ethernet/CC IE Field]
A - 19 A - 19

About the Generic Terms and Abbreviations

This manual uses the following generic terms and abbreviations to describe the QJ71E71-100, QJ71E71-B5, QJ71E71-B2, and LJ71E71-100 Ethernet interface modules, unless otherwise specified.
Generic Term/Abbreviation Description
ACPU A generic term for the AnNCPU, AnACPU, and AnUCPU
AnACPU
AnNCPU
AnUCPU
BUFRCV The abbreviation for ZP.BUFRCV
BUFRCVS The abbreviation for Z.BUFRCVS
BUFSND The abbreviation for ZP.BUFSND
CLOSE The abbreviation for ZP.CLOSE
Control CPU
Control system CPU A programmable controller CPU that controls operations in a redundant system
CPU module A generic term for the QCPU and LCPU
ERRCLR The abbreviation for ZP.ERRCLR
ERRRD The abbreviation for ZP.ERRRD
Ethernet Address
Ethernet module
Ethernet network system
GX Developer
GX Works2
LCPU Another term for the MELSEC-L series CPU module
LCPU station The abbreviation for the programmable controller where the LCPU is connected
L series Ethernet module The abbreviation for the LJ71E71-100 Ethernet interface module
MELSECNET/10 The abbreviation for the MELSECNET/10 network system
MELSECNET/H The abbreviation for the MELSECNET/H network system
MRECV The abbreviation for ZP. MRECV
MSEND The abbreviation for ZP.MSEND
Network module
(N/W module)
OPEN The abbreviation for ZP.OPEN
External device
A generic term for the A2ACPU, A2ACPU-S1, A2ACPUP21/R21, A2ACPUP21/R21­S1, A3ACPU, and A3ACPUP21/R21
A generic term for the A1NCPU, A1NCPUP21/R21, A2NCPU, A2NCPU-S1, A2NCPUP21/R21, A2NCPUP21/R21-S1, A3NCPU, and A3NCPUP21/R21
A generic term for the A2UCPU, A2UCPU-S1, A2ASCPU, A2ASCPU-S1, A3UCPU, and A4UCPU
A programmable controller CPU that controls connected I/O modules and intelligent function modules.
In a multiple CPU system, there are multiple CPU modules and each connected module can be controlled by a different CPU module.
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.
The abbreviation for the QJ71E71-100, QJ71E71-B5, QJ71E71-B2, and LJ71E71-100 Ethernet interface modules. (Indicated as the Ethernet module or E71 in the figures)
The abbreviation for 10BASE2,10BASE5, 10BASE-T, and 100BASE-TX network systems
The product name of the software package for the MELSEC programmable controllers
The abbreviation for interface modules compatible with the CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10 network system
A generic term for personal computers, computers, work station (WS) and Ethernet module etc. that are connected by the Ethernet for data communication
A - 20 A - 20
Generic Term/Abbreviation Description
Programming tool A generic term for GX Developer and GX Works2
QCPU
QnUDVCPU
Q series Ethernet module
Basic model QCPU A generic term for the Q00JCPU, Q00CPU, and Q01CPU
High Performance model QCPU
Process CPU A generic term for the Q02PHCPU, Q06PHCPU, Q12PHCPU, and Q25PHCPU
Redundant CPU A generic term for the Q12PRHCPU and Q25PRHCPU
Universal model QCPU
Built-in Ethernet port QCPU
Safety CPU A generic term for the QS001CPU
QCPU station The abbreviation for the programmable controller where the QCPU is connected
QnACPU
READ The abbreviation for JP.READ and GP.READ
RECV The abbreviation for JP.RECV and GP.RECV
RECVS The abbreviation for Z.RECVS
Reference Manual
REQ The abbreviation for J.REQ, JP.REQ, G.REQ and GP.REQ
SEND The abbreviation for JP.SEND and GP.SEND
SREAD The abbreviation for JP.SREAD and GP.SREAD
SWRITE The abbreviation for JP.SWRITE and GP.SWRITE
Standby system CPU
System A CPU
System B CPU
UINI The abbreviation for ZP.UINI
User's Manual (Application)
User's Manual (Basic)
User’s Manual (Web function)
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 generic term for a Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU, and Universal model QCPU
A generic term for the Q03UDVCPU, Q04UDVCPU, Q06UDVCPU, Q13UDVCPU, and Q26UDVCPU
The abbreviation for the QJ71E71-100, QJ71E71-B5, and QJ71E71-B2 Ethernet interface modules
A generic term for the Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU, and Q25HCPU
A generic term for the Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU, Q03UDCPU, Q03UDVCPU, Q03UDECPU, Q04UDHCPU, Q04UDVCPU, Q04UDEHCPU, Q06UDHCPU, Q06UDVCPU, Q06UDEHCPU, Q10UDHCPU, Q10UDEHCPU, Q13UDHCPU, Q13UDVCPU, Q13UDEHCPU, Q20UDHCPU, Q20UDEHCPU, Q26UDHCPU, Q26UDVCPU, Q26UDEHCPU, Q50UDEHCPU, and Q100UDEHCPU
A generic term for the Q03UDVCPU, Q03UDECPU, Q04UDVCPU, Q04UDEHCPU, Q06UDVCPU, Q06UDEHCPU, Q10UDEHCPU, Q13UDVCPU, Q13UDEHCPU, Q20UDEHCPU, Q26UDVCPU, Q26UDEHCPU, Q50UDEHCPU, and Q100UDEHCPU
A generic term for the Q2ACPU, Q2ACPU-S1, Q2ASCPU, Q2ASCPU-S1, Q2ASHCPU, Q2ASHCPU-S1, QA3ACPU, Q4ACPU, and Q4ARCPU
The abbreviation for the MELSEC-Q/L MELSEC Communication Protocol Reference Manual
A programmable controller CPU that stands by in case the control system fails in a redundant system
A programmable controller CPU where the system A connector of a tracking cable is connected in a redundant system
A programmable controller CPU where the system B connector of a tracking cable is connected in a redundant system
The abbreviation for the MELSEC-Q/L Ethernet Interface Module User's Manual (Application)
The abbreviation for the Q Corresponding Ethernet Interface Module User's Manual (Basic) and MELSEC-L Ethernet Interface Module User's Manual (Basic)
The abbreviation for the MELSEC-Q/L Corresponding Ethernet Interface Module User’s Manual (Web function)
A - 21 A - 21
r

1 OVERVIEW

1 OVERVIEW
MELSEC-Q/L
1

1.1 Overview

This manual describes the special functions of an Ethernet interface module (hereinafter, abbreviated as Ethernet module). When applying the following program examples to the actual system, make sure to examine the applicability and confirm that it will not cause system control problems. This chapter describes an overview of the special functions that are available for the Ethernet module.
(1) Send/receive e-mails (Details are explained in Chapter 2)
This function allows the transmission and reception of a maximum of 6k words of CPU information as the main text or attached file of e-mail to/from computers and programmable controller CPUs via the Internet. Furthermore, by setting the automatic notification, the Ethernet module sends e-mail when the notification conditions set by the user match for the transmission from programmable controllers.
Internet network
(Public line)
Internet service provider
Internet service provide
Mail server
1 - 1 1 - 1
1 OVERVIEW
MELSEC-Q/L
(2) Communicate with a programmable controller in another station via
other networks (Details are explained in Chapter 3)
This function enables accessing other stations via multiple networks in the network system shown below. This function is used for multiple relays through a network in which the Ethernet and CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10 network systems coexist as well as through a network in which multiple Ethernet network systems are connected. Using this function, a programmable controller in another station is accessible via other networks and Ethernet.
1
1 - 2 1 - 2
1 OVERVIEW
QCPU
MELSEC-Q/L
(3) Perform data communication between programmable controller
CPUs (Details are explained in Chapter 4)
This function sends and receives data to/from another station's programmable controller CPU via the Ethernet using the data link instructions (SEND/RECV/READ/WRITE/REQ/ZNRD/ZNWR). ( It also sends and receives data to/from a programmable controller CPU in another station via Ethernet and other networks.
1 The ZNRD and ZNWR instructions are not available for the CC-Link IE Field
Network.
E71
1)
QCPU
E71
Buffer memory
E71
E71
QCPU
QCPU
SEND
READ WRITE ZNRD ZNWR
REQ
Ethernet (+ network system)
E71
Ethernet (+ network system)
E71
Ethernet (+ network system)
RECV
QCPU
Device
QCPU
Remote
RUN/STOP, etc.
(4) Perform file transfer (FTP) (Details are explained in Chapter 5)
The Ethernet module supports the server function of the TCP/IP standard protocol, FTP (File Transfer Protocol). By using the FTP commands, files in a CPU module can be read or written in file units. This allows files in a CPU module to be managed with devices such as computers. This also allows files to be transferred or a file list to be browsed as needed.
1 - 3 1 - 3
1 OVERVIEW

1.2 Additional Functions in Function Version B or Later

The following table lists the functions added to Q series Ethernet modules of function version B or later.
POINT
(1) The added/changed functions shown in this section includes the functions
added in the first products or later of function version B and function version D. For the function version, serial No., and software version of the Ethernet module and related products (CPU module and programming tool) with the added/changed functions, see the User's Manual (Basic).
(2) For functional comparisons depending on the Ethernet module function version,
refer to the User's Manual (Basic).
When using the e-mail function
When using the file transfer (FTP server) function
(1) Functions added for function version B
Function Overview
Sending files in CSV format as attachment Sending main text Sends main text of up to 960 words from the Ethernet module.
Support for encoding/ decoding
Remote password check
Support for multiple CPU systems
Sends a file in CSV format as attachment to e-mail from the Ethernet module.
The following encoding/decoding is supported.
• Encode the Subject using 7 bits encoding and send it from the Ethernet module.
• Decode and receive an e-mail encoded with Quoted Printable by the Ethernet module.
Unlocks/locks the remote password of the QCPU. The unlock processing enables access to the QCPU using FTP commands. The QCPU transfers files to the control CPU/non-control CPU of the Ethernet module when a multiple CPU system configuration is used.
MELSEC-Q/L
Reference
section
Chapter 2
Chapter 5
1 - 4 1 - 4
1 OVERVIEW
When using the e-mail function
Specifying target station number in data link instructions
Specifying target station’s CPU type in data link instructions
Increased data length of data link instructions (480 to 960 words)
Setting the arrival monitoring time of the data link instruction in 100ms increments
MELSEC-Q/L
(2) Function added for function version D
Function Overview
Sending character strings in the e-mail’s main text by the programmable controller CPU monitoring function
1 In a multiple network system, when transferring data exceeding 480 words to a station of
another network No., specify the Q or L series models to all of the request source, relay station and request target.
The programmable controller CPU monitoring function allows transmission of character string information stored in word devices by the e-mail’s main text.
In the following data link instructions, the target station number 65 to 120 can be specified. (Specification of the station number 65 to 120 in the CC-Link IE Controller Network and CC-Link IE Field Network is available.)
• SEND
• READ/SREAD
• WRITE/SWRITE
• REQ
In the following data link instructions, the target station’s CPU type can be specified ((S1)+3). (Specification of control/standby system or system A/B in the redundant system is available.)
• READ/SREAD
• WRITE/SWRITE
• REQ
The data length can be specified up to 960 words in the following data link instructions:
• SEND
• RECV/RECVS
• READ/SREAD
• WRITE/SWRITE
Using the following data link instructions, arrival monitoring time can be set in 100ms increments.
• READ/SREAD instructions
• WRITE/SWRITE instructions
1
Reference
section
Chapter 2
Chapter 4 Chapter 6
Chapter 6
1 - 5 1 - 5

2 USING THE E-MAIL FUNCTION

MELSEC-Q/L
2 USING THE E-MAIL FUNCTION

2.1 E-mail Function

The e-mail function sends and receives CPU information (programmable controller CPU status and device values) to/from PCs or programmable controller CPUs in remote locations via the Internet. The following two methods are available to send/receive e-mail using this function.
(1) Sending/receiving e-mail by the programmable controller CPU
Executed by a sequence program using dedicated instructions.
(2) Sending e-mail using the Ethernet module’s programmable
controller CPU monitor function
Executed by the Ethernet module according to the Ethernet module parameter setting (news setting) of a programming tool.

2.1.1 E-mail send and reception by the programmable controller CPU

(1) Sending/receiving e-mail by the programmable controller CPU
In sending/receiving e-mail by the programmable controller CPU, the CPU information of a station in which an Ethernet module is installed is sent to another Ethernet modules or an external device such as a PC as the main text or attached file of e-mail. E-mail sent from other Ethernet modules and PCs can
Sending e-mail by the programmable
controller CPU (MSEND instruction)
Attached
file
Main text Designating using ASCII data
2 - 1 2 - 1
also be received.
External device
Portable terminal
PC
cannot handle attached files)
(device that
Maximum 6k words
Maximum 960 words
Subject
Binary format
Binary to ASCII conversion
Binary to CSV conversion
Ethernet module
(MRECV
instruction)
(1)
(2)
: Can receive data. : Some restrictions apply. : Cannot receive data. 1 The Ethernet module receives the Subject without decoding. 2 The MRECV instruction is normally completed when a data size (the size the
MRECV instruction receives) after conversion is within 6144 words.
(a) Sending e-mail by the programmable controller CPU (MSEND instruction)
Data transmission is performed via the main text or attached file of e-mail using the MSEND instruction.
1) For an attached file, device data and other information is sent by converting into binary/ASCII/CSV data format.
2) For the main text, ASCII code data (character string data) created by a sequence program is sent.
(b) Receiving e-mail by the programmable controller CPU (MRECV instruction)
Receives attached file data of e-mail using the MRECV instruction. The main text data of e-mail cannot be received.
Remarks
2
2 USING THE E-MAIL FUNCTION
Programmable controller CPU
Subject
(ASCII data)
(2) Data conversion method used by the Ethernet module
The following shows the data conversion method used by the Ethernet module.
When sending e-mails When receiving e-mails
Encode
(Base64/7bit)
Mail
server
Mail
server
Subject
(ASCII data)
MELSEC-Q/L
(Does not decode)
Programmable
controller CPU
2
MSEND
instruc-
tion
Programmable controller CPU
MSEND (Mail send)
Main text
(ASCII data)
Attached file (binary data)
Ethernet
module
Mail send
(Binary data)
(ASCII data)
(CSV data)
Encode
(7bit)
Encode
(Base64)
Main text
(ASCII data)
Attached file
(binary data)
Cannot be received
Decode (Base64/7bit/8bit
/Quoted Printable)
(3) Flow of the e-mail
The following diagram illustrates the flow of e-mail sent by the programmable controller CPU to its reception by the external device:
Mail server
1) 2)
Mail server
3)
Checks whether or not any mails were received
Stores information receive mai l
Request to receive mail
Stores receive mail
Ethernet
module
Mails received
No mail received
MRECV
instruc-
tion
Programmable controller CPU
4)
Confirms information of receive mail
MRECV (Reads receive mail)
5)
PC
1) Send an e-mail to the send mail server of the local station's Ethernet module.
2) The send mail server of the local station's Ethernet module sends the e-mail to the receive mail server of the send destination device.
[When receiving by the Ethernet module]
3) The Ethernet module checks whether any mail has arrived at the inquiry interval set with a programming tool and stores the results to the buffer memory.
4) By executing the MRECV instruction, the Ethernet module reads e-mails from the e-mail server to the mail buffer. The programmable controller CPU reads one e-mail and stores it in the mail buffer of the programmable controller CPU's device.
By user designation with the MRECV instruction, the Ethernet module
reads the number of remaining receive mails on the mail server and stores this number in the buffer memory.
[When receiving by a PC]
5) Mails are received using a mail user agent.
POINT
The e-mail send/reception function by the programmable controller CPU and the communication function using the random access buffer cannot be used together. Only one of them can be used at any given time.
2 - 2 2 - 2
(
)
2 USING THE E-MAIL FUNCTION
MELSEC-Q/L

2.1.2 Sending e-mail using the programmable controller CPU monitor function

(1) Monitor function of the programmable controller CPU
The monitor function of the programmable controller CPU is used to regularly monitor the status of the programmable controller CPU and device values, and send e-mail to the designated external device when they match with the notification conditions (programmable controller CPU status and device values)
Sending e-mail using the programmable
Attached
file
Main text
set by the user.
controller CPU monitor function
(news setting)
Subject
Binary to ASCII conversion
Binary to CSV conversion
Binary to ASCII conversion
1
)
(
Binary format
Binary format
Ethernet module
(MRECV
instruction)
(2)
External device
PC
Portable terminal
(device that cannot
handle attached files)
1 For the notification of CPU status monitoring, only the Subject (that stores the
programmable controller CPU status) will be sent.
2 The Ethernet module receives the Subject without decoding.
(a) The programmable controller CPU in the Ethernet module loaded station is
monitored for every CPU inquiry time interval set by the user. The following information can be registered as the notification conditions.
1) Device monitoring of the programmable controller CPU
• Monitoring the numeric values stored in the word device
• Monitoring the bit device ON/OFF status
2) Monitoring of the programmable controller CPU status
• Monitoring the CPU module status (RUN/STOP/PAUSE)
(b) The device monitoring result of the programmable controller CPU is sent by
either the main text or attached file of e-mail.
1) The attached file is sent by converting the device monitoring data into binary/ASCII/CSV data format.
2) The main text is sent by converting the device monitoring data into Binary or ASCII format data.
(c) As for the status monitoring result of the programmable controller CPU, only
the Subject (that stores the programmable controller CPU status) is sent.
(d) When more than one send mail address are specified in the new
specification setting, the smallest numbered address is set in the "To" field of the mail header. The other addresses are set into the "Cc" field for transmission.
(2) Data conversion method used by the Ethernet module
The following shows the data conversion method used by the Ethernet module.
Ethernet
module
Subject
(binary data)
Main text
(binary data)
(ASCII data)
(binary data)
(ASCII data)
Encode
(Base64/7bit)
Encode
(7bit)
Mail
server
Remarks
Maximum 960 words
Maximum 960 words
CPU monitoring
Attached file (binary data)
(binary data)
(ASCII data)
CSV data
Encode
(Base64)
2 - 3 2 - 3
2 USING THE E-MAIL FUNCTION
(3) Flow of the e-mail
The diagram shown below illustrates the flow of e-mails from the local station's Ethernet module to the external device after the monitor values match with the news conditions.
Programmable controller CPU
Status Device value
Ethernet module
1)
Read monitoring information
2)
Check news conditions
No match
Match
3)
Send mail
MELSEC-Q/L
Mail server
External
4)
device
1) Reads the monitoring information (such as status and device values) of the programmable controller CPU.
2) Checks whether the monitoring information read and the news conditions set by the user match. (Checks match/mismatch of the news conditions.)
3) Sends an e-mail when the monitored values match with the news conditions.
Multiple news conditions may be set so that an e-mail can be sent
(notified) when any of the conditions matches. (See Section 2.9.1.) Set the CPU inquiry time interval used by the Ethernet module to monitor the programmable controller CPU, considering the interval of change time in the monitoring target. After a news condition match occurs, the Ethernet module must confirm the mismatches of other news conditions for the same monitoring target. The next e-mail can be sent only after the Ethernet module confirms the mismatches of these news conditions.
4) The Subject of e-mail, which is sent when the notification conditions match, is fixed data. The format of the Subject is as follows (see Section 2.9.2):
• When monitoring the CPU status
Subject = "No. of transmissions (
1), CPU model name, Status,
Detection time"
• When monitoring the CPU device
Subject = "No. of transmissions (
1), Matched condition device,
Monitoring value... "
1 This is the number automatically added each time an Ethernet module sends
an e-mail. The numbers are counted up from 1. When the number reaches 4294967296, the number is cleared to 0. Then the numbers are counted up from 0 again to 4294967296.
POINT
The e-mail transmission function of the programmable controller CPU and the communication function using the random access buffer can be used together.
2 - 4 2 - 4
2 USING THE E-MAIL FUNCTION

2.2 Configuration and Environment of the Applicable System

This section explains the environment and system configuration for using the e-mail function from the Ethernet module.
Internet
(Public line)
MELSEC-Q/L
Internet service provider
Public line
Router Router
TA/modem
Proxy server DNS server
External device
SMTP/POP3 (Mail server)
Ethernet
Ethernet module
Ethernet
External device
(1) E-mails can be sent and received in an environment where the Internet service is
available as shown above.
(2) Set each Internet mail setting value for the Ethernet module and PC following the
directions from the Internet service provider or system administrator.
(3) Use a programming tool to set each parameter for use of the e-mail function in an
Ethernet module.
Internet service provider
Proxy server DNS server
Ethernet
Ethernet
SMTP/POP3 (Mail server)
Ethernet module
2 - 5 2 - 5
2 USING THE E-MAIL FUNCTION

2.3 Precautions for Using the E-mail Function

The following explains precautions when using the e-mail function of the Ethernet module.
(1) Precautions regarding the system
(a) Design the system so that the entire system operates normally at all times
when sending/receiving e-mails to/from a running system and controlling the programmable controller.
(b) In order to avoid programmable controller system malfunctions caused by
receptions of illegal e-mails from the outside sources, take precautions in preventing illegal e-mails from being received on the mail served on the Ethernet module side (using an anti-virus program, etc).
(2) Precautions regarding the external device
(a) E-mails can be sent to programmable controller CPU stations with Q series
Ethernet modules connected. Note that A/QnA series Ethernet modules do not have the e-mail function; therefore, e-mails cannot be sent to programmable controller CPU stations.
(b) To send files to the Ethernet module as attachments to e-mail, specify the
encoding method (Base 64/7 bits/8 bits/Quoted Printable) of the attached files.
(3) Common precautions
(a) The Ethernet module stores the data of attached files received from the
external device in the device specified by the MRECV instruction without converting it from ASCII to binary.
(b) The maximum sizes of data that can be sent/received by the Ethernet
module are as follows:
• Data size of attached files: Up to 6k words
• Data size of main text: Up to 960 words
(c) Mails that are sent and received do not support encrypted data, compressed
data, and data conversion.
(d) When the external device could not be found in an e-mail sending from the
Ethernet module, the error code can be checked through the reception processing with the MRECV instruction.
If an external device cannot be found when sending e-mail using the
MSEND instruction, failure of e-mail transmission may not be recognized, depending on the operation of the mail server. Be sure to verify the receiver's e-mail address in advance.
Error codes are stored within the control data of the MRECV instruction.
(For details on error codes, refer to the User’s Manual (Basic).)
(e) The e-mail function is supported for the SMTP and POP3 servers.
MELSEC-Q/L
2 - 6 2 - 6
2 USING THE E-MAIL FUNCTION
(f) When communication errors of e-mails cannot be checked by a dedicated
instruction, check the error codes stored in the mail send/reception error log area of the buffer memory.
(g) If e-mails cannot be received, try one of the following.
1) Execute the MRECV instruction once.
2) Shorten the "Enquiry Interval" time in the e-mail settings of a programming tool.
3) Check the number of incoming mails remaining on the mail server. (Can be checked with the buffer memory address 5870
(h) When the receive data of an e-mail sent using the MSEND instruction is
abnormal (garbled characters, etc.), review the transmission data format (binary/ASCII/CSV) designated with the MSEND instruction.
The Subject should be designated in ASCII code data. (It is not converted to ASCII format.)
(i) Confirm with a system administrator regarding the minimum time intervals for
accessing the mail server when sending mails, reading receive mails, and inquiring whether or not there are receive mails. Depending on the mail server's security setting, frequent access may be prohibited.
(j) The e-mail send/reception function using the programmable controller CPU
and the communication function using the random access buffer cannot be used together. Only one of them can be used at a time.
The e-mail send function using programmable controller CPU monitoring
and the communication function using the random access buffer can be used together.
(k) A Subject that has been sent by the MSEND instruction from an Ethernet
module of the following versions, cannot be received normally by the MRECV instruction.
Ethernet modules with serial numbers where the first 5 digits are 03101
or less Different methods are used for converting Subject data at send and reception. (See Section 2.1.1 (2).)
When sending: Encodes the Subject and then send it.
When receiving: Receives the Subject without decoding it.
MELSEC-Q/L
H area.)
2 - 7 2 - 7
2 USING THE E-MAIL FUNCTION

2.4 E-mail Specifications

MELSEC-Q/L
Transmission
specifications
Transmission
and reception
data
The following table lists the specifications of the e-mail function.
Item Specification
Data size
Data transfer method
Subject Us-ASCII format or ISO-2022-JP (Base 64) Attached file format MIME format MIME Version 1.0
Data of attached file format
Division of attached file
When sending (encode)
When receiving (decode)
Encryption No Compression No Communication with mail server Operation check mailer Microsoft
Attached file 6 k words 1 Main text 960 words
When sending: Sends either a file as attachment or main text (select one).
When receiving: Received a file as attachment.
Binary/ASCII/CSV can be selected.
File name: XXXX.bin (binary), XXXX.asc (ASCII), XXXX.csv (CSV)
(CSV: Comma Separated Value)
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.
Subject: Base 64/7 bits
Main text: 7 bits
Attached file: Base 64
Subject: (Does not decode)
Main text: (Cannot be received)
Attached file: Base 64/7 bits/8 bits/Quoted Printable
If e-mail is sent from the external device to the programmable controller side, specify the
encoding method (Base 64/7 bits/8 bits/Quoted Printable) of the attached file.
SMTP (sending server) Port number = 25
®
Corporation Microsoft Office Outlook 2003
POP3 (receiving server) Port number = 110
1
REMARKS
Internet mail terminology list:
DNS server: Server that manages networks SMTP server: Server that delivers (transfers) e-mail between mail servers POP3 server: Server that transfers received e-mail addressed to subscribers to
the corresponding subscribers
2 - 8 2 - 8
2 USING THE E-MAIL FUNCTION

2.5 Processing Procedure of the E-mail Function

The following flowchart illustrates the procedure that is required before sending and receiving e-mails:
Start
When DNS is not used
Register the DNS server
Register the mail address of the local station's Ethernet module
When DNS is used
See Section 2.6 (1)
See Section 2.6 (2)
MELSEC-Q/L
When sending/receiving e-mails using the programmable controller CPU
Register the mail address of
the external device
(without news setting)
See Section 2.6 (3)
Reset the CPU, or Stop and Run the CPU
1
Send/receive
data as an attached
file of e-mail
See Section 2.7
1
The open and close processing of the communication line for sending/receiving e-mails is automatically executed by the Ethernet module.
Send data as
main text of e-mail
See Section 2.8
Register the mail address of
Set the news condition See Section 2.9.1
1
(news information)
When sending e-mails using the CPU monitoring function
the external device
(with news setting)
Read the CPU
information
News condition matching
Send E-mail
Unmatched
Matched
See Section 2.6 (3)
Performed by the Ethernet module
1
2 - 9 2 - 9
2 USING THE E-MAIL FUNCTION

2.6 E-mail Setting Using a Programming Tool

This section describes the settings required to send and receive e-mails using a programming tool.
(1) DNS setting
[Purpose of setting]
Specify the IP address of the DNS server when setting the mail server name using the domain name by the e-mail setting (see (2)).
[Start procedure]
Network parameter setting screen Initial Setting
[Setting screen]
MELSEC-Q/L
2 - 10 2 - 10
2 USING THE E-MAIL FUNCTION
Item name Description of setting Setting range/options
TCP ULP Timer Set the time of packet existence at TCP data send. 2 to 32767
TCP Zero Window Timer
TCP Resend Timer Set the time to resend at TCP data send. 2 to 32767
TCP End Timer
IP Assembly Timer Set the wait time for division data packets. 1 to 32767
Timer Setting
(
1)
DNS Setting
Response Monitoring Timer Set the response wait time. 2 to 32767
Dest. Confirmation Start Interval
Dest. Confirmation Interval
Dest. Confirmation Resend
Input Format
IP Address of DNS Server 1 Set the IP address of DNS server 1.
IP Address of DNS Server 2 Set the IP address of DNS server 2.
IP Address of DNS Server 3 Set the IP address of DNS server 3.
IP Address of DNS Server 4 Set the IP address of DNS server 4.
1 See the User's Manual (Basic).
(a) DNS setting
Designate the Internet service provider used by the local station's Ethernet module and the IP addresses of the domain name servers (DNS) designated by a system administrator.
1) Select the input format of the IP addresses (decimal/hexadecimal).
2) Designate the IP addresses of the DNS servers to DNS servers 1 to 4.
POINT
(1) The DNS servers manage networks.
DNS settings are required to search for the SMTP server and POP3 server from a domain name.
(2) Make the DNS setting when the mail server name shown in item (2) is
specified with a domain name. No setting is required when it is specified with an IP address.
(3) When obtaining the IP addresses from a domain name, the DNS servers are
searched sequentially starting from the first DNS server.
Initial settings
Set the interval for checking the receive enabled status.
Set the confirmation wait time at TCP close processing.
Set the time to start confirming existence of an external device after communication with it has terminated.
Set the time interval between reconfirming existence.
Set the number of times to reconfirm existence when a response to the existence confirmation is not received.
Select the input format of the IP addresses of the DNS servers.
MELSEC-Q/L
2 to 32767
2 to 32767
1 to 32767
1 to 32767
1 to 32767
DEC/HEX
2 - 11 2 - 11
2 USING THE E-MAIL FUNCTION
(2) E-mail setting
[Purpose of setting]
Perform the setting to use the e-mail function.
[Start procedure]
Network parameter setting screen E-mail Setting
[Setting screen]
MELSEC-Q/L
General Setting
Mail Server Name
[Setting item]
Item name Description of setting item Setting range/option Password Set the password to the mail server Up to 63 characters Mail Address Set the mail address for the Ethernet module Up to 256 characters
• Check mark
Check Received Mail
Enquiry Interval
SMTP Server
Send Mail
Setting
Receive Mail
Setting
Name
Input format Select the input format of the send mail server's IP address
IP Address Set the IP address of send mail server 00000001 POP Server Name Set the receive mail server name Up to 256 characters
Input format
IP Address Set the IP address of the receive mail server 00000001
Select whether or not to make inquiries to the incoming mail server regarding the receiving status
Set the time interval and unit for making inquiries to the incoming mail server
Set the send mail server name Up to 256 characters
Select the input format of the receive mail server's IP address
(Inquire)
• No check mark (Do not inquire)
• 30 s to 24 h
• h/min/s
• DEC
• HEX
• DEC
• HEX
H to FFFFFFFEH
H to FFFFFFFEH
2 - 12 2 - 12
2 USING THE E-MAIL FUNCTION
(a) General settings
Designate the mail setting values that have been registered with the Internet service provider of the local station's Ethernet module or the mail registration information designated by the system administrator.
1) Password: Designate the mail password of the local station's Ethernet module.
2) Mail address: Designate the mail address of the local station's Ethernet module.
3) Check receive mails: Select whether or not to check if receive mails have arrived and set the checking time interval when incoming mails are checked. When receive mail check is designated, set the time interval for inquiring the mail server whether or not there are mails addressed to the user.
The following table shows each setting range of the inquiry time intervals for checking receive mails. (30 s to 24 h)
Time units Setting range (default: 5 min)
h 1 to 24
min 1 to 1440
s 30 to 3600
POINT
If the inquiry time interval from the programmable controller CPU or other module to the server is short because of the POP3 server specifications, access may be restricted (lock status) on the server side. Check the POP3 server specifications, and set the inquiry time interval accordingly. (It is recommended to set the setting value of the inquiry time interval to the default (5 minutes) or more.)
(b) Mail server name
Set the Internet service provider and the domain name or IP addresses of the mail servers designated by the system administrator, used by the local station's Ethernet module.
1) Designate the domain name of the mail server.
2) Select the input format (decimal/hexadecimal) of the IP addresses.
3) Set the IP address of the outgoing mail server (SMTP).
4) Set the IP address of the incoming mail server (POP3).
POINT
• The SMTP server delivers (transfers) e-mails between mail servers.
• The POP3 server transfers received e-mails addressed to users to the corresponding users.
• The mail server names must be designated to use the e-mail function. (See POINT of (1).)
MELSEC-Q/L
2 - 13 2 - 13
2 USING THE E-MAIL FUNCTION
(3) Send mail address setting
[Purpose of setting] Register the e-mail address of the external devices where e-mail is to be sent.
[Start procedure] E-mail setting screen Send Mail Address Setting
[Setting screen]
MELSEC-Q/L
Item name Description of setting Setting range/Selections
Send Mail Address Set the mail address of the transmission destination Up to 256 characters
News Specification Select whether or not to set news
[Setting item]
• Execute News
• No Execute
(a) Send mail address
1) Designate the mail addresses of a maximum of 16 external devices to which mails are sent from the local station's Ethernet module. one e-mail address can be specified for each area.)
2) In the send e-mail address setting, sequentially set up e-mail addresses starting from No. 1. To delete an e-mail address with a mid-setting number, specify dummy e-mail addresses before that address. (If it is preceded by any empty e-mail address areas, subsequent setting numbers and areas will move forward to fill in any empty numbers and areas after each setting, so the setting numbers will change.)
3) When sending (MSEND instruction) e-mail by the programmable controller CPU, specify these setting numbers (1 through 16) in the control data.
(b) News specification
Designate whether or not to send the news information set with the CPU monitoring function.
Item Explanation
News Specification
Execute News No Execute
For more details on the news settings, see Section 2.9.
(Only
2 - 14 2 - 14
(
)
2 USING THE E-MAIL FUNCTION
MELSEC-Q/L

2.7 Sending/Receiving E-mail (Attached Files) by the Programmable Controller CPU

This section explains how to send and receive attached files of e-mail using the dedicated instructions (MSEND/MRECV) available for the Ethernet module.

2.7.1 When sending data as an attached file

The following explains the MSEND instruction and program for sending e-mail. The following illustration shows how the MSEND instruction is used to store data in an attached file and send it to an external device.
2) 3) 4)1)
ZP.MSEND
QCPU QJ71E71
"Un"
I/O No.
(S2)(S1)
Mail address (Parameter setting)
(D)
Subject + attached file
Desti­nation
5)
Main text of mail
6) Attached file
.bin/.asc/.csv
Mail server
1) I/O number of the Ethernet module
2) Control data (such as send mail address) This indicates the mail address of the send destination device set on the send mail address settings screen.
3) Send mail (subject + attached file) Subject consists of No. of transmissions and the character data designated by the sequence program. (It is not converted to ASCII format.)
The Subject should be designated in the sequence program in ASCII
4) Complete bit
characters.
5) Main text of mail There is no data for the main text of mail.
The send data is included in the attached file.
6) Attached file This indicates the device data designated by the MSEND instruction. The attached file is sent in either one of binary format, ASCII format or CSV format. The transmission format for attached file is designated in the control data of the MSEND instruction. (See (3)
1.)
2 - 15 2 - 15
2 USING THE E-MAIL FUNCTION
(1) Send using the sequence program
The following explains how an e-mail is sent using the sequence program. See Chapter 6 MSEND for detail.
Direction
Send the e-mail
Create control data at D20 and on
Create send data at D200 and on
MELSEC-Q/L
Initial normal completion signal (X19)
MSEND instruction
MSEND instruction completion device
ZP.MSEND
M11M10
Processing program when normal completion
M11
Processing program when abnormal completion
"U0"
(2) Execution timing of the instruction
Initial processing E-mail sending
1)
2)
D20 D200 M10
MSEND
3) 1 scan
Abnormal
MSEND instruction completion device + 1 (Normal completion/abnormal completion)
completion
1) Start the local station programmable controller. The parameters for the e-mail function are stored in the Ethernet module.
2) Execute the MSEND instruction. The e-mail designated with the MSEND instruction is sent to the mail server.
3) When the e-mail sending to the send mail server is completed, the MSEND instruction completion device turns on. When the completion device + 1 (abnormal completion signal) turns on, the error code is stored in the control data completion status ((S1)+1).
For details on the causes of errors, see the User's Manual (Basic).
2 - 16 2 - 16
2 USING THE E-MAIL FUNCTION
(3) Sample program
The following shows a sample program for sending e-mails by the programmable controller CPU. Perform e-mail send processing using the send command (X20). The contents of the send data are shown in (4).
MELSEC-Q/L
When I/O signals of the Ethernet module are X/Y00 to X/Y1F.
Designate ASCII as the send data format.
Designate the send destination number.
Designate the send data length.
Designate the subject length.
Designate subject.
Designate the attached file.
Send the e-mail.
Processing program when normal completion
Processing program when abnormal completion
REMARKS
When an error occurs while sending e-mail from the sending mail server to an external device, an error code is stored in the receiving error log area.
2 - 17 2 - 17
2 USING THE E-MAIL FUNCTION
1 The following shows the transmission format of the attached file designated in the
control data of the MSEND instruction.
For how to select the binary format, ASCII format, and CSV format, see Section
6.3.
b12 to b8
Complete type
MELSEC-Q/L
Setting values for designating the
attached file transmission format
b12 b11 b10 b9 b8
0 0 0 0 0 Binary
0 1 0 0 0 ASCII
0 1 0 0 1 CSV
Format set Applicable station Description of processing
(a) Select binary format or ASCII format for communications between Ethernet
modules. To use ASCII format, set a data size (the size the MRECV instruction receives) after conversion into ASCII within 6144 words. The attached file of the MSEND instruction will be sent as is.
The name of the attached file is mmddhhss.bin (system date.bin).
(b) Designate either binary format, ASCII format or CSV format when a PC/UNIX
receives e-mail sent from an Ethernet module. The attached file of the MSEND instruction will be sent in the designated format.
1) When binary format is designated
2) When ASCII format is designated
3) When CSV format is designated
Designate the transmission format of the attached file.
Ethernet module Personal computer/UNIX
Ethernet module Personal computer/UNIX
Personal computer/UNIX
Sends the attached file in binary format.
.bin)
(
Sends the attached file in ASCII format. The Ethernet module converts the attached file from binary to ASCII. ( Note that some restrictions apply to receive an attached file in ASCII format sent with the MSEND instruction by an Ethernet module. (Refer to (a) below.)
Sends the attached file in CSV format. The Ethernet module converts the attached file from binary to CSV. (
.asc)
.csv)
mm: Month dd: Date hh: Hour ss: minute
The name of the attached file is mmddhhss.bin (system date.bin). mm: month dd: day hh: hour ss: minute
The name of the attached file is mmddhhss.asc (system date.asc). mm: month dd: day hh: hour ss: minute
The name of the attached file is mmddhhss.csv (system date.csv). mm: month dd: day hh: hour ss: minute
For details on how to receive e-mails, see (4) on page 2-17.
The system date for the file name is the data managed by the
programmable controller of the station in which the Ethernet module is installed.
2 - 18 2 - 18
2 USING THE E-MAIL FUNCTION
(4) Receiving by a personal computer
The following explains how a PC/UNIX receives e-mails sent from the Ethernet module. After setting the environment where the Internet is accessible with a mail user agent, receive e-mails on the receiving message screen as follows. (Example) The following shows an example of the reception of e-mail sent using
MELSEC-Q/L
the MSEND instruction (see (3)). (The following is a screen of Microsoft
®
Corporation's Microsoft Office Outlook 2003.)
(a) From
Displays the mail address of the Ethernet module.
REMARKS
By entering the mail addresses of the send destination devices in the address book, the registered names (display names) can be displayed and it makes the management easier.
(b) Subject
This indicates the No. of transmissions ( sequence program.
1 This is the number automatically added each time an Ethernet module
sends an e-mail. The numbers are counted up from 1. When the number reaches 4294967296, the number is cleared to 0. Then the numbers are counted up from 0 again to 4294967296.
(c) Attached file
This indicates the name of the attached file sent by the Ethernet module.
POINT
Data in the attached file in CSV format can be read in cell units in Excel, etc., for each 1 word of data.
1) and the Subject written by a
2 - 19 2 - 19
r
2 USING THE E-MAIL FUNCTION

2.7.2 When receiving data in the attached file

This section explains the MRECV instruction and a program to receive e-mails sent
Mail serve
from external devices.
The MRECV instruction reads the attached file received.
Read
Main text of mail
ZP.MRECV
Qn CPU
"Un"
I/O No.
QJ71E71
2) 3) 4)1)
(S)
MELSEC-Q/L
(D2)
(D1)
Header
Attached file
Header + attached file
1) I/O number of the Ethernet module
2) Control data (such as mail No. to be read)
3) Storage device of header + attached file
4) Complete bit
Receive mail is temporarily stored in the buffer memory shown below.
Address
(hexadecimal)
2680H Received e-mail size Indicates the size of received e-mail (header + attached file) data.
2681H Header size Indicates the size of the header data.
2682H Mail information
2683H Head address of attached file
2684H Head address of header Indicates the head address where the header information is stored.
2685H From head address Indicates the head address of this data stored in the header information.
2686H Date head address Indicates the head address of this data stored in the header information.
2687H Subject head address Indicates the head address of this data stored in the header information.
2688H Attached file name head address Indicates the head address of this data stored in the header information.
2689H Message ID head address Indicates the head address of this data stored in the header information.
268A H System area
Header information (maximum of
268BH to 3FFFH
4000H System area
373 words)
Attached file (maximum of 6144 words)
Item Description
1
(
)
Indicates the head address where the attached file data information is stored.
Indicates the content of the header designation items above.
Indicates the contents of the attached file data.
Remarks
2
(
)
2 - 20 2 - 20
2 USING THE E-MAIL FUNCTION
1 In the mail information storage area, the following information related to the
Mail information storage area b15 b14 to b5 b4 b3 b2 b1 b0
address 2682
receive mail is stored in the corresponding bits.
H (9858) 7) 6) 5) 4) 3) 2) 1)
1) Indicates whether the information (maximum of 128 words) in the From head
address storage area is valid (1) or invalid (0).
2) Indicates whether the information (maximum of 4 words) in the Date head
address storage area is valid (1) or invalid (0).
3) Indicates whether the information (maximum of 64 words) in the Subject
head address storage area is valid (1) or invalid (0).
4) Indicates whether or not there is an attached file Yes (1) or No (0).
For "Yes", it indicates that the information (maximum of 12 words) stored at addresses starting from the Attached file name head address is valid.
5) Indicates whether or not there is information in the Message ID head address
storage area Yes (1) or No (0).
6) Indicates the system information.
7) Indicates whether the receive mail that has not been read to the programmable
controller CPU is stored in the Ethernet module Yes (1) or No (0).
2 The value stored in each head address shown in the table indicates the offset
address (0 applicable address is stored (address: 268B
POINT
H to nH) from the head address of the buffer memory in which the
H to 3FFFH).
(1) The Ethernet module checks whether there is any incoming mail addressed to
the local station in the mail server at the time interval set in "Enquiry Interval" under the e-mail setting screen of a programming tool. If there are incoming mails addressed to the local station, the reception information is stored in the following areas of the buffer memory.
• Bit 15 is turned on in the mail information storage area (see
• The number of receive mails on the mail server is stored in the receive mail count storage area (address 5870
H).
When more than one receive mails are stored on the mail server, the
receive mail information can be stored in the buffer memory in the same way as described above by designating "Inquire" in the MRECV instruction's control data item.
Receive mails can successively be read based on this stored information.
(2) Read receive mails stored on the mail server using the MRECV instruction.
Receive mails will accumulate on the mail server if the MRECV instruction is not executed.
(3) After executing the MRECV instruction, e-mails that have been read are
deleted from the mail server. (Receive mails read will not remain on the mail server.)
(4) If the Ethernet module has received e-mail longer than the reception data
length specified with the MRECV instruction, it stores the data equivalent to the reception data length and ignores the remaining data.
MELSEC-Q/L
1 above).
2 - 21 2 - 21
2 USING THE E-MAIL FUNCTION
(1) Reception using the sequence program
The following explains the designation method in a sequence program. For details, see Section 6.2.
Instruction
Read the receive mail information
Un\G9858.F
M1M0
M1
MELSEC-Q/L
Create control data at D0 and on
E-mail is read if there is recieve mail in Ethernet module
ZP.MRECV
Processing program when normal completion
Processing program when abnormal completion
"U0"
D0 D100 M0
Initial normal completion (X19)
Number of mails remaining on the server (Buffer memory address:
22640) Mail buffer
(Buffer memory address: 9857 to)
Flag indicating whether there are receive mails (Buffer memory address: 9858, bit 15)
MRECV instruction
MRECV instruction completion device
MRECV instruction completion device + 1
(2) Execution timing of the instruction
Initial processing
1)
Inquiry interval Inquiry interval
0
Mail 1 Mail 2
Receive mail confirmation
2)
2
2) 4)
3)
MRECV MRECV
1
Mail 1
1 scan
5)
Abnormal completion
Receive mail confirmation
Mail 2
6)
1 scan
2 - 22 2 - 22
2 USING THE E-MAIL FUNCTION
1) Start up the local station programmable controller.
(1) Reading receive mails to the Ethernet module
(2) When there are two or more receive mails on the mail server
The parameters for the e-mail function are stored in the Ethernet module.
2) Check whether or not any received e-mails are stored on the mail server. If any receive mail has been stored, the receive mail information is stored in the buffer memory.
3) Execute the MRECV instruction. Read e-mails from the server.
E-mails that have been read will not remain on the mail server.
4) The flag indicating whether or not there is a receive mail stays on by
designating "Inquire" with MRECV instruction's control data item.
5) When reading e-mails is completed, the MRECV instruction completion
device turns on. When the completion device + 1 (abnormal completion signal) turns on, the error code is stored in the control data completion status ((S)+1).
For details on the causes of errors, see the User's Manual (Basic).
6) Execute the MRECV instruction. Continue to read e-mails remaining on the mail server.
POINT
The Ethernet module automatically checks the mail server to see whether there is any incoming mail at the inquiry interval set with a programming tool. If there are any receive mails addressed to the local station, the reception information is stored in the buffer memory; the MRECV instruction should be executed based on this information.
By designating "Inquire" in the MRECV instruction's control data, the Ethernet module also reads the information of the remaining receive mails on the mail server and stores it in the buffer memory when the MRECV instruction is executed. Continue to execute the MRECV instruction based on this information.
MELSEC-Q/L
2 - 23 2 - 23
r
g
2 USING THE E-MAIL FUNCTION
(3) Sample program
The following is a sample program for receiving e-mail by a programmable controller CPU. It performs reception processing of e-mail using the receive command (X21).
MELSEC-Q/L
When I/O signals of the Ethernet module are X/Y00 to X/Y1F.
Designate to make inquiry to the server.
Designate to read the head mail.
Designate to adjust to the data length of the receive mail.
Designate to adjust to the heade data length of the receive mail.
Read receive mails.
Processing program when normal completion
Processing program when abnormal completion
The following explains the types of execution that can be designated in the MRECV
instruction's control data. For more details on how to designate the execution types, see Section 6.2 "MRECV Instruction".
b9 b8
Complete type
Type of MRECV instruction execution Designate whether or not to read the next mail after executin
the MRECV instruction.
Setting value for
designating the
type of execution
b9 b8
0 0
1 0
Setting type Description of processing Merit Demerit
The next receive mail cannot be read immediately. Mails tend to accumulate on the mail server.
Inquiries to the mail server become more frequent. More processing in the module affects other internal processing.
Do not inquire
Do not read
Inquire
Read
Execute only e-mail read processing. The inquiry (read) processing of the remaining receive mail information is executed after the time set with a parameter of a programming tool.
Execute read processing of e-mails. After executing the MRECV instruction, the inquiry (read) processing of the remaining receive mail information is also executed.
Inquiries to the mail server can be less frequent.
Mails received by the mail server can be read in succession.
2 - 24 2 - 24
2 USING THE E-MAIL FUNCTION
(4) Sending an e-mail from a personal computer
This section explains how to send e-mails from a PC/UNIX to the Ethernet module. After setting the environment where the Internet is accessible with a mail user agent, create and send an e-mail on the sending message creation screen as follows.
POINT
To send an e-mail to an Ethernet module, use a mail user agent where the encoding method (Base 64/7 bits/8 bits/Quoted Printable) of attached files can be specified.
New Message
Send
MELSEC-Q/L
To:
Subject:
Attach:
Mail address of Ethernet module
TESTMAIL
01234567.bin (12 bytes)
••• (a)
••• (b)
••• (d)(e)
(c)
(a) To
Designate the mail address of the Ethernet module.
(b) Subject
Designate the subject of the e-mail to be sent to the Ethernet module in ASCII format.
(c) Main text
Do not designate data (the Ethernet module ignores it.)
(d) Attach file
Data can be sent as an attached file. Send the attached file data as binary data.
The Ethernet module does not convert the received attached file data
from ASCII to binary.
(e) Attached file name
Designate the name of the attached file using alphanumeric characters. (It is
recommended to use the name within eight characters.) Designate either ".bin" or ".asc" for the attached file extension. The stored data will be received as binary data.
REMARKS
Designate a single attached file when sending e-mail to the Ethernet module. If two or more files are attached, the destination Ethernet module will store only the first file and ignore the rest of the attached files.
2 - 25 2 - 25
2 USING THE E-MAIL FUNCTION

2.7.3 Contents of the attached files

The following explains the contents of the attached file data. The data format of the attached file is ASCII code (ASCII format, CSV format) or binary code (binary format). The following example shows the transmission contents for each data format (binary/ASCII/CSV) when the Ethernet module sends the data register value as an attached file.
(1) When sending from the Ethernet module
Programmable controller CPU
Ethernet module
In case of binary
MELSEC-Q/L
D0
D1
D9
Programmable controller CPU
D20
1234
5678
9ABC
FEDCH
D9 D1 D0
H
H
BIN ASCII conversion
H
BIN CSV conversion
9AH BCH 56H 78H 12H 34H
In case of ASCII
D9
"C" "B" "A" "9" "8" "7" "6" "5" "4" "3" "2" "1"
In case of CSV
D9
,
"C" "B" "A" "9" "8" "7" "6" "5"
,
D1
D1
,
External device
D0
D0
"4" "3" "2" "1"
(2) When receiving by the Ethernet module
Ethernet module
Only binary data can be received.
D20
FEH 98HBAH 21H43
DC
H
D29D21
H
External module
D21
BA98H
D29
4321H
REMARKS
(1) For details on the order of data items when sending/receiving bit device data,
see the figure shown in Section 2.9.2.
2 - 26 2 - 26
(
)
2 USING THE E-MAIL FUNCTION
(2) Data configuration in CSV format
Data in CSV format can be used as control data for the cell units in Excel, etc. Data in CSV format handled by the Ethernet module is the data expressed as follows.
• 1 word (16 bits) binary data is converted to four digit ASCII code when expressed as a hexadecimal. (4 bytes of ASCII code)
• When handling multiple word data, insert comma data between each word (4 bytes of ASCII code).
Data designated by the MSEND instruction or data subject to the news function is sent in the following arrangement.
(a) Arrangement of data sent by the MSEND instruction
1) In addition to the data conversion and insertion described above, CR (code: 0D
2) The arrangement of data sent in CSV format is shown below.
D0 D1 D2 D7
MELSEC-Q/L
H) and LF (code: 0AH) are inserted for each 8 words of data.
,
,
,
[CR + LF]
D8
D16
D24
(b) Arrangement of data sent using the news function
D9
,
D17
,
D25
,
D10 D15
,
,
,
8 device
8-word unit
,
D18 D23
,
[CR + LF]
D26
[CR + LF]
[CR + LF]
1) In addition to the data conversion and insertion of comma data described above, CR (code: 0D each setting device range.
H) and LF (code: 0AH) are inserted for
2) A maximum of 16 types of device ranges can be set for news data.
First device
Second device
Third device
W0
D0
M0 to M15
,
,
M16 to M31
,
See Section 2.9 for details.
3) The arrangement of data sent in CSV format is shown below.
[CR+LF]
W1
D1
W2
,
D2
,
[CR+LF]
,
,
W5
D50
[CR+LF]
n-1 device
n device
X10 to X1F,X20 to X2F,X30 to X3F
B10 to B1F,B20 to B2F,B30 to B3F
Data section can have a maximum of 1920 bytes (total points for the device).
,
,
B60 to B6F
X70 to X7F
[CR+LF]
[CR+LF]
2 - 27 2 - 27
r
2 USING THE E-MAIL FUNCTION

2.8 Sending E-mail (Main Text) by the Programmable Controller CPU

This section explains how to send the main text of e-mail using the dedicated MSEND instruction available for the Ethernet module.

2.8.1 When sending data as main text of e-mail

The following explains the MSEND instruction and program for sending e-mail. The following illustration shows how the MSEND instruction is used to store data in the main text of e-mail and send it to an external device.
2) 3)
4)1)
MELSEC-Q/L
ZP.MSEND
QCPU QJ71E71
"Un"
I/O No.
(S2)(S1)
E-mail address (parameter setting)
1) I/O number of the Ethernet module
(D)
Subject + main text
Desti­nation
5) Main text of e-mail
Mail serve
2) Control data (such as sending e-mail address) This indicates the e-mail address of the transmission destination device set on the Send E-mail Address Settings screen.
3) Sending e-mail (Subject + main text) The Subject consists of No. of transmissions and the character data specified by a sequence program. (It is not converted to ASCII format.)
Designate text data in ASCII characters in sequence programs.
4) Completion bit
5) Main text of e-mail This indicates the character string designated by the MSEND instruction. It is not converted to ASCII format by the Ethernet module.
Designate the main text in ASCII characters in sequence
programs.
The following binary code data is processed as control codes:
0D0A
H: Line feed code CR+LF
00
H: End of main text
It is recommended to use 78 characters or less data when writing
each line of the main text (sending data). (Be sure to add a line feed code CR+LF (0D0A
H) at the end of the main text lines.)
6) Attached file No attached file can be sent when sending data as the main text of e­mail.
2 - 28 2 - 28
2 USING THE E-MAIL FUNCTION
(1) Send using the sequence program
The following explains how an e-mail is sent using a sequence program. For details, see Section 6.3.
Direction
Send the e-mail
Create control data at D20 and on
Create send data at D200 and on
MELSEC-Q/L
Initial normal completion signal (X19)
MSEND instruction
MSEND instruction completion device
ZP.MSEND
M11M10
Processing program when normal completion
M11
Processing program when abnormal completion
"U0"
(2) Execution timing of the instruction
Initial processing E-mail sending
1)
2)
D20 D200 M10
MSEND
3) 1 scan
Abnormal
MSEND instruction completion device + 1 (Normal completion/abnormal completion)
completion
1) Start the local station programmable controller. The parameters for the e-mail function are stored in the Ethernet module.
2) Execute the MSEND instruction. The e-mail designated with the MSEND instruction is sent to the mail server.
3) When the e-mail sending to the send mail server is completed, the MSEND instruction completion device turns on. When the completion device + 1 (abnormal completion signal) turns on, the error code is stored in the control data completion status ((S1)+1).
For details on the causes of errors, see the User's Manual (Basic).
2 - 29 2 - 29
2 USING THE E-MAIL FUNCTION
(3) Sample program
The following shows a sample program for sending e-mail by the programmable controller CPU. Perform e-mail transmission processing the send command (X20). The contents of the send data are shown in (4).
MELSEC-Q/L
When I/O signals of the Ethernet module are X/Y00 to X/Y1F
Designate main text as the send data format.
Designates the send destination number.
Designate the send data length.
Designate the subject length.
Designate Subject.
Designate the main text.
Processing program when abnormal completion
REMARKS
When an error occurs while sending e-mail from the sending mail server to an external device, an error code is stored in the receiving error log area.
1 The following shows the transmission format of the main text designated in the
control data of the MSEND instruction. If data is sent as the main text of e-mail, the Ethernet module does not convert the transmission format.
b12 to
Setting values for designating the main text
data transmission format
b12 b11 b10 b9 b8
1 0 0 0 0 No conversion
Designate the main text data in ASCII characters in sequence programs.
b8
Completion type
Format set
Processing program when normal completion
Designates the transmission format of the main text.
Applicable
station
PC/UNIX/
portable
terminal
Send the main text data. The Ethernet module does not convert the transmission format.
Designate the main text data in ASCII characters in
sequence programs.
Description of processing
Send the e-mail.
2 - 30 2 - 30
2 USING THE E-MAIL FUNCTION
(4) Receiving by a personal computer
The following explains how a PC/UNIX/portable terminal receives e-mail sent from the Ethernet module. After setting the environment where the Internet is accessible with a mail user agent, receive an e-mail on the receiving message screen as follows. (Example) The following shows an example of the reception of e-mail sent using
the MSEND instruction (see (3)). (The following is a screen of Microsoft
Office Outlook 2003.)
MELSEC-Q/L
®
Corporation's Microsoft
(a) From
Displays the e-mail address of the Ethernet module.
REMARKS
By entering the mail addresses of the send destination devices in the address book, the registered names (display names) can be displayed and it makes the management easier.
(b) Subject
This indicates the No. of transmissions ( sequence program.
1 This is the number automatically added each time an Ethernet module
sends an e-mail. The numbers are counted up from 1. When the number reaches 4294967296, the number is cleared to 0. Then the numbers are counted up from 0 again to 4294967296.
(c) Main text of e-mail
This indicates the main text of e-mail sent by the Ethernet module.
1) and the Subject written by a
2 - 31 2 - 31
2 USING THE E-MAIL FUNCTION
MELSEC-Q/L

2.9 Sending E-mails Using the Programmable Controller CPU Monitoring Function

When the monitoring information read from the Q/LCPU matches with the news conditions set by the user, the Ethernet module sends an e-mail to the external device.

2.9.1 News setting

[Purpose of setting] The monitoring conditions (notification conditions) of the programmable controller CPU can be set on the news setting screen of a programming tool. The monitoring function of the programmable controller CPU can be used according to this setting. Both CPU status monitoring and device monitoring can be designated as notification conditions. [Start procedure] E-mail setting screen  News Setting
[Setting screen]
2 - 32 2 - 32
2 USING THE E-MAIL FUNCTION
News settings
MELSEC-Q/L
Item name Description of setting
Condition for PLC Inspection
Send Method Select the data send method.
Attached File Form
Attached File Name Set the attached file name
PLC Inquiry Interval
Input Format of Inspection Value
Condition Device Set the condition device
Condition for Inspection Set the monitoring condition
Monitoring Value Set the monitoring value
News Data Storage Device
News Data Points Set the news data points
Select the monitoring condition for the CPU
Set the data format for the attached file
Set time interval between reading the CPU status and device values and the units (h/min/s)
Select the input format of the monitoring data
News data storage device value
1 When an e-mail is sent with the programmable controller status
inspection, only subject (programmable controller CPU status is stored)
(1) Condition for PLC inspection
Condition for PLC inspection Description
Normal STOP
Serious/Fatal Error Sends an e-mail when an error that stops the CPU execution has occurred.
Warning STOP
Normal RUN
Warning RUN
PAUSE
is sent.
Notification condition
CPU status
monitoring (
1)
Device
monitoring
• No Setting
• Normal STOP
• Serious/Fatal Error
• Warning STOP
• Normal RUN
• Warning RUN
• PAUSE
• Send Attached File
• Send Text Mail
• Binary
• ASCII
• CSV
• Up to 8 characters
• 30 s to 24 h
• DEC
• HEX
• A device in the CPU module
• -32768 to 32767
[Maximum points for a device]
• Word device: 960 points
• Bit device: 8192 points
• Total number of news data points:
Setting range/option
(Moderate error STOP)
(Moderate Error STOP)
[Total number of points]
1920 bytes (One bit point is rounded up to one word point.)
: Setting item : Setting not required
Sends an e-mail when the programmable controller CPU is placed in the STOP status normally.
Sends an e-mail when the programmable controller CPU is stopped by an external operation, etc. while an error that allows to continue the CPU execution has occurred.
Sends an e-mail when the programmable controller CPU is placed in the RUN status normally.
Sends an e-mail when an error that does not allow to continue the CPU execution has occurred while the programmable controller CPU is in the RUN status. (The programmable controller CPU is in operation.)
Sends an e-mail when the programmable controller CPU is placed in the PAUSE status.
2 - 33 2 - 33
2 USING THE E-MAIL FUNCTION
(2) Send method
Select the send method of the device monitoring results.
Item Explanation
Send Attached File Sends data as an attached file in the file format designated in (3).
Send Text Mail
(3) Attached file format
Item Explanation
Binary
ASCII
CSV
(4) Attached file name
Designate the name of an attached file. If a file name is not designated, the Ethernet module automatically names it and sends the file named mmddhhss (month, date, hour, minute) (same as for e-mail sending).
(5) PLC inquiry interval
Designate the interval for the Ethernet module to read the CPU status and device values from the programmable controller CPU. The user can designate any inquiry time interval (time) within the ranges listed below.
Time unit Setting range (default: 5 min)
Hour 1 to 24
Minute 1 to 1440
Second 30 to 3600
(6) Input format of inspection value
Select the input format (decimal/hexadecimal) of the monitoring value.
MELSEC-Q/L
Sends data as the main text of e-mail in ASCII code format. It is not necessary to designate items (3) and (4) when this setting is used.
Sends the attached file in binary format. The Ethernet module sends the attached file as they are with the code currently in use. (Binary to ASCII conversion is not performed.)
Sends the attached file in ASCII format. The Ethernet module converts the attached file from binary to ASCII.
Sends the attached file in CSV format. The Ethernet module converts the attached file from binary to CSV.
2 - 34 2 - 34
2 USING THE E-MAIL FUNCTION
(7) Condition device
Designate the device to be monitored.
POINT
(1) A maximum of 16 devices can be monitored. (2) It is possible to designate devices that can be accessed for communication using
the MC protocol directly as condition devices (see the Reference Manual). In this case, or C. The following devices cannot be designated:
• Step relay (S)
• Direct input (DX)
• Direct output (DY)
• Index qualification
• Indirect designation
(3) After completion of the news setting, the system will rearrange the condition
devices in the order; word devices first and then bit devices. Display the news setting screen again to confirm the condition device settings.
(8) Condition for inspection
Designate the news conditions to monitor the devices of the programmable controller CPU.
Condition of comparison
No conditional settings
Bit device
Word device
Rise
Drop
No conditional settings
No conditional settings (Character String send)
Device value = monitoring value When the monitoring device value and the value set by the user are the same. Device value monitoring value
Device value < monitoring value (unsigned)
Device value < monitoring value (unsigned)
Device value > monitoring value (unsigned)
Device value > monitoring value (unsigned)
Device value < monitoring value (signed)
Device value < monitoring value (signed)
Device value > monitoring value (signed)
Device value > monitoring value (signed)
The following table lists the comparison conditions for the designated device.
MELSEC-Q/L
Timer, Retentive timer and Counter should be designated by T, ST,
News condition
For each monitoring.
When switching from off to on is detected.
When switching from on to off is detected.
For each monitoring.
For each monitoring.(Selectable when “Send text mail” and “Word device” are set for “Send method” and “Condition device” respectively.)
When the monitoring device value and the value set by the user are different.
When the monitoring device value is equal to or less than the value set by the user.
When the monitoring device value is less than the value set by the user.
When the monitoring device value is equal to or greater than the value set by the user.
When the monitoring device value is greater than the value set by the user.
When the monitoring device value is equal to or less than the value set by the user.
When the monitoring device value is less than the value set by the user.
When the monitoring device value is equal to or greater than the value set by the user.
When the monitoring device value is greater than the value set by the user.
2 - 35 2 - 35
2 USING THE E-MAIL FUNCTION
(9) Monitoring value
Designate the comparison value of the condition of comparison given in (8) above.
(10) News data storage device
The condition device that stores the news data is set when the news condition is satisfied. When the CPU monitoring condition listed in (1) is "No Setting", a programming tool automatically sets the condition device; therefore, the user does not need to set it.
(11) News data points
Designate how many devices should be read (number of points read) from the devices designated in (10) above. (a) The number of device points that can be sent at a time is calculated as
follows.
Word device points
1) Designate the settings so that the total number of points satisfies the equation above when multiple news conditions are satisfied when monitoring multiple condition devices.
2) When multiple bit devices are to be designated, be aware of following:
• One device occupies 16 device points.
MELSEC-Q/L
2 + bit device points 8 (round up) 1920
2 - 36 2 - 36
2 USING THE E-MAIL FUNCTION

2.9.2 Receiving a news e-mail

The designated external device side can open the news e-mail from the Ethernet module in the same way as opening a mail received from the programmable controller CPU.
No.
" ··· "
(1) When monitoring the CPU status
(a) When the result of the CPU status monitoring matches the monitoring
condition, the Subject will be sent. The attached file or main text will not be sent.
(b) The following shows the contents for the Subject sent.
" ··· " Status " ··· " Time "yyyy/mm/dd hh:mm:ss"
MELSEC-Q/L
During RUN
During STOP
During PAUSE
No. of transmissions( 1)
CPU model name Status Detection time
1 This is the number automatically added each time an Ethernet module sends an
e-mail. The numbers are counted up from 1. When the number reaches 4294967296, the number is cleared to 0. Then the numbers are counted up from 0 again to 4294967296.
(Send contents of the parts for the status)
CPU module status Send contents
At normal "Status : RUN" At module warning occurrence "Status : RUN (Warning)" or "Status : RUN (Slight Abnormal)" At normal "Status : STOP" At module warning occurrence "Status : STOP (Warning)" or "Status : STOP (Slight Abnormal)" During the module error or module system error
"Status : PAUSE"
"Status : STOP (Serious/Fatal Error)" or "Status : STOP (Abnormal)"
2 - 37 2 - 37
2 USING THE E-MAIL FUNCTION
(2) When monitoring a device
(a) When any of the results of the device monitoring matches the monitoring
condition among the devices having the conditions designated on the news setting screen, the Subject and attached file, or the Subject and main text will be sent.
(b) The following shows the contents for the Subject sent.
No. " ··· "
(c) All device values for the number of registered points designated on the
news setting screen are recorded in the attached file or main text. The size of the data recorded in the attached file or main text is calculated as follows:
Information of bit devices:
Information of word devices: Registered points (number of devices)
1 This is the number automatically added each time an Ethernet module sends an
e-mail. The numbers are counted up from 1. When the number reaches 4294967296, the number is cleared to 0. Then the numbers are counted up from 0 again to 4294967296.
MELSEC-Q/L
" " = " ··· " · · ·
Condition match device Monitoring value
Condition match device
No. of transmissions( 1)
Reqistered points (number of bits) 16 x 2 bytes
(Round up to a whole number)
for condition mached,
monitoring value
2 bytes
2 - 38 2 - 38
2 USING THE E-MAIL FUNCTION
(d) The contents of the data recorded are as follows.
1) When sending data as an attached file
• If the data format is binary, values are recorded from the lower byte
• If the data format is ASCII, target values are converted to 4-digit
• If the data format is CSV, target values are converted to 4-digit
(Example) In case of M15 to M0 = 0001
For M15 to M0
M15 M8M12 M4
For binary
W1(L)W1(H)W0(L)W0(H)
1A 00
01 00 02 00 03 00 04 00 05 00
2B 00
M8M0 M16 M24 M72
W1 = 002B
0 0000000000000
D0(L)D0(H)D1(L)D1(H)
11 00
MELSEC-Q/L
(L) side.
hexadecimal ASCII codes and recorded from the higher byte (H) side of the values.
hexadecimal ASCII codes and recorded from the higher byte (H) side of the values. If multiple word data is to be processed, insert a comma between each word (4-byte ASCII code) data. Insert CR (Code: 0D
H) and LF (Code: 0AH) every each setting
device range.
H, M31 to M16 = 0002H, ..., W0 = 001AH,
H, ...
to to to
12 00
X10X18 X20 X38
60 00 61 00 62 00
B10 B18 B40
30 00
19 00 1A 00
M0to
01
D9(L)D9(H)D8(L)D8(H)
B48
33 00
For ASCII
W1
001AW0002B
M16M0 M32 M48 M64
0001 0002 0003 0004 0005
For CSV
W0
W1
002B
001A
,
D1D0 D2 D3 D4 D5 D6 D7 D8 D9
0011 0012 0013 0014 0015 0016 0017 0018 0019 001A
,,
M16M0 M32 M48 M64
0001 0002 0003 0004
,,, ,
X10 X20 X30
0060 0061 0062
,,
B20 B30
B10
0031 0032
0030
,
D1D0 D2 D3 D4 D5 D6 D7 D8 D9
0011 0012 0013 0014 0015 0016 0017 0018 0019 001A
[CR+LF]
,
[CR+LF]
B40
0033
,,
X10 X20 X30
0060 0061 0062
,,,,,,
[CR+LF]
0005
[CR+LF]
B10 B20 B30
0031 00320030
B40
0033
[CR+LF]
The spaces and lines between device numbers and device values are inserted for
the purpose of explanation. They are not recorded in the attached file.
2 - 39 2 - 39
2 USING THE E-MAIL FUNCTION
2) When sending data as main text <When data format is CSV>
• Target data values are converted to 4-digit hexadecimal ASCII
• The device name and display device No. are recorded for each
• If multiple word data is to be processed, insert a comma between
(Example) In case of M15 to M0 = 0001
For M15 to M0
M15 M8M12 M4
0 0000000000000
W1 = 002B
For the main text of e-mail
W0-W1 [CR+LF]
001A 002B
D0-D9 [CR+LF]
0011 0012 0013 0014 0015 0016 0017 0018
0019 001A
M0-M79 [CR+LF]
0001 0002 0003 0004 0005
X10-X3F [CR+LF]
0060 0061 0062
B10-B4F [CR+LF]
0030
[CR+LF]
,
,,
,
,
[CR+LF]
,,, ,
,,
0031 0032
,
[CR+LF]
0033
,,
The dotted boarder lines between the device values in the above figure are for
explanation purpose only. They are not actually recorded in the main text.
MELSEC-Q/L
codes and recorded from the higher byte (H) side of the values.
setting device.
each word (4-byte ASCII code) data. Insert a CR (code: 0D
H) and a LF (code: 0AH) for each setting
device range or 8-word data.
H, M31 to M16 = 0002H, ..., W0 = 001AH,
H, ...
to to to
,,,,
[CR+LF]
[CR+LF]
[CR+LF]
M0to
01
2 - 40 2 - 40
2 USING THE E-MAIL FUNCTION
<When data format is character strings (binary)>
• The device name and display device No. are recorded for each
• When “Condition for inspection” is set to “No conditional settings
• Insert CR (Code: 0D
(Example) Setting “No conditional settings (character strings send)” to
For the main text of e-mail (character string (binary) format)
D0-D19 [CR+LF]
Normal system start completion
ASCII or SHIFT-JIS format values must be set in the Notification data storage
device.
POINT
(1) When e-mail is sent after the result of the device monitoring and the monitoring
condition match, the Subject and attached file, or the Subject and main text will be sent. As a device monitoring result, the data that was read from the programmable controller CPU by the Ethernet module in order to determine whether or not the conditions match will be sent. For details on the correspondence between the word device values and the data format of the attached file, see the figure in Section 2.7.3.
The main text will be sent after converting the data read into ASCII code data. If the condition for inspection is set to “No conditional settings (character strings send)” for e-mail text transmission, however, binary code data are sent without being converted.
(2) When e-mail is sent after the result of the CPU status monitoring and the
monitoring condition match, only the Subject will be sent. The attached file and main text will not be sent.
(3) Mail contents are not properly displayed on the receiving side when both of the
following conditions are met:
• the format of data notified in the main text is in binary (character string)
• the value set in the news data storage device is in a format other than ASCII format or SHIFT-JIS format
MELSEC-Q/L
setting device.
(character string send)”, “Notification data storage device” records the data of specified notification points starting from the low byte (L) of the specified value. (If NULL (00
H) exists in the range, contiguous
data immediately before it are recorded.)
H) and LF (Code: 0AH) for each setting device
range.
“Condition for inspection”, “D0” to “Notification data storage device”, and “20 points” to “Notif. data points”: This means that “Normal system start completion” is stored in D0 to D19 by the $MOV instruction.
[CR+LF]
2 - 41 2 - 41

3 COMMUNICATIONS VIA OTHER NETWORKS

3 COMMUNICATIONS VIA OTHER NETWORKS
MELSEC-Q/L
An Ethernet module can access other stations from an external device or a Q/LCPU in a station where an Ethernet module is connected via Ethernet and the following networks:
• CC-Link IE Controller Network
• CC-Link IE Field Network
• MELSECNET/H
• MELSECNET/10
3
This chapter describes the CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10 relay communication function to communicate data with other stations via an Ethernet module and network modules.

3.1 CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10 Relay Communication Function

By setting the parameter described in Section 3.3, the other station access becomes possible with the CC-Link IE Controller Network, CC-Link IE Field Network,
used for
communication
Communication using the MC protocol
Communication using the data link instructions
Communication with other stations using a programming tool
MELSECNET/H, MELSECNET/10 relay communication function.
Communication range Function that can be
When using this function When not using this function
Only possible to read/write Possible to read/write data from/to another station's programmable controller, which is the access request destination, from an access source device via multiple networks and Ethernet
data from/to the
programmable controllers of
other stations in Ethernet
where a station with an
Ethernet module is connected
(Example) Only the access 1)
shown in the figure in Section
3.2.1 is accessible.
Communication
request source
External device Reference manual
CPU in a station where a network module is connected
Programming tool
Function reference
section
Chapter 4
Operating manual for the programming tool used
3 - 1 3 - 1
3 COMMUNICATIONS VIA OTHER NETWORKS
MELSEC-Q/L

3.2 Range of Accessible Other Station’s Programmable Controllers and Accessible Stations

The accessible range and the stations when performing the other station access via Ethernet module using the CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10 relay communication function is described.

3.2.1 Accessible range and stations

Ethernet
CPU
4) Accessing Ethernet via Ethernet + CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, and MELSECNET/10
module
CPU
Ethernet
module
Ethernet
Ethernet
3) Accessing CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, and MELSECNET/10 via Ethernet
External
device
Ethernet
CPU
module
External
device
CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10
CPU
Network
module
Ethernet
module
Network
module
External
device
1) Accessing on the same Ethernet
2) Accessing to remote Ethernet
Ethernet
CPU
module
External
device
Network
module
External
device
3
CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10
External
device
5) Accessing remote Ethernet with the router relay
CPU
Router
Network
module
Ethernet
module
Ethernet
External
device
Ethernet
module
External
device
(1) Accessible range
(a) Routing via the Ethernet and CC-Link IE Controller Network, CC-Link IE
Ethernet
CPUCPU
module
Ethernet
Field Network, MELSECNET/H, MELSECNET/10 network systems is allowed within the range of the CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, and MELSECNET/10 specifications.
Another station is accessible between devices indicated in 1) to 5) of the
figure above.
(b) The only networks that can be routed are the CC-Link IE Controller Network,
CC-Link IE Field Network, MELSECNET/H, MELSECNET/10 and Ethernet.
3 - 2 3 - 2
3 COMMUNICATIONS VIA OTHER NETWORKS
(2) Accessible stations (communication request destination stations)
and relay stations (communication relay stations)
This relay communication function allows communication with programmable controllers of other stations if the communication destination programmable controllers (communication request destination stations) and all the relay stations to the communication destination stations (communication relay stations) are configured with the modules listed below.
(a) Accessible modules (communication request destination stations: other
stations)
1) Programmable controller CPU
Model name
Basic model QCPU Q00JCPU, Q00CPU, Q01CPU High performance model QCPU
QCPU (Q mode)
LCPU L02CPU, L02CPU-P, L02SCPU, L26CPU, L26CPU-BT, L26CPU-PBT Safety CPU (1)
QnACPU Redundant CPU Q4ARCPU
ACPU QCPU (A mode)
Process CPU Q02PHCPU, Q06PHCPU, Q12PHCPU, Q25PHCPU Redundant CPU Q12PRHCPU, Q25PRHCPU
Universal model QCPU
Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU
Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU, Q03UDCPU, Q03UDVCPU, Q03UDECPU, Q04UDHCPU, Q04UDVCPU, Q04UDEHCPU, Q06UDHCPU, Q06UDVCPU, Q06UDEHCPU, Q10UDHCPU, Q10UDEHCPU, Q13UDHCPU, Q13UDVCPU, Q13UDEHCPU, Q20UDHCPU, Q20UDEHCPU, Q26UDHCPU, Q26UDVCPU, Q26UDEHCPU, Q50UDEHCPU, Q100UDEHCPU
QS001CPU
Q2ACPU, Q2ACPU-S1, Q2ASCPU, Q2ASCPU-S1, Q2ASHCPU, Q2ASHCPU-S1, Q3ACPU, Q4ACPU
A1NCPU, A2NCPU, A2NCPU-S1, A3NCPU, A2ACPU, A2ACPU-S1, A3ACPU, A2UCPU, A2UCPU-S1, A3UCPU, A4UCPU, A1SCPU, A1SJCPU(-S3), A1SHCPU, A1SJHCPU, A2SCPU, A2SHCPU, A2ASCPU, A2ASCPU-S1, A0J2HCPU, Q02CPU-A, Q02HCPU-A, Q06HCPU-A
1 The safety CPU can be used only as a request target station, and cannot
be used as a relay station.
2) CC-Link IE Field Network
Model name
MELSEC-Q/L
Head module LJ72GF15-T2
Model name
MELSECNET/H Remote I/O station
MELSECNET/10 Remote I/O station (
3) MELSECNET/H, MELSECNET/10
QJ72LP25-25, QJ72LP25GE, QJ72BR15
AJ72QLP25, AJ72QBR15, A1SJ72QLP25, A1SJ72QBR15
2
)
AJ72LP25(G), AJ72BR15,
2 Data can be read/written from/to the buffer memory of an intelligent
function module in a MELSECNET/10 remote I/O station.
3 - 3 3 - 3
3 COMMUNICATIONS VIA OTHER NETWORKS
(b) Modules that can act as relays between networks (communication relay stations)
Model name
CC-Link IE Controller Network QJ71GP21-SX, QJ71GP21S-SX CC-Link IE Field Network QJ71GF11-T2, LJ71GF11-T2
MELSECNET/H
MELSECNET/10
Ethernet (3)
QJ71LP21, QJ71LP21-25, QJ71LP21S-25, QJ71LP21GE, QJ71BR11, QJ71NT11B (MELSECNET/H mode) QJ71LP21, QJ71LP21-25, QJ71LP21S-25, QJ71LP21GE, QJ71BR11 (MELSECNET/10 mode) AJ71QLP21(S/G), AJ71QBR11, A1SJ71QLP21, A1SJ71QBR11 AJ71LP21(G), AJ71LR21, AJ71BR11, A1SJ71LP21, A1SJ71BR11 QJ71E71-100, QJ71E71-B5, QJ71E71-B2, QJ71E71, LJ71E71-100
AJ71QE71N3-T, AJ71QE71N-B5, AJ71QE71N-B2, AJ71QE71N-T, AJ71QE71N-B5T, A1SJ71QE71N3-T, A1SJ71QE71N-B5, A1SJ71QE71N-B2, A1SJ71QE71N-T, A1SJ71QE71N-B5T, AJ71QE71, AJ71QE71-B5, A1SJ71QE71-B2, A1SJ71QE71-B5
3 QnA series Ethernet interface modules can act as relays between
networks if the function version is B or later. Verify the function version with the production date shown in the "Date column of the rated plate", which is attached to the side of the module. (Manufactured date: Year (last two digits), Month (two digits), function version (one digit))
MELSEC-Q/L
3 - 4 3 - 4
3 COMMUNICATIONS VIA OTHER NETWORKS

3.3 Settings for Accessing Other Stations

This section explains the parameters and setting items that need to be set with a programming tool to access other stations via the Ethernet using the CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10 relay communication function.
(1) Network parameter
1) Network No., group number, station number (station No.), etc. for using the Ethernet module are set on this screen.
2) Make sure to set the values by seeing the User's Manual (Basic).
(2) Station No. <-> IP information setting
1) The Ethernet's routing method, correspondences of the Ethernet module's IP address and Network No./station number, etc. for using the CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10 relay communication function are set on this screen.
2) Set these values by seeing Section 3.3.1.
(3) Routing information setting
1) On this screen, the routing parameters between Ethernet modules for accessing other stations on other networks are set, in the same way as for the routing parameter settings of other networks.
The Network No. and station number of the first communication relay
2) These settings are required for a station where two or more Ethernet
3) Set these values by seeing Section 3.3.3.
station as seen from the local station are set.
modules or network modules are connected.
MELSEC-Q/L
3 - 5 3 - 5
3 COMMUNICATIONS VIA OTHER NETWORKS

3.3.1 Setting the Station No. <-> IP information

This section explains the Station No. <-> IP information settings that are required to access other stations via the Ethernet module using the CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10 relay communication function. In the network parameter screen of a programming tool, start the "Station No. <-> IP Information" screen.
MELSEC-Q/L
Setting the Station No. <-> IP information
Item name Description of setting Setting range/option
• Automatic Response System Station No. <-> IP Information System
Net Mask Pattern
Input Format Select the input format of "Net Mask Pattern" and "IP Address".
Network No.
Station No.
IP Address
Select the Station No. <-> IP information system (conversion method).
• This setting is required when "IP Address Computation System" or "Use-Together System" is selected as the conversion method.
• Set the mask value used in the logical product with the local station's IP address.
• This setting is required when "Table Computation System" or " Use-Together System" is selected as the conversion method.
• Set the Network Nos. of the communication request destination/source stations.
• This setting is required when " Table Computation System" or " Use-Together System" is selected as the conversion method.
• Set the station number of the communication request destination/source stations.
• This setting is required when " Table Computation System" or " Use-Together System" is
selected as the conversion method.
• Set the IP address of the communication request destination/source stations.
• IP Address Computation System
• Table Exchange System
• Use-Together System
C0000000H to FFFFFFFFH
• DEC
• HEX
1 to 239 (set in decimal)
1 to 64 (set in decimal)
A value other than 00000000 FFFFFFFF
H
H and
3 - 6 3 - 6
3 COMMUNICATIONS VIA OTHER NETWORKS
(1) Station No. <-> IP information system (conversion method) (address:
4H ... b7, b6)
(a) There are four kinds of Station No. <-> IP information methods as shown
below.
(b) Select one of them according to Section 3.3.2 and make sure to set the
values on this screen using the method selected. (The default conversion method is the Automatic response method.)
Parameter settings requirement
Conversion method Net mask pattern Conversion setting
Automatic response system
IP address computation system
Table exchange system
Use-together system
(2) Net mask pattern (address: 3A9H)
Designate the mask value based on the guidelines given below. This pattern is used in a logical sum with the local station's IP address when calculating the IP address of the external device using the IP address computation system.
(a) When setting the sub-net mask, designate the target settings of the IP
address class, network address, and sub-net address so that all bits are "1" in the mask pattern.
The mask pattern is designated with a decimal/hexadecimal value
obtained by dividing the 32-bit mask value into 8-bit segments.
(b) When the sub-net mask is not designated, the mask pattern designation is
not necessary.
When the mask pattern is not designated, the following mask value is
used as the mask pattern according to the local station IP Address class.
Class Mask value used
Class A FF. 00. 00. 00H
Class B FF. FF. 00. 00H
Class C FF. FF. FF. 00H
(3) Conversion setup (conversion information) (address: 229H to 3A8H)
(a) The conversion setting is required to obtain the IP address from the Network
No. and station number using the table exchange system.
(b) If the local station is an Ethernet module and the next station to which the
communication request /response message is passed to access other station is also an Ethernet module, designate the Network No., station number, and IP address of the next station's Ethernet module.
Specify the values set on the network parameter setting screen.
(c) Designate the Network No. in the range of 1 to 239 (1
station number in the range of 1 to 64 (1
MELSEC-Q/L
: Setting required : Setting not required
H to EFH) and the
H to 40H).
3 - 7 3 - 7
3 COMMUNICATIONS VIA OTHER NETWORKS
POINT
(1) Communication between the Ethernet module and Q/LCPU is performed
according to the network No. and station No., and communication between two Ethernet modules are performed according to the IP address and UDP port number. Thus, the Ethernet module must convert the data below: The network No. and station No. of other networks number of Ethernet
(2) The Station No. <-> IP information are required when other stations are
accessed via other Ethernet network systems and must be registered in all the Q/LCPU stations in which the Ethernet modules are connected.
(3) The Station No. <-> IP information should be set on the "Station No. <-> IP
Information" screen and written in the programmable controller CPUs of the applicable stations where Ethernet modules are installed.
MELSEC-Q/L
IP address and UDP port
3 - 8 3 - 8
3 COMMUNICATIONS VIA OTHER NETWORKS
MELSEC-Q/L

3.3.2 Convert format between the Network No./station number and IP address/port number

The process overview of the conversion method set by the Station No. <-> IP information screen for performing the other station access via Ethernet module using the CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10 relay communication function is explained. Select one of the conversion methods to set.
(1) Automatic response system (Convert format of Ethernet module
default value)
(a) Overview of automatic response system
1) The automatic response system differs from the other convert format in that designations can only be made when the Ethernet module installed station is the communication request destination station or communication relay receiving station.
2) The partner station IP Address or port number setting are not necessary with this conversion method; therefore, relay communications via other networks can be performed easily.
Communication request
source station
CPU
E71
Ethernet
Communication relay receiving station
CPU
E71
The automatic response system can be set.
(b) Convert format of Automatic response system
Communication relay sending station
E71
Communication request
Ethernet
CPU
E71
destination station
1) When the Ethernet module receives other station access
communication request message (command frame) from the CC­Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10 relay communication function, the send source Network No., IP address, and UDP port number in the request message, are stored internally. The response message (response) for the communication request message is returned to the destination IP address and UDP port number calculated from the stored Network No. and station number. Therefore, by receiving the other station access communication request message first, the communication partner stations can be maintained.
2) The maximum number of station information that can be set is 64.
When more than 64 other station access communication request message is received, the Ethernet module starts deleting from the oldest data to store the station information in the newly received message communication request message. However, it is ignored if the station information is the same as the station information already stored.
Information from the same station is not stored twice.
3 - 9 3 - 9
3 COMMUNICATIONS VIA OTHER NETWORKS
(2) IP address computation system
(a) Overview of the IP address computation system
During calculation, the IP address of the partner station is obtained from the calculation equation below according to the Network No. and station number, and the UDP port number predefined for the Ethernet module system is used as the UDP port number of the destination.
For more information about the net mask pattern for routing other
networks, see Section 3.3.2.
Local station IP Addres s
(b) Conversion processing of the IP address computation system
1) When a communication request message (command frame) to access other station is received, the IP address is calculated from the Network No. and station number of the destination in the communication request message, and the communication request message is sent to the next station.
1 The Network No. and station number of the destination in the
communication request message are stored in the Ethernet module.
2) The response message (response) for the communication request message is returned based on the return IP address and the stored data above.
(c) IP address computation example
The logical sum is calculated differently depending on the class of the local station IP address. An IP address is calculated as follows.
(For class A)
• When the local station IP Address is 79238102
• When the Net Mask Pattern for routing other networks is FF000000H
• When the destination Network No. is 03 05
H
79.23.81.02
MELSEC-Q/L
H
H, and the station number is
Net Mask Pattern
Logical product value
Network No. and station No.
Partner station IP Address
Logical product
Logical sum
F F.0 0 .0 0.0 0
9
7
7
00.00.00
.
03.05
.
9
00.03.0
5
3 - 10 3 - 10
3 COMMUNICATIONS VIA OTHER NETWORKS
(For class B)
• When the local station IP Address is 8438FA0A
• When the Net Mask Pattern for routing other networks is FFFF0000
• When the destination Network No. is 03
Local s tati on IP Add ress
84.38.FA.0 A
MELSEC-Q/L
H
H and station number is 05H
H
Net Mask Pattern
Logical product value
Network No. and station No.
Partner station IP Address
Logical product
Logical sum
FF.FF.00.00
84.38.00.00
03.05
8
.
38.03.0
4
5
(For class C)
• When the local station IP Address is CA65300A
• When the Net Mask Pattern for routing other networks is FFFFFF00
• When the destination Network No. is 02
H (The Network number is not
H
H
used.)
Local station IP Address
Net Mask Pattern Logical product
Logical product value
Network No. and station No.
Logical sum
C A.6 5. 0.0 A
FF.FF.FF.00
C
A
.6
3
.3 0.0 0
5
02
Partner station IP Address
C
.
A
6
.
5
30.0
2
REMARKS
• IP address configuration of class A
31
30
Class
24to23 0
Network address
16 15
to
• IP address configuration of class B
31
Class
30
29
Network address
16to15 0
• IP address configuration of class C
31
29
to
Class
28
to
Network address
Host address
Host address
to
to
70
8
to
Host address
3 - 11 3 - 11
3 COMMUNICATIONS VIA OTHER NETWORKS
(3) Table exchange system
(a) Overview of the table exchange system
1) This method uses the Network No., station number, and IP address set in the conversion table of the Station No. <-> IP information, and uses the UDP port number predefined for the Ethernet module system as the UDP port number of the destination.
2) If duplicate network and station numbers are set in the conversion table, the data set with the younger registration number is used.
If all the required values are not set, communication may not be
performed successfully.
(b) Conversion processing of the table exchange system
1) When a communication request message (command frame) to access other station is received, the same Network No. and station number are searched in the conversion table of the Station No. <-> IP information, and the communication request message is sent to the partner station with the corresponding IP address.
2) The response message (response) for the communication request message is returned based on the return IP address and the data in the conversion table above.
(c) Designation example
Shown on the next page.
MELSEC-Q/L
3 - 12 3 - 12
3 COMMUNICATIONS VIA OTHER NETWORKS
(Setting example)
Network No. Station No.
IP Address
2) Communication relay receiving station
: 1 : 12 : (192. 0. 1. 12)
E71CPU E71
1) Communication request source station
3) Communication relay sending station
Network No.
Station No.
IP Address
Network No.
E71CPU
Station No.
IP Address
Ethernet (Network No.1)
: 2 : 21 : (192. 0. 2. 21)
Ethernet (Network No.2)
MELSEC-Q/L
: 1 : 11
: (192. 0. 1. 11)
(Decimal)
(Decimal)
(Decimal)
(Decimal)
(Decimal)
(Decimal)
Setting
value
Setting
value
Setting
value
Setting
value
Setting
value
Setting
value
Network No. Station No.
E71CPU
IP Address
4) Communication request destination station
Network No.
Station No. IP Address 192. 0. 1. 12
Network No.
Station No. IP Address 192. 0. 1. 12 192. 0. 1. 11 192. 0. 2. 22 192. 0. 2. 21
Network No.
Station No. IP Address
Network No.
Station No. IP Address
Network No.
Station No. IP Address 192. 0. 1. 12 192. 0. 1. 11 192. 0. 2. 22 192. 0. 2. 21
Network No.
Station No. IP Address
1) Communication request source station a)
1, 12
1) Communication request source station a)
1, 12 1, 11 2, 22 2, 21
1)
Setting not necessary
1) 2)
Setting not necessary Setting not necessary
1) Communication request source station b)
1, 12 1, 11 2, 22 2, 21
1) 2) 3)
Setting not necessary Setting not necessary Setting not necessary
E71 module setting details when accessing from CPU 1) to CPU 2)
2) 3) 4)
Setting not necessary Setting not necessary Setting not necessary
E71 module setting details when accessing from CPU 1) to CPU 4)
2) Communication relay receiving station b)
E71 module setting details when accessing from CPU 2) to CPU 1)
2) Communication request destination station a)
1, 11
192. 0. 1. 11
E71 module setting details when accessing from CPU 3) to CPU 4)
E71 module setting details when accessing from CPU 4) to CPU 1)
2) Communication relay sending station b)
E71 module setting details when accessing from CPU 4) to CPU 3)
3) Communication relay sending station a)
3) 4)
Setting not necessary Setting not necessary
3) Communication request source station a)
2, 22
192. 0. 2. 22
3) Communication relay receiving station b)
: 2 : 22 : (192. 0. 2. 22)
4) Communication request destination station b)
Setting not necessary
4) Communication request destination station a)
4) Communication request destination station a)
2, 21
192. 0. 2. 21
The a) and b) in the E71 station setting details column indicate whether the value is for
the communication request message transmission or response message transmission.
a): For communication request message transmission b): For response message transmission
4)
3 - 13 3 - 13
A
3 COMMUNICATIONS VIA OTHER NETWORKS
(4) Use-together system
(a) Overview of the Use-together system
1) This method uses both the IP address computation system and the table exchange system.
2) Select this method to access other stations with the same Network No., accessing other stations in other networks or accessing Ethernet with different Network No., and relaying from other networks to the Ethernet network system.
3) The set target Ethernet module can be installed either at a communication request source station, communication relay station, or
(b) Conversion processing of the Use-together system
communication request destination station.
1) When a communication request message (command frame) to access other station is received, the communication request message is sent to the next station obtained by the table exchange system at first.
2) If the IP address of the Ethernet module cannot be obtained by the table exchange system, the IP address is obtained by the IP address computation system in order to send the communication request message.
3) The response message (response) to the communication request message is returned based on the return IP address and the data in the conversion table or the stored data.
MELSEC-Q/L
Conversion
method
utomatic response system
IP Address computation system Table exchange system Use-together system
REMARKS
The relationship between the Convert Format and definition of the Ethernet module installed station is as follows.
Ethernet module installed station definition
Communication request source station
1
(
)
1 For the external device that completed the communication, the station can be a
communication request source station or a relay sending station.
Communication relay receiving station
CPU
Communication relay station
Relay receiving station Rel ay sending st at io n
1
(
)
Communication request
destination station
: Can be designation : Cannot be designated
Communication request
source station
CPU
E71
Ethernet
Communication relay sending station
E71
E71
(Communication relay station)
The automatic response system can be set.
Communication request
destination station
CPU
Ethernet
E71
3 - 14 3 - 14
3 COMMUNICATIONS VIA OTHER NETWORKS

3.3.3 Routing parameter settings

The routing parameters contain information of the Ethernet modules passed through when accessing other stations. This section explains the routing parameters that must be set in order to access other stations via the Ethernet module using the CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10 relay communication function. Open the "Routing Information" screen under the network parameter screen of a programming tool.
MELSEC-Q/L
Routing information setting
Item name Description of setting Setting range/option
Set the Network No. of the Ethernet or CC-Link IE Controller Network, CC-Link IE Field Network,
Target Network No.
Relay Network No.
Relay Station No.
MELSECNET/H, MELSECNET/10 to which the communication request destination station or the communication request source station is connected when sending a communication request message or a response message, respectively. Set the Network No. of the Ethernet or other networks to which the next communication relay receive station or the next communication relay send station is connected when sending a communication request message or a response message, respectively.
Set the station number of the target Ethernet module/network module that is used as relay to the network set by the Relay station No..
Universal model QCPU, LCPU: 0 to 120 A module other than a Universal model QCPU and an LCPU: 0 to 64
3 - 15 3 - 15
1 to 239
1 to 239
3 COMMUNICATIONS VIA OTHER NETWORKS
(1) Target Network No.
Designate the Network No. of Ethernet or other networks to which the communication request destination station or the communication request source station is connected when sending a communication request message or a response message, respectively.
(2) Relay Network No.
Designate the Network No. of Ethernet or other networks to which the next communication relay reception station or the next communication relay transmission station is connected when sending a communication request message or a response message, respectively.
(3) Relay Station No.
Designate the station number of the target Ethernet module/network module that is used as a relay to the network set by the Relay station No.
POINT
The following stations require the routing parameters to be set and registered:
1) The programmable controller CPU of the communication request source station
2) The programmable controller CPU of the stations (relay reception station and relay transmission station) that relay communication request messages.
3) The programmable controller CPU of the stations (relay reception station and relay transmission station) that relay response messages.
MELSEC-Q/L
REMARKS
(1) The routing parameters setting is not necessary for the other station access on
To go to a station on the network No. , relay through the station No. , on the network No. , which is the first communication relay from the local station.
Target Network No. Relay Network No.
the same Ethernet network as the external device/local station Q/LCPU.
(2) The routing parameters are designated in the following manner:
Relay
Station No.
(3) As an example, to perform other station access from station 1Ns3 to 3Ns4 in
the diagram in the next page, the following values are set to the stations which require the routing parameter setting.
• Communication request source station : Station 1Ns3
• Communication relay station : Station 1Ns4/2Mp1, and Station 2Ns4/3Ns5
The code used for each station in the diagram indicates the Network No. of
other networks or Ethernet, station type, and station number.
A maximum of 64 "Target Network No." can be set in the Q/LCPU.
64 types of Network No. can be accessed to other station via local station or
can be the request source. However, the same transfer destination Network No. cannot be set two or more times (multiple times).
3 - 16 3 - 16
r
3 COMMUNICATIONS VIA OTHER NETWORKS
MELSEC-Q/L
(The meanings of the symbols used for the stations shown in the diagram)
• Network system (CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10)
Mp
1
(Network number 1, control station, station number 1)
1
Station number
Control station/normal station
Mp……Control station
Ns:……Normal station (AnUCPU, QnACPU, QCPU)
N:……Normal station (Other than AnUCPU, QnACPU, and QCPU)
Network numbe
3 - 17 3 - 17
3 COMMUNICATIONS VIA OTHER NETWORKS
(4) Using the example of a system shown below, the accessible stations and the
stations that require parameter settings when an external device or Q/LCPU access other stations are explained.
Stations that require the setting of the "setting the Ethernet router relay
7) External device
parameter" as mentioned in the User's Manual (Basic) are also shown.
External device
MELSEC-Q/L
1) CPU
Ethernet
module
Ethernet
2) CPU
CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10
4) CPU
Ethernet
module
Network
module
CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10
Ethernet
module
3) CPU
Network
module
External device
Ethernet
module
External device External device
Network
module
5) CPU
Network
module
Ethernet
Ethernet
module
Ethernet
Router
6) CPU
Ethernet
module
External device
Ethernet
Access destination Accessible/not accessible
combination
Access source
1)
2)
3)
4)
5)
6)
7)
1) 2) 3) 4) 5) 6)
: Accessible : Not accessible : Accessible (The number of access points, etc., is restricted.)
3 - 18 3 - 18
3 COMMUNICATIONS VIA OTHER NETWORKS
(1) When performing a remote access from 1) to 2)
Setting item
Network parameter
Routing information setting
Setting the Ethernet Station No. <-> IP information Setting the Ethernet router relay parameter
1) 2) 3) 4) 5) 6) 7)
Station that does ( )/does not ( ) require setting
(2) When performing a remote access from 1) to 3)
Setting item
Network parameter
Routing information setting
Setting the Ethernet Station No. <-> IP information Setting the Ethernet router relay parameter
1) 2) 3) 4) 5) 6) 7)
Station that does ( )/does not ( ) require setting
(3) When performing a remote access from 1) to 5)
Setting item
Network parameter
Routing information setting
Setting the Ethernet Station No. <-> IP information Setting the Ethernet router relay parameter
1) 2) 3) 4) 5) 6) 7)
Station that does ( )/does not ( ) require setting
(4) When performing a remote access from 1) to 6)
Setting item
Network parameter
Routing information setting
Setting the Ethernet Station No. <-> IP information
Setting the Ethernet router relay parameter
Station that does ( )/does not ( ) require setting
1) 2) 3) 4) 5) 6) 7)
1 This setting is required to access the programmable controllers 1) to 5) from the device 6).
MELSEC-Q/L
1
)
(
3 - 19 3 - 19
3 COMMUNICATIONS VIA OTHER NETWORKS
(5) When performing a remote access from 7) to 1)
Setting item
Network parameter Routing information setting Setting the Ethernet Station No. <-> IP information Setting the Ethernet router relay parameter
1) 2) 3) 4) 5) 6) 7)
Station that does ( )/does not ( ) require setting
(6) When performing a remote access from 7) to 3)
Setting item
Network parameter Routing information setting Setting the Ethernet Station No. <-> IP information Setting the Ethernet router relay parameter
1) 2) 3) 4) 5) 6) 7)
Station that does ( )/does not ( ) require setting
(7) When performing a remote access from 7) to 4)
Setting item
Network parameter
Routing information setting
Setting the Ethernet Station No. <-> IP information
Setting the Ethernet router relay parameter
1) 2) 3) 4) 5) 6) 7)
Station that does ( )/does not ( ) require setting
(8) When performing a remote access from 7) to 6)
Setting item
Network parameter
Routing information setting
Setting the Ethernet Station No. <-> IP information
Setting the Ethernet router relay parameter
1) 2) 3) 4) 5) 6) 7)
Station that does ( )/does not ( ) require setting
MELSEC-Q/L
3 - 20 3 - 20
3 COMMUNICATIONS VIA OTHER NETWORKS

3.4 Procedure for Accessing Other Stations

This section explains the procedure for accessing other stations via the Ethernet using the CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10 relay communication function as well as the required processing.
(1) Setting the parameters
The parameters shown in Section 3.3 must be set using a programming tool.
(2) Accessing other stations
Access to other stations is performed from an external device/local station Q/LCPU using the CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10 relay communication function.
REMARKS
• Access to other stations with the CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10 relay communication function is performed using the UDP/IP protocol and data is always communicated in binary code.
• In the data communication, the port number (for the UDP/IP port) for the Ethernet module system is used.
• It is possible to continue accessing other stations while the initial normal completion signal (X19) is on. When the initial normal completion signal (X19) is turned off, the Ethernet module forcefully closes the connection although other station is being accessed.
(3) End processing of the Ethernet module
When ending access to other station with the CC-Link IE Controller Network, CCink IE Field Network, MELSECNET/H, MELSECNET/10 relay communication function that has been made using a connection opened by user, execute the close processing of the connection by seeing the User's Manual (Basic). When the following two functions are used to access other station, the close processing is not required.
• Communication using the data link instructions
• Communication with other stations using a programming tool

3.5 Precautions for Accessing Other Stations

MELSEC-Q/L
The following describes precautions when accessing other stations via the Ethernet module using the CC-Link IE Controller Network, CC-Link IE Field Network,
3 - 21 3 - 21
MELSECNET/H, MELSECNET/10 relay communication function.
(1) Set a network number different from that of the Ethernet network system to
be set for the Ethernet module. In addition, make sure that the same station numbers for the Ethernet network system as those already assigned to the existing network system mentioned above and other Ethernet are not used.
(2) Access to other stations using the CC-Link IE Controller Network, CC-Link
IE Field Network, MELSECNET/H, MELSECNET/10 relay communication function is performed using the UDP/IP protocol and data is always communicated in binary code.
3 COMMUNICATIONS VIA OTHER NETWORKS
POINT
See the manual for each network module for the interlock signals and the send/receive processing and processing time of the link data when performing data communication with Q/LCPUs of other stations via other networks.
MELSEC-Q/L
3 - 22 3 - 22
4 WHEN THE Q/LCPU ACCESSES THE PROGRAMMABLE CONTROLLER
OF ANOTHER STATION USING THE DATA LINK INSTRUCTION
MELSEC-Q/L
4 WHEN THE Q/LCPU ACCESSES THE PROGRAMMABLE CONTROLLER
OF ANOTHER STATION USING THE DATA LINK INSTRUCTION
With the CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10 relay communication function, the Q/LCPU can perform data communication with the programmable controller CPUs of other stations as follows using the data link instructions.
• Programmable controller CPUs of other stations on the same Ethernet network system
• Programmable controller CPUs on other Ethernet networks accessed via routers (using the router relay function)
• Programmable controller CPUs on other Ethernet networks or other networks
4
accessed via a network module (using the CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10 relay communication function)
This chapter describes how to use data link instructions for data communications between a Q/LCPU in the local station and a programmable controller CPU in another station using an Ethernet module via Ethernet or a network module.
POINT
When accessing other stations using data link instructions via Ethernet module, set the parameters shown in Chapter 3.

4.1 Access to Other Stations with the Data Link Instruction

The data link instruction is an instruction for a Q/LCPU to send/receive data, read/write data from/to the word device memory, and access other stations (such as remote RUN/STOP) with a Q/LCPU in other stations connected to other networks or Ethernet. If the initial processing of the local station, relay station, and access station's Ethernet module is finished correctly, it will be possible to access other stations by the data link instruction.
Ethernet
Ethernet
(Local station)
Ethernet
CPU CPU
Router
(Another station)
CPU
module
Accessing another station
Ethernet
module
Accessing another station
(Another station)
CPU
Network
module
CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H, MELSECNET/10
Accessing another station
(Another station)
Ethernet
module
Ethernet
module
(Another station)
CPU
Network
module
4 - 1 4 - 1
4 WHEN THE Q/LCPU ACCESSES THE PROGRAMMABLE CONTROLLER
OF ANOTHER STATION USING THE DATA LINK INSTRUCTION
MELSEC-Q/L

4.2 Precautions for Accessing Other Stations

The following describes precautions when accessing other stations via the Ethernet module using the data link instructions.
(1) Executing multiple instructions at one time (common to the data link
Channel 1: Write to station No.1
Channel 2: Read from station No.1
Channel 3: Write to station No.2
Channel 4: Read from station No.2
Channel 1: sending
Channel 3: receiving
instructions)
(a) When simultaneously accessing multiple other stations from the own station,
change the channel setting of the own station for each request target.
(Own station)
(b) When accessing other stations using the same channel number, access the
next station after the last access to other station is completed. The completion status can be checked by the completion device of the data link instruction.
(c) When making access mutually between the own station and another station,
change the channel of the own station for each dedicated link instruction.
Station No.1
(Own station)
SEND
RECV
(d) Channels used for RECV instructions cannot be used for any other
Channel 1
Channel 3 Channel 3
A maximum of eight instructions can be executed at one time as long as
the channel numbers (1 to 8) designated in the control data of each instruction do not overlap.
instructions. Channels used for other instructions must be changed.
Station No.3
Channel 1
Channel 2
Channel 3
Channel 4
Station No.2
(Other station)
Channel 1
WRITE
READ
WRITE
READ
Station No.1
(Other station)
Station No.2
(Other station)
RECV
SEND
Channel 1: receiving
Channel 3: sending
4
4 - 2 4 - 2
4 WHEN THE Q/LCPU ACCESSES THE PROGRAMMABLE CONTROLLER
OF ANOTHER STATION USING THE DATA LINK INSTRUCTION
MELSEC-Q/L
(2) Setting the arrival monitoring time of the control data storage
device
When the setting unit of arrival monitoring time is "1s", set a value greater than or equal to the TCP resend timer value set in the initial processing parameter for the arrival monitoring time designation area of the control data storage device. When the monitoring time is equal to or less than the TCP resend timer value, the TCP resend timer value is set as the arrival monitoring time. ( (When the setting value is less than or equal to the TCP resend timer value, the arrival monitoring timer equals the TCP resend timer value.)
1 Although the units of setting values for the TCP resend timer (setting value
units: 0.5 s) and the arrival monitoring timer (setting value units: s) are different, the TCP resend timer value is used as is.
(3) Checking the execution result of each data link instruction
The execution result (completion status) of each data link instruction is stored in the areas shown as binary values. After the execution of an instruction is completed, read the execution result from the storage area and verify either normal or abnormal completion.
Stored value at normal completion
: 0
Stored value at abnormal completion: A value other than 0 (error code) When an error code that indicates abnormal completion is stored, take an action by seeing the "Troubleshooting" section in the User's Manual (Basic).
Instruction Storage area of execution result
SEND
RECV, RECVS
READ, SREAD
WRITE, SWRITE
REQ
ZNRD Address CFH (207)
ZNWR
The completion status storage device of the control data storage device of the instruction used.
Data link instruction execution result storage area in buffer memory
Address D1
(4) Clock data when each of the data link instructions ends abnormally
In the clock data stored as control data when each of the data link instructions ends abnormally (set only upon an error), the year data (upper 2 digits) is stored only when the Q/LCPU is the error detection station. If the error detection station is not a Q/LCPU, 00
H is stored.
1)
H (209)
4 - 3 4 - 3
4 WHEN THE Q/LCPU ACCESSES THE PROGRAMMABLE CONTROLLER
OF ANOTHER STATION USING THE DATA LINK INSTRUCTION
MELSEC-Q/L
(5) Channels used by the ZNRD and ZNWR instructions
The ZNRD and ZNWR instructions for Ethernet modules are executed using the following channels of the target Ethernet module.
• ZNRD: Channel 1
• ZNWR: Channel 2 Do not use the channels used by the ZNRD and ZNWR instructions listed above for other data link instructions in an Ethernet module mounted station that executes the ZNRD and ZNWR instructions. Also, do not execute data link instructions from other stations on the channels listed above in an Ethernet module mounted station that executes the ZNRD and ZNWR instructions.
POINT
(1) See Chapter 3 for details of the following when performing other station access
using the data link instructions.
• The accessible range and accessible stations of the other stations
• Setting to perform other station access
• Other station access procedure
(2) The communication using the data link instructions on the Ethernet is
performed with UDP/IP. When executing each data link instruction except for ZNRD and ZNWR, it is recommended to designate a value greater than "1" to the number of retries setting area of the control data storage device.
(3) See the reference manual for each network regarding the link data
send/receive processing and processing time in data communication with the programmable controller CPU of another station via other networks.
(4) For details about data designation methods in the data link instruction, see
Chapter 6.
4 - 4 4 - 4
4 WHEN THE Q/LCPU ACCESSES THE PROGRAMMABLE CONTROLLER
OF ANOTHER STATION USING THE DATA LINK INSTRUCTION
MELSEC-Q/L

4.3 Using the Data Link Instructions

This section explains how to use the data link instructions when accessing other stations via the Ethernet module.
(1) SEND instruction
1) When performing simultaneous other station accesses from multiple communication request source stations to the same communication request destination station, change the channel number of the communication request destination station for each communication request source station. If the channel number is being used at the communication request source station (being accessed from other station using the same channel number) when other station is accessed, the data link instruction ends in error. So, re-execute the instruction.
If the channel number used is different at the communication request
destination station side, simultaneous other station access can be performed from a maximum of eight communication request source stations to the same station.
2) When performing other station access from the same communication request source station to the same communication request destination station, change the channel number at the communication request destination station side. When designating the same channel number on the communication request destination station side, perform the second other station access after the first other station access is complete. If the second SEND instruction is executed before the first SEND instruction is completed, the SEND instruction ends in error.
(2) Instruction other than the SEND instruction
1) When simultaneous other station access is performed to the same communication request destination station from multiple communication request source station, and a busy error (being accessed from other station) occurs, re-execute the instruction.
2) When accessing other station from the same communication request source station to the same communication request destination station, execute the second data link command after other station access by the first data link instruction is complete.
(3) Broadcast (Simultaneous broadcast)
When FFH is designated as the target station number in the control data when executing SEND/WRITE (SWRITE)/REQ on the Ethernet, the command is sent to all external devices on the network.
4 - 5 4 - 5
4 WHEN THE Q/LCPU ACCESSES THE PROGRAMMABLE CONTROLLER
OF ANOTHER STATION USING THE DATA LINK INSTRUCTION
MELSEC-Q/L
(Example) IP address when the command is sent (for class B)
Bit location
31 30 29 16
Class
to
H
Network address
15 0
to
FFFF
H
Host address
Read-dump the received commands not related to the local station on the external device.
The COM.ERR.LED indicator of an Ethernet module may turn on and an error
code may be stored in the following buffer memory area when a response to a simultaneous broadcast from the Ethernet module is returned from an external device. Error code/end code area (address: from E5
These processing are performed automatically with the Ethernet module.
H (229))
(4) Interlock when executing the data link instruction
(a) Via Ethernet
Execute the data link command when the local station (communication
request source station) Ethernet module is at the following I/O sign
X19 X1F
SEND
X19: Initial normal complation signal X1F: Watchdog time error station signal
(b) Via other networks
Check the status of the local station (communication request source station), communication relay station, and access destination (communication request destination station) using the following devices. Execute the data link instruction if the status is normal.
• Link special relay: SB20, SB47, SB70, etc.
• Link special register: SW70 to 73, SW74 to 77, etc. See the reference manual for each network for the interlock signals, link
data send/receive processing, and processing time when performing data communication with the programmable controller CPU of another station via other networks.
(5) Specifying the number of times to resend the data link instructions
When executing each data link instruction except for ZNRD and ZNWR, it is recommended to designate a value greater than "1" for the number of resend designation area of the control data storage device. The resend timing when the READ command is executed after designating the number of resend is described below.
al state.
4 - 6 4 - 6
4 WHEN THE Q/LCPU ACCESSES THE PROGRAMMABLE CONTROLLER
OF ANOTHER STATION USING THE DATA LINK INSTRUCTION
MELSEC-Q/L
(Example) READ instruction execution timing
1) Communication timing when the READ instruction completed successfully (when resend is not performed)
Programmable
controller CPU
E71
(Local station)
E71
(another station)
Programmable
controller CPU
READ
Arrival monitoring time (*1)
(Execution completion)
Command (UDP)
Receive response (UDP) (*4)
Response
Receive response (UDP) (*4)
Read request
Read data
2) Communication timing when the READ instruction completed successfully (when resend is performed)
Programmable
controller CPU
READ
(Resend)
(Execution completion)
E71
(Local station)
Arrival monitoring time (*1)
Repeat for the number of resend. (*2)
Command (UDP)
Receive response (UDP) (*4)
No response (*3)
Command (UDP)
Receive response (UDP) (*4)
Response
Receive response (UDP) (*4)
E71
(another station)
Programmable
controller CPU
Read request
Read data
1 The user designates the arrival monitoring time with the READ
instruction control data ((S1)+8).
2 The user designates the number of resend with the READ
instruction control data ((S1)+7). This item must be set at every instruction execution.
3 The Ethernet module performs a resend of the command for
the number of resend when this response is not received.
4 The receiving side Ethernet module notifies the sending side
Ethernet module of successful data reception.
4 - 7 4 - 7
4 WHEN THE Q/LCPU ACCESSES THE PROGRAMMABLE CONTROLLER
OF ANOTHER STATION USING THE DATA LINK INSTRUCTION
MELSEC-Q/L

4.4 Data Link Instructions

This section explains the overview of the data send/receive in each data link instruction when accessing via Ethernet Module. Channels 1 to 8 of the Ethernet module and network module in the figure of the following table are the OS areas that store send/receive data with each data link instruction.
Instruction execution station (Local station)
Target station
Instruction
Details
Station type Station type Target station type
SEND
RECV
RECVS
READ
SREAD
Data is sent (SEND) and received (RECV) between the Q/L/QnACPU stations.
Programmable
controller CPU
Ethernet module/
N/W module
channel 1 channel 2
SEND RECV
channel 3 channel 4 channel 5 channel 6 channel 7 channel 8
Ethernet module/
N/W module
channel 1 channel 2 channel 3 channel 4 channel 5 channel 6 channel 7 channel 8
1 2
Programmable
controller CPU
(RECVS)
See Section 4.5.1, 4.5.2.
Reads data from another station's word device.
2
(With SREAD, the completion device on the target station can be turned on.)
Programmable
controller CPU
READ
Word device
2594
Ethernet module/
N/W module
Channel 1 Channel 2 Channel 3 Channel 4 Channel 5 Channel 6 Channel 7 Channel 8
Ethernet module/
N/W module
Programmable
controller CPU
Word device
2594
See Section 4.6.
Ethernet
Ethernet module
MELSECNET/H, MELSECNET/10
Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station CC-Link IE Controller Network Control station Normal station Control station (extended m ode) Normal station (extended mode) CC-Link IE Field Network Master station Local station Submaster station
Ethernet
Ethernet module
Ethernet
Ethernet module
MELSECNET/H, MELSECNET/10
Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station CC-Link IE Controller Network Control station Normal station Control station (extended m ode) Normal station (extended mode) CC-Link IE Field Network Master station Local station Submaster station
Ethernet
Ethernet module
MELSECNET/H, MELSECNET/10
Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station
CC-Link IE Controller Network Control station Normal station Control station (extended m ode) Normal station (extended mode)
CC-Link IE Field Network Master station Local station Submaster station
Ethernet
Ethernet module
Ethernet
Ethernet module
MELSECNET/H, MELSECNET/10
Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station
CC-Link IE Controller Network Control station Normal station Control station (extended m ode) Normal station (extended mode)
CC-Link IE Field Network Master station Local station Intelligent device station
• QCPU
• QnACPU
• LCPU
• Interface board for a personal computer
• QCPU
• LCPU
• QCPU
• QnACPU
• LCPU
Submaster station
1 The instruction cannot be used when the source or target station is a safety CPU. 2 Up to the channel 2 can be used in the CC-Link IE Field Network. 3 The following interface boards for a personal computer with the SEND/RECV function are accessible:
• CC-Link IE Controller Network interface board
• CC-Link IE Field Network interface board
• MELSECNET/H board
• MELSECNET/10 board
4 - 8 4 - 8
3
4 WHEN THE Q/LCPU ACCESSES THE PROGRAMMABLE CONTROLLER
OF ANOTHER STATION USING THE DATA LINK INSTRUCTION
MELSEC-Q/L
Instruction execution station (Local station)
Target station
Instruction
WRITE
SWRITE
REQ
Details
Writes data to another station's word device.
4
(With SWRITE, the completion device on
the target station can be turned on.)
Programmable
controller CPU
Ethernet module/
N/W module
Channel 1 Channel 2 Channel 3
WRITE 361
Channel 4 Channel 5 Channel 6 Channel 7 Channel 8
Ethernet module/
N/W module
3
Programmable
controller CPU
Word device
See Section 4.6.
Performs remote RUN/STOP to other station. Performs "clock data read and write" for other stations.
Programmable
controller CPU
REQ
2
Ethernet module/
N/W module
Channel 1 Channel 2 Channel 3 Channel 4 Channel 5 Channel 6 Channel 7 Channel 8
3
N/W module
Programmable
controller CPU
Ethernet module/
STOP
See Section 4.8.
Station type Station type Target station type
Ethernet
Ethernet module
MELSECNET/H, MELSECNET/10
Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station CC-Link IE Controller Network Control station Normal station Control station (extended m ode) Normal station (extended mode) CC-Link IE Field Network Master station Local station Submaster station
Ethernet
Ethernet module
MELSECNET/H, MELSECNET/10
Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station. CC-Link IE Controller Network Control station Normal station Control station (extended m ode) Normal station (extended mode) CC-Link IE Field Network Master station Local station Submaster station
Ethernet
Ethernet module
MELSECNET/H, MELSECNET/10
Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station
CC-Link IE Controller Network Control station Normal station Control station (extended m ode) Normal station (extended mode)
CC-Link IE Field Network Master station Local station Intelligent device station Submaster station
Ethernet
Ethernet module
MELSECNET/H, MELSECNET/10
Control station Normal station Remote master station Multiple remote master station Parallel remote master station Multiple remote submaster station Parallel remote submaster station
CC-Link IE Controller Network Control station Normal station Control station (extended m ode) Normal station (extended mode)
CC-Link IE Field Network Master station Local station Submaster station
• QCPU
• QnACPU
• LCPU
• QCPU
• QnACPU
• LCPU
4 - 9 4 - 9
Loading...