MITSUBISHI ELECTRIC
MELSEC System Q
Programmable Logic Controllers
User's Manual
(Basic)
Serial Communication Modules
QJ71C24N/-R2/-R4, QJ71C24/-R2
GX Configurator-SC
Art. no.: 130031 01 09 2004
SH (NA)-080006 Version H
MITSUBISHI ELECTRIC INDUSTRIAL AUTOMATION
(Always read these instructions before using this equipment.)
Before using this product, please read this manual and the relevant manuals introduced in this manual carefully and pay full attention to safety to handle the product correctly.
The instructions given in this manual are concerned with this product. For the safety instructions of the programmable controller system, please read the user's manual of the CPU module to use.
In this manual, the safety instructions are ranked as "DANGER" and "CAUTION".
!DANGER
!CAUTION
Indicates that incorrect handling may cause hazardous conditions, resulting in death or severe injury.
Indicates that incorrect handling may cause hazardous conditions, resulting in medium or slight personal injury or physical damage.
Note that the ! CAUTION level may lead to a serious consequence according to the circumstances. Always follow the instructions of both levels because they are important to personal safety.
Please save this manual to make it accessible when required and always forward it to the end user.
[Design Instructions]
!DANGER
•See manuals of each data link for the operating status of each station when there is a communication error in the data link.
There is the risk of an accident occurring due to output error or malfunctioning.
•When using the notification function, the pager receiver may not be contacted due to the frequency transmission status from the system setup environment and error on the receiver side.
To ensure the safety of the PLC system, install a call circuit with a lamp display or buzzer sound.
•When performing the control of the PLC in operation (changing data) by connecting a peripheral devices to the CPU module or personal computer, etc. to the intelligent device module, configure an interlock circuit in a sequence program so the safety of the overall system is always maintained. Also when performing other controls of the PLC in operation (changing program and operation status (status control)), read this manual carefully and confirm if the overall safety is maintained. Especially, when this control is performed to a remote PLC from an external device, troubles that have occurred on the PLC side may not be able to immediately be handled if there is a data communication error.
Define a troubleshooting agreement between external devices and the PLC CPU for data communication error occurrences, as well as construct an interlock circuit in the sequence program.
•Do not write data into the "system area" of the buffer memory of intelligent function modules. Also, do not use any "prohibited to use" signals as an output signal to an intelligent function module from the PLC CPU.
Writing data into the "system area" or outputting a signal for "prohibited to use" may cause a PLC system malfunction.
A - 1 |
A - 1 |
[Design Instructions]
!CAUTION
•Do not bunch the control wires or communication cables with the main circuit or power wires, or install them close to each other.
They should be installed 100mm(3.9inch) or more from each other. Not doing so could result in noise that may cause malfunction.
•When using the module while values, such as buffer memory set values, are registered in the Flash ROM, do not turn off the power supply for the module loading station nor reset the PLC CPU.
If the power supply for the module loading station is turned off or the PLC CPU is reset while any values are registered, the data contents in the Flash ROM become inconsistent and as a result the values must be set again in the buffer memory, etc. and reregistered to the Flash ROM.
Also, this may cause failure and malfunction of the module.
[Installation Instructions]
!CAUTION
•Use the PLC in an environment that meets the general specifications contained in the user's manual of the CPU module to use.
Using this PLC in an environment outside the range of the general specifications may cause electric shock, fire, malfunction, and damage to or deterioration of the product.
•While pressing the installation lever located at the bottom of module, insert the module fixing tab into the fixing hole in the base unit until it stops. Then, securely mount the module with the fixing hole as a supporting point.
If the module is not installed properly, it may cause the module to malfunction, fail or fall off. Secure the module with screws especially when it is used in an environment where constant vibrations may occur.
•Tighten the screws within the range of specified torque.
If the screws are loose, it may cause the module to fallout, short circuits, or malfunction.
If the screws are tightened too much, it may cause damage to the screw and/or the module, resulting in fallout, short circuits or malfunction.
•Switch all phases of the external power supply off when mounting or removing the module. Not doing so may cause damage to the module.
•Do not directly touch the conductive area or electronic components of the module.
Doing so may cause malfunction or failure in the module.
A - 2 |
A - 2 |
[Wiring Instructions]
!CAUTION
•When turning on the power and operating the module after installation and wiring are completed, always attach the terminal cover that comes with the product.
There is a risk of electric shock if the terminal cover is not attached.
•Perform correct pressure-displacement, crimp-contact or soldering for external wire connections using the tools specified by the manufactures.
Incorrect connection may cause short circuits, fire, or malfunction.
•Attach connectors to the module securely.
•Be sure to fix communication cables or power supply cables leading from the module by placing them in the duct or clamping them.
Cables not placed in the duct or without clamping may hang or shift, allowing them to be accidentally pulled, which may cause a module malfunction and cable damage.
•Before connecting the cables, check the type o f interface to be connected.
Connecting or erroneous wiring to the wrong interface may cause failure to the module and external devices.
• Tighten the terminal screws within the range of specified torque.
If the terminal screws are loose, it may result in short circuits or malfunction.
If the screws are tightened too much, it may cause damage to the screw and/or the module, resulting in fallout, short circuits or malfunction.
•When removing the communication cable or power supply cable from the module, do not pull the cable. When removing the cable with a connector, hold the connector on the side that is connected to the module.
When removing the cable connected to the terminal block, first loosen the screws on the part that is connected to the terminal block.
Pulling the cable that is still connected to the module may cause malfunction or damage to the module or cable.
•Be careful not to let foreign matters such as sawdust or wire chips get inside the module.
They may cause fires, failure or malfunction.
•The top surface of the module is covered with protective film to prevent foreign objects such as cable offcuts from entering the module when wiring.
Do not remove this film until the wiring is complete.
Before operating the system, be sure to remove the film to provide adequate heat ventilation.
A - 3 |
A - 3 |
[Startup/Maintenance Instructions]
!CAUTION
•Do not disassemble or modify each module.
Doing so could cause failure, malfunction injury or fire.
•Switch all phases of the external power supply off when mounting or removing the module. Not doing so may cause failure or malfunction of the module.
•Do not mount/remove the module onto/from base unit more than 50 times (IEC61131-2- compliant), after the first use of the product.
Failure to do so may cause the module to malfunction due to poor contact of connector.
•Do not touch the connector while the power is on.
Doing so may cause malfunction.
•Switch all phases of the external power supply off when cleaning or retightening terminal screws and module installing screws.
Not doing so may cause failure or malfunction of the module.
If the screws are loose, it may cause the module to fallout, short circuits, or malfunction.
If the screws are tightened too much, it may cause damages to the screws and/or the module, resulting in the module falling out, short circuits or malfunction.
•Always make sure to touch the grounded metal to discharge the electricity charged in the body, etc., before touching the module.
Failure to do so may cause a failure or malfunctions of the module.
[Operation Instructions]
!CAUTION
•When performing the control of the PLC in operation (especially changing data, program, and operation status (status control)) by connecting a personal computer, etc. to the intelligent function module, read this manual carefully and confirm if the overall safety is maintained. Failure to perform correct operation s to change data, program, or the status may result in system malfunction, machine damage, or an accident.
[Disposal Instructions]
!CAUTION
•When disposing of this product, treat it as industrial waste.
A - 4 |
A - 4 |
|
|
|
|
The manual number is given on the bottom left of the back cover. |
|
Print Date |
Manual Number |
|
|
|
Revision |
Dec., 1999 |
SH (NA)-080006-A |
First Printing |
|||
Oct., 2000 |
SH (NA)-080006-B |
Add the contents of the function version B. |
|||
|
|
|
|
|
|
|
|
Correction |
|
|
|
|
|
Contents, Entire manual (change MELSECNET/10H to MELSECNET/H), |
|||
|
|
About Manuals, About The Generic Terms and Abbreviations, Product |
|||
|
|
Configuration, Section 1.2, 1.2(8), 1.3 POINT, Section 2.2, 2.3, 2.5, 2.6, |
|||
|
|
Section 3.1, 3.6, 3.9, Section 4.2, 4.4.1(2)(a)(Figure), 4.6(1), Chapter |
|||
|
|
5(all), Section 6.1.1, 6.1.3, 6.1.4, Section 7.1.1, 7.1.2, 7.2.2, Section 8.1, |
|||
|
|
8.2.1, 8.2.2, 8.3.1, 8.3.2, Section 9.2 to 9.7, Section 10.1.1, 10.2.1, |
|||
|
|
10.3.8, 10.3.18, Appendix 1.1(2), Appendix 2(all), appendix 3(2), |
|||
|
|
Appendix 7, appendix 8 |
|||
|
|
|
|
|
|
|
|
Addition |
|
|
|
|
|
Entire manual (add the explanation on MELSECNET/H remote I/O |
|||
|
|
station), The Manual's Use and Structure, Section 2.1, Section |
|||
|
|
3.1(Table), Section 4.4.2(1)(d), 4.9.2, Section 8.3.2 POINT, Section |
|||
|
|
10.2.1 (7164H, 7E70H), Appendix 3(1) |
|||
|
|
|
|
||
Jun., 2001 |
SH (NA)-080006-C |
Put Windows® base software product together from Mitsubishi |
|||
|
|
Programmable Logic Controller MELSEC Series to Mitsubishi integrated |
|||
|
|
FA Software MELSOFT Series. |
|||
|
|
Standardize the name from software package (GPP function) to Product |
|||
|
|
name (GX Developer). |
|||
|
|
Standardize the name from utility package (QSCU) to Product name (GX |
|||
|
|
Congifurator-SC). |
|||
|
|
|
|
||
|
|
Correction |
to the EMC Directive and Low Voltage Instruction, About |
||
|
|
Conformation |
|||
|
|
the Generic Terms and Abbreviations, Product Configuration, Program |
|||
|
|
Examples (Section 6.1.4, 6.2.3, Section 7.2.3, Section 9.3, 9.5, Appendix- |
|||
|
|
8), Section 1.2(1)(d), 1.2(4)(b)(Diagram), 1.2(8)(b), 1.3, Section 2.1, 2.3, |
|||
|
|
2.4, 2.5, 2.7, Section 3.1(Table), 3.2.1(3), 3.3.3(2), 3.4(Table), 3.9, |
|||
|
|
Section 4.3, 4.5.2, Section 5.1.5(3), 5.2, Section 6.1.4, Section 8.2, 8.3.2 |
|||
|
|
POINT, 8.4.2, 8.4.9(Table), 8.6.3(Table), 8.6.7(Table), Section 10.1.2(b), |
|||
|
|
10.3(Table), Appendix 1.1, 2.1, 6, 7, 9 |
|||
|
|
|
|
||
|
|
Addition |
|
|
|
|
|
Section 2.6, Section 8.4.4, 8.6.2(Table), Section 10.2.1(716FH, 7FEFH), |
|||
|
|
10.2.3(7FE9H), 10.3.14, Appendix 3 |
|||
Feb., 2002 |
SH (NA)-080006-D |
|
|
|
|
Addition |
Generic Terms and Abbreviations, Section 1.2, Section 2.1, |
||||
|
|
About The |
|||
|
|
2.7, Section 4.5.2, Section 8.2.1, 8.2.2, Section 10.2.1, Appendix 1.1, 6 |
|||
|
|
|
|
|
|
Oct., 2002 |
SH (NA)-080006-E |
|
|
|
|
Addition |
|
|
|||
|
|
The Manual’s Use and Structure, About The Generic Terms and |
|||
|
|
Abbreviations, Section 1.2(1)(4), Section 2.1, 2.4, Section 5.2, Section |
|||
|
|
6.1.4, Section 9.8, Appendix 7 |
|||
Jan., 2003 |
SH (NA)-080006-F |
|
|
|
|
Addition model |
|
||||
|
|
QJ71C24N, QJ71C24N-R2, QJ71C24N-R4 |
A - 5 |
A - 5 |
|
|
|
The manual number is given on the bottom left of the back cover. |
Print Date |
Manual Number |
|
Revision |
Jan., 2003 |
SH (NA)-080006-F |
|
|
Addition |
|
SAFETY PRECAUTIONS, About Manuals, About The Generic Terms and Abbreviations, Product Configuration, Section 1.3, Section 2.1, 2.2, 2.3, 2.5, 2.6, 2.7, Section 3.1, 3.2.1, 3.3.1, 3.6, 3.8, 3.9, Section 4.1, 4.3, 4.4, 4.5, 4.6, 4.7.1, Section 6.1.1, 6.1.2, Section 7.1, 7.2.2, Chapter 8(all), Section 9.1, 9.6, Section 10.1.2(b), 10.1.3(1), 10.2, Appendix 1, Appendix 2.1, Appendix 3, Appendix 5, Appendix 9
Jun., 2004 SH (NA)-080006-G |
Correction |
|
About The Generic Terms and Abbreviations, Product Configuration,
Chapter 2 (all), Section 3.8, Section 4.2.2 (1), Section 5.1.3 POINT,
Section 5.1.4, Chapter 8 (screen change), Section 8.6.10, Section 10.1.1,
Section 10.2
|
Addition |
|
|
|
|
Appendix 9 |
|||
Sep., 2004 SH (NA)-080006-H |
|
|
|
|
Correction |
Section 2.5, 2.6, Section 3.5, 3.6, 3.9, Section 4.1, Chapter 8 |
|||
|
||||
|
Section 1.3, |
|||
|
(screen change), Section 8.6.9, 8.6.10, Section 10.1, 10.2, Appendix 1.1 |
|||
|
|
|||
|
Addition |
9.12 |
||
|
Appendix |
Japanese Manual Version SH-080001-L
This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.
1999 MITSUBISHI ELECTRIC CORPORATION
A - 6 |
A - 6 |
Thank you for purchasing the MELSEC-Q series PLC.
Before using the equipment, please read this manual carefully to develop full familiarity with the functions and performance of the Q series PLC you have purchased, so as to ensure correct use.
Please forward a copy of this manual to the end user.
|
|
CONTENTS (This manual) |
|
|
SAFETY PRECAUTIONS.............................................................................................................................. |
A- 1 |
|||
REVISIONS.................................................................................................................................................... |
A- 5 |
|||
CONTENTS.................................................................................................................................................... |
A- 7 |
|||
About Manuals ............................................................................................................................................... |
A-15 |
|||
Conformation to the EMC Directive and Low Voltage Instruction ................................................................ |
A-15 |
|||
The Manual’s Use and Structure ................................................................................................................... |
A-16 |
|||
About The Generic Terms and Abbreviations............................................................................................... |
A-19 |
|||
Definitions and Descriptions of Terminology................................................................................................. |
A-21 |
|||
Product Configuration .................................................................................................................................... |
A-23 |
|||
|
|
|||
1 OVERVIEW |
1- 1 to 1-11 |
|||
1.1 |
Overview of the Serial Communication Module..................................................................................... |
1- 1 |
||
1.2 |
Features of the Serial Communication Module...................................................................................... |
1- 2 |
||
1.3 |
About Added/Changed Functions in Function Version B ...................................................................... |
1-10 |
||
|
|
|||
2 SYSTEM CONFIGURATION AND AVAILABLE FUNCTIONS |
2- 1 to 2-14 |
|||
2.1 |
Applicable Systems................................................................................................................................. |
2- |
1 |
|
2.2 |
Combinations of PLC CPU and External Device, and Available Functions.......................................... |
2- 3 |
||
2.3 |
For Use in Multiple CPU System............................................................................................................ |
2- 6 |
||
2.4 |
For Use with Q00J/Q00/Q01CPU .......................................................................................................... |
2- 7 |
||
2.5 |
For Use at MELSECNET/H Remote I/O Station.................................................................................... |
2- 8 |
||
2.6 |
Checking the Function Version, Serial No., and Software Version....................................................... |
2-12 |
||
|
|
|||
3 SPECIFICATIONS |
3- 1 to 3-31 |
|||
3.1 |
Performance Specifications.................................................................................................................... |
3- |
1 |
|
3.2 |
RS-232 Interface Specification............................................................................................................... |
3- |
3 |
|
3.2.1 |
RS-232 connector specifications ..................................................................................................... |
3- |
3 |
|
3.2.2 |
RS-232 cable specification .............................................................................................................. |
3- |
5 |
|
3.3 |
RS-422/485 Interface Specifications...................................................................................................... |
3- |
6 |
|
3.3.1 |
RS-422/485 terminal block specifications ....................................................................................... |
3- |
6 |
|
3.3.2 |
RS-422/485 cable specifications ..................................................................................................... |
3- |
7 |
|
3.3.3 |
Precautions when transferring data using RS-422/485 circuit ....................................................... |
3- |
8 |
|
3.4 |
Serial Communication Module Function List.......................................................................................... |
3-11 |
||
3.5 |
Dedicated Instruction List........................................................................................................................ |
3-12 |
||
3.6 |
Utility Package (GX Configurator-SC) Function List.............................................................................. |
3-13 |
||
3.7 |
List of GX Developer Setting Items for Serial Communication Modules............................................... |
3-14 |
||
3.8 |
List of Input/Output Signals for the PLC CPU........................................................................................ |
3-15 |
||
3.9 |
List of Applications and Assignments of the Buffer Memory ................................................................. |
3-17 |
A - 7 |
A - 7 |
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION |
4- 1 to 33 |
|||
4.1 |
Handling Precautions.............................................................................................................................. |
4- |
1 |
|
4.2 |
Settings and Procedures Prior to Operation .......................................................................................... |
4- |
2 |
|
4.3 |
Part Names and Functions ..................................................................................................................... |
4- 3 |
||
4.4 |
External Wiring........................................................................................................................................ |
4- |
5 |
|
4.4.1 |
Connecting the RS-232 interface (full-duplex communications) .................................................... |
4- |
6 |
|
4.4.2 |
Connecting the RS-422/485 interface ............................................................................................. |
4- |
8 |
|
4.5 |
Settings for GX Developer ...................................................................................................................... |
4-12 |
||
4.5.1 |
I/O assignment settings.................................................................................................................... |
4-12 |
||
4.5.2 |
Switch settings for I/O and intelligent functional module ................................................................ |
4-13 |
||
4.5.3 |
The Intelligent function module interrupt pointer setting................................................................. |
4-20 |
||
4.6 |
Settings with the Utility Package (GX Configurator-SC)........................................................................ |
4-22 |
||
4.7 |
Individual Station Test............................................................................................................................. |
4-25 |
||
4.7.1 ROM/RAM/switch tests .................................................................................................................... |
4-25 |
|||
4.7.2 |
Individual station loopback test........................................................................................................ |
4-28 |
||
4.8 |
Loopback Test......................................................................................................................................... |
4-30 |
||
4.9 |
Maintenance and Inspection................................................................................................................... |
4-32 |
||
4.9.1 Maintenance and inspection............................................................................................................ |
4-32 |
|||
4.9.2 When mounting/dismounting the module........................................................................................ |
4-33 |
|||
|
|
|||
5 DATA COMMUNICATION USING THE MELSEC COMMUNICATION PROTOCOL |
5- 1 to 5- 6 |
|||
5.1 |
Data Communication Functions ............................................................................................................. |
5- 1 |
||
5.1.1 Accessing the PLC CPUs using the MC protocol........................................................................... |
5- 1 |
|||
5.1.2 Message format and control procedure for data communication................................................... |
5- 2 |
|||
5.1.3 |
PLC CPU setting for performing data communication.................................................................... |
5- |
2 |
|
5.1.4 |
Support of multiple CPU system or redundant system................................................................... |
5- 3 |
||
5.1.5 Support for the QCPU remote password function .......................................................................... |
5- 4 |
|||
5.2 |
Utilizing the MX Component ................................................................................................................... |
5- 6 |
||
|
|
|||
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL |
6- 1 to 6-31 |
|||
6.1 |
Data Reception from the External Device.............................................................................................. |
6- |
2 |
|
6.1.1 Receiving methods........................................................................................................................... |
6- 2 |
|||
6.1.2 |
The receive area and the received data list .................................................................................... |
6- |
6 |
|
6.1.3 |
Sequence program for data reception............................................................................................. |
6-11 |
||
6.1.4 |
Receive data clear............................................................................................................................ |
6-14 |
||
6.1.5 |
How to detect reception errors......................................................................................................... |
6-17 |
||
6.1.6 Received data count and receive complete code settings ............................................................. |
6-20 |
|||
6.2 |
Sending Data to the External Device ..................................................................................................... |
6-22 |
||
6.2.1 Transmission methods..................................................................................................................... |
6-22 |
|||
6.2.2 |
Arrangement and contents of the transmission area and the transmission data........................... |
6-23 |
||
6.2.3 |
Sequence program for transmission data ....................................................................................... |
6-25 |
||
6.2.4 |
How to detect transmission errors ................................................................................................... |
6-28 |
||
6.3 |
Data Communications Precautions........................................................................................................ |
6-30 |
A - 8 |
A - 8 |
7 DATA COMMUNICATION USING THE BIDIRECTIONAL PROTOCOL |
7- 1 to 7-28 |
|||||
7.1 |
Data Reception from the External Device.............................................................................................. |
|
7- |
2 |
||
7.1.1 Receiving methods........................................................................................................................... |
|
7- 2 |
||||
7.1.2 |
Arrangement and contents of the receive area and the receive data ............................................ |
|
7- |
4 |
||
7.1.3 |
Sequence program for data reception............................................................................................. |
|
7-10 |
|||
7.1.4 |
How to detect reception errors......................................................................................................... |
|
7-13 |
|||
7.1.5 |
Receive data clear............................................................................................................................ |
|
7-14 |
|||
7.2 |
Sending Data to the External Device ..................................................................................................... |
|
7-15 |
|||
7.2.1 Transmission methods..................................................................................................................... |
|
7-15 |
||||
7.2.2 |
Arrangement and contents of the transmission area and the transmission data........................... |
|
7-16 |
|||
7.2.3 |
Sequence program for data transmission ....................................................................................... |
|
7-19 |
|||
7.2.4 |
How to detect transmission errors ................................................................................................... |
|
7-22 |
|||
7.3 |
Processing when Simultaneous Transmission Performed During Full-Duplex Communications |
....... 7-24 |
||||
7.3.1 |
Processing when simultaneous transmissions occur ..................................................................... |
|
7-24 |
|||
7.3.2 Communication data processing when simultaneous transmissions occur................................... |
|
7-25 |
||||
7.4 |
Data Communications Precautions........................................................................................................ |
|
7-27 |
|||
|
|
|||||
8 UTILITY PACKAGE (GX CONFIGURATOR-SC) |
8- 1 to 8-51 |
|||||
8.1 |
Functions Available with Utility Package................................................................................................ |
|
8- |
2 |
||
8.2 |
Installing and Uninstalling Utility Package.............................................................................................. |
|
8- |
3 |
||
8.2.1 Usage precautions ........................................................................................................................... |
|
8- |
3 |
|||
8.2.2 |
Operating environment..................................................................................................................... |
|
8- |
5 |
||
8.3 |
Explanation of Utility Package Operation............................................................................................... |
|
8- |
6 |
||
8.3.1 |
Operation overview .......................................................................................................................... |
|
8- |
6 |
||
8.3.2 |
Starting the intelligent function module utility |
|
|
|
||
(displaying the [select parameter setting module] screen)........................................................................ |
|
8-10 |
||||
8.3.3 |
Performing common utility operations ............................................................................................. |
|
8-13 |
|||
8.4 |
System Registration to Flash ROM........................................................................................................ |
|
8-16 |
|||
8.4.1 |
User frame registration..................................................................................................................... |
|
8-18 |
|||
8.4.2 |
Data for modem initialization registration ........................................................................................ |
|
8-19 |
|||
8.4.3 |
Data for modem connection registration ......................................................................................... |
|
8-20 |
|||
8.4.4 |
Modem function system setting/registration.................................................................................... |
|
8-21 |
|||
8.4.5 |
Transmission control and others system setting............................................................................. |
|
8-22 |
|||
8.4.6 |
MC protocol system setting.............................................................................................................. |
|
8-24 |
|||
8.4.7 Non procedure system setting......................................................................................................... |
|
8-25 |
||||
8.4.8 |
Bidirectional system setting ............................................................................................................. |
|
8-26 |
|||
8.4.9 PLC CPU monitoring system setting............................................................................................... |
|
8-27 |
||||
8.4.10 Transmission user frame No. designation system setting............................................................ |
|
8-29 |
||||
8.4.11 |
Resetting the buffer memory/flash ROM setting values to the default values ............................. |
|
8-30 |
|||
8.4.12 |
Flash ROM write allow/prohibit setting.......................................................................................... |
|
8-30 |
|||
8.5 |
Auto Refresh Setting............................................................................................................................... |
|
8-31 |
|||
8.6 |
Monitor/Test ............................................................................................................................................ |
|
8-32 |
|||
8.6.1 |
X · Y monitor/test.............................................................................................................................. |
|
8-33 |
|||
8.6.2 |
Modem function monitor/test ........................................................................................................... |
|
8-34 |
|||
8.6.3 |
Transmission control and others monitor/test ................................................................................. |
|
8-37 |
|||
8.6.4 MC protocol monitor......................................................................................................................... |
|
8-39 |
||||
A - 9 |
|
|
|
A - 9 |
|
8.6.5 |
Non procedure monitor/test ............................................................................................................. |
8-41 |
|||
8.6.6 |
Bidirectional monitor......................................................................................................................... |
8-43 |
|||
8.6.7 PLC CPU monitoring monitor .......................................................................................................... |
8-44 |
||||
8.6.8 |
Transmission user frame No. designation monitor ......................................................................... |
8-46 |
|||
8.6.9 |
Monitor/test others............................................................................................................................ |
8-47 |
|||
8.6.10 |
Display LED off and communication error information/error code initialization ........................... |
8-49 |
|||
8.7 Non Procedure Protocol Receive Data Clear ........................................................................................ |
8-51 |
||||
|
|
||||
9 DEDICATED INSTRUCTIONS |
9- 1 to 9-21 |
||||
9.1 |
Dedicated Instruction List........................................................................................................................ |
9- |
1 |
||
9.2 ONDEMAND Instruction ......................................................................................................................... |
9- 2 |
||||
9.3 OUTPUT Instruction................................................................................................................................ |
9- 5 |
||||
9.4 |
INPUT Instruction.................................................................................................................................... |
9- |
8 |
||
9.5 |
BIDOUT Instruction................................................................................................................................. |
9-11 |
|||
9.6 |
BIDIN Instruction..................................................................................................................................... |
9-14 |
|||
9.7 SPBUSY Instruction................................................................................................................................ |
9-17 |
||||
9.8 CSET (Receive data clear)..................................................................................................................... |
9-19 |
||||
|
|
||||
10 TROUBLESHOOTING |
10- 1 to 10-43 |
||||
10.1 Checking the Status of the Serial Communication Module............................................................... |
10- 1 |
||||
10.1.1 |
Checking the LED ON status, communications error status, and switch setting status of |
|
|||
|
|
|
the serial communication module................................................................................................ |
10- 1 |
|
10.1.2 |
Initializing error information of the serial communication module............................................... |
10- |
6 |
||
10.1.3 |
Reading the RS-232 control signal status................................................................................... |
10- |
9 |
||
10.1.4 Reading the data communication status (Transmission sequence status) ............................... |
10-10 |
||||
10.1.5 |
Reading the switch setting status ................................................................................................ |
10-11 |
|||
10.1.6 |
How to read the current operation status .................................................................................... |
10-13 |
|||
10.2 Error Code Tables............................................................................................................................... |
10-15 |
||||
10.2.1 |
Error code table............................................................................................................................ |
10-15 |
|||
10.2.2 A compatible 1C frame communications error code table.......................................................... |
10-24 |
||||
10.2.3 |
Error code list while modem function is used.............................................................................. |
10-25 |
|||
10.3 Troubleshooting by Symptom............................................................................................................. |
10-27 |
||||
10.3.1 Troubleshooting when "RUN" LED is turned OFF...................................................................... |
10-29 |
||||
10.3.2 Troubleshooting when "RD" LED does not blink even though an external device is |
|
|
|||
|
|
|
transmitting a message................................................................................................................ |
10-30 |
|
10.3.3 Troubleshooting when the Q series C24 does not return a response message even |
|
|
|||
|
|
|
though an external device transmitted a message and the "RD" LED blinked.......................... |
10-31 |
|
10.3.4 Troubleshooting when an external device transmitted a message and "RD" LED blinked, |
|
||||
|
|
|
but the Read Request signal was not turned ON ....................................................................... |
10-32 |
|
10.3.5 Troubleshooting when communication error "NAK" generates.................................................. |
10-33 |
||||
10.3.6 Troubleshooting when communication error "C/N" generates ................................................... |
10-33 |
||||
10.3.7 Troubleshooting when communication error "P/S" generates.................................................... |
10-34 |
||||
10.3.8 Troubleshooting when communication error "PRO." generates................................................. |
10-35 |
||||
10.3.9 Troubleshooting when communication error "SIO" generates ................................................... |
10-36 |
||||
10.3.10 Troubleshooting when communication error "CH1 ERR.", "CH2 ERR." generate.................. |
10-37 |
||||
10.3.11 Troubleshooting when communications is intermittently established and lost ........................ |
10-38 |
||||
10.3.12 Troubleshooting when data that cannot be decoded is transmitted and received .................. |
10-39 |
||||
A - 10 |
|
|
A - 10 |
|
10.3.13 Troubleshooting when it is unclear whether the communication error cause is in |
|
|
|
the Q series C24 or an external device .................................................................................... |
10-40 |
||
10.3.14 Troubleshooting when data cannot be communicated via modem.......................................... |
10-41 |
||
10.3.15 Troubleshooting when data cannot be communicated with the ISDN sub-address................ |
10-42 |
||
10.3.16 Troubleshooting when constant cycle transmission does not operate normally...................... |
10-42 |
||
10.3.17 Troubleshooting when condition agreement transmission does not operate normally ........... |
10-42 |
||
10.3.18 Troubleshooting when data cannot be received by an interrupt program ............................... |
10-42 |
||
10.3.19 Troubleshooting when data cannot be written to Flash ROM .................................................. |
10-42 |
||
10.3.20 Troubleshooting when the "ERR" LED is lit .............................................................................. |
10-43 |
||
APPENDIX |
APP.- 1 to APP.-58 |
||
Appendix 1 Functional Improvements of the Q Series C24 ................................................................... |
App.- 1 |
||
Appendix 1.1 Comparison of the Functions of Q Series C24/GX Configurator-SC........................... |
App.- 1 |
||
Appendix 1.2 Precautions when Updating the Module from Function Version A to B....................... |
App.- 5 |
||
Appendix 2 QnA/A Series Module........................................................................................................... |
App.- 6 |
||
Appendix 2.1 Functional Comparison with the Q series C24 and the QnA/A Series Modules ......... |
App.- 6 |
||
Appendix 2.2 Using Programs Designed for the QC24 (N) and Installing the Q Series C24 |
|
|
|
into Existing Systems .................................................................................................... |
App.- |
8 |
|
Appendix 2.2.1 |
Using programs designed for the QC24 (N)..................................................... |
App.- |
8 |
Appendix 2.2.2 |
Installing on existing systems........................................................................... |
App.- |
9 |
Appendix 2.3 Using Programs Designed for the Computer Link Module and Installing |
|
|
|
the Q Series C24 into Existing Systems...................................................................... |
APP.-10 |
||
Appendix 2.3.1 |
Using programs designed for the computer link module.................................. |
App.-10 |
|
Appendix 2.3.2 |
Installing the Q series C24 into existing systems............................................. |
App.-13 |
|
Appendix 3 Processing Time................................................................................................................... |
App.-14 |
||
Appendix 4 ASCII-Code Table................................................................................................................. |
App.-17 |
||
Appendix 5 External Dimensions............................................................................................................. |
App.-18 |
||
Appendix 6 Example of Connection when a Converter is Used............................................................. |
App.-20 |
||
Appendix 7 Communication Support Tool (MX Component) ................................................................. |
App.-23 |
||
Appendix 7.1 Overview of MX Component ......................................................................................... |
App.-23 |
||
Appendix 7.2 Usage Procedure of MX Component............................................................................ |
App.-26 |
||
Appendix 8 Example of Clear Process Program for Receive Data........................................................ |
App.-30 |
||
Appendix 9 Program Examples for Using Q Series C24 at MELSECNET/H Remote I/O Station........ |
App.-32 |
||
Appendix 9.1 System configuration and program conditions ............................................................. |
App.-32 |
||
Appendix 9.2 When accessing buffer memory using sequence program.......................................... |
App.-34 |
||
Appendix 9.3 When sending on-demand data.................................................................................... |
App.-35 |
||
Appendix 9.4 When receiving data using nonprocedural or bidirectional protocol ............................ |
App.-37 |
||
Appendix 9.5 When sending data using nonprocedural or bidirectional protocol.............................. |
App.-39 |
||
Appendix 9.6 When clearing received data......................................................................................... |
App.-41 |
||
Appendix 9.7 When sending data using user frames ......................................................................... |
App.-43 |
||
Appendix 9.8 When performing initial setting...................................................................................... |
App.-46 |
||
Appendix 9.9 When registering user frame......................................................................................... |
App.-48 |
||
Appendix 9.10 When reading user frame............................................................................................ |
App.-50 |
||
Appendix 9.11 When deleting user frame ........................................................................................... |
App.-52 |
||
Appendix 9.12 When changing the communication protocol and transmission setting..................... |
App.-54 |
||
Appendix 10 Setting Value Recording Sheet.......................................................................................... |
App.-57 |
||
INDEX |
Index- 1 to Index- 2 |
A - 11 |
A - 11 |
(Related Manual-1) … Q Corresponding Serial Communication Module User's Manual (Application)
|
|
|
|
SH-080007-G |
1 OVERVIEW |
|
8 DATA COMMUNICATIONS USING HALF- |
||
|
||||
1.1 |
Overview |
|
DUPLEX COMMUNICATIONS |
|
1.2 |
Functions Added/Changed by Function |
|
8.1 Half-duplex Communications |
|
|
Version B |
|
8.2 Data Transmission and Reception Timing |
|
|
|
|
8.3 Changing the Communication System |
|
2 USING THE PLC CPU MONITORING |
|
8.4 Connector Connections for Half-duplex |
||
FUNCTION |
|
|
Communications |
|
2.1 |
Overview |
|
8.5 |
Half-duplex Communications Precautions |
2.2 |
About the PLC CPU Monitoring Function |
|
9 CONTENTS AND REGISTRATION OF THE |
|
2.3 |
Settings for Using the PLC CPU Monitoring |
|
||
|
Function |
|
USER FRAMES FOR DATA COMMUNICATION |
|
2.4 |
Precautionary Notes for Using the PLC CPU |
|
9.1 User Frame Types and Contents During |
|
|
Monitoring Function |
|
|
Communication |
|
|
|
9.2 |
Transmission/Reception Processing Using |
3 COMMUNICATIONS BY THE MODEM |
|
|
User Frame Register Data |
|
FUNCTION |
|
9.3 Precautions when Registering, Reading, |
||
3.1 |
Overview |
|
|
Deleting and Using User Frames |
3.2 |
System Configuration |
|
9.4 |
Register/Read/Delete User Frames |
3.3 |
Specifications |
|
10 ON-DEMAND DATA COMMUNICATIONS |
|
3.4 |
Start-up of the Modem Function |
|
||
3.5 |
Sample Programs |
|
USING USER FRAMES |
|
|
|
|
10.1 |
User Frame Data Communications Function |
4 RECEIVING DATA WITH AN INTERRUPT |
|
10.2 |
User Frame Types and Registration |
|
PROGRAM |
|
10.3 |
User Frame On-Demand Data Transmission |
|
4.1 |
Settings for Receiving Data Using an Interrupt |
|
|
and Buffer Memory Used |
|
Program |
|
10.4 |
On-Demand Function Control Procedure |
4.2 |
Interrupt Program Startup Timing |
|
|
During User Frame Use |
4.3 |
Reception Control Method Using an Interrupt |
|
10.5 |
Example of an On-Demand Data |
|
Program |
|
|
Transmission Program Using User Frames |
4.4 |
Programming |
|
11 DATA COMMUNICATIONS USING USER |
|
|
|
|
||
5 CHANGING SEND AND RECEIVE DATA |
|
FRAMES |
||
LENGTH UNITS TO BYTE UNITS |
|
11.1 |
Overview of Data Communication |
|
(WORD/BYTES UNITS SETTING) |
|
|
Procedure |
|
|
|
|
11.2 |
Data Reception |
6 CHANGING THE DATA COMMUNICATIONS |
|
11.3 |
Receive Program |
|
MONITORING TIMES |
|
11.4 |
Data Transmission |
|
6.1 |
No-Reception Monitoring Time (timer 0) |
|
11.5 |
Transmission program |
|
Setting |
|
12 TRANSPARENT CODES AND ADDITIONAL |
|
6.2 |
Response Monitoring Time (timer 1) Setting |
|
||
6.3 |
Transmission Monitoring Time (timer 2) |
|
CODES |
|
|
Setting |
|
12.1 |
Handling the Transparent Code and |
6.4 |
Message Wait Time Setting |
|
|
Additional Code Data |
|
|
|
12.2 |
Registering Transparent Codes and |
7 DATA COMMUNICATIONS USING DC CODE |
|
|
Additional Codes |
|
TRANSMISSION CONTROL |
|
12.3 |
Handling Transparent Codes and Additional |
|
7.1 |
Control Contents of DTR/DSR (ER/DR) |
|
|
Codes During Non Procedure Protocol Data |
|
Signal Control |
|
|
Communication |
7.2 |
Control Contents of DC Code Control |
|
12.4 |
Example of Data Communication Using the |
7.3 |
Precautions when Using the Transmission |
|
|
Non Procedure Protocol |
|
Control Functions |
|
12.5 |
Handling Transparent Codes and Additional |
|
|
|
|
Codes During Bidirectional Protocol Data |
|
|
|
|
Communication |
|
|
|
12.6 |
Example of Data Communication Using the |
|
|
|
|
Bidirectional Protocol |
A - 12 |
|
|
A - 12 |
(Related Manual-1) … Q Corresponding Serial Communication Module User's Manual (Application) SH-080007-G
13COMMUNICATING WITH ASCII CODE (ASCIIBIN CONVERSION)
13.1ASCII-BIN Conversion
13.2Settings for ASCII-BIN Conversion
13.3Performing ASCII-BIN Conversion for Data Communicated via Non Procedure Protocol
13.4Example of Data Communication Using the Non Procedure Protocol
13.5Performing ASCII-BIN Conversion for Data Communicated Via the Bidirectional Protocol
13.6Example of Data Communication Using the Bidirectional Protocol
14DATA COMMUNICATIONS USING EXTERNAL DEVICE AND PLC CPU M : N CONFIGURATION
14.1Data Communications Precautions
14.2External Devices Interlock Conditions
14.3Examples of Procedure for Data Communications with the PLC CPU
15SWITCHING THE MODE AFTER STARTING
15.1Mode Switching Operation and Contents that can be Changed
15.2Mode Switching Precautions
15.3I/O Signals for Handshake with PLC CPU and Buffer Memory
15.4Switching the Mode from the PLC CPU
15.5Switching the Mode from an External Device
16USING COMMUNICATION DATA MONITORING FUNCTION
16.1Communication Data Monitoring Function
16.2Communication Data Monitoring Function Settings
16.3Communication Data Monitoring Example
17DEDICATED INSTRUCTIONS
17.1Dedicated Instruction List
17.2BUFRCVS Instruction
17.3CSET Instruction (PLC CPU Monitoring Register/Cancel)
17.4CSET Instruction (Initial Settings)
17.5GETE Instruction
17.6PRR Instruction
17.7PUTE Instruction
17.8UINI Instruction
A - 13 |
A - 13 |
(Related Manual-2) … Q Corresponding MELSEC Communication Protocol Reference Manual
|
|
|
|
SH-080008-F |
1 OVERVIEW |
3.14 |
Turning Off Displayed LEDs and Initializing |
||
1.1 |
Overview of the MELSEC Communication |
|
Communication Error Information and Error |
|
|
Protocol |
|
Code: for Serial Communication Module |
|
1.2 |
Features of the MELSEC Communication |
3.15 Turning Off the COM.ERR LED: for Ethernet |
||
|
Protocol |
|
Modules |
|
|
|
3.16 Loopback Test |
||
2 DATA COMMUNICATION USING THE MELSEC |
3.17 Registering or Canceling PLC CPU |
|||
COMMUNICATION PROTOCOL |
|
Monitoring: for Serial Communication |
||
2.1 |
Types and Applications of Data |
|
Modules |
|
|
Communication Frames |
3.18 Remote Password Unlock/Lock |
||
2.2 |
Accessible Range of Each Data |
4 WHEN COMMUNICATING USING THE QnA |
||
|
Communication Frames |
|||
2.3 |
How to Read the Control Procedures of the |
COMPATIBLE 2C FRAMES |
||
|
MC Protocol |
4.1 |
Control Procedures and Message Formats |
|
2.4 |
Access Timing of the PLC CPU Side |
4.2 |
Contents of the Data Designation Items |
|
2.5 |
Setting Method for Writing to the PLC CPU |
4.3 |
List of Commands and Functions for QnA |
|
|
during RUN |
|
Compatible 2C Frames |
|
2.6 |
Accessing Other Stations |
4.4 |
Precautions on the Data Communication |
|
2.7 |
Precautions on Data Communication |
4.5 |
Example of Data Communication Using QnA |
|
2.8 |
Time Chart and Communication Time of the |
|
Compatible 2C Frames |
|
|
Transmission Sequence of the Serial |
5 WHEN COMMUNICATING USING THE A |
||
|
Communication Module |
|||
2.9 |
Transmission Time When Accessing Other |
COMPATIBLE 1C FRAMES |
||
|
Stations Via MELSECNET/H, MELSECNET/10 |
5.1 |
Control Procedures and Message Formats |
|
2.10 |
Compatibility with Multiple CPU Systems |
5.2 |
Device Memory Read/Write |
|
2.11 |
Compatibility with the Q00CPU, Q01CPU |
5.3 |
Extension File Register Read and Write |
|
|
Serial Communication Function |
5.4 |
Reading and Writing in the Buffer Memory of |
|
|
|
|
an Intelligent Function Module |
|
3 WHEN COMMUNICATING USING THE QnA |
5.5 |
Loopback Test |
||
COMPATIBLE 3E/3C/4C FRAMES |
6 WHEN COMMUNICATING USING THE A |
|||
3.1 |
Message Formats |
|||
3.2 |
List of Commands and Functions for the QnA |
COMPATIBLE 1E FRAMES |
||
|
Compatible 3E/3C/4C Frames |
6.1 |
Message Formats and Control Procedures |
|
3.3 |
Device Memory Read/Write |
6.2 |
List of Commands and Functions for A |
|
3.4 |
Buffer Memory Read/Write |
|
Compatible 1E Frames |
|
3.5 |
Reading from and Writing to the Buffer |
6.3 |
Device Memory Read/Write |
|
|
Memory of an Intelligent Function Module |
6.4 |
Extension File Register Read and Write |
|
3.6 |
PLC CPU Status Control |
6.5 |
Reading and Writing in the Buffer Memory of |
|
3.7 |
Drive Memory Defragmentation (for Other |
|
an Intelligent Function Module |
|
|
Station QnACPU) |
APPENDIX |
|
|
3.8 |
File Control |
|
||
3.9 |
Registering, Deleting and Reading User |
Appendix-1 |
Reading and Writing by Designation |
|
|
Frames: for Serial Communication Modules |
|
|
of the Device Memory Extension |
3.10 |
Global Function: for Serial Communication |
Appendix 2 |
Reading from and Writing to the |
|
|
Modules |
|
|
Buffer Memory |
3.11 |
Data Transmission to an External device |
Appendix-3 |
Processing Time of the PLC CPU |
|
|
(On-Demand Function): for Serial |
|
|
Side While Communicating Using |
|
Communication Modules |
|
|
the MC Protocol |
3.12Initializing the Transmission Sequence: for Serial Communication Modules
3.13Mode Switching: for Serial Communication Module
A - 14 |
A - 14 |
The following table lists the manuals relating to this product. Please order the desired manual(s) as needed.
Related manuals
Manual Name |
Manual Number |
|
(Model Code) |
||
|
||
Q Corresponding Serial Communication Module User's Manual (Application) |
|
|
This manual explains the specifications and operating procedures for the special module functions, the |
SH-080007 |
|
settings for use of special functions, and data-communication method for use with external devices. |
(13JL87) |
|
(sold separately) |
|
|
|
|
|
Q Corresponding MELSEC Communication Protocol Reference Manual |
|
|
This manual explains how the external devices read and write PLC CPU data through communication |
SH-080008 |
|
with the MC protocol using the serial communication module/Ethernet module. |
(13JF89) |
|
(sold separately) |
|
|
|
|
|
GX Configurator-SC Version 2 Operating Manual (Protocol FB support function) |
|
|
This manual explains the function and usage of the protocol FB support function that supports the |
SH-080393E |
|
creation of the data communication program of the module and set up of each parameter. |
(13JU46) |
|
(sold separately) |
|
|
|
|
For details on making Mitsubishi PLC conform to the EMC directive and low voltage instruction when installing it in your product, please see Chapter 3, "EMC Directive and Low Voltage Instruction" of the User's Manual (Hardware) of the CPU module to use.
The CE logo is printed on the rating plate on the main body of the PLC that conforms to the EMC directive and low voltage instruction.
By making this product conform to the EMC directive and low voltage instruction, it is not necessary to make those steps individually.
A - 15 |
A - 15 |
How to use this manual
In this manual, details of the serial communication modules (QJ71C24N, QJ71C24N-R2, QJ71C24N-R4, QJ71C24 and QJ71C24-R2) are organized as shown below, according to their applications.
Please use this manual using the contents below as a reference.
(1)To learn about features, functions and component parts
(a)To learn about features and functions
•Chapter 1 describes the features of the serial communication modules.
•Chapter 3 describes the common specifications and functions of the serial communication modules.
(b)To learn about the packed items and system-configured items
•The section prior to Chapter 1, "Product Configuration", describes the parts that are packed along with the serial communication module.
•Parts and components other than those packed with the module must be prepared separately by the user.
(2)To learn about processing required to start up the serial communication module
(a)To learn about the startup procedure
•Section 4.2 describes the general procedures prior to starting the operation of the serial communication module.
(b)To learn about the connection with the external devices
•Section 4.4 describes the connection methods for each type of interface.
(c)To learn about processing required prior to operation of the serial communication module
•Section 4.5 explains the parameter settings with GX Developer in order to use the serial communication module.
•Section 4.6 and Chapter 8 describe the settings from GX Configurator-SC to perform the initial setting of the serial communication module.
To change an initial value, follow the procedure described in Chapter 8.
(d)To check for failure in the serial communication module
•Section 4.7 describes the test of the individual serial communication module.
(e)To learn how to check for a connection error with the external devices
•Section 4.8 describes how to perform the individual module test and the loopback test using MC protocol-based communication.
Details of the loopback test command are described in the reference manual.
A - 16 |
A - 16 |
(3)To learn about data communication functions and detailed explanations
(a)To learn about the communication functions
•Section 3.4 describes an overview of the serial communication module functions.
(b)To learn about detailed explanations of the communication functions
•The basic communication methods are described in Chapters 5 to 7.
•Special functions are described in the User's Manual (Application).
(4)To learn about data communication functions and programming
(a)To learn how to read data from and written to the PLC CPU
•Data is read from and written to the PLC CPU with a communication
function using the MC protocol.
Details are described in the Reference Manual.
•Appendix 7 describes an overview of the communication support tool (MX Component) that supports communication using the MC protocol.
(b)To learn how to send and receive data between the PLC CPU and the external devices
•Data communication between the PLC CPU and the external devices is performed with a communication function using the non procedure protocol or the bidirectional protocol.
•Chapter 6 explains details of the communication functions and programming using the non procedure protocol.
•Chapter 7 explains details of the communication functions and programming using the bidirectional protocol.
(5)To learn how to check for error occurrences and take corrective actions
Chapter 10 describes troubleshooting, how to check for errors, and detailed explanations of error codes.
(6)To learn about functions that have been added or changed in function version B
•Section 1.3 lists the functions that have been added or changed as well as manuals that provide detailed explanations hereof.
•Appendix 1.1 provides a breakdown of the functions of Q series C24/GX Configurator-SC by function version/software version.
A - 17 |
A - 17 |
The structure of this manual
The module's buffer memory stores default values that are used as initial settings to execute the data send/receive functions in order to communicate with the external devices.
Data can be sent to or received from the external devices using these default values. However, it may be necessary to change the default values, depending on system specifications.
This manual explains how to perform the initial settings in order to use each function of the utility package available for this module (GX-Configurator-SC). When changing a default value for sending and receiving data to/from an opposite device, first see the section describing the applicable function to verify the initial setting item and setting value you wish to change, then change the default value as explained in Chapter 8.
A - 18 |
A - 18 |
This manual uses the following generic terms and abbreviations to describe the serial communication modules, unless otherwise specified.
(1) Generic terms and abbreviations of relevant modules
|
In this manual, the following generic terms and abbreviations are used to indicate |
||
|
the PLC CPU and other modules used for the data-communication functions of |
||
|
the serial communication modules. Module model names are provided when |
||
|
relevant model names are needed to be shown. |
||
|
|
|
|
Generic term/abbreviation |
|
|
Description of generic term/abbreviation |
|
|
Abbreviation for QJ71C24N, QJ71C24N-R2, QJ71C24N-R4, QJ71C24 and QJ71C24-R2 type serial |
|
Q series C24 (C24) |
|
communication modules. |
|
|
|
(Indicated as "C24" in the diagrams) |
|
QC24 |
|
Generic term for AJ71QC24, AJ71QC24-R2, AJ71QC24-R4, A1SJ71QC24, A1SJ71QC24-R2. |
|
QC24N |
|
Generic term for AJ71QC24N, AJ71QC24N-R2, AJ71QC24N-R4, A1SJ71QC24N, A1SJ71QC24N- |
|
|
R2. |
|
|
|
|
|
|
QC24(N) |
|
Generic term for QC24, QC24N. |
|
QCPU |
|
Q mode |
Generic term for Q00JCPU, Q00CPU, Q01CPU, Q02CPU, Q02HCPU, Q06HCPU, |
|
Q12HCPU, Q25HCPU, Q12PHCPU, Q25PHCPU. |
||
|
|
|
|
QCPU station |
|
Abbreviation for the PLC with QCPU installed. |
|
QnACPU |
|
Generic term for Q2ACPU, Q2ACPU-S1, Q2ASCPU, Q2ASCPU-S1, Q2ASHCPU, Q2ASHCPU-S1, |
|
|
Q3ACPU, Q4ACPU, Q4ARCPU. |
||
|
|
||
Q/QnACPU |
|
Generic term for QCPU, QnACPU. |
|
UC24 |
|
Generic term for AJ71UC24, A1SJ71UC24-R2, A1SJ71UC24-R4, A1SJ71UC24-PRF, |
|
|
A1SJ71C24-R2, A1SJ71C24-R4, A1SJ71C24-PRF, A2CCPUC24, A2CCPUC24-PRF. |
||
Computer link module |
|
||
|
A series computer link modules. |
||
|
|
||
|
|
Generic term for the module below. |
|
|
|
|
AJ71QC24, AJ71QC24-R2, AJ71QC24-R4, A1SJ71QC24, A1SJ71QC24-R2, |
Serial communication module |
|
QnA series |
AJ71QC24N, AJ71QC24N-R2, AJ71QC24N-R4, A1SJ71QC24N, A1SJ71QC24N- |
|
|
|
R2. |
|
|
Q series |
QJ71C24N, QJ71C24N-R2, QJ71C24N-R4, QJ71C24, QJ71C24-R2 |
A - 19 |
A - 19 |
(2) Other generic terms and abbreviations
|
This manual uses the following generic terms and abbreviations to explain the |
|
|
data-communication devices for the serial communication module. The |
|
|
names/model names are provided when it is necessary to explicitly identify the |
|
|
model being discussed. |
|
|
|
|
Generic term/abbreviation |
|
Description of generic term/abbreviation |
Buffer memory |
|
Generic term for memory of the intelligent function modules/special function modules used for |
|
storing data sent to or received from the PLC CPU (setting values, monitor values, etc.) |
|
|
|
|
Computer |
|
Generic term for one of the external devices with which data can be sent/received using the MC |
|
protocol or the bidirectional protocol. |
|
|
|
|
Data communication functions |
|
Generic term for MC protocol, non procedure protocol, and bidirectional protocol. |
|
|
Abbreviation for GX Configurator-SC (SW0D5C-QSCU-E or later). |
|
|
• Initial settings for the module, monitoring and testing can be performed without using a sequence |
|
|
program and without considering I/O signals or buffer memory. (Intelligent function utility) |
GX Configurator-SC |
|
• Converting sequence programs necessary for data communication processing into FB can |
|
|
shorten program production man-hours. |
|
|
In addition, the monitoring and analysis of the transmitted/received data by the communication |
|
|
network can shorten the system start-up time. (Protocol FB support function) |
GX Developer |
|
Abbreviation for GX Developer (SWnD5C-GPPW-E). (n in the model should be 4 or greater) |
I/F |
|
Abbreviation for interface |
Intelligent function module devices |
|
Generic term for buffer memory of the intelligent function modules used for storing data sent to or |
|
received from the PLC CPU (setting values, monitor values, etc.) |
|
|
|
|
|
|
Generic term for the Q series PLC modules that are operated by commands from the PLC CPU |
|
|
(equivalent to the A series PLC special function modules). |
|
|
Examples: |
Intelligent function modules |
|
• CC-Link interface module |
|
|
• A/D and D/A conversion modules |
|
|
• Ethernet interface module |
|
|
• Serial communication module |
MELSECNET/10 |
|
Abbreviation for MELSECNET/10 network system. |
MELSECNET/H |
|
Abbreviation for MELSECNET/H network system. |
MX Component |
|
Abbreviation for MX Component (SW0D5C-ACT-E or later). |
Operating Manual |
|
GX Configurator-SC Version 2 Operating Manual (Protocol FB support function) |
(Protocol FB support function) |
|
|
|
|
|
Opposite devices |
|
Generic term for computers, indicators, measuring instruments, ID modules, bar code readers, |
|
regulators, other serial communication modules, UC24, etc. that are connected to this serial |
|
(external devices) |
|
|
|
communication module for data communication. |
|
|
|
|
Reference Manual |
|
Q Corresponding MELSEC Communication Protocol Reference Manual |
RS-232 (interface) |
|
Abbreviation for interface conforming to RS-232. |
RS-422/485 (interface) |
|
Abbreviation for interface conforming to RS-422 and RS-485. |
|
|
Generic term for the A/QnA series PLC modules that are operated by commands from the PLC |
|
|
CPU (equivalent to the Q series PLC intelligent function modules). |
|
|
Examples: |
Special function modules |
|
• CC-Link interface module |
|
• A/D and D/A conversion modules |
|
|
|
|
|
|
• High-speed counter module |
|
|
• Ethernet interface module |
|
|
• Computer link module and serial communication module |
Switch setting |
|
Generic term for intelligent function module switch setting |
User's Manual (Application) or |
|
Q Corresponding Serial Communication Module User's Manual (Application) |
Application |
|
|
|
|
|
User's Manual (Basic) or Basic |
|
Q Corresponding Serial Communication Module User's Manual (Basic) |
A - 20 |
A - 20 |
The following table lists the definitions and descriptions of terminology used in this manual and related manuals for the Q series serial communication modules.
Terms |
Description |
|
|
One of the message formats for the serial communication module for performing communication |
|
|
using the MC protocol and ASCII code data. |
|
A compatible IC frame |
This is the same message format as when communicating using the protocol for the A series |
|
(Formats 1 to 4) |
computer link modules. Device memory read/write operations for the QCPU are allowed within |
|
|
the device range of the AnACPU. |
|
|
For details, see Chapter 5 of the Reference Manual. |
|
|
A communication procedure for the serial communication modules and one of the data |
|
Bidirectional protocol |
communication functions for communicating any data between the PLC CPU and an opposite |
|
|
device. Details are explained in Chapter 7. |
|
|
A mode of interface operation to communicate data with external devices using a function |
|
Independent operation |
specified in each communication protocol setting. Two interfaces of serial communication |
|
|
modules do not interact. |
|
|
The operation mode of each of the two interfaces for a serial communication module that are |
|
|
connected to external devices and linked to one another in order to send/receive data to/from the |
|
Linked operation |
external devices. |
|
The two interfaces communicate data using the identical data-communication function (MC |
||
|
||
|
protocol (identical format) or non procedure protocol) and the identical transmission |
|
|
specifications. (Linked operation using the bidirectional protocol is not allowed.) |
|
|
A communication procedure for the Q series serial communication modules or the Ethernet |
|
|
interface modules, and a name of communication method for accessing to the PLC CPU from an |
|
MELSEC communication protocol |
opposite device. (This is called the MC protocol in this manual.) |
|
(MC protocol) |
There are two communication methods; one uses ASCII code data and the other uses binary |
|
|
code data. |
|
|
Details are explained in the Reference Manual. |
|
|
This function registers character data (messages) to be sent to external devices (mainly printers) |
|
Message send function |
in the serial communication module as an user frame in advance, and sends the registered data |
|
(Printer function) |
for multiple user frames using the non procedure protocol (sent by an instruction from the PLC |
|
|
CPU). |
|
Multidrop connection |
A name of the connection when multiple external devices or other serial communication modules are |
|
connected in a 1:n or m:n mode using the serial communication module's RS-422/485 interface. |
||
|
||
|
An user's communication procedure and one of the data communication functions for |
|
Non procedure protocol |
communicating any data between the PLC CPU and an opposite device. Details are explained in |
|
|
Chapter 6. |
|
|
One of the message formats for the serial communication module for performing communication |
|
|
using the MC protocol and ASCII code data. |
|
QnA compatible 2C frame |
This is the same message format as the communication frame using the protocol for the QnA |
|
(Formats 1 to 4) |
series serial communication modules. |
|
|
• QnA compatible 2C frame (Formats 1 to 4): QnA simplified frame (Formats 1 to 4) |
|
|
Details are explained in Chapter 4 of the Reference Manual. |
|
|
One of the message formats for the serial communication module for performing communication |
|
QnA compatible 3C frame |
using the MC protocol and ASCII code data. |
|
This is the same message format as the communication frame using the protocol for the QnA |
||
(Formats 1 to 4) |
||
series serial communication modules. |
||
QnA compatible 4C frame |
• QnA compatible 3C frame (Formats 1 to 4): QnA frame (Formats 1 to 4) |
|
(Formats 1 to 4) |
||
• QnA compatible 4C frame (Formats 1 to 4): QnA extension frame (Formats 1 to 4) |
||
|
Details are explained in Chapter 3 of the Reference Manual. |
A - 21 |
A - 21 |
Terms |
|
Description |
|
|
One of the message formats for the serial communication module for performing communication |
|
|
using the MC protocol and binary code data. |
QnA compatible 4C frame |
|
This is the same message format as the communication frame using the protocol for the QnA |
|
(Format 5) |
series serial communication modules. |
|
|
• QnA compatible 4C frame (Format 5): QnA extension frame (Format 5) |
|
|
Details are explained in Chapter 3 of the Reference Manual. |
|
|
Data name when the fixed format portion of messages to be sent or received between a serial |
|
|
communication module and an opposite device is registered in the module and used for sending |
|
|
and receiving data with the functions listed below. (The contents of an user frame data should |
|
|
conform to the specifications of the opposite device). |
User frame |
|
The data array of the head and tail sections of a message (transmission control code, C24 station |
|
number, sum check, fixed data, etc.) to be sent and received is registered in the serial |
|
|
|
|
|
|
communication module before use. |
|
|
• MC protocol on-demand function. |
|
|
• Data communication function using the non procedure protocol. |
|
|
Details are explained in Chapter 9 of the User's Manual (Applications). |
A - 22 |
A - 22 |
The following lists the product configuration of the Q series serial communication modules.
Model |
|
|
Item name |
|
Quantity |
|
|
QJ71C24N serial communication module or QJ71C24 serial |
|
1 |
|||
|
communication module |
|
|
|||
QJ71C24N or QJ71C24 |
|
|
|
|||
Terminal resistor |
330 |
1/4 W (for RS-422 communication) |
2 |
|||
|
||||||
|
Terminal resistor |
110 |
1/2 W (for RS-485 communication) |
2 |
||
QJ71C24N-R2 or |
QJ71C24N-R2 serial communication module or QJ71C24-R2 serial |
1 |
||||
QJ71C24-R2 |
communication module |
|
|
|||
|
|
|
||||
|
QJ71C24N-R4 serial communication module |
|
1 |
|||
|
RS-422/485 plug-in connector socket block |
|
2 |
|||
QJ71C24N-R4 |
Terminal resistor |
330 |
1/4 W (for RS-422 communication) |
4 |
||
|
Terminal resistor |
110 |
1/2 W (for RS-485 communication) |
4 |
||
|
Plate terminal (for connecting a braided shield cable) |
|
4 |
|||
SW2D5C-QSCU-E |
GX Configurator-SC Version 2 (1-license product) |
(CD-ROM) |
1 |
|||
SW2D5C-QSCU-EA |
GX Configurator-SC Version 2 (Multiple-license product) |
(CD-ROM) |
1 |
A - 23 |
A - 23 |
MELSEC-Q
|
1 OVERVIEW |
|
1 |
||
This manual describes the specifications for the QJ71C24N, QJ71C24N-R2, |
||
|
QJ71C24N-R4, QJ71C24, QJ71C24-R2 serial communication module (hereinafter |
|
|
||
|
referred to as "Q series C24"), as well as the procedures prior to starting the operation, |
|
|
maintenance, inspection, data communication methods for use with external devices |
and troubleshooting.
When applying the following program examples to the actual system, make sure to examine the applicability and confirm that it will not cause system control problems.
The Q series C24 is a module that connects the Q series PLC CPU and an external device using an RS-232 or RS-422/485 line for serial communication, in order to achieve the data communication described below.
By using a modem/terminal adapter, a public line (analog/digital) can be used for data communication with a remote location.
• PLC data collection/change from the external devices
(See the MELSEC Communication Protocol Reference Manual.)
•PLC monitoring and control from the external devices (See Chapter 2 of the User's Manual (Application).)
•Data receiving and sending in any formats that conform to the external device specifications (See (2) and (3) of Section 1.2.)
•Collection of measured data from a measuring device (See (2) of Section 1.2.)
•Operation of a PLC CPU that is connected to a personal computer (hereinafter abbreviated as PC) installed with GX Developer (SW4D5C-GPPW-E or later, hereinafter abbreviated as GX Developer). (See the GX Developer Manual.)
•Collection of measured data
• Collection of read data
1 - 1
QJ71C24-R2
RUN |
ERR. |
NEU |
NEU |
CH.1 SD |
SD CH.2 |
RD |
RD |
CH. 1
•PLC data collection/change
•PLC monitoring and control from an external device
•Data receiving and sending in any formats that conform to the external device specifications
•GX Developer
•File writing/reading
•Device monitoring/testing
Being a convenient means of connection among different devices (PCs, display devices, printers, etc.), the serial communication line is the most widely used medium on the market today.
1 - 1
1 OVERVIEW
MELSEC-Q
The following describes the features of the Q series C24. |
1 |
|
|
(1)Data communication based on the MELSEC communication protocol (hereinafter referred to as the MC protocol)
(Details are explained in the MELSEC Communication Protocol Reference Manual.)
(a)External devices can read/write the PLC device data and sequence programs, and can monitor PLC equipment status.
With the exception of the on-demand function described below, the PLC does not require a sequence program because the PLC sends and receives data based solely on commands from external devices.
(b)Using the on-demand function, data can be sent from the PLC CPU to the external devices in each frame format of the MC protocol.
(c)Data communication can be performed using a program at the external device side that has been created for communicating data with conventional A/QnA series computer link module/serial communication modules.
(d)If the external device is a PC running one of the basic operation systems below, it is possible to create a communication program for the external device without considering the detailed MC protocol (transmission/reception procedures) using one of the following separately sold communication support tools.
(Supported basic operation systems)
•Microsoft® Windows® 95 Operating System
•Microsoft® Windows® 98 Operating System
•Microsoft® Windows NT® Workstation Operating System Version 4.0
•Microsoft® Windows® Millennium Edition Operating System
•Microsoft® Windows® 2000 Professional Operating System
•Microsoft® Windows® XP Professional Operating System
•Microsoft® Windows® XP Home Edition Operating System
Depending on the version of MX Component used, different operating systems are supported.
See the manual of MX Component for the details. (Separately sold communication support tools)
•MX Component (SW0D5C-ACT-E or later, hereinafter abbreviated as MX Component)
See Appendix 7 for the overview of MX Component.
1 - 2 |
1 - 2 |
1 OVERVIEW
MELSEC |
Q25HCPU |
|
QJ71C24 |
|
|
QJ71E71 |
||
POWER |
MODE |
|
|
|
|
RUN |
ERR. |
|
|
CH1. |
|
CH2. |
INIT. |
COM.ERR |
|||
|
RUN |
|
|
|
|
OPEN |
|
|
|
|
|
|
|
SD |
RD |
||
|
ERR. |
|
|
CH1. |
|
|
|
|
|
USER |
|
|
|
10BASE-T |
|||
|
BAT. |
|
|
|
|
|
|
|
|
BOOT |
|
RS-232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CH.2 |
|
|
|
|
|
|
|
|
SDA |
|
|
|
|
|
PULL |
|
|
SG |
|
1 |
|
|
|
USB |
|
SDB |
2 |
|
|
|
|
|
|
|
(FG) |
|
3 |
|
|
|
|
|
|
|
RDA |
4 |
|
|
|
|
|
RS-232 |
|
(FG) |
|
5 |
|
|
|
|
|
RDB |
6 |
|
|
|
|
|
MITSUBISHI |
|
|
RS-422 |
|
7 |
|
|
|
|
|
/485 |
|
|
|
|
MELSEC |
Q25HCPU |
|
|
QJ71C24 |
|
|
QJ71E71 |
|||
POWER |
MODE |
|
|
|
|
|
RUN |
ERR. |
||
|
|
CH1. |
|
CH2. |
INIT. |
COM.ERR |
||||
|
RUN |
|
|
|
|
|
OPEN |
|
|
|
|
|
|
|
|
|
SD |
RD |
|||
|
ERR. |
|
|
|
CH1. |
|
|
|
|
|
|
USER |
|
|
|
|
|
10BASE-T |
|||
|
BAT. |
|
|
|
|
|
|
|
|
|
|
BOOT |
|
|
RS-232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CH.2 |
|
|
|
|
|
|
|
|
|
|
SDA |
|
|
|
|
|
|
PULL |
|
|
|
SG |
|
1 |
|
|
|
|
USB |
|
|
SDB |
2 |
|
|
|
|
|
|
|
|
|
(FG) |
|
3 |
|
|
|
|
|
|
|
|
|
RDA |
4 |
|
|
|
|
|
|
RS-232 |
|
|
(FG) |
|
5 |
|
|
|
|
|
|
|
RDB |
6 |
|
|
|
|
|
|
MITSUBISHI |
|
|
|
RS-422 |
|
7 |
|
|
|
|
|
|
|
/485 |
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
Command
Command request data
MELSECNET/H (MELSECNET/H mode)
MELSEC |
Q25HCPU |
|
QJ71C24 |
|
|
QJ71E71 |
||
POWER |
MODE |
|
|
|
|
RUN |
ERR. |
|
|
CH1. |
|
CH2. |
INIT. |
COM.ERR |
|||
|
RUN |
|
|
|
|
OPEN |
|
|
|
|
|
|
|
SD |
RD |
||
|
ERR. |
|
|
CH1. |
|
|
|
|
|
USER |
|
|
|
10BASE-T |
|||
|
BAT. |
|
|
|
|
|
|
|
|
BOOT |
|
RS-232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CH.2 |
|
|
|
|
|
|
|
|
SDA |
|
|
|
|
|
PULL |
|
|
SG |
|
1 |
|
|
|
USB |
|
SDB |
2 |
|
|
|
|
|
|
|
(FG) |
|
3 |
|
|
|
|
|
|
|
RDA |
4 |
|
|
|
|
|
RS-232 |
|
(FG) |
|
5 |
|
|
|
|
|
RDB |
6 |
|
|
|
|
|
MITSUBISHI |
|
|
RS-422 |
|
7 |
|
|
|
|
|
/485 |
|
|
|
|
MELSEC-Q
In the MELSECNET/10 mode, other stations (including the A/QnA series PLC CPUs) can be accessed during data link operation.
The MC protocol is equivalent to the communication function using a dedicated protocol that is supported by the A/QnA series computer link module/serial communication modules.
(2) Data communication using the non procedure protocol
(Details are explained in Chapter 6 and the User's Manual (Application).)
(a)Data can be transferred in any message formats that conform to the specifications of external devices (measuring devices, PCs, etc.).
(b)Fixed or variable length messages can be received in accordance with the external device specifications.
• How to receive the variable length data
The external device sends data by adding at the end of the message the end-code data (CR+LF or any one-byte data) that is set for the Q series C24.
• How to receive the fixed length data
The external device sends the amount of data equivalent to the size of the end data that is set for the Q series C24.
MELSEC |
Q25HCPU |
QJ71E71 |
ERR. |
QJ71C24 |
|
|||
POWER |
MODE |
RUN |
CH1. |
|
CH2. |
|
||
INIT. |
COM.ERR |
|
|
|||||
|
RUN |
OPEN |
|
|
|
|
|
|
|
SD |
RD |
|
|
|
|
||
|
ERR. |
|
|
|
|
CH1. |
|
|
|
USER |
10BASE-T |
|
|
||||
|
BAT. |
|
|
|
|
|
|
|
|
BOOT |
|
|
|
RS-232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10BASE |
|
|
CH.2 |
|
|
|
|
|
|
|
|
SDA |
|
|
|
PULL |
|
|
|
|
SG |
|
1 |
|
USB |
|
|
|
SDB |
2 |
|
|
|
|
|
|
|
(FG) |
|
3 |
|
|
|
|
|
|
|
RDA |
4 |
|
|
|
RS-232 |
|
|
|
(FG) |
|
5 |
|
|
+12V |
|
|
RDB |
6 |
|
|
|
MITSUBISHI |
|
12G |
|
|
RS-422 |
|
7 |
|
|
|
|
|
/485 |
|
|
Reception data |
End |
|
code |
||
|
(When receiving variable length data)
(c)ASCII code data can be used for communication using the ASCII-BIN conversion function.
MELSEC |
Q25HCPU |
QJ71E71 |
ERR. |
QJ71C24 |
|
||||
POWER |
MODE |
RUN |
CH1. |
|
CH2. |
|
|||
INIT. |
COM.ERR |
|
|
||||||
|
RUN |
OPEN |
|
|
|
|
|
|
|
|
SD |
RD |
|
|
|
|
|||
|
ERR. |
10BASE-T |
|
|
CH1. |
|
|||
|
USER |
|
|
|
|
|
|
|
|
|
BAT. |
|
|
|
|
|
|
|
|
|
BOOT |
|
|
|
|
RS-232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10BASE |
|
|
|
CH.2 |
|
|
|
|
|
|
|
|
|
SDA |
|
|
|
PULL |
|
|
|
|
|
SG |
|
1 |
|
USB |
|
|
|
|
SDB |
2 |
|
|
|
|
|
|
|
|
(FG) |
|
3 |
|
|
|
|
|
|
|
|
RDA |
4 |
|
|
|
RS-232 |
|
|
|
|
(FG) |
|
5 |
|
|
+12V |
|
|
|
RDB |
6 |
|
|
|
MITSUBISHI |
|
12G |
|
|
|
RS-422 |
|
7 |
|
|
|
|
|
|
/485 |
|
|
|
|
QJ71C24 |
ASCII |
||
|
data |
|||
|
ASCII-BIN |
|||
|
|
|||
|
|
|||
Binary |
conversion |
|
||
|
||||
|
|
|
|
|
data |
|
|
|
|
Binary |
|
|||
|
|
|||
|
data |
|
||
|
|
1 - 3 |
1 - 3 |
1 OVERVIEW
MELSEC-Q
MELSEC |
Q25HCPU |
QJ71E71 |
|
|
|
|
QJ71C24 |
|||
RUN |
ERR. |
|
|
|
|
|||||
POWER |
MODE |
INIT. |
COM.ERR |
CH1. |
|
CH2. |
||||
|
RUN |
OPEN |
|
|
|
|
|
|
|
|
|
SD |
RD |
|
|
|
|
||||
|
ERR. |
|
|
|
|
|
|
|
CH1. |
|
|
10BASE-T |
|
|
|||||||
|
USER |
|
|
|||||||
|
|
|
|
|
|
|
|
|
|
|
|
BAT. |
|
|
|
|
|
|
|
|
|
|
BOOT |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RS-232 |
|
|
|
|
|
10BASE |
|
|
|
|
CH.2 |
|
|
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
SDA |
|
|
|
PULL |
|
|
|
|
|
|
SG |
|
|
1 |
USB |
|
|
|
|
|
SDB |
|
2 |
|
|
|
|
|
|
|
|
(FG) |
|
|
3 |
|
|
|
|
|
|
|
|
RDA |
|
4 |
|
|
RS-232 |
|
|
|
|
|
(FG) |
|
|
5 |
|
+12V |
|
|
|
|
RDB |
|
6 |
||
|
|
12G |
|
|
|
|
|
|
|
|
MITSUBISHI |
|
|
|
|
|
RS-422 |
|
|
7 |
|
|
|
|
|
|
|
/485 |
|
|
|
(d)It is necessary to create a sequence program for communication control that conforms to the external device.
(e)Communication can be performed using an user frame by registering the fixed format portion of the head and tail sections of a message as an user frame.
•When sending data, the Q series C24 adds an user frame to any data specified by the user.
•When receiving data, the Q series C24 transfers any data excluding the user frame to the PLC CPU.
|
|
|
|
|
|
|
When receiving data |
|
|
|
|
|
|
|
STX |
|
Any data format |
|
ETX |
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|||
|
|
|
|
|
ETX |
|
Any data format |
|
STX |
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
When sending data |
|
|
|
|
|
|
|
|
|
|
|
(f)It is possible to clear the current reception data without interrupting the transmission processing by using the dedicated instruction "CSET."
(3) Data communication using the bidirectional protocol
MELSEC |
Q25HCPU |
QJ71E71 |
|
|
QJ71C24 |
|||
RUN |
ERR. |
|
|
|
|
|||
POWER |
MODE |
|
|
|
|
|||
INIT. |
COM.ERR |
CH1. |
|
CH2. |
||||
|
RUN |
OPEN |
|
|
|
|
|
|
|
SD |
RD |
|
|
|
|
||
|
ERR. |
10BASE-T |
|
|
CH1. |
|||
|
USER |
|
|
|||||
|
|
|
|
|
|
|
|
|
|
BAT. |
|
|
|
|
|
|
|
|
BOOT |
|
|
|
|
|
|
|
|
|
|
|
|
RS-232 |
|
|
|
|
|
10BASE |
|
|
CH.2 |
|
|
|
|
|
|
|
|
SDA |
|
|
|
PULL |
|
|
|
|
SG |
|
|
1 |
USB |
|
|
|
SDB |
|
2 |
|
|
|
|
|
|
|
|
|||
|
|
|
|
(FG) |
|
|
3 |
|
|
|
|
|
|
RDA |
|
4 |
|
|
RS-232 |
|
|
|
(FG) |
|
|
5 |
|
+12V |
|
|
RDB |
|
6 |
|
|
|
|
12G |
|
|
|
|
|
|
MITSUBISHI |
|
|
|
RS-422 |
|
|
7 |
|
|
|
|
|
/485 |
|
|
|
(Details are explained in Chapter 7 and the User's Manual (Application).)
(a)In communication between PLC CPUs and communication with an external device for which transmission/receive control programming is allowed, data communication is performed in a sequence of "data transmission and response receipt".
(b)Error check of received data can be performed using the sum-check code, while the occurrence of a reception error at an external device can be checked via an ACK/NAK response.
|
|
|
|
ENQ |
|
Data length |
|
Any data |
|
Sum check |
|||
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
code |
ACK |
|||||
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sending completed normally |
|
|
|||||||
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
Error |
|
NAK |
||
|
|
|
|
Sending completed |
code |
|
|
||||||
|
|
|
|
|
|
|
|||||||
|
|
|
|
abnormally |
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
(c)ASCII code data can be used for communication using the ASCII-BIN conversion function.
QCPU |
|
QJ71C24 |
ASCII |
||||||
|
data |
||||||||
|
Q25HCPU |
|
|
ASCII-BIN |
|||||
|
RUN |
|
|
|
|
||||
|
MODE |
|
|
|
|
|
|
|
|
|
ERR. |
|
|
conversion |
|
|
|||
|
BOOT |
|
|
|
|
||||
|
USER |
|
|
|
|
|
|
|
|
|
BAT. |
|
|
|
|
|
|
|
|
|
|
|
|
Binary |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data |
|
|
|
|
|
|
USB |
|
|
Binary |
|
|
|||
|
|
|
|
|
|
||||
|
RS-232 |
|
|
|
data |
|
|
||
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
1 - 4 |
1 - 4 |
1 OVERVIEW
(4) Monitoring the PLC CPU
MELSEC-Q
(Details are explained in the User's Manual (Application).)
(a)The self-station's PLC CPU can be monitored at time intervals set by the user without using a sequence program.
1)The following monitoring information can be sent/notified as the result of monitoring the PLC CPU.
•Transmission of information on devices and the PLC CPU status to be monitored. (It is also possible to send the monitoring information through combined use of the modem function.)
•Notification of a notification message (string data) registered as the connection data of the modem function, through combined use of the modem function.
2)The user can select either one of the following timing choices at which to send the PLC CPU monitoring result to the external device.
•Send/notify every time the PLC CPU is monitored (periodic transmission).
•Send/notify when the information read from the PLC CPU matches the conditions set by the user (conditional transmission).
(b)The PLC CPU monitoring function can be used in communication using the MC or non procedure protocol.
MELSEC |
Q25HCPU |
QJ71E71 |
|
|
QJ71C24 |
|
||
POWER |
MODE |
RUN |
ERR. |
CH1. |
|
CH2. |
|
|
INIT. |
COM.ERR |
|
|
|||||
|
RUN |
OPEN |
RD |
|
|
|
|
|
|
ERR. |
SD |
|
|
|
|
||
|
USER |
10BASE-T |
|
CH1. |
|
|||
|
BAT. |
|
|
|
|
|
|
|
|
BOOT |
|
|
|
RS-232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10BASE |
|
|
CH.2 |
|
|
|
|
|
|
|
|
SDA |
|
|
|
PULL |
|
|
|
|
SG |
|
1 |
|
USB |
|
|
|
(FG) |
2 |
3 |
|
|
|
|
|
|
|
SDB |
|
|
|
|
|
|
|
|
RDA |
4 |
|
|
|
RS-232 |
|
|
|
(FG) |
|
5 |
|
|
+12V |
|
|
RDB |
6 |
|
|
|
MITSUBISHI |
|
12G |
|
|
RS-422 |
|
7 |
|
|
|
|
|
/485 |
|
|
|
|
|
|
|
|
|
|
|||
MELSEC |
Q25HCPU |
QJ71E71 |
|
|
QJ71C24 |
|
||
RUN |
ERR. |
|
|
|
|
|||
POWER |
MODE |
CH1. |
|
CH2. |
|
|||
INIT. |
COM.ERR |
|
|
|||||
|
RUN |
OPEN |
|
|
|
|
|
|
|
SD |
RD |
|
|
|
|
||
|
ERR. |
|
|
|
|
CH1. |
|
|
|
USER |
10BASE-T |
|
|
||||
|
BAT. |
|
|
|
|
|
|
|
|
BOOT |
|
|
|
RS-232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10BASE |
|
|
CH.2 |
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
SDA |
|
|
|
PULL |
|
|
|
|
SG |
|
1 |
|
USB |
|
|
|
SDB |
2 |
|
|
|
|
|
|
|
(FG) |
|
3 |
|
|
|
|
|
|
|
RDA |
4 |
|
|
|
RS-232 |
|
|
|
(FG) |
|
5 |
|
|
+12V |
|
|
RDB |
6 |
|
|
|
MITSUBISHI |
|
12G |
|
|
RS-422 |
|
7 |
|
|
|
|
|
/485 |
|
|
|
Data
|
|
|
|
|
Modem |
|
Notification |
|
Pager |
|
message |
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MELSEC
PULL
MITSUBISHI
(5) Remote communications using the modem function
(Details are explained in the User's Manual (Application).)
(a)Data communication can be performed with a remotely located external device.
(b)Modem initialization and line connection/disconnection can be performed.
(c)Data communication can be performed using the MC, non procedure or
bidirectional protocol.
|
Q25HCPU |
QJ71E71 |
QJ71C24 |
|
|
|
POWER |
MODE |
RUN |
ERR. |
|
|
|
|
INIT. |
COM.ERR CH1. |
CH2. |
|
|
|
|
|
|
||||
|
RUN |
OPEN |
|
|
|
|
|
|
SD |
RD |
|
|
|
ERR.
10BASE-T |
CH1. |
|
USER |
|
|
BAT. |
|
|
BOOT |
|
|
|
RS-232 |
|
|
|
|
Modem |
Modem |
10BASE |
CH.2 |
|
|
|
|
|
|
|
SDA |
|
|
|
|
|
|
|
SG |
|
1 |
|
|
|
|
USB |
SDB |
2 |
|
|
|
|
|
(FG) |
|
3 |
|
|
|
|
|
|
RDA |
4 |
|
|
|
|
|
RS-232 + 12V |
(FG) |
|
5 |
|
|
|
|
RDB |
6 |
|
|
|
|
|
|
|
|
|
|
|
|||
12G |
RS-422 |
|
7 |
|
|
|
|
|
/485 |
|
|
|
|
|
(6)Initial settings and communication settings without using a sequence program
Various initial settings can be performed using the GX Congifurator-SC (SW0D5C-QSCU-E or later, hereinafter abbreviated as GX Configurator-SC).
1 - 5 |
1 - 5 |