Additional Product Support
EF X 3UƒVƒŠ [ ƒY
•
FX3U Series
•
Inverter Communication
Version
(F700/A700/E700 Series)
•
N:N Network
•
Parallel Link
•
Computer Link
•
Inverter Communication
•
Non-Protocol Communication
•
Programming Communication
•
Remote Maintenance
USER'S MANUAL - Data Communication Edition
FX SERIES PROGRAMMABLE CONTROLLERS
RS-232C Interface
FX3U-232-BD
3U
-232ADP(-MB)
FX
FX2N-232-BD
FX
2NC
-232ADP
1N
-232-BD
FX
0N
-232ADP
FX
FX-232ADP
FX
2N
-232IF
RS-485 Interface
FX3U-485-BD
FX
3U
-485ADP(-MB)
2N
-485-BD
FX
2NC
-485ADP
FX
FX
1N
-485-BD
FX
0N
-485ADP
FX-485ADP
RS-485/232C Converter
FX-485PC-IF
RS-422 Interface
3U
-422-BD
FX
FX
2N
-422-BD
FX
1N
-422-BD
USB Interface
FX3U-USB-BD
Safety Precautions
(Read these precautions before use.)
Before installation, operation, maintenance or inspection of this product, thoroughly read through and understand
this manual and all of the associated manuals. Also, take care to handle the module properly and safely.
This manual classifies the safety precautions into two categories: and .
Indicates that incorrect handling may cause hazardous conditions, resulting in
death or severe injury.
Indicates that incorrect handling may cause hazardous conditions, resulting in
medium or slight personal injury or physical damage.
Depending on the circumstances, procedures indicated by may also cause severe injury.
It is important to follow all precautions for personal safety.
Store this manual in a safe place so that it can be taken out and read whenever necessary. Always forward it
to the end user.
1. DESIGN PRECAUTIONS
• Make sure to have the following safety circuits outside of the PLC to ensure safe system operation even during
external power supply problems or PLC failure.
Otherwise, malfunctions may cause serious accidents.
1) Most importantly, have the following: an emergency stop circuit, a protection circuit, an interlock circuit for
opposite movements (such as normal vs. reverse rotation), and an interlock circuit (to prevent damage to the
equipment at the upper and lower positioning limits).
2) Note that when the PLC CPU detects an error, such as a watchdog timer error, during self-diagnosis, all
outputs are turned off. Also, when an error that cannot be detected by the PLC CPU occurs in an input/output
control block, output control may be disabled.
External circuits and mechanisms should be designed to ensure safe machinery operation in such a case.
3) Note that the output current of the service power supply for sensors varies depending on the model and the
absence/presence of extension blocks. If an overload occurs, the voltage automatically drops, inputs in the
PLC are disabled, and all outputs are turned off.
External circuits and mechanisms should be designed to ensure safe machinery operation in such a case.
Note that when an error occurs in a relay, triac or transistor output device, the output could be held either on or off.
4)
For output signals that may lead to serious accidents, external circuits and mechanisms should be designed to
ensure safe machinery operation in such a case.
• Do not bundle the control line together with or lay it close to the main circuit or power line. As a guideline, lay the
control line at least 100mm (3.94") or more away from the main circuit or power line.
Noise may cause malfunctions.
• Install module so that excessive force will not be applied to the built-in programming port, power connectors, I/O
connectors, communication connectors, or communication cables.
Failure to do so may result in wire damage/breakage or PLC failure.
(1)
Safety Precautions
(Read these precautions before use.)
2. WIRING PRECAUTIONS
• Make sure to cut off all phases of the power supply externally before attempting installation or wiring work.
Failure to do so may cause electric shock or damage to the product.
• Make sure to attach the terminal cover, offered as an accessory, before turning on the power or initiating operation
after installation or wiring work.
Failure to do so may cause electric shock.
• Make sure to observe the following precautions in order to prevent any damage to the machinery or accidents due
to abnormal data written to the PLC under the influence of noise:
1) Do not bundle the main circuit line together with or lay it close to the main circuit, high-voltage line or load line.
Otherwise, noise disturbance and/or surge induction are likely to take place. As a guideline, lay the control line
at least 100mm (3.94") or more away from the main circuit or high-voltage line.
2) Ground the shield wire or shield of the shielded cable at one point on the PLC. However, do not use grounding
with heavy electrical systems.
• Make sure to properly wire the FX
precautions.
Failure to do so may cause electric shock, a short-circuit, wire breakage, or damage to the product.
- The disposal size of the cable end should follow the dimensions described in this manual.
- Tightening torque should follow the specifications in this manual.
• Make sure to properly wire to the European terminal board in accordance with the following precautions.
Failure to do so may cause electric shock, a short-circuit, wire breakage, or damage to the product.
- The disposal size of the cable end should follow the dimensions described in this manual.
- Tightening torque should be follow the specifications in this manual.
- Twist the end of strand wire and make sure that there are no loose wires.
- Do not solder-plate the electric wire ends.
- Do not connect more than the specified number of wires or electric wires of unspecified size.
- Affix the electric wires so that neither the terminal block nor the connected parts are directly stressed.
0N/FX 2N Series extension equipment in accordance with the following
3. STARTUP AND MAINTENANCE PRECAUTIONS
• Do not touch any terminal while the PLC's power is on.
Doing so may cause electric shock or malfunctions.
• Before cleaning or retightening terminals, cut off all phases of the power supply externally.
Failure to do so may cause electric shock.
• Before modifying or disrupting the program in operation or running the PLC, carefully read through this manual
and the associated manuals and ensure the safety of the operation.
An operation error may damage the machinery or cause accidents.
• Do not change the program in the PLC from two or more peripheral equipment devices at the same time.
(i.e. from a programming tool and a GOT)
Doing so may cause destruction or malfunction of the PLC program.
• Do not disassemble or modify the PLC.
Doing so may cause fire, equipment failures, or malfunctions.
For repair, contact your local Mitsubishi Electric distributor.
• Turn off the power to the PLC before connecting or disconnecting any extension cable.
Failure to do so may cause equipment failures or malfunctions.
• Turn of the power to the PLC before attaching or detaching the peripheral devices, expansion boards, special
adapters, and expansion memory cassette.
Failure to do so may cause equipment failures or malfunctions.
(2)
FX Series PLC User's Manual - Data Communication Edition
FX Series Programmable Controllers
User's Manual [Data Communication Edition]
Manual number JY997D16901
Manual revision C
Date 11/2007
Foreword
This manual explains the "serial communication" provided for MELSEC-F FX Series Programmable
Controllers and should be read and understood before attempting to install or use the unit.
Store this manual in a safe place so that you can take it out and read it whenever necessary. Always forward
it to the end user.
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.
© 2005 MITSUBISHI ELECTRIC CORPORATION
1
FX Series PLC User's Manual - Data Communication Edition
Outline Precautions
• This manual provides information for the use of the FX3U Series Programmable Controllers. The manual
has been written to be used by trained and competent personnel. The definition of such a person or
persons is as follows:
1) Any engineer who is responsible for the planning, design and construction of automatic equipment
using the product associated with this manual should be of a competent nature, trained and qualified
to the local and national standards required to fulfill that role. These engineers should be fully aware of
all aspects of safety aspects regarding to automated equipment.
2) Any commissioning or maintenance engineer must be of a competent nature, trained and qualified to
the local and national standards required to fulfill the job. These engineers should also be trained in
the use and maintenance of the completed product. This includes being familiar with all associated
manuals and documentation for the product. All maintenance should be carried out in accordance with
established safety practices.
3) All operators of the completed equipment should be trained to use that product in a safe and
coordinated manner in compliance with established safety practices. The operators should also be
familiar with documentation that is connected with the actual operation of the completed equipment.
Note: the term 'completed equipment' refers to a third party constructed device that contains or uses the
product associated with this manual
• This product has been manufactured as a general-purpose part for general industries, and has not been
designed or manufactured to be incorporated in a device or system used in purposes related to human life.
• Before using the product for special purposes such as nuclear power, electric power, aerospace, medicine
or passenger movement vehicles, consult with Mitsubishi Electric.
• This product has been manufactured under strict quality control. However when installing the product
where major accidents or losses could occur if the product fails, install appropriate backup or failsafe
functions into the system.
• When combining this product with other products, please confirm the standards and codes of regulation to
which the user should follow. Moreover, please confirm the compatibility of this product with the system,
machines, and apparatuses to be used.
• If there is doubt at any stage during installation of the product, always consult a professional electrical
engineer who is qualified and trained in the local and national standards. If there is doubt about the
operation or use, please consult the nearest Mitsubishi Electric distributor.
• Since the examples within this manual, technical bulletin, catalog, etc. are used as reference; please use it
after confirming the function and safety of the equipment and system. Mitsubishi Electric will not accept
responsibility for actual use of the product based on these illustrative examples.
• The content, specification etc. of this manual may be changed for improvement without notice.
• The information in this manual has been carefully checked and is believed to be accurate; however, if you
notice any doubtful point, error, etc., please contact the nearest Mitsubishi Electric distributor.
Registration
•Microsoft® and Windows® are either registered trademarks or trademarks of Microsoft Corporation in the
United States and/or other countries.
• The company name and the product name to be described in this manual are the registered trademarks or
trademarks of each company.
2
FX Series PLC User's Manual - Data Communication Edition
Table of Contents
SAFETY PRECAUTIONS .................................................................................................. (1)
Common Item’s
1. Introduction A-1
1.1 Communication Types .................................................................................................................A-1
1.2 Outline and Features of Communication Types...........................................................................A-3
1.2.1 CC-Link Network ..........................................................................................................................A-3
1.2.2 N:N Network .................................................................................................................................A-4
1.2.3 Parallel Link..................................................................................................................................A-5
1.2.4 Computer Link..............................................................................................................................A-6
1.2.5 Inverter Communication ...............................................................................................................A-7
1.2.6 Non-protocol Communication.......................................................................................................A-8
1.2.7 Programming Communication......................................................................................................A-9
1.2.8 Remote Maintenance .................................................................................................................A-11
1.2.9 CC-Link/LT Network...................................................................................................................A-12
1.2.10 AS-i system ..............................................................................................................................A-13
1.2.11 Internet Mail Sending................................................................................................................A-14
1.2.12 Short Mail Sending ...................................................................................................................A-15
Table of Contents
2. Communication Types and Communication Equipment A-17
2.1 Relationship between Equipment and Communication Types...................................................A-17
2.2 Communication Equipment Applicability Map............................................................................A-18
2.2.1 FX3U and FX3UC (D, DSS) PLCs...............................................................................................A-18
2.2.2 FX
2.2.3 FX
2.2.4 FX
2.2.5 FX
2.2.6 FX
3UC-32MT-LT PLCs...............................................................................................................A-20
2N and FX 2NC PLCs ..............................................................................................................A-22
1S, FX 1N, and FX 1NC PLCs ..................................................................................................A-24
0N PLCs .................................................................................................................................A-26
0, FX 0S, FX 2(FX), FX 2C, and FX 1 PLCs (reference).............................................................A-26
2.3 Combination of Communication Equipment (Block Diagram)....................................................A-28
2.3.1 How to look at combination pages..............................................................................................A-28
2.3.2 For FX
2.3.3 For FX
2.3.4 For FX
2.3.5 For FX
2.3.6 For FX
2.3.7 For FX
2.3.8 For FX
2.3.9 For FX
2.3.10 For FX
2.3.11 For FX
0N Series .........................................................................................................................A-29
1S Series .........................................................................................................................A-31
1N Series .........................................................................................................................A-32
1NC Series.......................................................................................................................A-34
2N Series .........................................................................................................................A-36
2NC Series.......................................................................................................................A-38
3U Series .........................................................................................................................A-40
3UC(D, DSS) Series.........................................................................................................A-42
3UC-32MT-LT ...............................................................................................................A-44
2(FX) and FX 2C Series (reference) ...............................................................................A-46
3. Outline of Communication Setting in the FX Series A-47
3.1 Setting Method...........................................................................................................................A-47
3.2 Communication Setting Using Parameter Method (GX Developer)...........................................A-48
3.2.1 Operating procedure...................................................................................................................A-48
3.2.2 Correspondence between parameter setting and each communication type.............................A-49
3.3 Communication Setting in Parameter Method (FXGP/WIN) ......................................................A-50
3.3.1 Operating procedure...................................................................................................................A-50
3.3.2 Correspondence between parameter setting and each communication type.............................A-52
3.4 Extension of Ports (FX3U , FX3UC).............................................................................................A-53
3.4.1 Limitation when ch1 and ch2 are used at the same time ...........................................................A-54
3
FX Series PLC User's Manual - Data Communication Edition
4. Introduction of Manuals (Type, Reading Method and Acquisition Method) A-55
4.1 Rank and Use Method of This Manual.......................................................................................A-55
4.2 Introduction of Related Manuals ................................................................................................A-56
4.2.1 Manual for communication types in FX PLCs.............................................................................A-56
4.2.2 Manuals related to FX PLCs.......................................................................................................A-56
4.2.3 Communication equipment (option)............................................................................................A-58
4.2.4 Related options for communication............................................................................................A-59
5. Abbreviations, Generic Names and Terms Used in This Manual A-60
Table of Contents
4
FX Series PLC User's Manual - Data Communication Edition
N:N Network
1. Outline B-3
1.1 Outline of System.........................................................................................................................B-3
1.2 Procedures Before Operation ......................................................................................................B-4
1.3 Communication Type Applicability in PLC ...................................................................................B-5
1.3.1 Applicable versions.......................................................................................................................B-5
1.3.2 Products whose production was stopped.....................................................................................B-6
1.4 Programming Tool Applicability....................................................................................................B-6
1.4.1 For applicable versions.................................................................................................................B-6
1.4.2 For non-applicable versions (setting an alternative model)..........................................................B-8
2. Specifications B-9
2.1 Communication Specifications (Reference).................................................................................B-9
2.2 Link Specifications .....................................................................................................................B-10
2.2.1 Link patterns and number of link points in each FX Series ........................................................B-10
2.2.2 Link time.....................................................................................................................................B-11
Table of Contents
3. System Configuration and Equipment Selection B-12
3.1 System Configuration.................................................................................................................B-12
3.2 Applicable FX PLC and Communication Equipment..................................................................B-13
4. Wiring B-16
4.1 Wiring Procedure .......................................................................................................................B-16
4.2 Selecting Cables and Terminal Resistors ..................................................................................B-17
4.2.1 Twisted pair cable.......................................................................................................................B-17
4.2.2 Connecting cables ......................................................................................................................B-18
4.2.3 Connecting terminal resistors.....................................................................................................B-19
4.3 Connection Diagram ..................................................................................................................B-20
4.4 Grounding ..................................................................................................................................B-20
5. Communication Setting (Initialization) in FX Programmable Controller B-21
5.1 Check Procedure .......................................................................................................................B-21
5.2 Communication Setting Using Parameter Method (GX Developer)...........................................B-22
5.2.1 Operating procedure...................................................................................................................B-22
5.3 Communication Settings Using Parameter Method (FXGP/WIN)..............................................B-23
5.3.1 Operating procedure...................................................................................................................B-23
6. Test Run (Communication Test) B-24
6.1 Test Procedure...........................................................................................................................B-24
6.2 Creating Programs for the Communication Testing...................................................................B-26
6.2.1 Creating a program for the master station..................................................................................B-26
6.2.2 Creating a program for each slave station..................................................................................B-27
5
FX Series PLC User's Manual - Data Communication Edition
7. Creating Programs B-28
7.1 Checking Contents of Related Devices......................................................................................B-28
7.2 Creating Programs for Master Station (Station No. 0) ...............................................................B-30
7.3 Creating Programs for Slave Station (Station No. "n")...............................................................B-32
7.4 Cautions on Program Creation...................................................................................................B-34
8. Practical Program Examples B-35
8.1 Practical Example 1 (Pattern 2) .................................................................................................B-35
8.1.1 System configuration example ...................................................................................................B-35
8.1.2 Contents of operations and corresponding program numbers...................................................B-35
8.1.3 Setting contents..........................................................................................................................B-36
8.1.4 Setting program for master station .............................................................................................B-36
8.1.5 Setting program for slave station (No. 1)....................................................................................B-38
8.1.6 Setting program for slave station (No. 2)....................................................................................B-40
9. Troubleshooting B-42
Table of Contents
9.1 Checking FX PLC Version Applicability .....................................................................................B-42
9.2 Checking Communication Status Based on LED Indication ......................................................B-42
9.3 Checking Installation and Wiring................................................................................................B-42
9.4 Checking Sequence Program ....................................................................................................B-42
9.5 Checking Setting Contents and Errors.......................................................................................B-43
9.6 Checking Absence/Presence of Data Transfer Errors ...............................................................B-44
9.6.1 Check while data transfer sequence is being executed .............................................................B-44
9.6.2 Checking data transfer sequence errors ....................................................................................B-44
9.6.3 Checking error codes .................................................................................................................B-44
10. Related Data B-46
10.1 Related Device List ..................................................................................................................B-46
10.1.1 For FX1N , FX2N , FX3U , FX1NC , FX2NC , and FX3UC PLCs .....................................................B-46
10.1.2 For FX
10.2 Details of Related Devices.......................................................................................................B-52
10.2.1 Parameter setting [M8038] .......................................................................................................B-52
10.2.2 Channel setting [M8179]...........................................................................................................B-52
10.2.3 Serial communication error [M8063 and M8438]......................................................................B-52
10.2.4 Data transfer sequence error [M8138 to M8190] [M504 to M511]............................................B-53
10.2.5 Data transfer sequence ON [M8191] [M503]............................................................................B-53
10.2.6 Serial communication error code [D8063 and D8438]..............................................................B-53
10.2.7 Corresponding station number settings status [D8173]............................................................B-54
10.2.8 Slave station quantity setting status [D8174]............................................................................B-54
10.2.9 Refresh range setting status [D8175].......................................................................................B-54
10.2.10 Station number settings [D8176] ............................................................................................B-54
10.2.11 Slave station quantity setting [D8177] ....................................................................................B-55
10.2.12 Refresh range setting [D8178]................................................................................................B-55
10.2.13 Number of retries [D8179] ......................................................................................................B-56
10.2.14 Monitoring time setting [D8180]..............................................................................................B-56
10.2.15 Present link scan time [D8201] [D201]...................................................................................B-56
10.2.16 Maximum link scan time [D8202] [D202]................................................................................B-57
10.2.17 Data transfer sequence error count [D8203 to D8210] [D203 to D210] .................................B-57
10.2.18 Data transfer error code [D8211 to D8218] [D211 to D218]...................................................B-57
1S and FX 0N PLCs ........................................................................................................B-50
6
FX Series PLC User's Manual - Data Communication Edition
Parallel Link
1. Outline C-3
1.1 Outline of System........................................................................................................................ C-3
1.2 Procedures Before Operation ..................................................................................................... C-4
1.3 Communication Type Applicability in PLC .................................................................................. C-5
1.3.1 Applicable versions...................................................................................................................... C-5
1.3.2 Products whose production was stopped....................................................................................C-5
1.4 Programming Tool Applicability................................................................................................... C-6
1.4.1 For applicable versions................................................................................................................ C-6
1.4.2 For non-applicable versions (setting an alternative model)......................................................... C-8
2. Specifications C-9
2.1 Communication Specifications (Reference)................................................................................ C-9
2.2 Link Specifications .................................................................................................................... C-10
2.2.1 PLC communication type applicability status ............................................................................ C-10
2.2.2 Link time.................................................................................................................................... C-10
2.3 Link Device Numbers and Number of Points ............................................................................ C-11
2.3.1 For FX1S and FX0N Series........................................................................................................ C-11
2.3.2 For FX
2(FX), FX 2C, FX 1N, FX 2N, FX 3U, FX 1NC, FX 2NC and FX 3UC Series............................ C-12
Table of Contents
3. System Configuration and Selection C-13
3.1 System Configuration................................................................................................................ C-13
3.1.1 Rule for connection.................................................................................................................... C-13
3.2 Configuration of Each Group..................................................................................................... C-14
3.3 Applicable FX PLC and Communication Equipment................................................................. C-17
4. Wiring C-21
4.1 Wiring Procedure ...................................................................................................................... C-21
4.2 Selecting Cables and Terminal Resistors ................................................................................. C-22
4.2.1 Twisted pair cable...................................................................................................................... C-22
4.2.2 Connecting cables ..................................................................................................................... C-23
4.2.3 Optical fiber cable...................................................................................................................... C-24
4.2.4 Connecting terminal resistors.................................................................................................... C-25
4.3 Connection Diagram ................................................................................................................. C-26
4.3.1 For FX3U and FX3UC PLCs....................................................................................................... C-26
4.3.2 For FX
4.3.3 For FX
4.4 Grounding ................................................................................................................................. C-28
1S, FX 1N, FX 1NC, FX 2N and FX 2NC PLCs .................................................................... C-27
2(FX) and FX 2C PLCs .................................................................................................... C-28
5. Communication Setting (Initialization) in FX Programmable Controller C-29
5.1 Check Procedure ...................................................................................................................... C-29
5.2 Communication Setting Using Parameter Method (GX Developer).......................................... C-30
5.2.1 Operating procedure.................................................................................................................. C-30
5.3 Communication Setting Using Parameter Method (FXGP/WIN)............................................... C-31
5.3.1 Operating procedure.................................................................................................................. C-31
7
FX Series PLC User's Manual - Data Communication Edition
6. Test Run (Communication Test) C-32
6.1 Test Procedure.......................................................................................................................... C-32
6.2 Creating Programs for the Communication Test....................................................................... C-33
6.2.1 For FX2 (FX), FX2C , FX1N, FX 2N , FX3U , FX1NC , FX2NC or FX3UC Series............................. C-33
6.2.2 For FX
1S or FX 0N Series .......................................................................................................... C-34
7. Creating Programs C-35
7.1 Regular Parallel Link Mode....................................................................................................... C-35
7.1.1 Checking contents of related devices........................................................................................ C-35
7.1.2 Creating programs for master station........................................................................................ C-37
7.1.3 Creating programs for slave station........................................................................................... C-38
7.2 High Speed Parallel Link Mode................................................................................................. C-39
7.2.1 Checking contents of related devices........................................................................................ C-39
7.2.2 Creating programs for master station........................................................................................ C-41
7.2.3 Creating programs for slave station........................................................................................... C-42
7.3 Cautions on Program Creation.................................................................................................. C-43
8. Practical Program Examples C-44
Table of Contents
8.1 Practical Example 1 (Regular Parallel Link Mode).................................................................... C-44
8.1.1 System configuration example .................................................................................................. C-44
8.1.2 Setting contents......................................................................................................................... C-44
8.1.3 Program for master station........................................................................................................ C-45
8.1.4 Program for slave station........................................................................................................... C-45
9. Troubleshooting C-46
9.1 Checking FX PLC Version Applicability .................................................................................... C-46
9.2 Checking Communication Status Based on LED Indication ..................................................... C-46
9.3 Checking Installation and Wiring............................................................................................... C-46
9.4 Checking Sequence Program ................................................................................................... C-46
9.5 Checking Absence/Presence of Errors ..................................................................................... C-47
10. Related Data C-48
10.1 Related Device List ................................................................................................................. C-48
10.2 Details of Related Devices...................................................................................................... C-49
10.2.1 Parallel link master station declare [M8070]............................................................................C-49
10.2.2 Channel setting [M8178].......................................................................................................... C-49
10.2.3 Parallel link slave station declare [M8071] .............................................................................. C-49
10.2.4 High speed parallel link mode [M8162] ...................................................................................C-49
10.2.5 Parallel link ON [M8072].......................................................................................................... C-50
10.2.6 Parallel link setting error [M8073]............................................................................................ C-50
10.2.7 Serial communication error [M8063 and M8438]..................................................................... C-50
10.2.8 Error judgement time setting [D8070]...................................................................................... C-50
10.2.9 Serial communication error code [D8063 and D8438]............................................................. C-51
8
FX Series PLC User's Manual - Data Communication Edition
Computer Link
1. Outline D-3
1.1 Outline of System........................................................................................................................ D-3
1.2 Procedures Before Operation ..................................................................................................... D-4
1.3 Communication Type Applicability in PLC .................................................................................. D-5
1.3.1 Applicable versions...................................................................................................................... D-5
1.3.2 Products whose production was stopped....................................................................................D-6
1.4 Programming Tool Applicability................................................................................................... D-6
1.4.1 For applicable versions................................................................................................................ D-6
1.4.2 For non-applicable versions (setting an alternative model)......................................................... D-8
2. Specifications D-9
2.1 Communication Specifications (Reference)................................................................................ D-9
2.2 Link Specifications .................................................................................................................... D-10
2.2.1 Applicable commands and number of device points ................................................................. D-10
2.2.2 Applicable device ranges........................................................................................................... D-11
2.2.3 Link time.................................................................................................................................... D-13
Table of Contents
3. System Configuration and Equipment Selection D-14
3.1 System Configuration................................................................................................................ D-14
3.2 Applicable FX PLC and Communication Equipment................................................................. D-15
3.2.1 For communication in accordance with RS-232C ..................................................................... D-15
3.2.2 For communication in accordance with RS-485........................................................................ D-19
4. Wiring D-23
4.1 Wiring Procedure ...................................................................................................................... D-24
4.2 Selecting Connection Method ................................................................................................... D-25
4.2.1 For communication in accordance with RS-232C (1-to-1 connection) ...................................... D-25
4.2.2 For communication in accordance with RS-485 (RS-422) (1-to-N connection)......................... D-25
4.3 Selecting Cables and Terminal Resistors (RS-485).................................................................. D-26
4.3.1 Twisted pair cable...................................................................................................................... D-26
4.3.2 Connecting cables ..................................................................................................................... D-27
4.3.3 Connecting terminal resistors.................................................................................................... D-28
4.4 Connection Diagram for RS-232C ............................................................................................ D-29
4.4.1 Connection diagram between FX PLC and personal computer ................................................ D-29
4.4.2 Connection diagram between FX-485PC-IF and personal computer........................................ D-29
4.5 Connection Diagram for RS-485 and RS-422........................................................................... D-30
4.5.1 One-pair wiring.......................................................................................................................... D-30
4.5.2 Two-pair wiring.......................................................................................................................... D-30
4.6 Grounding ................................................................................................................................. D-31
5. Communication Setting in FX Programmable Controller D-32
5.1 Communication Setting Methods ..............................................................................................D-32
5.2 Communication Setting Using Parameter Method (GX Developer).......................................... D-33
5.2.1 Operating procedure.................................................................................................................. D-33
5.3 Communication Settings Using Parameter Method (FXGP/WIN)............................................. D-35
5.3.1 Operating procedure.................................................................................................................. D-35
9
FX Series PLC User's Manual - Data Communication Edition
6. Control Procedures and Setting Methods D-37
6.1 Data Flow by Link...................................................................................................................... D-37
6.2 Important Points in Computer Link............................................................................................ D-38
6.2.1 Operations of PLC caused by data transfer .............................................................................. D-38
6.3 How to Understand Control Procedure ..................................................................................... D-39
6.4 Basic Formats of Dedicated Protocol........................................................................................D-39
6.4.1 Control procedure format 1........................................................................................................ D-40
6.4.2 Control procedure format 4........................................................................................................ D-41
6.4.3 Contents of set items in each control procedure (protocol)....................................................... D-42
6.4.4 Time-out time setting................................................................................................................. D-44
6.5 Transfer Sequence Time Chart and Communication Time....................................................... D-45
6.5.1 When computer reads data from PLC....................................................................................... D-45
6.5.2 When computer writes data to PLC........................................................................................... D-45
6.5.3 Transfer time in transfer sequence............................................................................................ D-46
6.6 Transfer Data in Character Area ............................................................................................... D-47
6.6.1 When bit device memory is read or written ............................................................................... D-47
6.6.2 When word device memory is read or written ........................................................................... D-48
7. Commands D-49
Table of Contents
7.1 BR Command [Reads Device Memory in 1-Bit Units]............................................................... D-50
7.2 WR Command [Reads Device Memory in 1-Word Units] ......................................................... D-51
7.3 QR Command [Reads Device Memory in 1-Word Units].......................................................... D-53
7.4 BW Command [Writes Device Memory in 1-Bit Units] .............................................................. D-55
7.5 WW Command [Writes Device Memory in 1-Word Units]......................................................... D-56
7.6 QW Command [Writes Device Memory in 1-Word Units] ......................................................... D-58
7.7 BT Command [Tests Device Memory in 1-Bit Units (by Writing Arbitrarily)] ............................. D-60
7.8 WT Command [Tests Device Memory in 1-Word Units (by Writing Arbitrarily)]........................ D-61
7.9 QT Command [Tests Device Memory in 1-Word Units (by Writing Arbitrarily)] ........................ D-63
7.10 RR/RS Command [Remotely Sets PLC to RUN/STOP Mode] ............................................... D-64
7.10.1 Contents of remote control to set RUN or STOP mode........................................................... D-64
7.10.2 Condition validating remote control to set RUN or STOP mode.............................................. D-64
7.10.3 Remote control specification method and specification examples .......................................... D-65
7.11 PC Command [Reads PLC Model Name]............................................................................... D-66
7.11.1 PLC model name (CPU) and read contents............................................................................ D-66
7.11.2 Control procedure specification method and specification example........................................ D-66
7.12 GW Command [Offers Global Function] ................................................................................. D-67
7.12.1 Contents of control .................................................................................................................. D-67
7.12.2 Global function control procedure specification method and specification example ............... D-67
7.13 On-demand Function .............................................................................................................. D-68
7.13.1 Special data registers and special auxiliary relays used in on-demand function..................... D-68
7.13.2 Control procedures in on-demand function ............................................................................. D-70
7.13.3 On-demand function specification method and specification examples.................................. D-72
7.14 TT Command [Loop-back Test] .............................................................................................. D-75
8. Troubleshooting D-76
8.1 Checking FX PLC Version Applicability .................................................................................... D-76
8.2 Checking Communication Status Based on LED Indication ..................................................... D-76
8.3 Checking Installation and Wiring............................................................................................... D-76
8.4 Checking Sequence Program ................................................................................................... D-77
8.5 Checking Error Codes............................................................................................................... D-78
8.5.1 Error codes when NAK is sent................................................................................................... D-78
8.5.2 Error codes in PLC.................................................................................................................... D-79
10
FX Series PLC User's Manual - Data Communication Edition
9. Related Data D-80
9.1 Related Device List ................................................................................................................... D-80
9.2 Details of Related Devices........................................................................................................ D-82
9.2.1 Serial communication error [M8063 and M8438]....................................................................... D-82
9.2.2 Cautions on use......................................................................................................................... D-82
9.2.3 Communication setting keep [M8120] .......................................................................................D-82
9.2.4 Global function ON [M8126 and M8426]................................................................................... D-82
9.2.5 On-demand send processing [M8127 and M8427] ................................................................... D-82
9.2.6 On-demand error flag [M8128 and M8428]............................................................................... D-83
9.2.7 On-demand data word/byte changeover [M8129 and M8429] .................................................. D-83
9.2.8 Serial communication error code [D8063 and D8438]............................................................... D-83
9.2.9 Communication format setting [D8120 and D8420]................................................................... D-84
9.2.10 Station number settings [D8121 and D8421]........................................................................... D-85
9.2.11 On-demand data head device number specification [D8127 and D8427]............................... D-86
9.2.12 On-demand data quantity specification [D8128 and D8428]................................................... D-86
9.2.13 Time-out time setting [D8129 and D8429]............................................................................... D-86
9.3 Communication Setting Method Using Sequence Program...................................................... D-87
9.3.1 Setting procedure...................................................................................................................... D-87
9.3.2 Caution on communication setting using sequence program.................................................... D-87
9.4 ASCII Code Table ..................................................................................................................... D-88
Table of Contents
11
FX Series PLC User's Manual - Data Communication Edition
Inverter Communication
1. Outline E-3
1.1 Outline of System.........................................................................................................................E-3
1.2 Procedures Before Operation ......................................................................................................E-4
1.3 Communication Type Applicability in PLC ...................................................................................E-5
1.3.1 For applicable versions.................................................................................................................E-5
1.4 Programming Tool Applicability....................................................................................................E-6
1.4.1 For applicable versions.................................................................................................................E-6
1.4.2 For non-applicable versions (setting an alternative model)..........................................................E-6
2. Specifications E-7
2.1 Communication Specifications (Reference).................................................................................E-7
2.2 Connectable Mitsubishi General-purpose Inverters.....................................................................E-7
2.3 Link Specifications .......................................................................................................................E-8
2.3.1 When monitoring inverter operations (PLC ← inverter)................................................................E-8
2.3.2 When controlling inverter operations (PLC → inverter)................................................................E-8
2.3.3 Parameters (PLC ⇔ inverter).......................................................................................................E-8
Table of Contents
3. System Configuration and Selection E-9
3.1 System Configuration...................................................................................................................E-9
3.2 Applicable FX PLC and Communication Equipment..................................................................E-11
4. Wiring E-14
4.1 Wiring Procedure .......................................................................................................................E-15
4.2 Selecting Cables and Connection Devices ................................................................................E-16
4.2.1 S500, E500, A500, F500, V500 and E700 Series (PU connector).............................................E-16
4.2.2 A500, F500 and V500 Series (FR-A5NR) ..................................................................................E-17
4.2.3 F700 and A700 Series (built-in RS-485 terminal).......................................................................E-18
4.3 Connection Cables.....................................................................................................................E-19
4.3.1 Ethernet (10BASE-T) cable........................................................................................................E-19
4.3.2 Twisted pair cable (recommended) ............................................................................................E-19
4.3.3 Connecting cables ......................................................................................................................E-20
4.4 Connection Devices (RJ45 Connector and Distributor) .............................................................E-21
4.5 Connecting Terminal Resistors..................................................................................................E-21
4.6 Wiring a Shielding Wire (Class-D grounding).............................................................................E-22
4.7 Connector in Inverter..................................................................................................................E-23
4.8 Connection Diagram ..................................................................................................................E-24
4.8.1 For S500, E500, A500 and E700 Series (PU connector) ...........................................................E-24
4.8.2 For A500 Series (FR-A5NR).......................................................................................................E-25
4.8.3 For F700 and A700 Series (built-in RS-485 terminal) ................................................................E-26
4.9 Grounding ..................................................................................................................................E-27
12
FX Series PLC User's Manual - Data Communication Edition
5. Communication Setting in Inverter E-28
5.1 Communication Port and Applicable Parameters ......................................................................E-28
5.2 S500 Series (When Connected to RS-485 Port)........................................................................E-29
5.2.1 Contents of parameter setting ....................................................................................................E-29
5.2.2 Parameter setting method (reference)........................................................................................E-30
5.3 E500 Series (When Connected to PU Port)...............................................................................E-32
5.3.1 Contents of parameter setting ....................................................................................................E-32
5.3.2 Parameter setting method (reference)........................................................................................E-33
5.4 V500, F500 and A500 Series (Connection to PU Port)..............................................................E-35
5.4.1 Contents of parameter setting ....................................................................................................E-35
5.4.2 Parameter setting method (reference)........................................................................................E-36
5.5 V500, F500 and A500 Series (Connection to FR-A5NR)...........................................................E-38
5.5.1 Contents of parameter setting ....................................................................................................E-38
5.5.2 Parameter setting method (reference)........................................................................................E-38
5.6 E700 Series (when PU port is connected) .................................................................................E-39
5.6.1 Contents of parameter setting ....................................................................................................E-39
5.6.2 Parameter setting method (reference)........................................................................................E-41
5.7 F700 and A700 Series (when built-in RS-485 terminal is connected)........................................E-43
5.7.1 Contents of parameter setting ....................................................................................................E-43
5.7.2 Parameter setting method (reference)........................................................................................E-44
5.8 Cautions on Setting....................................................................................................................E-45
Table of Contents
6. Communication Setting in FX Programmable Controller E-46
6.1 Parameter Assigning Method.....................................................................................................E-46
6.2 Communication Setting Using Parameter Method (GX Developer)...........................................E-47
6.2.1 Operating procedure...................................................................................................................E-47
6.3 Communication Setting Using Parameter Method (FXGP/WIN)................................................E-49
6.3.1 Operating procedure...................................................................................................................E-49
7. Creating Programs (for FX2N and FX2NC PLCs) E-51
7.1 Checking Contents of Related Devices......................................................................................E-51
7.2 Common Items in Inverter Communication Instructions ............................................................E-52
7.2.1 Inverter communication types (EXTR K10 to K13).....................................................................E-52
7.2.2 Function and operation...............................................................................................................E-52
7.2.3 Instruction completion and error flag operation ..........................................................................E-54
7.2.4 Cautions on programming ..........................................................................................................E-56
7.3 Inverter Operation Monitoring Instruction (PLC← Inverter) [EXTR K10].....................................E-57
7.3.1 Function and operation...............................................................................................................E-57
7.3.2 Inverter instruction codes ...........................................................................................................E-57
7.4 Inverter Operation Control Instruction (PLC→ Inverter) [EXTR K11]..........................................E-58
7.4.1 Function and operation...............................................................................................................E-58
7.4.2 Inverter instruction codes ...........................................................................................................E-58
7.5 Inverter Parameter Reading Instruction (PLC← Inverter) [EXTR K12] .......................................E-59
7.5.1 Function and operation...............................................................................................................E-59
7.5.2 Inverter parameter number.........................................................................................................E-59
7.5.3 Program example of "second parameter specification code".....................................................E-59
7.6 Inverter Parameter Writing Instruction (PLC→ Inverter) [EXTR K13] .........................................E-60
7.6.1 Function and operation...............................................................................................................E-60
7.6.2 Inverter parameter number.........................................................................................................E-60
7.6.3 Program example of "second parameter specification code".....................................................E-60
7.7 Second Parameter Specification Codes ....................................................................................E-61
7.7.1 S500 Series................................................................................................................................E-61
7.7.2 E500 Series................................................................................................................................E-61
7.7.3 A500 Series................................................................................................................................E-62
13
FX Series PLC User's Manual - Data Communication Edition
8. Practical Program Examples (for FX2N and FX2NC PLCs) E-63
8.1 Practical Example 1 ...................................................................................................................E-63
8.1.1 System configuration example ...................................................................................................E-63
8.1.2 Contents of operation .................................................................................................................E-63
8.1.3 Program example.......................................................................................................................E-64
8.2 Practical Example 2 ...................................................................................................................E-67
8.2.1 System configuration example ...................................................................................................E-67
8.2.2 Contents of operation .................................................................................................................E-67
8.2.3 Program example.......................................................................................................................E-68
9. Creating Programs (for FX3U and FX3UC PLCs) E-72
9.1 Differences between FX2N/FX 2NC PLCs and FX3U/FX 3UC PLCs ............................................E-72
9.2 Contents of Related Devices......................................................................................................E-73
9.3 Common Items in Inverter Communication Instructions ............................................................E-74
9.3.1 Inverter communication types (IVCK to IVBWR)........................................................................E-74
9.3.2 Function and operation...............................................................................................................E-74
9.3.3 Instruction completion and error flag operation ..........................................................................E-76
9.3.4 Cautions on programming ..........................................................................................................E-78
9.4 Inverter Operation Monitoring Instruction (PLC← Inverter) [FNC270 / IVCK].............................E-79
9.4.1 Function and operation...............................................................................................................E-79
9.4.2 Inverter instruction codes ...........................................................................................................E-79
9.5 Inverter Operation Control Instruction (PLC→ Inverter) [FNC271 / IVDR]..................................E-80
9.5.1 Function and operation...............................................................................................................E-80
9.5.2 Inverter instruction codes ...........................................................................................................E-80
9.6 Inverter Parameter Reading (PLC← Inverter) [FNC272 / IVRD].................................................E-81
9.6.1 Function and operation...............................................................................................................E-81
9.6.2 Inverter instruction codes ...........................................................................................................E-81
9.6.3 Program example of "second parameter specification code".....................................................E-81
9.7 Inverter Parameter Writing (PLC→ Inverter) [FNC273 / IVWR] ..................................................E-82
9.7.1 Function and operation...............................................................................................................E-82
9.7.2 Inverter instruction codes ...........................................................................................................E-82
9.7.3 Program example of "second parameter specification code".....................................................E-82
9.8 Inverter Parameter Batch Writing (PLC→ Inverter) [FNC274 / IVBWR] .....................................E-83
9.8.1 Function and operation...............................................................................................................E-83
9.9 Second Parameter Specification Codes ....................................................................................E-84
9.9.1 S500 Series................................................................................................................................E-84
9.9.2 E500 Series................................................................................................................................E-84
9.9.3 A500 Series................................................................................................................................E-85
9.9.4 F500 Series................................................................................................................................E-86
9.9.5 V500 Series................................................................................................................................E-86
9.9.6 F700 Series................................................................................................................................E-86
9.9.7 A700 Series................................................................................................................................E-87
9.9.8 E700 Series................................................................................................................................E-88
Table of Contents
10. Practical Program Examples (for FX3U and FX3UC PLCs) E-89
10.1 Practical Example 1 .................................................................................................................E-89
10.1.1 System configuration example .................................................................................................E-89
10.1.2 Contents of operation ...............................................................................................................E-89
10.1.3 Program example.....................................................................................................................E-90
10.2 Practical Example 2 .................................................................................................................E-93
10.2.1 System configuration example .................................................................................................E-93
10.2.2 Contents of operation ...............................................................................................................E-93
10.2.3 Program example.....................................................................................................................E-94
14
FX Series PLC User's Manual - Data Communication Edition
11. Troubleshooting E-98
11.1 Checking FX PLC Version Applicability (FX2N and FX2NC Series) .........................................E-98
11.2 Checking Communication Status Based on LED Indication ....................................................E-98
11.3 Checking Installation................................................................................................................E-98
11.4 Checking Sequence Program ..................................................................................................E-99
11.4.1 Checking inverter operation status...........................................................................................E-99
11.5 Checking Absence/Presence of Errors ....................................................................................E-99
11.6 Error Codes............................................................................................................................E-100
12. Related Data E-102
12.1 Related Device List for FX2N and FX2NC PLCs ....................................................................E-102
12.2 Details of Related Devices for FX
12.2.1 Instruction execution complete [M8029].................................................................................E-103
12.2.2 Extension ROM cassette check [M8104]................................................................................E-103
12.2.3 Communication port busy [M8155].........................................................................................E-103
12.2.4 Communication error or parameter error [M8156]..................................................................E-103
12.2.5 Communication error latch [M8157] .......................................................................................E-104
12.2.6 Extension ROM cassette type code [D8104]..........................................................................E-104
12.2.7 Extension ROM cassette version [D8105]..............................................................................E-104
12.2.8 Inverter response waiting time [D8154]..................................................................................E-104
12.2.9 Step number of instruction using communication port [D8155]..............................................E-104
12.2.10 Error code [D8156] ...............................................................................................................E-105
12.2.11 Error occurrence step number latch [D8157]........................................................................E-106
12.3 Related Device List for FX3U and FX3UC PLCs ....................................................................E-107
12.4 Details of Related Devices for FX
12.4.1 Instruction execution complete [M8029].................................................................................E-108
12.4.2 Serial communication error [M8063 and M8438]....................................................................E-108
12.4.3 Inverter communication ON [M8151 and M8156]...................................................................E-108
12.4.4 Inverter communication error [M8152, M8153, M8157 and M8158].......................................E-109
12.4.5 IVBWR instruction error [M8154 and M8159].........................................................................E-109
12.4.6 Serial communication error code [D8063 and D8438]............................................................E-109
12.4.7 Inverter response waiting time [D8150 and D8155] ...............................................................E-109
12.4.8 Step number of instruction using communication port [D8151 and D8156] ...........................E-110
12.4.9 Inverter communication error code [D8152 and D8157].........................................................E-110
12.4.10 Inverter communication error occurrence step [D8153 and D8158].....................................E-111
12.4.11 IVBWR instruction error parameter number [D8154 and D8159].........................................E-111
12.5 FREQROL Inverter Parameter List ........................................................................................E-112
12.5.1 Parameters in V500, F500, A500, E500, and S500 Series ....................................................E-112
12.5.2 Parameters in F700, A700, and E700 Series.........................................................................E-134
12.5.3 Communication parameters ...................................................................................................E-147
2N and FX 2NC PLCs .........................................................E-103
3U and FX 3UC PLCs .........................................................E-108
Table of Contents
15
FX Series PLC User's Manual - Data Communication Edition
Non-Protocol Communication (RS/RS2 Instruction)
1. Outline F-3
1.1 Outline of System.........................................................................................................................F-3
1.2 Procedures Before Operation ......................................................................................................F-5
1.3 Communication Type Applicability in PLC ...................................................................................F-6
1.3.1 Applicable versions.......................................................................................................................F-6
1.3.2 Products whose production was stopped.....................................................................................F-7
1.4 Programming Tool Applicability....................................................................................................F-7
1.4.1 For applicable versions.................................................................................................................F-7
1.4.2 For non-applicable versions (setting an alternative model)..........................................................F-9
2. Specifications F-10
2.1 Communication Specifications (Reference)...............................................................................F-10
2.2 Data Communication Specifications ..........................................................................................F-11
2.2.1 Communication type applicability in PLC ...................................................................................F-11
2.3 Number of Transfer Data ...........................................................................................................F-12
Table of Contents
3. System Configuration and Selection F-13
3.1 System Configuration.................................................................................................................F-13
3.2 Applicable FX PLC and Communication Equipment..................................................................F-14
3.2.1 For communication in accordance with RS-232C ......................................................................F-14
3.2.2 For communication in accordance with RS-485.........................................................................F-18
4. Wiring F-21
4.1 Wiring Procedure .......................................................................................................................F-21
4.2 Selecting Cables and Terminal Resistors ..................................................................................F-22
4.2.1 Twisted pair cable.......................................................................................................................F-22
4.2.2 Connecting cables ......................................................................................................................F-23
4.2.3 Connecting terminal resistors.....................................................................................................F-24
4.3 Connection Diagram ..................................................................................................................F-25
4.3.1 Connector pin arrangement in communication equipment operating in accordance with
RS-232C................................................................................................................................F-25
4.3.2 Wiring for communication in accordance with RS-232C ............................................................F-25
4.3.3 Wiring for communication in accordance with RS-485...............................................................F-26
4.3.4 One-pair wiring...........................................................................................................................F-26
4.3.5 Two-pair wiring...........................................................................................................................F-26
4.4 Grounding ..................................................................................................................................F-27
5. Communication Setting in FX Programmable Controller F-28
16
5.1 Communication Setting Method Mechanism..............................................................................F-28
5.2 Communication Setting Using Parameter Method (GX Developer)...........................................F-29
5.2.1 Operating procedure...................................................................................................................F-29
5.3 Communication Setting Using Parameter Method (FXGP/WIN)................................................F-31
5.3.1 Operating procedure...................................................................................................................F-31
FX Series PLC User's Manual - Data Communication Edition
6. Creating Programs (RS Instruction) F-33
6.1 Checking Contents of Related Devices......................................................................................F-33
6.2 How to Use RS Instruction.........................................................................................................F-34
6.2.1 Applicable frames.......................................................................................................................F-34
6.2.2 Function and operation...............................................................................................................F-35
6.2.3 Send/receive data and amount of data.......................................................................................F-36
6.2.4 Operation when data is sent.......................................................................................................F-38
6.2.5 Operation when data is received................................................................................................F-38
6.3 Operation of Control Line...........................................................................................................F-40
6.3.1 FX2 (FX), FX2C, FX 1S , FX0N , FX1N , FX1NC , and FX2N (before Ver. 2.00) PLCs......................F-40
6.3.2 FX
2N (Ver. 2.00 or later), FX 3U, FX2NC , and FX3UC PLCs .......................................................F-42
6.4 Important Points in Creating Programs......................................................................................F-44
6.5 Communication Error .................................................................................................................F-44
7. Practical Program Example (RS Instruction) F-45
7.1 Example of Printing Using RS Instruction (Using RS-232C Connection)...................................F-45
Table of Contents
8. Creating Programs (RS2 Instruction) F-47
8.1 Checking Contents of Related Devices......................................................................................F-47
8.2 How to Use RS2 Instruction.......................................................................................................F-49
8.2.1 Applicable frames.......................................................................................................................F-50
8.2.2 Function and operation...............................................................................................................F-52
8.2.3 Send/receive data and amount of data.......................................................................................F-53
8.2.4 Operation when data is sent.......................................................................................................F-55
8.2.5 Operation when data is received................................................................................................F-55
8.2.6 Sum check code.........................................................................................................................F-57
8.3 Operation of Control Line...........................................................................................................F-58
8.4 Important Points in Creating Programs......................................................................................F-61
8.5 Communication Error .................................................................................................................F-61
9. Practical Program Example (RS2 Instruction) F-62
9.1 Example of Printing Using RS2 Instruction (Using RS-232C Connection).................................F-62
10. When Combined with Another Communication F-64
10.1 Other Communication Type Used Together ............................................................................F-64
10.2 When Combined with Programming Communication ..............................................................F-65
10.2.1 For FX2N and FX2NC PLCs......................................................................................................F-65
10.2.2 For FX
10.3 When Combined with Computer Link Communication (Only in FX3U and FX3UC) .................F-67
10.4 When Combined with Programming Communication (FX
10.5 Using RS2 Instruction and Computer Link Communication Together
(FX
10.6 Communication Setting Method Using Sequence Program.....................................................F-70
10.6.1 Communication setting for RS instruction ................................................................................F-70
10.6.2 Communication setting for RS2 instruction ..............................................................................F-71
3U and FX 3UC PLCs......................................................................................................F-66
3U and FX 3UC only)........................F-68
3U and FX 3UC only).........................................................................................................F-69
17
FX Series PLC User's Manual - Data Communication Edition
11. Troubleshooting F-72
11.1 Checking FX PLC Version Applicability ...................................................................................F-72
11.2 Checking Communication Status Based on LED Indication ....................................................F-72
11.3 Checking Installation................................................................................................................F-72
11.4 Checking Sequence Program ..................................................................................................F-73
11.4.1 Checking communication port settings (in FX3U and FX3UC PLCs)........................................F-73
11.5 Checking the Absence/Presence of Errors ..............................................................................F-74
12. Related Data F-75
12.1 Related Device List (RS Instruction) ........................................................................................F-75
12.2 Details of related devices (RS instruction) ...............................................................................F-76
12.2.1 Serial communication error [M8063].........................................................................................F-76
12.2.2 Communication setting keep [M8120] ......................................................................................F-76
12.2.3 Sending wait flag [M8121] ........................................................................................................F-76
12.2.4 Sending request [M8122] .........................................................................................................F-76
12.2.5 Receiving complete flag [M8123] .............................................................................................F-77
12.2.6 Carrier detection flag [M8124] ..................................................................................................F-77
12.2.7 Time-out check flag [M8129] ....................................................................................................F-77
12.2.8 Serial communication error code [D8063]................................................................................F-78
12.2.9 Communication format setting [D8120]....................................................................................F-79
12.2.10 Amount of remaining send data [D8122]................................................................................F-79
12.2.11 Amount of data already received [D8123] ..............................................................................F-80
12.2.12 Header [D8124]......................................................................................................................F-80
12.2.13 Terminator [D8125].................................................................................................................F-80
12.2.14 Time-out time setting time [D8129].........................................................................................F-80
12.2.15 Communication parameter display [D8405] ...........................................................................F-80
12.2.16 Operation mode display [D8419]............................................................................................F-81
12.3 Related Devices (RS2 Instruction)...........................................................................................F-81
12.4 Details of Related Devices (RS2 Instruction)...........................................................................F-82
12.4.1 Serial communication error [M8063 and M8438]......................................................................F-82
12.4.2 Sending wait flag [M8401 and M8421].....................................................................................F-82
12.4.3 Sending request [M8402 and M8422] ......................................................................................F-83
12.4.4 Receiving complete flag [M8403 and M8423] ..........................................................................F-83
12.4.5 Carrier detection flag [M8404 and M8424]...............................................................................F-83
12.4.6 Data set ready (DSR) flag [M8405 and M8425] .......................................................................F-83
12.4.7 Time-out check flag [M8409 and M8429] .................................................................................F-84
12.4.8 Serial communication error code [D8063 and D8438]..............................................................F-84
12.4.9 Communication format setting [D8400 and D8420]..................................................................F-85
12.4.10 Amount of remaining send data [D8402 and D8422] .............................................................F-86
12.4.11 Amount of data already received [D8403 and D8423]............................................................F-86
12.4.12 Communication parameter display [D8405 and D8425].........................................................F-86
12.4.13 Time-out time setting [D8409 and D8429]..............................................................................F-86
12.4.14 Header [D8410, D8411, D8430 and D8431] ..........................................................................F-87
12.4.15 Terminator [D8412, D8413, D8432 and D8433].....................................................................F-87
12.4.16 Receiving sum (receive data) [D8414 and D8434].................................................................F-87
12.4.17 Receiving sum (calculation result) [D8415 and D8435]..........................................................F-88
12.4.18 Sending sum [D8416 and D8436] ..........................................................................................F-88
12.4.19 Operation mode display [D8419 and D8439] .........................................................................F-88
12.5 ASCII Code Table ....................................................................................................................F-89
Table of Contents
18
FX Series PLC User's Manual - Data Communication Edition
Non-Protocol Communication (FX2N-232IF)
1. Outline G-3
1.1 Features...................................................................................................................................... G-3
1.2 Procedures Before Operation ..................................................................................................... G-4
1.3 Communication Type Applicability in PLC ..................................................................................G-5
1.3.1 Applicable versions......................................................................................................................G-5
1.3.2 Products whose production was stopped....................................................................................G-5
1.4 Programming Tool Applicability................................................................................................... G-6
1.4.1 For applicable versions................................................................................................................ G-6
1.4.2 For non-applicable versions (setting an alternative model).........................................................G-7
2. Specification G-8
2.1 Communication Specifications.................................................................................................... G-8
3. System Configuration and Selection G-9
Table of Contents
3.1 System Configuration.................................................................................................................. G-9
3.2 Applicable FX PLC and Communication Equipment................................................................... G-9
3.3 Connection to PLC.................................................................................................................... G-10
4. Wiring G-12
4.1 Pin Arrangement .......................................................................................................................G-12
4.2 Connection to External Equipment with Terminal Specifications (without Control Line)........... G-12
4.3 Connection to External Equipment with Terminal Specifications
(with Control Line) ................................................................................................................ G-13
4.3.1 Standard RS-232C mode .......................................................................................................... G-13
4.3.2 Interlink connection mode.......................................................................................................... G-13
4.4 Connection to External Equipment with Modem Specifications................................................ G-13
5. Creating Programs G-14
5.1 Outline of Communication between FX PLC and 232IF ........................................................... G-14
5.1.1 For FROM and TO instructions .................................................................................................G-14
5.1.2 For direct specification of buffer memory (U\G) .................................................................. G-14
5.2 FROM and TO Instructions ....................................................................................................... G-15
5.2.1 FROM instruction....................................................................................................................... G-15
5.2.2 TO instruction............................................................................................................................G-16
5.3 Direct Specification of Buffer Memory (U\G)....................................................................... G-17
19
FX Series PLC User's Manual - Data Communication Edition
5.4 Buffer Memory (BFM)................................................................................................................ G-18
5.4.1 Buffer memory list...................................................................................................................... G-18
5.4.2 Communication format <BFM #0>............................................................................................. G-20
5.4.3 Command <BFM #1>................................................................................................................ G-24
5.4.4 Maximum number of receivable bytes <BFM #2>..................................................................... G-25
5.4.5 Receiving timeout time <BFM #3> ............................................................................................G-25
5.4.6 Sending header <BFM #5 (highest-order 2 bytes) and BFM #4 (lowest-order 2 bytes)>.......... G-25
5.4.7 Sending terminator <BFM #7 (highest-order 2 bytes) and BFM #6 (lowest-order 2 bytes)....... G-25
5.4.8 Receiving header <BFM #9 (highest-order 2 bytes) and BFM #8 (lowest-order 2 bytes)> ....... G-25
5.4.9 Receiving terminator <BFM #11 (highest-order 2 bytes) and BFM #10
(lowest-order 2 bytes)>.........................................................................................................G-26
5.4.10 Receiving suspension waiting time <BFM #12>...................................................................... G-26
5.4.11 Amount of remaining send data <BFM #13>........................................................................... G-26
5.4.12 Amount of received data buffers <BFM #14>.......................................................................... G-26
5.4.13 Sending sum result <BFM #15>.............................................................................................. G-27
5.4.14 Receiving sum result <BFM #16> ........................................................................................... G-27
5.4.15 Time from CS ON to sending start <BFM #20>....................................................................... G-27
5.4.16 Time from actual sending completion to RS OFF <BFM #21>................................................ G-27
5.4.17 Status <BFM #28>................................................................................................................... G-28
5.4.18 Error code <BFM #29>............................................................................................................ G-29
5.4.19 Model code <BFM #30> ..........................................................................................................G-29
5.4.20 Number of bytes to be sent <BFM #1000>.............................................................................. G-29
5.4.21 Send data buffer <BFM #1001 to 1256>................................................................................. G-29
5.4.22 Number of received bytes <BFM #2000>................................................................................ G-29
5.4.23 Receive data buffer <BFM #2001 to 2256>............................................................................. G-29
5.4.24 Preliminary receive data buffer for interlink connection mode <BFM #2257 to 2271>............ G-29
5.5 Operation of Control Line.......................................................................................................... G-30
5.5.1 When control line is not provided [BFM #0, (b9, b8) = (0, 0)].................................................... G-30
5.5.2 When control line is in standard RS-232C mode [BFM #0, (b9, b8) = (0, 1)] ............................ G-31
5.5.3 When control line is in RS-232C interlink mode [BFM #0, (b9, b8) = (1, 1)].............................. G-32
Table of Contents
6. Practical Program Examples G-33
6.1 Example of Sending/Receiving 16-Bit Buffer Length Data........................................................ G-33
6.2 Sending/Receiving 8-Bit Buffer Length Data............................................................................. G-37
7. Troubleshooting G-41
7.1 Check Items ..............................................................................................................................G-41
7.2 Error Codes............................................................................................................................... G-41
20
FX Series PLC User's Manual - Data Communication Edition
Programming Communication
1. Outline H-3
1.1 Outline of System........................................................................................................................ H-3
1.2 Procedures Before Operation ..................................................................................................... H-4
1.3 Communication Type Applicability in PLC .................................................................................. H-5
1.3.1 Applicable versions...................................................................................................................... H-5
1.3.2 Products whose production was stopped....................................................................................H-5
1.4 Programming Tool Applicability................................................................................................... H-6
1.4.1 For applicable versions................................................................................................................ H-6
1.4.2 For non-applicable versions (setting an alternative model)......................................................... H-8
2. System Configuration and Selection H-9
2.1 System Configuration.................................................................................................................. H-9
2.1.1 For communication equipment operating in accordance with RS-422 ........................................ H-9
2.1.2 For communication equipment operating in accordance with RS-232C.................................... H-10
2.1.3 For communication equipment operating in accordance with USB ........................................... H-10
2.2 Applicable FX PLC and Communication Equipment................................................................. H-11
2.3 Caution on Selection................................................................................................................. H-16
2.3.1 When using 422BD.................................................................................................................... H-16
2.3.2 When using 232BD or 232ADP................................................................................................. H-17
2.3.3 Other cautions........................................................................................................................... H-17
Table of Contents
3. Selecting Connection Cables H-18
3.1 Connection Procedure .............................................................................................................. H-18
3.2 Connector Shape in Each Product............................................................................................H-19
3.3 Combinations of Connection Cables......................................................................................... H-20
3.3.1 Handy programming panel ........................................................................................................ H-20
3.3.2 Personal computer .................................................................................................................... H-21
4. Connection Cables and Interfaces H-24
4.1 Simplified Tables....................................................................................................................... H-24
4.1.1 Cable connector shape correspondence table.......................................................................... H-24
4.1.2 Cable combination simplified table............................................................................................ H-25
4.2 Cable Connection Diagrams ..................................................................................................... H-26
4.2.1 Personal computer connection cable - No. A ............................................................................ H-26
4.2.2 Connector conversion cable (commercial product) - No. B....................................................... H-28
4.2.3 FX-10P/FX-20P connection cable - No. C................................................................................. H-28
5. Communication Setting (Initialization) in FX Programmable Controller H-29
5.1 Check Procedure ...................................................................................................................... H-29
5.2 Communication Setting Using Parameter Method (GX Developer).......................................... H-30
5.2.1 Operating procedure.................................................................................................................. H-30
5.3 Communication Setting Using Parameter Method (FXGP/WIN)............................................... H-31
5.3.1 Operating procedure.................................................................................................................. H-31
21
FX Series PLC User's Manual - Data Communication Edition
6. Connection Setting for Personal Computer H-32
6.1 Connection Setting (GX Developer)..........................................................................................H-32
6.1.1 Setting RS-232C or USB, communication port, and transmission speed.................................. H-33
6.1.2 Setting CPU unit (in FX
6.1.3 Setting communication time check and number of retries......................................................... H-34
6.2 Connection Setting (FXGP/WIN)............................................................................................... H-35
6.2.1 Setting communication port and transmission speed................................................................ H-35
6.3 Communication Test (Only in GX Developer)........................................................................... H-36
3U and FX 3UC) ..................................................................................... H-34
7. Troubleshooting H-37
7.1 Checking PLC Version Applicability.......................................................................................... H-37
7.2 Checking Programming Tool Applicability................................................................................. H-37
7.3 Checking Communication Status Based on LED Indication ..................................................... H-37
7.4 Checking Installation................................................................................................................. H-37
7.5 Checking Parameters in PLC.................................................................................................... H-37
7.6 Checking Sequence Program ................................................................................................... H-38
7.7 Checking Programming Tool Setting ........................................................................................ H-38
7.8 Checking Absence/Presence of Errors ..................................................................................... H-39
Table of Contents
22
FX Series PLC User's Manual - Data Communication Edition
Remote Maintenance
1. Outline I-3
1.1 Outline of System..........................................................................................................................I-3
1.1.1 Maintenance for programs in PLC.................................................................................................I-3
1.1.2 File transfer between personal computers (supported only by FXGP/WIN)..................................I-4
1.2 Procedures Before Operation .......................................................................................................I-5
1.3 Communication Type Applicability in PLC ....................................................................................I-6
1.3.1 Applicable versions........................................................................................................................I-6
1.3.2 Products whose production was stopped......................................................................................I-6
1.4 Programming Tool Applicability.....................................................................................................I-7
1.4.1 Programming tool for setting modem connected to PLC...............................................................I-7
1.4.2 Programming software for remote maintenance ...........................................................................I-9
1.4.3 Cautions on using FXGP/WIN.....................................................................................................I-10
2. Specifications I-11
2.1 Communication Specifications (Reference)................................................................................ I-11
Table of Contents
3. System Configuration and Selection I-12
3.1 System Configuration.................................................................................................................. I-12
3.2 Setting Applicable FX PLC and Communication Equipment.......................................................I-13
3.3 Selecting Modem ........................................................................................................................I-16
3.3.1 List of modems whose operations are confirmed ........................................................................I-17
4. Wiring I-18
4.1 Wiring Procedure ........................................................................................................................I-18
4.2 Connection Diagram ...................................................................................................................I-18
5. How to Setup Modems on the PLC Side I-19
5.1 Setting Using GX Developer .......................................................................................................I-19
5.1.1 Setting communication by way of RS-232C port.........................................................................I-19
5.1.2 Modem initialization setting using parameter method ................................................................. I-21
5.1.3 Setting AT command for unregistered modem............................................................................I-23
5.2 Setting Using FXGP/WIN............................................................................................................I-26
5.2.1 Setting communication by way of RS-232C port.........................................................................I-26
5.2.2 Modem initialization setting using parameter method ................................................................. I-27
5.2.3 Setting AT command for unregistered modem............................................................................I-28
5.3 Cautions on Use..........................................................................................................................I-30
6. How to Setup Modems on the Personal Computer Side for Remote Access I-31
6.1 Setting Using GX Developer .......................................................................................................I-31
6.1.1 Registering AT command for connected modem ........................................................................I-31
6.1.2 Creating telephone directory (if necessary).................................................................................I-33
6.2 Setting Using FXGP/WIN............................................................................................................I-35
6.2.1 Registering AT command for connected modem ........................................................................I-35
6.2.2 Registering line connection destination.......................................................................................I-38
23
FX Series PLC User's Manual - Data Communication Edition
7. Connecting Line I-39
7.1 Preparing for Connection of PLC ................................................................................................I-39
7.2 Line Connection Procedure.........................................................................................................I-40
7.2.1 For GX Developer........................................................................................................................I-40
7.2.2 For FXGP/WIN ............................................................................................................................I-44
8. Troubleshooting I-47
8.1 Checking FX PLC Applicability....................................................................................................I-47
8.2 Checking Programming Tool Applicability...................................................................................I-47
8.3 Checking Communication Status Based on LED Indication .......................................................I-47
8.4 Checking Installation...................................................................................................................I-47
8.5 Checking Modem Specifications.................................................................................................I-48
8.6 Checking Setting in PLC .............................................................................................................I-48
8.6.1 Checking parameters in PLC.......................................................................................................I-48
8.6.2 Checking AT command setting....................................................................................................I-49
8.6.3 Checking sequence program.......................................................................................................I-50
8.7 Checking Programming Tool Setting ..........................................................................................I-50
8.8 Checking Absence/Presence of Errors .......................................................................................I-51
Table of Contents
9. Related Information I-52
9.1 ASCII Code Table .......................................................................................................................I-52
Appendix A: Discontinued models Apx.-1
Warranty...................................................................................................................................... i
Revised History ......................................................................................................................... ii
24
FX Series PLC User's Manual - Data Communication Edition
Common Items
1. Introduction
1 Introduction
1.1 Communication Types
A
Common Items
This manual explains the communication types supported by FX PLCs.
This chapter explains the serial communication (in accordance with RS-232C, RS-485/RS-422), various link
communication types, etc. and states the applicable FX PLCs.
1.1 Communication Types
The table below shows the communication types supported by the FX Series.
Link
• Connects FX PLCs as remote device stations to the CC-Link system
Function
CC-Link
Application
N:N Network
Parallel link
Computer link
Inverter
communication
General-purpose serial communication
Non-protocol
communication
Sequence program
Programming
communication
Remote
maintenance
Function Easily enables data link between FX PLCs.
Application Line control in the decentralized or centralized method.
Function Easily enables data link between FX PLCs.
Application Line control in the decentralized or centralized method.
Function
Application Data acquisition and centralized control.
Function Communicates with and controls Mitsubishi inverter FREQROL.
Application
Function
Application
Function
Application
Function
Application Maintenance of sequence programs in FX PLCs.
• Constructs a CC-Link system whose master station is an FX PLC.
Line control in the decentralized or centralized method and information
transfer from/to the host network.
Connects a personal computer or another computer as the master
station, and connects FX PLCs as slave stations.
Protocols in a computer support computer link protocol formats 1 and 4.
Operation monitoring, writing of control values, referencing and
changing parameters, etc.
Receives and sends data from/to various pieces of equipment with an
RS-232C or RS-485 interface in non-protocol procedures.
Data reception and sending from/to a personal computer, bar code
reader, printer and other various measuring instruments.
Adds an RS-232C and an RS-422 port in addition to the provided RS422 port in PLCs.
Simultaneously connection of two display units, programming tools,
etc.
Connects with a PLC located in a remote location through a modem
and telephone line to enable program transfer and remote monitoring
access.
whose master station is a MELSEC A/QnA/Q PLC.
Reference
subsection
1.2.1
1.2.2
1.2.3
1.2.4
1.2.5
Reference
subsection
1.2.6
Reference
subsection
1.2.7
1.2.8
B
C
D
E
Communication
F
Communication
(RS/RS2 Instruction)
G
Communication
(FX
2N
-232IF)
H
Communication
Maintenance
N:N Network
Parallel Link
Computer Link
Inverter
Non-Protocol
Non-Protocol
Programming
I
Remote
A-1
Apx.
models
Discontinued
FX Series PLC User's Manual - Data Communication Edition
Common Items
1 Introduction
1.1 Communication Types
I/O link
CC-Link/LT
(built in
3UC-32MT-LT)
FX
AS-i system
MELSEC I/O link
Electronic mail sending
Internet mail
Short mail
Function Constructs a CC-Link/LT system whose master station is an FX PLC.
Application Wire-conserving network inside control panel and unit.
Function
Application Wire-conserving network inside control panel and unit
Function
Application ON/OFF control of I/O equipment in a remote location.
Function
Application
Function Sends short mails to cellular phones in the NTT DoCoMo network.
Application Notice of material shortage, error contents, operating time, etc.
Constructs an AS-i (Actuator Sensor Interface) system whose master
block is an FX PLC.
Installs remote I/O units near I/O equipment in remote locations to
conserve wiring.
Sends internet mail to personal computers and cellular phones using
the RS-232C communication in PLCs.
Monitoring of unmanned facilities, facilities located in remote locations
and facilities inside factories.
Reference
subsection
1.2.9
1.2.10
—
Reference
subsection
1.2.11
1.2.12
A-2