Mitsubishi Electronics QnUCPU User manual

Category
Measuring, testing & control
Type
User manual
A - 1
SAFETY PRECAUTIONS
(Read these precautions before using this product.)
Before using this product, please read this manual and the relevant manuals carefully and pay full attention
to safety to handle the product correctly.
In this manual, the safety precautions are classified into two levels: " WARNING" and " CAUTION".
Under some circumstances, failure to observe the precautions given under " CAUTION" may lead to
serious consequences.
Make sure that the end users read this manual and then keep the manual in a safe place for future
reference.
WARNING
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 minor or moderate injury or property damage.
A - 2
[Design Precautions]
WARNING
Configure safety circuits external to the programmable controller to ensure that the entire system
operates safely even when a fault occurs in the external power supply or the programmable
controller. Failure to do so may result in an accident due to an incorrect output or malfunction.
(1) Configure external safety circuits, such as an emergency stop circuit, protection circuit, and
protective interlock circuit for forward/reverse operation or upper/lower limit positioning.
(2) The programmable controller stops its operation upon detection of the following status, and the
output status of the system will be as shown below.
All outputs may turn on when an error occurs in the part, such as I/O control part, where the CPU
module cannot detect any error. To ensure safety operation in such a case, provide a safety
mechanism or a fail-safe circuit external to the programmable controller. For a fail-safe circuit
example, refer to Chapter 10 LOADING AND INSTALLATION in the QCPU User's Manual
(Hardware Design, Maintenance and Inspection).
(3) Outputs may remain on or off due to a failure of an output module relay or transistor. Configure
an external circuit for monitoring output signals that could cause a serious accident.
Output
All outputs are turned off.
All outputs are held or turned off according to
the parameter setting.
Overcurrent or overvoltage protection of the power supply module
is activated.
The CPU module detects an error such as a watchdog timer error
by the self-diagnostic function.
Status
A - 3
[Design Precautions]
WARNING
In an output module, when a load current exceeding the rated current or an overcurrent caused by a
load short-circuit flows for a long time, it may cause smoke and fire. To prevent this, configure an
external safety circuit, such as a fuse.
Configure a circuit so that the programmable controller is turned on first and then the external power
supply.
If the external power supply is turned on first, an accident may occur due to an incorrect output or
malfunction.
For the operating status of each station after a communication failure, refer to relevant manuals for
the network.
Incorrect output or malfunction due to a communication failure may result in an accident.
When changing data of the running programmable controller from a peripheral connected to the
CPU module or from a personal computer connected to an intelligent function module, configure an
interlock circuit in the sequence program to ensure that the entire system will always operate safely.
For program modification and operating status change, read relevant manuals carefully and ensure
the safety before operation.
Especially, in the case of a control from an external device to a remote programmable controller,
immediate action cannot be taken for a problem on the programmable controller due to a
communication failure.
To prevent this, configure an interlock circuit in the sequence program, and determine corrective
actions to be taken between the external device and CPU module in case of a communication
failure.
CAUTION
Do not install the control lines or communication cables together with the main circuit lines or power
cables.
Keep a distance of 100mm (3.94 inches) or more between them.
Failure to do so may result in malfunction due to noise.
When a device such as a lamp, heater, or solenoid valve is controlled through an output module, a
large current (approximately ten times greater than normal) may flow when the output is turned from
off to on.
Take measures such as replacing the module with one having a sufficient current rating.
A - 4
[Installation Precautions]
CAUTION
Use the programmable controller in an environment that meets the general specifications in the
QCPU User's Manual (Hardware Design, Maintenance and Inspection).
Failure to do so may result in electric shock, fire, malfunction, or damage to or deterioration of the
product.
To mount the module, while pressing the module mounting lever located in the lower part of the
module, fully insert the module fixing projection(s) into the hole(s) in the base unit and press the
module until it snaps into place.
Incorrect mounting may cause malfunction, failure or drop of the module.
When using the programmable controller in an environment of frequent vibrations, fix the module
with a screw.
Tighten the screw within the specified torque range.
Undertightening can cause drop of the screw, short circuit or malfunction.
Overtightening can damage the screw and/or module, resulting in drop, short circuit, or malfunction.
When using an extension cable, connect it to the extension cable connector of the base unit securely.
Check the connection for looseness.
Poor contact may cause incorrect input or output.
When using a memory card, fully insert it into the memory card slot.
Check that it is inserted completely.
Poor contact may cause malfunction.
Shut off the external power supply for the system in all phases before mounting or removing the
module. Failure to do so may result in damage to the product.
A module can be replaced online (while power is on) on any MELSECNET/H remote I/O station or in
the system where a CPU module supporting the online module change function is used.
Note that there are restrictions on the modules that can be replaced online, and each module has its
predetermined replacement procedure.
For details, refer to the relevant sections in the QCPU User's Manual (Hardware Design,
Maintenance and Inspection) and in the manual for the corresponding module.
Do not directly touch any conductive part of the module.
Doing so can cause malfunction or failure of the module.
When using a Motion CPU module and modules designed for motion control, check that the
combinations of these modules are correct before applying power.
The modules may be damaged if the combination is incorrect.
For details, refer to the user's manual for the Motion CPU module.
A - 5
[Wiring Precautions]
WARNING
Shut off the external power supply for the system in all phases before wiring.
Failure to do so may result in electric shock or damage to the product.
After wiring, attach the included terminal cover to the module before turning it on for operation.
Failure to do so may result in electric shock.
CAUTION
Ground the FG and LG terminals to the protective ground conductor dedicated to the programmable
controller.
Failure to do so may result in electric shock or malfunction.
Use applicable solderless terminals and tighten them within the specified torque range. If any spade
solderless terminal is used, it may be disconnected when the terminal screw comes loose, resulting
in failure.
Check the rated voltage and terminal layout before wiring to the module, and connect the cables
correctly.
Connecting a power supply with a different voltage rating or incorrect wiring may cause a fire or
failure.
Connectors for external connection must be crimped or pressed with the tool specified by the
manufacturer, or must be correctly soldered.
Incomplete connections could result in short circuit, fire, or malfunction.
Tighten the terminal screw within the specified torque range.
Undertightening can cause short circuit, fire, or malfunction.
Overtightening can damage the screw and/or module, resulting in drop, short circuit, or malfunction.
Prevent foreign matter such as dust or wire chips from entering the module.
Such foreign matter can cause a fire, failure, or malfunction.
A - 6
[Wiring Precautions]
[Startup and Maintenance Precautions]
WARNING
A protective film is attached to the top of the module to prevent foreign matter, such as wire chips,
from entering the module during wiring.
Do not remove the film during wiring.
Remove it for heat dissipation before system operation.
Mitsubishi programmable controllers must be installed in control panels.
Connect the main power supply to the power supply module in the control panel through a relay
terminal block.
Wiring and replacement of a power supply module must be performed by maintenance personnel
who is familiar with protection against electric shock. (For wiring methods, refer to the QCPU User's
Manual (Hardware Design, Maintenance and Inspection)).
WARNING
Do not touch any terminal while power is on.
Doing so will cause electric shock.
Correctly connect the battery connector.
Do not charge, disassemble, heat, short-circuit, solder, or throw the battery into the fire.
Doing so will cause the battery to produce heat, explode, or ignite, resulting in injury and fire.
Shut off the external power supply for the system in all phases before cleaning the module or
retightening the terminal screws or module fixing screws.
Failure to do so may result in electric shock.
Undertightening the terminal screws can cause short circuit or malfunction.
Overtightening can damage the screw and/or module, resulting in drop, short circuit, or malfunction.
A - 7
[Startup and Maintenance Precautions]
CAUTION
Before performing online operations (especially, program modification, forced output, and operation
status change) for the running CPU module from the peripheral connected, read relevant manuals
carefully and ensure the safety.
Improper operation may damage machines or cause accidents.
Do not disassemble or modify the modules.
Doing so may cause failure, malfunction, injury, or a fire.
Use any radio communication device such as a cellular phone or PHS (Personal Handy-phone
System) more than 25cm (9.85 inches) away in all directions from the programmable controller.
Failure to do so may cause malfunction.
Shut off the external power supply for the system in all phases before mounting or removing the
module. Failure to do so may cause the module to fail or malfunction.
A module can be replaced online (while power is on) on any MELSECNET/H remote I/O station or in
the system where a CPU module supporting the online module change function is used.
Note that there are restrictions on the modules that can be replaced online, and each module has its
predetermined replacement procedure.
For details, refer to the relevant sections in the QCPU User's Manual (Hardware Design,
Maintenance and Inspection) and in the manual for the corresponding module.
After the first use of the product, do not mount/remove the module to/from the base unit, and the
terminal block to/from the module more than 50 times (IEC 61131-2 compliant) respectively.
Exceeding the limit of 50 times may cause malfunction.
Do not drop or apply shock to the battery to be installed in the module.
Doing so may damage the battery, causing the battery fluid to leak inside the battery.
If the battery is dropped or any shock is applied to it, dispose of it without using.
Before handling the module, touch a grounded metal object to discharge the static electricity from
the human body.
Failure to do so may cause the module to fail or malfunction.
A - 8
[Disposal Precautions]
[Transportation Precautions]
CAUTION
When disposing of this product, treat it as industrial waste.
When disposing of batteries, separate them from other wastes according to the local regulations.
(For details of the battery directive in EU member states, refer to the QCPU User's Manual
(Hardware Design, Maintenance and Inspection).)
CAUTION
When transporting lithium batteries, follow the transportation regulations.
(For details of the regulated models, refer to the QCPU User's Manual (Hardware Design,
Maintenance and Inspection).)
A - 9
CONDITIONS OF USE FOR THE PRODUCT
(1) Mitsubishi programmable controller ("the PRODUCT") shall be used in conditions;
i) where any problem, fault or failure occurring in the PRODUCT, if any, shall not lead to any major
or serious accident; and
ii) where the backup and fail-safe function are systematically or automatically provided outside of
the PRODUCT for the case of any problem, fault or failure occurring in the PRODUCT.
(2) The PRODUCT has been designed and manufactured for the purpose of being used in general
industries.
MITSUBISHI SHALL HAVE NO RESPONSIBILITY OR LIABILITY (INCLUDING, BUT NOT
LIMITED TO ANY AND ALL RESPONSIBILITY OR LIABILITY BASED ON CONTRACT,
WARRANTY, TORT, PRODUCT LIABILITY) FOR ANY INJURY OR DEATH TO PERSONS OR
LOSS OR DAMAGE TO PROPERTY CAUSED BY the PRODUCT THAT ARE OPERATED OR
USED IN APPLICATION NOT INTENDED OR EXCLUDED BY INSTRUCTIONS, PRECAUTIONS,
OR WARNING CONTAINED IN MITSUBISHI'S USER, INSTRUCTION AND/OR SAFETY
MANUALS, TECHNICAL BULLETINS AND GUIDELINES FOR the PRODUCT.
("Prohibited Application")
Prohibited Applications include, but not limited to, the use of the PRODUCT in;
• Nuclear Power Plants and any other power plants operated by Power companies, and/or any
other cases in which the public could be affected if any problem or fault occurs in the PRODUCT.
• Railway companies or Public service purposes, and/or any other cases in which establishment of
a special quality assurance system is required by the Purchaser or End User.
• Aircraft or Aerospace, Medical applications, Train equipment, transport equipment such as
Elevator and Escalator, Incineration and Fuel devices, Vehicles, Manned transportation,
Equipment for Recreation and Amusement, and Safety devices, handling of Nuclear or
Hazardous Materials or Chemicals, Mining and Drilling, and/or other applications where there is a
significant risk of injury to the public or property.
Notwithstanding the above, restrictions Mitsubishi may in its sole discretion, authorize use of the
PRODUCT in one or more of the Prohibited Applications, provided that the usage of the PRODUCT
is limited only for the specific applications agreed to by Mitsubishi and provided further that no
special quality assurance or fail-safe, redundant or other safety features which exceed the general
specifications of the PRODUCTs are required. For details, please contact the Mitsubishi
representative in your region.
A - 10
REVISIONS
*The manual number is given on the bottom left of the back cover.
Japanese manual version SH-080802-D
2008 MITSUBISHI ELECTRIC CORPORATION
Print date Manual number Revision
Dec., 2008 SH(NA)-080807ENG-A
First edition
Mar., 2009 SH(NA)-080807ENG-B Revision because of function addition to Built-in Ethernet port QCPU (first five
digits of the serial number is "11012" or later)
Partial correction
SAFETY PRECAUTIONS, INTRODUCTION, MANUALS, MANUAL PAGE
ORGANIZATION, GENERIC TERMS AND ABBREVIATIONS, Section 1.3, 1.6,
2.2.2, 2.2.3, 2.3, 2.3.3, 2.3.4, 2.4, CHAPTER 3, Section 3.3, CHAPTER 4, Sec-
tion 4.1.2, 4.2.2, 4.2.3, 5.1.1, 5.1.3, 5.1.6, 5.1.7, 5.1.8, 5.1.10, 6.1, 6.3, 6.4, 6.5,
6.6.1, 6.6.5, 6.11.1, 6.11.3, 6.11.4, 6.12.1, 6.13.3, 6.14, 6.15, 6.15.1, 6.15.2,
6.16, 6.17, 6.18, 6.20, 6.28, 6.30, 7.1.2, 8.2, 8.3, 9.2, 9.2.5, 9.2.11, 9.7.4, 9.11,
9.14.2, 11.5, Appendix 1, Appendix 2, Appendix 3.1, Appendix 3.3.2, Appendix 4
Addition
Appendix 3.4.2
Jul., 2009 SH(NA)-080807ENG-C Revision because of function addition to the Universal model QCPU (first five
digits of the serial number is "11043" or later)
Partial correction
Section 5.1.1, 5.1.5, 5.3.3, 6.1, 6.18, 6.21.2, 6.28, 8.1, 9.2.10, 9.6.1, 10.1.3, 12.2,
Appendix 1, Appendix 2, Appendix 3.1.2, Appendix 3.2
Addition
Section 6.31, 6.32
Nov., 2009 SH(NA)-080807ENG-D Partial correction
SAFETY PRECAUTIONS, Section 4.2.2, 9.6.1, 9.7.4, Appendix 3.1.1,
Appendix 3.1.2
Addition
CONDITIONS OF USE FOR THE PRODUCT
This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses. Mit-
subishi 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.
C
A - 11
INTRODUCTION
This manual describes the memory maps, functions, programs, I/O number assignment, and devices of the Universal model
QCPU.
Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the
functions and performance of the Q series programmable controller to handle the product correctly.
Relevant CPU module
Remark
This manual does not describe the specifications of the power supply modules, base units, extension cables, memory
cards, and batteries.
For details, refer to the following.
QCPU User's Manual (Hardware Design, Maintenance and Inspection)
For multiple CPU systems, refer to the following.
QCPU User's Manual (Multiple CPU System)
CPU module Model
Universal model QCPU
Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU, Q03UD(E)CPU,
Q04UD(E)HCPU, Q06UD(E)HCPU, Q10UD(E)HCPU,
Q13UD(E)HCPU, Q20UD(E)HCPU, Q26UD(E)HCPU
CONTENTS
A - 12
CONTENTS
SAFETY PRECAUTIONS......................................................................................................................A - 1
CONDITIONS OF USE FOR THE PRODUCT ......................................................................................A - 9
REVISIONS ...........................................................................................................................................A - 10
INTRODUCTION ...................................................................................................................................A - 11
MANUALS .............................................................................................................................................A - 18
MANUAL PAGE ORGANIZATION.........................................................................................................A - 20
GENERIC TERMS AND ABBREVIATIONS ..........................................................................................A - 21
CHAPTER1 OVERVIEW 1-1 to 1-14
1.1 Processing Order in the CPU Module....................................................................................1 - 1
1.2 Storing and Executing Programs ...........................................................................................1 - 2
1.3 Structured Programming........................................................................................................1 - 3
1.4 Devices and Instructions Useful for Programming................................................................. 1 - 6
1.5 Features................................................................................................................................. 1 - 11
1.6 Checking Serial Number and Function Version ..................................................................... 1 - 13
CHAPTER2 SEQUENCE PROGRAMS 2-1 to 2-43
2.1 Sequence Program Overview................................................................................................2 - 1
2.2 Sequence Program Configuration..........................................................................................2 - 3
2.2.1 Main routine program ........................................................................................................2 - 4
2.2.2 Subroutine program ..........................................................................................................2 - 5
2.2.3 Interrupt program ..............................................................................................................2 - 6
2.3 Settings When Program is Divided ........................................................................................2 - 13
2.3.1 Initial execution type program ...........................................................................................2 - 17
2.3.2 Scan execution type program ...........................................................................................2 - 20
2.3.3 Stand-by type program......................................................................................................2 - 21
2.3.4 Fixed scan execution type program ..................................................................................2 - 26
2.3.5 Changing the program execution type ..............................................................................2 - 30
2.4 Data Used in Sequence Programs ........................................................................................ 2 - 32
2.4.1 BIN (Binary Code) .............................................................................................................2 - 35
2.4.2 HEX (Hexadecimal)...........................................................................................................2 - 37
2.4.3 BCD (Binary-coded Decimal) ............................................................................................2 - 38
2.4.4 Real number (Floating-point data).....................................................................................2 - 39
2.4.5 Character string data.........................................................................................................2 - 43
CHAPTER3 CPU MODULE OPERATION 3-1 to 3-14
3.1 Initial Processing.................................................................................................................... 3 - 1
3.2 I/O Refresh (Refresh Processing with Input/Output Modules)...............................................3 - 2
3.3 Program Operation ................................................................................................................3 - 2
3.4 END Processing..................................................................................................................... 3 - 2
3.5 Operation Processing in the RUN,STOP, or PAUSE Status .................................................. 3 - 3
3.6 Operation Processing during Momentary Power Failure ....................................................... 3 - 5
3.7 Data Clear Processing...........................................................................................................3 - 6
A - 13
3.8 I/O Processing and Response Delay.....................................................................................3 - 8
3.8.1 Refresh mode....................................................................................................................3 - 9
3.8.2 Direct mode.......................................................................................................................3 - 12
CHAPTER4 ASSIGNMENT OF BASE UNIT AND I/O NUMBER 4-1 to 4-17
4.1 Base Unit Assignment............................................................................................................4 - 1
4.1.1 Base mode ........................................................................................................................4 - 1
4.1.2 Base unit assignment setting ............................................................................................4 - 2
4.2 I/O Number Assignment.........................................................................................................4 - 4
4.2.1 Concept of I/O number assignment ..................................................................................4 - 5
4.2.2 Setting I/O numbers ..........................................................................................................4 - 8
4.2.3 I/O number setting example ..............................................................................................4 - 13
4.2.4 Checking I/O numbers ......................................................................................................4 - 17
CHAPTER5 MEMORIES AND FILES USED FOR CPU MODULE 5-1 to 5-38
5.1 Memories Used for CPU Module ...........................................................................................5 - 1
5.1.1 Memory composition and storable data ............................................................................5 - 1
5.1.2 Program memory ..............................................................................................................5 - 5
5.1.3 Program cache memory....................................................................................................5 - 8
5.1.4 Standard ROM ..................................................................................................................5 - 11
5.1.5 Standard RAM ...................................................................................................................5 - 12
5.1.6 Memory card .....................................................................................................................5 - 14
5.1.7 Writing to the Flash card by GX Developer .......................................................................5 - 18
5.1.8 Operating the program in the memory card (boot operation)............................................5 - 23
5.1.9 Details of written files ........................................................................................................5 - 27
5.1.10 Specifying valid parameters (parameter-valid drive setting)..............................................5 - 28
5.2 Program File Structure........................................................................................................... 5 - 30
5.3 File Operations by GX Developer and Handling Precautions................................................5 - 32
5.3.1 File operations...................................................................................................................5 - 32
5.3.2 Precautions for handling files ............................................................................................5 - 33
5.3.3 File size .............................................................................................................................5 - 34
5.3.4 Units of file sizes ...............................................................................................................5 - 36
CHAPTER6 FUNCTIONS 6-1 to 6-165
6.1 Function List........................................................................................................................... 6 - 1
6.2 Constant Scan .......................................................................................................................6 - 4
6.3 Latch Function ....................................................................................................................... 6 - 7
6.4 Output Mode at Operating Status Change (STOP to RUN)................................................... 6 - 10
6.5 Clock Function .......................................................................................................................6 - 13
6.6 Remote Operation.................................................................................................................. 6 - 18
6.6.1 Remote RUN/STOP ..........................................................................................................6 - 18
6.6.2 Remote PAUSE.................................................................................................................6 - 21
6.6.3 Remote RESET.................................................................................................................6 - 23
A - 14
6.6.4 Remote latch clear ............................................................................................................6 - 25
6.6.5 Relationship between remote operation and RUN/STOP status of the CPU module .......6 - 26
6.7 Q Series-compatible Module Input Response Time Selection (I/O Response Time) ............ 6 - 27
6.8 Error Time Output Mode Setting ............................................................................................6 - 29
6.9 H/W Error Time PLC Operation Mode Setting .......................................................................6 - 30
6.10 Intelligent Function Module Switch Setting ............................................................................ 6 - 31
6.11 Monitor Function .................................................................................................................... 6 - 33
6.11.1 Monitor condition setting ...................................................................................................6 - 34
6.11.2 Local device monitor/test ..................................................................................................6 - 40
6.11.3 External input/output forced on/off ....................................................................................6 - 43
6.11.4 Executional conditioned device test ..................................................................................6 - 48
6.12 Writing Programs While CPU Module is in RUN Status.........................................................6 - 58
6.12.1 Online change (ladder mode)............................................................................................6 - 58
6.12.2 Online change (files) .........................................................................................................6 - 61
6.12.3 Precautions for online change...........................................................................................6 - 63
6.13 Execution Time Measurement ...............................................................................................6 - 69
6.13.1 Program monitor list ..........................................................................................................6 - 69
6.13.2 Interrupt program monitor list............................................................................................6 - 72
6.13.3 Scan time measurement ...................................................................................................6 - 73
6.14 Sampling Trace Function ....................................................................................................... 6 - 77
6.15 Debug Function from Multiple GX Developers....................................................................... 6 - 91
6.15.1 Simultaneous monitoring from multiple GX Developers function ......................................6 - 91
6.15.2 Online change function from multiple GX Developers ......................................................6 - 93
6.16 Watchdog Timer (WDT) ......................................................................................................... 6 - 95
6.17 Self-diagnostic Function.........................................................................................................6 - 97
6.17.1 LEDs indicating errors.......................................................................................................6 - 104
6.17.2 Error clear .........................................................................................................................6 - 104
6.18 Error History........................................................................................................................... 6 - 105
6.19 System Protection..................................................................................................................6 - 106
6.19.1 Password registration........................................................................................................6 - 106
6.19.2 Remote password .............................................................................................................6 - 108
6.20 System Display of CPU Module with GX Developer..............................................................6 - 113
6.21 LED Indication........................................................................................................................ 6 - 116
6.21.1 Methods for turning off the LEDs.......................................................................................6 - 116
6.21.2 LED indication priority .......................................................................................................6 - 117
6.22 Interrupt from Intelligent Function Module ............................................................................. 6 - 119
6.23 Serial Communication Function.............................................................................................6 - 120
6.24 Service Processing ................................................................................................................ 6 - 128
6.24.1 Service processing setting ................................................................................................6 - 128
6.25 Initial Device Value................................................................................................................. 6 - 135
6.26 Battery Life-prolonging Function............................................................................................ 6 - 139
6.27 Memory Check Function........................................................................................................6 - 140
6.28 Latch Data Backup to Standard ROM Function .....................................................................6 - 141
6.29 Writing/Reading Device Data to/from Standard ROM ............................................................ 6 - 146
6.30 CPU Module Change Function with Memory Card ................................................................6 - 147
6.30.1 Backup function to memory card.......................................................................................6 - 149
A - 15
6.30.2 Backup data restoration function.......................................................................................6 - 157
6.31 Module model name read ...................................................................................................... 6 - 161
6.32 Module error collection...........................................................................................................6 - 162
CHAPTER7 COMMUNICATIONS WITH INTELLIGENT FUNCTION
MODULE 7-1 to 7-9
7.1 Communications between CPU Module and Intelligent Function Module ............................. 7 - 1
7.1.1 Initial setting and auto refresh setting by GX Configurator................................................7 - 2
7.1.2 Initial setting by initial device value ...................................................................................7 - 5
7.1.3 Communications with the FROM and TO instructions ......................................................7 - 5
7.1.4 Communications using the intelligent function module device ..........................................7 - 6
7.1.5 Communications using the intelligent function module dedicated instruction ...................7 - 8
CHAPTER8 PARAMETERS 8-1 to 8-26
8.1 PLC Parameters ....................................................................................................................8 - 2
8.2 Network Parameters ..............................................................................................................8 - 21
8.3 Remote Password..................................................................................................................8 - 26
CHAPTER9 DEVICES 9-1 to 9-94
9.1 Device List .............................................................................................................................9 - 1
9.2 Internal User Device ..............................................................................................................9 - 3
9.2.1 Input (X) ............................................................................................................................9 - 6
9.2.2 Output (Y)..........................................................................................................................9 - 8
9.2.3 Internal relay (M) ...............................................................................................................9 - 9
9.2.4 Latch relay (L) ...................................................................................................................9 - 10
9.2.5 Annunciator (F) .................................................................................................................9 - 11
9.2.6 Edge relay (V) ...................................................................................................................9 - 15
9.2.7 Link relay (B) .....................................................................................................................9 - 16
9.2.8 Link special relay (SB) ......................................................................................................9 - 18
9.2.9 Step relay (S) ....................................................................................................................9 - 19
9.2.10 Timer (T)............................................................................................................................9 - 20
9.2.11 Counter (C) .......................................................................................................................9 - 27
9.2.12 Data register (D)................................................................................................................9 - 31
9.2.13 Link register (W)................................................................................................................9 - 32
9.2.14 Link special register (SW) .................................................................................................9 - 34
9.3 Internal System Devices ........................................................................................................ 9 - 35
9.3.1 Function devices (FX, FY, FD) ..........................................................................................9 - 35
9.3.2 Special relay (SM) .............................................................................................................9 - 38
9.3.3 Special register (SD) .........................................................................................................9 - 39
9.4 Link Direct Device (J\)............................................................................................................9 - 40
9.5 Module Access Devices.........................................................................................................9 - 43
9.5.1 Intelligent function module device (U\G) ...........................................................................9 - 43
9.5.2 Cyclic transmission area device (U3En\G)........................................................................9 - 45
A - 16
9.6 Index Register (Z)/Standard Device Resister (Z) ...................................................................9 - 46
9.6.1 Index register (Z)...............................................................................................................9 - 46
9.6.2 Standard device register (Z)..............................................................................................9 - 48
9.6.3 Switching from the scan execution type program to the interrupt/fixed scan execution
type program
....................................................................................................9 - 49
9.7 File Register (R).....................................................................................................................9 - 53
9.7.1 File register data storage location .....................................................................................9 - 54
9.7.2 File register size ................................................................................................................9 - 54
9.7.3 Differences in available accesses by storage memory .....................................................9 - 55
9.7.4 Registration procedure for the file register ........................................................................9 - 56
9.7.5 Specification methods of the file register...........................................................................9 - 61
9.7.6 Precautions for using the file register................................................................................9 - 62
9.8 Extended Data Register (D) and Extended Link Register (W)...............................................9 - 64
9.9 Nesting (N)............................................................................................................................ 9 - 70
9.10 Pointer (P).............................................................................................................................. 9 - 71
9.10.1 Local pointer.....................................................................................................................9 - 72
9.10.2 Common pointer................................................................................................................9 - 74
9.11 Interrupt Pointer(I)..................................................................................................................9 - 76
9.11.1 List of interrupt pointer numbers and interrupt factors ......................................................9 - 77
9.12 Other Devices ........................................................................................................................ 9 - 78
9.12.1 SFC block device (BL) ......................................................................................................9 - 78
9.12.2 Network No. specification device (J).................................................................................9 - 78
9.12.3 I/O No. specification device (U).........................................................................................9 - 79
9.12.4 Macro instruction argument device (VD)...........................................................................9 - 80
9.13 Constants............................................................................................................................... 9 - 81
9.13.1 Decimal constant (K).........................................................................................................9 - 81
9.13.2 Hexadecimal constant (H) .................................................................................................9 - 81
9.13.3 Real number (E)................................................................................................................9 - 82
9.13.4 Character string (" ")..........................................................................................................9 - 83
9.14 Convenient Usage of Devices................................................................................................9 - 84
9.14.1 Global device ....................................................................................................................9 - 84
9.14.2 Local device ......................................................................................................................9 - 85
CHAPTER10 CPU MODULE PROCESSING TIME 10-1 to 10-18
10.1 Scan Time..............................................................................................................................10 - 1
10.1.1 Scan time structure ...........................................................................................................10 - 1
10.1.2 Time required for each processing included in scan time .................................................10 - 2
10.1.3 Factors that increase the scan time ..................................................................................10 - 11
CHAPTER11 PROCEDURES FOR WRITING PROGRAM TO CPU
MODULE 11-1 to 11-10
11.1 Items to be Considered for Creating Programs ..................................................................... 11 - 1
11.2 Hardware Check ....................................................................................................................11 - 3
11.3 Procedure for Writing One Program ......................................................................................11 - 5
A - 17
11.4 Procedure for Writing Multiple Programs ...............................................................................11 - 7
11.5 Procedure for Boot Operation................................................................................................11 - 10
CHAPTER12 SPECIAL RELAY LIST AND SPECIAL REGISTER LIST 12-1 to 12-78
12.1 SPECIAL RELAY LIST........................................................................................................... 12 - 1
12.2 SPECIAL REGISTER LIST....................................................................................................12 - 27
APPENDICES App-1 to App-72
Appendix 1 List of Parameter Numbers .........................................................................................App- 1
Appendix 2 Functions Added or Changed by Version Upgrade.....................................................App- 6
Appendix 3 Method of Replacing Basic Model QCPU or High Performance Model QCPU
with Universal Model QCPU
...............................................................................App- 8
Appendix 3.1 Replacement Precautions ........................................................................... App- 8
Appendix 3.1.1 Replacing Basic model QCPU with Universal model QCPU .......................App- 8
Appendix 3.1.2 Replacing High Performance model QCPU with Universal model QCPU ......App- 12
Appendix 3.2 Applicable devices and software .................................................................. App- 19
Appendix 3.3 Instructions ..............................................................................................App- 23
Appendix 3.3.1 Instructions not supported in the Universal model QCPU and replacing
methods
..........................................................................................App- 23
Appendix 3.3.2 Replacing programs using multiple CPU transmission dedicated
instructions
......................................................................................App- 25
Appendix 3.3.3 Program replacement examples ...........................................................App- 26
Appendix 3.4 Functions.................................................................................................App- 40
Appendix 3.4.1 Floating-point operation instructions ...................................................... App- 40
Appendix 3.4.2 Error check processing for floating-point data comparison instructions .........App- 48
Appendix 3.4.3 Range check processing for index-modified devices ................................. App- 52
Appendix 3.4.4 Device latch function .......................................................................... App- 55
Appendix 3.4.5 File usability setting............................................................................ App- 57
Appendix 3.4.6 Parameter-valid drive and boot file setting ..............................................App- 60
Appendix 3.4.7 External input/output forced on/off function .............................................App- 63
Appendix 3.5 Special Relay and Special Register...............................................................App- 67
Appendix 3.5.1 Special relay list ................................................................................ App- 67
Appendix 3.5.2 Special register list.............................................................................App- 70
Appendix 4 Device Point Assignment Sheet..................................................................................App- 72
INDEX Index-1 to Index-4
A - 18
MANUALS
To understand the main specifications, functions, and usage of the CPU module, refer to the basic manuals.
Read other manuals as well when using a different type of CPU module and its functions.
Order each manual as needed, referring to the following list.
:Basic manual, :Other CPU module manuals
Manual name
< Manual number (model code) >
Description Manual type
User's manual
QCPU User's Manual (Hardware Design,
Maintenance and Inspection)
< SH-080483ENG (13JR73) >
Specifications of the hardware (CPU modules, power
supply modules, base units, extension cables, and
memory cards), system maintenance and inspection,
troubleshooting, and error codes
QnUCPU User's Manual (Function
Explanation, Program Fundamentals)
< SH-080807ENG (13JZ27) >
Functions, methods, and devices for programming
QCPU User's Manual (Multiple CPU System)
< SH-080485ENG (13JR75) >
Information on multiple CPU system configuration
(system configuration, I/O numbers, communication
between CPU modules, and communication with the
input/output modules and intelligent function
modules)
QnUCPU User's Manual (Communication via
Built-in Ethernet Port)
< SH-080811ENG (13JZ29) >
Functions for the communication via built-in Ethernet
port of the CPU module
Programming manual
QCPU Programming Manual (Common
Instructions)
< SH-080809ENG (13JW10) >
How to use sequence instructions, basic instructions,
and application instructions
QCPU (Q Mode)/QnACPU Programming
Manual (SFC)
< SH-080041 (13JF60) >
System configuration, performance specifications,
functions, programming, debugging, and error codes
for SFC (MELSAP3) programs
QCPU (Q Mode) Programming Manual
(MELSAP-L)
< SH-080076 (13JF61) >
Programming methods, specifications, and functions
for SFC (MELSAP-L) programs
QCPU (Q Mode) Programming Manual
(Structured Text)
< SH-080366E (13JF68) >
Programming methods using structured languages
QCPU (Q Mode) / QnACPU Programming
Manual (PID Control Instructions)
< SH-080040 (13JF59) >
Dedicated instructions for PID control
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360
  • Page 361 361
  • Page 362 362
  • Page 363 363
  • Page 364 364
  • Page 365 365
  • Page 366 366
  • Page 367 367
  • Page 368 368
  • Page 369 369
  • Page 370 370
  • Page 371 371
  • Page 372 372
  • Page 373 373
  • Page 374 374
  • Page 375 375
  • Page 376 376
  • Page 377 377
  • Page 378 378
  • Page 379 379
  • Page 380 380
  • Page 381 381
  • Page 382 382
  • Page 383 383
  • Page 384 384
  • Page 385 385
  • Page 386 386
  • Page 387 387
  • Page 388 388
  • Page 389 389
  • Page 390 390
  • Page 391 391
  • Page 392 392
  • Page 393 393
  • Page 394 394
  • Page 395 395
  • Page 396 396
  • Page 397 397
  • Page 398 398
  • Page 399 399
  • Page 400 400
  • Page 401 401
  • Page 402 402
  • Page 403 403
  • Page 404 404
  • Page 405 405
  • Page 406 406
  • Page 407 407
  • Page 408 408
  • Page 409 409
  • Page 410 410
  • Page 411 411
  • Page 412 412
  • Page 413 413
  • Page 414 414
  • Page 415 415
  • Page 416 416
  • Page 417 417
  • Page 418 418
  • Page 419 419
  • Page 420 420
  • Page 421 421
  • Page 422 422
  • Page 423 423
  • Page 424 424
  • Page 425 425
  • Page 426 426
  • Page 427 427
  • Page 428 428
  • Page 429 429
  • Page 430 430
  • Page 431 431
  • Page 432 432
  • Page 433 433
  • Page 434 434
  • Page 435 435
  • Page 436 436
  • Page 437 437
  • Page 438 438
  • Page 439 439
  • Page 440 440
  • Page 441 441
  • Page 442 442
  • Page 443 443
  • Page 444 444
  • Page 445 445
  • Page 446 446
  • Page 447 447
  • Page 448 448
  • Page 449 449
  • Page 450 450
  • Page 451 451
  • Page 452 452
  • Page 453 453
  • Page 454 454
  • Page 455 455
  • Page 456 456
  • Page 457 457
  • Page 458 458
  • Page 459 459
  • Page 460 460
  • Page 461 461
  • Page 462 462
  • Page 463 463
  • Page 464 464
  • Page 465 465
  • Page 466 466
  • Page 467 467
  • Page 468 468
  • Page 469 469
  • Page 470 470
  • Page 471 471
  • Page 472 472
  • Page 473 473
  • Page 474 474
  • Page 475 475
  • Page 476 476
  • Page 477 477
  • Page 478 478
  • Page 479 479
  • Page 480 480
  • Page 481 481
  • Page 482 482
  • Page 483 483
  • Page 484 484
  • Page 485 485
  • Page 486 486
  • Page 487 487
  • Page 488 488
  • Page 489 489
  • Page 490 490
  • Page 491 491
  • Page 492 492
  • Page 493 493
  • Page 494 494
  • Page 495 495
  • Page 496 496
  • Page 497 497
  • Page 498 498
  • Page 499 499
  • Page 500 500
  • Page 501 501
  • Page 502 502
  • Page 503 503
  • Page 504 504
  • Page 505 505
  • Page 506 506
  • Page 507 507
  • Page 508 508
  • Page 509 509
  • Page 510 510
  • Page 511 511
  • Page 512 512
  • Page 513 513
  • Page 514 514
  • Page 515 515
  • Page 516 516
  • Page 517 517
  • Page 518 518
  • Page 519 519
  • Page 520 520
  • Page 521 521
  • Page 522 522
  • Page 523 523
  • Page 524 524
  • Page 525 525
  • Page 526 526
  • Page 527 527
  • Page 528 528
  • Page 529 529
  • Page 530 530
  • Page 531 531
  • Page 532 532
  • Page 533 533
  • Page 534 534
  • Page 535 535
  • Page 536 536
  • Page 537 537
  • Page 538 538
  • Page 539 539
  • Page 540 540
  • Page 541 541
  • Page 542 542
  • Page 543 543
  • Page 544 544
  • Page 545 545
  • Page 546 546
  • Page 547 547
  • Page 548 548
  • Page 549 549
  • Page 550 550
  • Page 551 551
  • Page 552 552
  • Page 553 553
  • Page 554 554
  • Page 555 555
  • Page 556 556
  • Page 557 557
  • Page 558 558
  • Page 559 559
  • Page 560 560
  • Page 561 561
  • Page 562 562
  • Page 563 563
  • Page 564 564
  • Page 565 565
  • Page 566 566
  • Page 567 567
  • Page 568 568
  • Page 569 569
  • Page 570 570
  • Page 571 571
  • Page 572 572
  • Page 573 573
  • Page 574 574
  • Page 575 575
  • Page 576 576
  • Page 577 577
  • Page 578 578
  • Page 579 579
  • Page 580 580
  • Page 581 581
  • Page 582 582
  • Page 583 583
  • Page 584 584
  • Page 585 585
  • Page 586 586
  • Page 587 587
  • Page 588 588
  • Page 589 589
  • Page 590 590
  • Page 591 591
  • Page 592 592
  • Page 593 593
  • Page 594 594
  • Page 595 595
  • Page 596 596
  • Page 597 597
  • Page 598 598
  • Page 599 599
  • Page 600 600
  • Page 601 601
  • Page 602 602
  • Page 603 603
  • Page 604 604
  • Page 605 605
  • Page 606 606
  • Page 607 607
  • Page 608 608
  • Page 609 609
  • Page 610 610
  • Page 611 611
  • Page 612 612
  • Page 613 613
  • Page 614 614
  • Page 615 615
  • Page 616 616
  • Page 617 617
  • Page 618 618
  • Page 619 619
  • Page 620 620
  • Page 621 621
  • Page 622 622
  • Page 623 623
  • Page 624 624
  • Page 625 625
  • Page 626 626
  • Page 627 627
  • Page 628 628
  • Page 629 629
  • Page 630 630

Mitsubishi Electronics QnUCPU User manual

Category
Measuring, testing & control
Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI