QCPU-A(A Mode),USER MANUAL
QCPU-A(A Mode),USER MANUAL
QCPU-A(A Mode),USER MANUAL
User's Manual
Mitsubishi Programmable
Logic Controller Q02CPU-A
Q02HCPU-A
Q06HCPU-A
• SAFETY PRECAUTIONS •
(Read these precautions before using.)
When using Mitsubishi equipment, thoroughly read this manual and the associated manuals
introduced in the manual. Also pay careful attention to safety and handle the module properly.
These precautions apply only to Mitsubishi equipment. Refer to the CPU module user’s manual for a
description of the PC system safety precautions.
These • SAFETY PRECAUTIONS • classify the safety precautions into two categories: "DANGER"
and "CAUTION".
[Design Precautions]
! DANGER
• Install a safety circuit external to the PC that keeps the entire system safe even when there are
problems with the external power supply or the PC main module. Otherwise, trouble could result
from erroneous output or malfunction.
(1) Configure the following circuits outside the PC: emergency stop circuit, protection circuit,
interlocking circuit for opposite operations such as forward and reverse operations, and
interlocking circuit for machine damage prevention such as upper/lower limit for positioning.
(2) When the PC detects the following problems, it will stop calculation and turn off all output.
The power supply module has an over current protection device and over voltage
protection device.
The PC CPUs self-diagnostic functions, such as the watchdog timer error, detect
problems.
In addition, all output will be turned on when there are problems that the PC CPU cannot
detect, such as in the I/O controller. Build a failsafe circuit exterior to the PC that will make
sure the equipment operates safely at such times.
Refer to the Section 8.1 in this manual for example failsafe circuits.
(3) Output could be left on or off when there is trouble in the output module’s relay or transistor.
So, build an external monitoring circuit that will monitor any single output that could cause
serious trouble.
• If current over the rating or over-current due to a load short-circuit flows for a long term, it may
cause smoke or fire. Prepare an external safety circuit, such as a fuse.
• Build a circuit that turns on the external power supply when the PC main module power supply is
turned on. If the external power supply is turned on first, it could result in erroneous output or
malfunction.
A-1
[Design Precautions]
! DANGER
• When there are communication faulty with the data link, the communication faulty station will
enter the following condition. Build an interlock circuit into the PC program that will make sure
the system operates safely by using the communication state information.
Not doing so could result in erroneous output or malfunction.
(1) For the data link data, the data prior to the communication error will be held.
(2) The MELSECNET (II, /B, /10) remote I/O station will turn all output off.
(3) The MELSECNET/MINI-S3 remote I/O station will hold the output or turn all output off
depending on the E.C. mode setting.
Refer to manuals for corresponding data link system for how to detect the communication faulty
station and the operation status when a communication error occurred.
• When configuring a system, do not leave any slots vacant on the base. Should there be any
vacant slots, always use a blank cover (A1SG60) or dummy module (A1SG62).
If the cover is not attached, the module's internal parts may be dispersed when a short-circuit
test is performed or overcurrent/overvoltage is accidentally applied to the external I/O area.
! CAUTION
• Do not bunch the control wires or communication cable with the main circuit or power wires, or
install them close to each other.
They should be installed 100mm (3.94 inch) or more from each other.
Not doing so could result in noise that would cause malfunction.
• When controlling items like lamp load, heater or solenoid valve using an out put module, large
current (approximately ten times greater than that present in normal circumstances) may flow
when the output is turned OFF ON. Take measures such as replacing the module with one
having sufficient rated current.
[Installation Precautions]
! CAUTION
• Use the PC in the environment given in the general specification section of the manual.
Using the PC outside the range of the general specifications may result in electric shock, fire, or
malfunction or may damage or degrade the product.
• Before mounting the module, securely insert the projection at the bottom of the module into the
fixing hole on the base module.
(The AnS series module must be tightened to the base module at the specified tightening
torque.)
An improperly mounted module may result in malfunction, failure, or falling.
Excessive screw tightening may cause falling due to the breakage of the screw or module,
short-circuit, or malfunction.
A-2
[Installation Precautions]
! CAUTION
• Tighten the screw within the range of specified torque.
If the screws are loose, it may result in fallout, short circuits, or malfunctions.
Tightening the screws too far may cause damage to the screw and/or the module, resulting in
fallout, short circuits, or malfunction.
• When installing extension cables, be sure that the base unit and the module connectors are
installed correctly. After installation, check them for looseness. Poor connections could result in
erroneous input and erroneous output.
• Correctly connect the memory card installation connector to the memory card. After installation,
make sure that the connection is not loose. A poor connection could result in malfunction.
• Do not directly touch the module’s conductive parts or electronic components.
Doing so could cause malfunction or failure in the module.
[Wiring Precations]
! DANGER
• Completely turn off the external power supply when installing or wiring. Not completely turning
off all power supply could result in electric shock or damage to the product.
• When turning on the power or operating the module after installation or wiring work, be sure that
the module’s terminal covers are correctly attached. Not attaching the terminal covers could
result in electric shock.
! CAUTION
• Be sure to ground the FG terminals and LG terminals with a special PC ground of Type 3 or
above. Not doing so could result in electric shock or malfunction.
• When wiring in the PC, check the rated voltage and terminal layout of the wiring, and make sure
the wiring is done correctly. Connecting a power supply that differs from the rated voltage or
wiring it incorrectly may cause fire or breakdown.
• Do not connect multiple power supply modules in parallel.
Doing so could cause overheating, fire, or damage to the power supply module.
• Tighten the terminal screws with the specified torque.
If the terminal screws are loose, it could result in short circuits, fire, or malfunction.
Tightening the screws too far may cause damage to the screw and/or the module, resulting in
fallout, short circuits, or malfunction.
• A protective label is attached on the top of the CPU module to avoid foreign materials such as
wires from entering inside during wiring process.
Do not remove the label until the wiring is completed. Before starting the system, be sure to
remove the label to ensure heat radiation.
• External connections shall be crimped or pressure welded with the specified tools, or correctly
soldered.
For information regarding the crimping and pressure welding tools, refer to the I/O module’s user
manual. Imperfect connections could result in short circuit, fires, or malfunction.
A-3
[Starting and Maintenance Precautions]
! DANGER
• Do not touch the terminals while power is on. Doing so could cause shock or malfunction.
• Correctly connect the battery. Also, do not change, disassemble, heat, place in fire, short circuit,
or solder the battery.
Mishandling of the battery can cause overheating or cracks which could result in injury and fires.
• Make sure to switch all phases of the external power supply off before cleaning or re-tightening
screws. If you do not switch off the external power supply, it will cause electric shock.
If the screws are loose, it may result in fallout, short circuit, or malfunction. Tightening the
screws too far may cause damages to the screws and/or the module, resulting in fallout, short
circuits, or malfunction.
! CAUTION
• Carefully read manuals and confirm that it is safe enough before performing on-line operations
which require to connect peripheral devices to an operating CPU module. (especially when
modifying a program, performing forced output, or modifying the operation status.)
Misoperation may damage the module or cause accidents.
• Do not disassemble or rebuild the module.
It may cause accidents, malfunction, injury, or fire.
• When using a cellular phone, keep it 25 cm or more away from the PC.
Otherwise, malfunction may result.
• Make sure to switch all phases of the external power supply off before mounting or removing the
module. If you do not switch off the external power supply, it will cause failure or malfunction of
the module.
[Disposal Precautions]
! CAUTION
• Disposing of this product, treat it as industrial waste.
A-4
REVISIONS
* The manual number is given on the bottom left of the back cover.
Print Date * Manual Number Revision
Dec., 1999 SH (NA) 080065-A First printing
Mar., 2000 SH (NA) 080065-B Addition of model
QA1S33B
This manual does not imply guarantee or implementation right for industrial ownership or implementation of other rights.
Mitsubishi Electric Corporation is not responsible for industrial ownership problems caused by use of the contents of this
manual.
1999 MITSUBISHI ELECTRIC CORPORATION
A-5
INTRODUCTION
Thank you for choosing a Mitsubishi MELSEC-Q Series General Purpose Programmable Controller.
Before using your new PC, please read this manual thoroughly to gain an understanding of its functions so you
can use it properly.
Please forward a copy of this manual to the end user.
CONTENTS
1. OVERVIEW 1- 1 to 1- 2
2. SYSTEM CONFIGURATION 2- 1 to 2- 16
3. GENERAL SPECIFICATION 3- 1 to 3- 2
4. CPU MODULE 4- 1 to 4- 38
A-6
4.4.3 Sequence accumulation time processing........................................................................................ 4- 31
4.5 Precautions When Handling the Module................................................................................................ 4- 33
4.6 Part Names and Settings of the CPU Module........................................................................................ 4- 34
4.6.1 Part names and settings .................................................................................................................. 4- 34
4.6.2 Switch operation after program write............................................................................................... 4- 37
4.6.3 Latch clear operation........................................................................................................................ 4- 37
4.6.4 Installation and removal of memory card during power on............................................................. 4- 37
A-7
8.2.6 Grounding......................................................................................................................................... 8- 11
8.2.7 External wiring .................................................................................................................................. 8- 11
A-8
APPENDICES APP- 1 to APP- 69
A-9
About Manuals
Related Manuals
Manual Number
Manual Name
(Model Code)
ACPU Programming Manual (Fundamentals)
IB-66249
Describes programming methods necessary for creating programs, device names, parameters, program
(13J740)
types, memory area configuration, and so on. (Sold separately)
A - 10
Abbreviations and generic names used in this manual
In this manual, the following abbreviations and generic names are used to explain
about QCPU-A unless explicitly instructed.
Microsoft Windows, Microsoft Windows NT, Microsoft Visual Basic, Microsoft Visual C++, and MS-DOS are
registered trademarks of Microsoft Corporation, USA.
PC98-NX is a registered trademark of NEC Corporation.
Other company names and product names appear in the text are registered trademarks or trademarks of
their respective companies.
A - 11
MEMO
A - 12
1 OVERVIEW
MELSEC-Q
1. OVERVIEW
1
This User's Manual describes the performance, functions, and handling method of the
QCPU-A general purpose PC, as well as the specifications and handling of the
memory card, power supply module and the base module.
The programming modules and software packages have to be compatible with the
upgraded A2UCPU, A2UCPU-S1, A3UCPU, and A4UCPU (abbreviated as AnUCPU
hereafter).
When the conventional programming modules and software packages are used, the
usable range varies depending on the model of the CPU (PC model name). (Refer to
Section 2.2.3.)
Refer to the list of components in Section 2.3 for various modules which can be used
with the QCPU-A.
Refer to Section 2.2.1 for the special function modules which have limited range of
usable devices.
1-1
1 OVERVIEW
MELSEC-Q
1.1 Features
QCPU-A (A mode) has the following features when compared with the A2USHCPU-
S1.
1-2
2 SYSTEM CONFIGURATION
MELSEC-Q
2. SYSTEM CONFIGURATION
This chapter describes the system configuration of QCPU-A, precautions for the use of
the system, and system equipment.
MITSUBISHI
LITHIUM BATTERY
MITSUBISHI
QCPU-A
Memory card 1 Battery
(Q02CPU-A, Q02HCPU-A,
(Q2MEM-1MBS) (Q6BAT)
Q06HCPU-A)
Expansion cable
QA1S6 expansion base module
(QC06B, QC12B, QC30B,
(QA1S65B, QA1S68B)
QC50B, QC100B)
2-1
2 SYSTEM CONFIGURATION
MELSEC-Q
The precautions when configuring the QCPU-A (A mode) system are as follows:
2.2.1 Hardware
(3) The total length of the expansion cable should be 13.2 m or less.
(4) The following modules have some limitations for the number of modules to be
mounted.
Module No. of mountable modules
MELSECNET/10 network module
Up to 4 modules
A1SJ71LP21, A1SJ71BR11
UP to 4 modules in total
MELSECNET(II)/B data link module
Up to 2 modules
A1SJ71AP21, A1SJ71AR21, A1SJ71AT21B
Interruption module: A1SI61 1 module
AnS series special function module Up to 6 modules in total
: Applies to the following modules. Modules other than the followings do not have any limitations.
Ethernet interface module: A1SJ71E71B2-S3 (-B5-S3)
Calculating machine link module: A1SJ71UC24-R2 (-R4/-PRF)
CC-Link module (in intelligent mode): A1SJ61BT11
Interface module for data transmission: A1SJ71CMO-S3
Intelligent communication module: A1SD51S
ID interface module: A1SD21-S1
JEMANET (JPCN-1) master module: A1SJ71J92-S3 (only when GET/PUT service is used)
(5) The accessible device range will be limited when the following modules are used:
Accessible device range in CPU
Target module
Device Accessible range
Input (X), output (Y) X/Y0~7FF
Internal relay (M) M0~8191
MELSECNET(II) data link module:
Latch relay (L) M0~8191
A1SJ71AP21, A1SJ71AR21
Link relay (B) B0~FFF
MELSECNET/B data link module:
Timer (T) T0~2047
A1SJ71AT21B
Counter (C) C0~1023
JEMANET interface module:
Data register (D) D0~6143
A1SJ71J92-S3
Link register (W) W0~FFF
Annunciator (F) F0~2047
(6) Among the graphic operation terminal GOT series, the GOT-A900/800 series can
be used; however, bus connection is not available.
2-2
2 SYSTEM CONFIGURATION
MELSEC-Q
(7) It is recommended that the network and data link modules are mounted to the
basic base module.
When these modules are mounted to the expansion base module, the link refresh
time will become longer than the case where they are mounted to the basic base
module.
(1) Type name setting when starting the GPP function software
package
The following table shows the GPP function software package that can be used
to create the QCPU-A (A mode) program, and the PC type setting at startup.
When using SW4D5C-GPPW, select the PC type from Q02(H)-A or Q06H-A
according to the CPU to be used.
When using the peripheral devices and GPP function software package of
SW3D5C-GPPW or earlier, specify the PC type name as "A4U". If "A4U" is not
found in PC type names, specify "A3A." If both "A4U" and "A3A" are not found,
specify "A3H."
Note that when "A4U" is specified, the available device range will be limited.
Type name setting for PC CPU
Peripheral device Software package type name to start system
Q02(H)CPU-A Q06HCPU-A
SW4D5C-GPPW or later Q02(H)-A Q06H-A
SW3D5 -GPPW or earlier A4U A4U
PC9801
SW NX-GPPA A4U A4U
SW0N-GPPA A3A A3A
SW4D5C-GPPW or later Q02(H)-A Q06H-A
DOS/V SW3D5 -GPPW or earlier
A4U A4U
SW IVD-GPPA
SW0RX-GPPA
A3A A3A
A7PHP SW0SRX-GPPA
SW SRXV-GPPA A4U A4U
A7HGP SW HX-GPPA A4U A4U
SW3GP-GPPA A3H A3H
A6PHP SW4GP-GPPA A3A A3A
SW1GP-GPPAU A4U A4U
SW3-GPPA, SW-3GP-GPPA A3H A3H
A6GPP SW4GP-GPPA A3A A3A
SW1GP-GPPAU A4U A4U
SW0SRX-GPPA A3A A3A
A7LMS
SW SRXV-GPPA A4U A4U
A75LMS SW SRXV-GPPA A4U A4U
2-3
2 SYSTEM CONFIGURATION
MELSEC-Q
POINTS
(1) Old software packages other than listed above cannot be used.
(2) To construct MELSECNET/10 network system with QCPU-A (A mode), use the
AnU-compatible GPP function software package (which includes "A4U" in its
PC type name).
You cannot construct a network with the GPP function software package which
is not compatible with AnU (which does not include "A4U" in its PC type name).
(3) Communication with GPPW at 115.2kbps may not be available depending on
the peripheral devices. In such a case, select the lower communication speed.
(4) When using Q02(H)CPU-A and conventional peripheral devices and setting the
PC type as "A4U," designate the main program setting to 28k steps or less with
parameters. When "Main + parameter" is written with the PC with the setting of
29k steps or more, "Cannot communicate with PC" is displayed and writing to
the CPU is disabled.
(5) Sub programs cannot be used with Q02(H)CPU-A. When using conventiona
peripheral devices and setting the PC type as "A4U," do not specify any sub
programs. If sub programs are specified, "Cannot communicate with PC" is
displayed.
With Q06HCPU, sub program 1 can be used, but sub programs 2 and 3
cannot.
When sub program 2 or 3 is specified, the same message above is displayed.
2-4
2 SYSTEM CONFIGURATION
MELSEC-Q
REMARK
The characters generators and canvas, which are necessary for AD57(S1), are
created on the peripheral device using the SW -AD57P.
POINTS
(1) Packages which access the QCPU-A by specifying a device in the utility
package can specify only in the device range for A3ACPU or A3HCPU
equivalent. (Refer to Section 2.2.3.)
(2) Use an AnU-compatible utility package to use the device range for the QCPU-
A. (Example: SW1IVD-SAP2, etc.)
2-5
2 SYSTEM CONFIGURATION
MELSEC-Q
2.2.3 Precautions when using GPP function software packages and A8PU peripheral
devices which are not compatible with AnU
When the QCPU-A is started up using a GPP function software package not
compatible with AnU (the PC model name is "A3A" or "A3H") or from an A8PU
peripheral device (including A7PU and P7PUS), the usable device range is limited as
follows:
(1) The device range other than listed above is the same as that of QCPU-A.
(2) Refer to the operation manual of each peripheral device for available
functions.
2-6
2 SYSTEM CONFIGURATION
MELSEC-Q
The equipment that can be used in the QCPU-A (A mode) system is as follows.
Use the power supply module, I/O module, special function module, and network
module that are designed for the AnS series. You cannot use the power supply
module, I/O module, special function module, and network module for the Q series, as
well as the special function module and network module for the Q2AS series.
The base module and expansion cable for the AnS series and A6SIM-X64Y64 cannot
be used either. For details, refer to Q Series Data Book.
Number of occupied Current
points (points) consumption
Item Type name Description
[I/O allocation (A)
module type] DC5V DC24V
Program capacity: 28k steps, I/O points: 4096,
Q02CPU-A — 0.60 —
Processing speed for basic instruction: 79ns
Program capacity: 28k steps, I/O points: 4096,
CPU module Q02HCPU-A — 0.64 —
Processing speed for basic instruction: 34ns
Program capacity: 30k steps × 2 (Main/sub), I/O points:
Q06HCPU-A — 0.64 —
4096, Processing speed for basic instruction: 34ns
Memory card Q2MEM-1MBS SRAM type: 1 MB — — —
AnS series module mounting base (power supply
QA1S33B — 0.107 —
module + CPU + 3 slots for other module)
AnS series module mounting base (power supply 0.117
Basic base module QA1S35B — —
module + CPU + 5 slots for other module) (0.086)
AnS series module mounting base (power supply 0.118
QA1S38B — —
module + CPU + 8 slots for other module) (0.086)
AnS series module mounting base (power supply 0.117
QA1S65B — —
module + 5 slots for other module) (0.088)
Expansion base module
AnS series module mounting base (power supply 0.118
QA1S68B — —
module + 8 slots for other module) (0.090)
QC06B 0.6-m expansion base cable — —
QC12B 1.2-m expansion base cable — —
Expansion cable QC30B 3.0-m expansion base cable — —
QC50B 5.0-m expansion base cable — —
QC100B 10.0-m expansion base cable — —
Battery for retaining the contents of program memory
Battery Q6BAT — — —
and devices in case of power failure
Cable QC30R2 Communication cable for peripheral devices — — —
: The parenthesized values are for those products not provided for CE mark.
POINTS
(1) A USB port cannot be used with QCPU-A (A mode).
(2) A RS232/422 conversion cable is required to use the conventional peripheral
devices (A6GPP, A8PUJ, etc.).
Recommended cable: FA-CNV2402CBL (2m), FA-CNV2405CBL (5m)
Contact: Mitsubishi Electric Engineering Corp.
2-7
2 SYSTEM CONFIGURATION
MELSEC-Q
2-8
2 SYSTEM CONFIGURATION
MELSEC-Q
2-9
2 SYSTEM CONFIGURATION
MELSEC-Q
2 - 10
2 SYSTEM CONFIGURATION
MELSEC-Q
2 - 11
2 SYSTEM CONFIGURATION
MELSEC-Q
2 - 12
2 SYSTEM CONFIGURATION
MELSEC-Q
2 - 13
2 SYSTEM CONFIGURATION
MELSEC-Q
2 - 14
2 SYSTEM CONFIGURATION
MELSEC-Q
(1) Stand-alone system............. A system with a basic base module only, or with a
basic base system and an extension base module
connected with the expansion cable.
(2) Network system ................... A system for controlling multiple PCs and remote I/O
modules.
(3) Computer link system .......... A system for data exchange between the QCPU-A
and the computer (personal computer, etc.) by using
an A1SJ71UC24 computer link module.
The details of the system configuration, number of I/O points, I/O number assignment,
etc., of a stand-alone system are listed on the following page.
2 - 15
2 SYSTEM CONFIGURATION
MELSEC-Q
Power supply
O
C 00 20 40 60 80 A0 C0 E0
U P
module
Expansion cable T
U 1F 3F 5F 7F 9F BF DF FF
Expansion base module
Expansion (QA1S68B) When a 32-point module
stage 1
8 9 10 11 12 13 14 15
is mounted to each slot
Power supply
100 120 140 160 180 1A0 1C0 1E0
O
IU module
NT
11F 13F 15F 17F 19F 1BF 1DF 1FF
Power supply
200 220 240 260 280 2A0 2C0 2E0 500 520 540 560 580 5A0 5C0 5E0
O O
IU IU
System configuration
module
module
NT NT
21F 23F 25F 27F 29F 2BF 2DF 2FF 51F 53F 55F 57F 59F 5BF 5DF 5FF
Power supply
300 320 340 360 380 3A0 3C0 3E0 600 620 640 660 680 6A0 6C0 6E0
O O
IU IU
module
module
NT NT
31F 33F 35F 37F 39F 3BF 3DF 3FF 61F 63F 65F 67F 69F 6BF 6DF 6FF
Power supply
400 420 440 460 480 4A0 4C0 4E0 700 720 740 760 780 7A0 7C0 7E0
O O
IU IU
module
module
NT NT
41F 43F 45F 47F 49F 4BF 4DF 4FF 71F 73F 75F 77F 79F 7BF 7DF 7FF
Max. number of
Expansion stage 7
expansion stages
Max. number of I/O
modules to be 64 modules
mounted
Max. I/O points 4096
Type name of basic
QA1S33B, QA1S35B, QA1S38B
base module
Type name of
expansion base QA1S65B, QA1S68B
module
Type name of
QC06B, QC12B, QC30B, QC50B, QC100B
expansion cable
(1) Up to seven expansion base modules can be added.
(2) Limit the total length of the expansion cable to 13.2m or less.
(3) When using the expansion cable, do not bind it with or place it close to the main circuit (high-voltage, large-
Caution current) lines.
(4) Assign the expansion stages in ascending order. Do not assign two or more modules to one stage.
(5) Connect the expansion cable from OUT of the expansion cable connector of the base module to IN of the
connector of the next expansion base module.
2 - 16
3 GENERAL SPECIFICATION
MELSEC-Q
3. GENERAL SPECIFICATION
3-1
3 GENERAL SPECIFICATION
MELSEC-Q
MEMO
3-2
4 CPU MODULE
MELSEC-Q
4. CPU MODULE
limited depending
1024 (Default: 256 points)
on the
• Normal counter (C0 to C255).............................Setting range: 1 to 32767
programming
counts
software to be
Counter [C] (points) • Interrupt counter (None for initial state)..............C224 to C255 are possible
used.
depending on setting.
• Expansion counter (C256 to C1023)..................Count value is set by word
device (D, W, and R).
Data register [D] (points) 8192 (D0 to D8191)
Link register [W] (points) 8192 (W0 to W1FFF)
Annunciator [F] (points) 2048 (F0 to F2047)
File register [R] (points) 8192 (R0 to R8191)
Accumulator [A] (points) 2 (A0, A1)
Index register [V, Z] (points) 14 (V, V1 to V6, Z, Z1 to Z6)
Pointer [P] (points) 256 (P0 to P255)
Interrupt pointer [I] (points) 32 (I0 to I31)
Special relay [M] (points) 256 (M9000 to M9255)
Special register [D] (points) 256 (D9000 to D9255)
4-1
4 CPU MODULE
MELSEC-Q
(Performance specifications--continued)
Item Q02CPU-A Q02HCPU-A Q06HCPU-A Remark
Comment (point) 4032 max. (Can be set in units of 64 points)
Expansion comment (point) 3968 max. (Can be set in units of 64 points)
Output mode selection from STOP Selectable from re-outputting operation status before STOP (default) or starting
Set by parameters
to RUN output after operation
Monitoring congestion of operations (watchdog timer: 200ms fixed),
Self-diagnostic function
Detection of abnormality in memory, CPU, I/O, or battery
Operation mode at error Selectable from stop or continue
Latch (power failure compensation)
L1000 to L2047 (default) (Latch range can be set for L, B, T, C, D, and W.) Set by parameters
range
Remote RUN/PAUSE contact One point set for each of RUN/PAUSE contact from X0 to X1FFF
Print title registration Available (128 characters)
Keyword registration Available
I/O assignment Registration of occupied I/O points and module type name
Step operation Execute/stop of sequence program operations
Set at special
Constant scan (ms) 10 to 190 (Can be set in units of 10ms)
register D9020
Year, month, day, hour, minute, second, day of week (leap year automatic
detection)
Accuracy – 3.18 to + 5.25s (TYP. + 2.12s)/d at 0 °C
Clock function
– 3.93 to + 5.25s (TYP. + 1.90s)/d at 25 °C
– 14.69 to + 3.53s (TYP. – 3.67s)/d at 55 °C
4-2
4 CPU MODULE
MELSEC-Q
4-3
4 CPU MODULE
MELSEC-Q
Power-on
Initial processing
• Initialization of I/O module
• Initialization of data memory
• I/O address allocation of I/O module
• Self-diagnosis
• Set link parameter
END processing
• Self-diagnosis
• Updating current value of the timer and
counter, and setting the contacts ON/OFF
• Communication with computer link module
• Link refresh processing
• Sampling trace processing
• MELSECNET/MINI-S3 automatic refresh
processing
4-4
4 CPU MODULE
MELSEC-Q
The PC CPU has four kinds of operation states: RUN state, STOP state, PAUSE state,
and step operation (STEP RUN) state.
Operation processing of PC CPU in each operation state is explained.
(b) When entering the RUN state, the output state escaped by STOP is output
depending on the output mode setting of parameter upon STOP RUN.
(c) Processing time from switching from STOP to RUN until the startup of
sequence program is usually one to three seconds, yet it may vary
depending on the system configuration.
(b) When entering the STOP state, it escapes the output state and sets all
output points to OFF. Data memories except for output (Y) are retained.
(b) Since an operation processing is paused while retaining the output and data
memories, condition of the execution can be confirmed.
4-5
4 CPU MODULE
MELSEC-Q
POINTS
Whether in the RUN, STOP or PAUSE state, PC CPU is performing the following:
• Refresh processing of I/O module
• Data communication with computer link module
• Link refresh processing.
Thus, even in the STOP or PAUSE state, monitoring or testing I/O with peripheral
devices, reading or writing from a computer link module, and communication with
other stations by MELSECNET are possible.
4-6
4 CPU MODULE
MELSEC-Q
The PC CPU detects a momentary power failure when input power voltage supplied to
the power supply module becomes lower than the specified range.
When the PC CPU detects a momentary power failure, following operation processing
is performed.
(1) When a momentary power failure shorter than allowable period of momentary
power failure occurred:
(a) When a momentary power failure occurred, operation processing is
interrupted while the output state is retained.
(b) When the momentary power failure is reset, operation processing will be
continued.
(c) When a momentary power failure occurred and the operation was
interrupted, measurement of the watchdog timer (WDT) continues. For
instance, when the scan time is 190ms and a momentary power failure of
15ms occurs, it causes the watchdog timer error (200ms).
(2) When a momentary power failure longer than the allowable period of momentary
power failure occurred:
The PC CPU performs the initial start. The operation processing is the same as
power-on or reset operation with the reset switch.
4-7
4 CPU MODULE
MELSEC-Q
4.1.4 Self-diagnosis
(4) When the self-diagnosis detects an error, the module will be in one of the two
modes below:
• Mode wherein operation of the PC is stopped
• Mode wherein operation of the PC continues
In addition, there are errors with which the operation can be selected to stop or to
continue by the parameter setting.
(a) When a stop-operation mode error is detected by the self-diagnosis, the
operation is stopped at the time of detection of the error, and sets the all
outputs(Y) to OFF.
(b) When a continue-operation mode error is detected, the only part of the
program with the error is not executed while the all other part is executed.
Also, in case of I/O module verification error, the operation is continued
using the I/O address prior to the error.
When an error is detected, error generation and error contents are stored in the
special relay (M) and special register (D), so that in case of the continue-
operation mode, the program can use the information to prevent any
malfunctions of the PC or devices.
Error descriptions detected by the self-diagnosis are shown in the next page.
REMARK
1 As to the LED display message, the order of priority of the LED display can be
changed if CPU is in the operation mode. (An error code is stored in the special
register).
2 When the special relay M9084 is ON, checking on blown fuse, I/O verification and
the battery are not performed (an error code is not stored in the special register).
3 The "Error display of peripheral device" in the table of self-diagnostic functions
are messages displayed by the PC diagnosis of peripheral devices.
4-8
4 CPU MODULE
MELSEC-Q
Self-diagnostic functions
Status of Error display of peripheral Error code
Diagnosis item Diagnosis timing CPU status
"RUN" LED devices (D9008)
Instruction code check Upon execution of each instruction INSTRCT. CODE ERR. 10
• Upon power-on and reset
Parameter setting check • Upon switching from (STOP, PAUSE) to PARAMETER ERROR 11
(RUN, STEP-RUN)
• When M9056 or M9057 is ON
No END instruction • Upon switching from (STOP, PAUSE) to MISSING END INS. 12
(RUN, STEP-RUN)
Memory error
Operation circuit check • Upon power-on and reset OPE. CIRCUIT ERR. 21
Stop Flickering
Watchdog error supervision • Upon execution of END instruction WDT ERROR 22
END instruction not executed • Upon execution of END instruction END NOT EXECUTE 24
Main CPU check Always MAIN CPU DOWN 26
Upon execution of END instruction
I/O module verification Stop Flickering
(However, not checked when M9084 or UNIT VERIFY ERR. 31
1 (Default: stop)
I/O error
M9094 is ON.)
Upon execution of END instruction
Fuse blown
(However, not checked when M9084 or FUSE BREAK OFF. 32
1 (Default: operate) Operate ON
M9094 is ON.)
Control bus check Upon execution of FROM, TO instruction CONTROL-BUS ERR. 40
Special function module error Upon execution of FROM, TO instruction SP. UNIT DOWN 41
• Upon power-on and reset
Link module error • Upon switching from (STOP, PAUSE) to LINK UNIT ERROR 42
Special function module error
Always
Low battery Operate Flickering BATTERY ERROR 70
(However, not checked when M9084 is ON.)
Stop Flickering
Operation check error OPERATION ERROR 2
Upon execution of each instruction 50
1 (Default: operate) [<CHK> ERROR ]
Operate ON
1: Can be changed by the parameter settings of a peripheral device.
2: Displayed as a three-digit trouble code only for errors with the "CHK" instruction.
4-9
4 CPU MODULE
MELSEC-Q
Device list
Range of usage (points)
Device Description of device
QCPU-A
Used to supply PC commands and data from peripheral devices such as
X Input
X, Y push buttons, select switches, limit switches and digital switches.
0 to FFF (4096 points) Used to output control results of a program to external devices such as
Y Output
solenoids, magnetic switches, signal lights and digital display device.
X Input • Possible to use in a program after the I/O points usage range per each
QCPU-A (described above) to a maximum of 8192 points (external output
X, Y
is not allowed).
Y Output 0 to 1FFF (8192 points)
• Objective is to allocate for automatic I/O refresh of MELSECNET/MINI or
for remote I/O of MELSECNET/10.
Special relay M9000 to 9255 (256 points) An auxiliary relay used inside a PC set in advance for a specialized use.
M An auxiliary relay inside a PC which cannot output directly to external
Internal relay
devices.
M/L/S 0 to 8191 (8192 points) An auxiliary relay inside a PC which cannot output directly to external
L Latch relay
8192 points as a total of M, L, S devices. Has the power failure compensation function.
Used in the same manner as the internal relay (M). Used as a relays to
S Step relay
indicate the stage number of process stepping program, etc.
An internal relay for data link and cannot output to external devices. The
B Link relay B0 to B1FFF (8192 points)
range not setup by link parameters can be used as the internal relay.
For fault detection. A fault detection program is created in advance, and if it
F Annunciator F0 to F2047 (2048 points)
becomes ON during RUN, the number is stored in a special register D.
100ms timer
Up-timing-timer. There are four kinds: 100ms timer, 10ms timer, 100ms
10ms timer T0 to T2047 (2048 points)
retentive timer and 1ms timer.
T (Register for storing setting value(s) is
100ms retentive timer • 1ms timer: ZHTIME instruction enables 1ms timer using the latter half of the
required for T256 and later.)
retentive timer.
1ms timer
4 - 10
4 CPU MODULE
MELSEC-Q
A list of parameter setting ranges is provided below. User memory allocation contents,
I/O device allocation method and automatic refresh procedure for MELSECNET/MINI-
S3 are also explained.
Parameters are used for allocating the user memory area inside the memory cassette,
setting various functions and device ranges.
A parameter is usually stored in the first 3k bytes of the user memory area.
Among the parameters, the network parameter for MELSECNET/10 is allocated and
stored after the main sequence program area. (Refer to Section 4.2.2 for details).
As shown in the list below, a default value is given to each parameter.
Even though a default value can be used, parameter value can be changed to a value
suitable for a particular application within a setting range by a peripheral device.
Setting Setting range
Default value
Item Q02CPU-A, Q02HCPU-A Q06HCPU-A
1 to 28k steps 1 to 30k steps
Main sequence program capacity 6k steps
(1k steps = in 2k-byte units) (1k steps = in 2k-byte units)
1 to 30k steps
Contents of sub sequence program —— ——
(1k steps units)
File register —— 0 to 8k points (1k points = in 2k-byte units)
1 block = 16k bytes
(Block setting for from No.1 to No.8, from No.10 to the end of unused area in
Expansion file register —— the memory)
[Automatically setup in the unused area in the memory based on the file
register setting.]
0 to 4032 points (64 point unit = in 1k byte units)
Comment capacity ——
[When comment capacity is set up, 1k byte is added to the memory area.]
Expansion comment capacity —— 0 to 3968 points (64 point unit = in 1k byte units)
Status latch —— No parameter setting
Performed by setting up expansion file registers to store device and result
Sampling trace —— in each of status latch and sampling trace modes.
Refer to ACPU Programming Manual (Fundamentals).
Link relay (B) B0 to B1FFF (unit: 1 point)
T0 to T255 (unit: 1 point)
Timer (T)
Latch range setting • Latch: T256 to T2047 (unit: 1 point)
(power failure L1000 to L2047 only. C0 to C255 (unit: 1 point)
Counter (C)
compensation) • None for others. C256 to C1023 (unit: 1 point)
Data register (D) D0 to D8191 (unit: 1 point)
Link register (W) W0 to W1FFF (unit: 1 point)
Optical link: maximum 64 stations
Number of link stations
Coaxial link: maximum 32 stations
Link range setting for
I/O (X/Y) —— X/Y0 to X/Y1FFF (unit: 16 points)
MELSECNET/10
Link relay (B) B0 to B1FFF (unit:16 points)
Link register (W) W0 to W1FFF (unit: 1 point)
Settings for M0 to M999
internal relay (M) M2048 to M8191 M/L/S 0 to 8191
latch relay (L) L1000 to L2047 (where M, L, S are continuous numbers)
step relay (S) None for S
T0 to T199 (100ms) • 256 points by 100ms, 10ms, and retentive timers (in 8 point units)
T0 to T255
T200 to T255 (10ms) • Timers are continuously numbered.
Timer settings • 1792 points by 100ms, 10ms, and retentive timers (in 16 point units)
T256 to T2047 —— • Timers are continuously numbered.
• Devices set: D, R, W (Setting required if 257 points or more.)
Interrupt counter setting —— •· Sets whether to use interrupt counter (C224 to C225) or not.
Counter setting 256 points • 0 to 1024 points (in 16 point units)
Points used
(C0 to C255) • Devices set: D, R, W (Setting required if 257 points or more.)
4 - 11
4 CPU MODULE
MELSEC-Q
4 - 12
4 CPU MODULE
MELSEC-Q
4.2.2 Memory capacity setting (for main program, file register, comment, etc.)
QCPU-A has 144k bytes of user memory (RAM) as a standard. Parameters, T/C set
value main program, MELSECNET/10 network parameters, expansion comment, file
register, and comment data are stored in the user memory.
<With Q06HCPU-A>
Max. available memory Change into
Item Setting unit Calculation of memory capacity (bytes) Remark
capacity (bytes) ROM
Parameter — 3k 3k
T/C set value — 1k 1k
Main Sequence program 1k step Number of steps × 2 60k
program Total: Dedicated to
Microcomputer program 1k byte Preset number of bytes 58k
60k Available SFC
MELSECNET/10 parameter — See note 1. 16k
Total:
Sub T/C set value 1k byte 1k 1k
144k
program Sequence program 1k step Number of steps × 2 58k
Microcomputer program — 5k 5k
Expansion comment 1k byte Preset number of bytes (1k byte = 64 points) 63k 1
Expansion file register (built-in) 8k points Number of file register points × 2 128k
File register 1k point Number of file register points × 2 16k Not available
Comment 1k byte Preset number of bytes (1k byte = 64 points) 64k 1
Expansion file register (memory card) 8k points Number of file register points × 2 302k
1: When the capacity of comment or expansion comment is specified, the system occupies 1k byte for each.
4 - 13
4 CPU MODULE
MELSEC-Q
4 - 14
4 CPU MODULE
MELSEC-Q
MELSECNET/10
network parameter
Boot operation
Unused from ROM
MELSECNET/10 MELSECNET/10
network parameter network parameter
1
Sub program Sub program
POINT
Note that the sequence program can use only up to 22k steps when the maximum
16k bytes are used for the MELSECNET/10 network parameters.
The memory area for the sequence program for QCPU-A is the same as that for
MELSECNET/10. Therefore, the remainder of subtracting the memory area used by
MELSECNET/10 network parameters from the maximum 30k steps can be used for
the memory area for the sequence program.
4 - 15
4 CPU MODULE
MELSEC-Q
4 - 16
4 CPU MODULE
MELSEC-Q
The interrupt counters in C224 to C255 are allocated to the interrupt pointers I0 toI31
as shown below, and count the occurrences of interrupts in I0 to I31.
Interrupt pointer Interrupt counter Interrupt pointer Interrupt counter Interrupt pointer Interrupt counter Interrupt pointer Interrupt counter
I0 C224 I8 C232 I16 C240 I24 C248
I1 C225 I9 C233 I17 C241 I25 C249
I2 C226 I10 C234 I18 C242 I26 C250
I3 C227 I11 C235 I19 C243 I27 C251
I4 C228 I12 C236 I20 C244 I28 C252
I5 C229 I13 C237 I21 C245 I29 C253
I6 C230 I14 C238 I22 C246 I30 C254
I7 C231 I15 C239 I23 C247 I31 C255
(d) Counter-use points can be set arbitrarily in 16 point units using continuous
numbers. By setting the counter which points to the number actually used,
the counter processing time subsequent to the END instruction can be
shortened.
POINT
When timer-use points are set to 257 points or more or counter-use points are set to
256 points or more, the set value storage devices (D, W, R), specified at the time of
timer/counter use point setup, are automatically set in continuous numbers.
<Example>
When timer-use points are set to 512 points and set value storage device is set
to D1000, D equivalent to 256 points (D1000 to D1255) in T256 to T511 become
the devices, with continuous numbers, for the set values
4 - 17
4 CPU MODULE
MELSEC-Q
QCPU-A has 8192 I/O device points (X/Y0 to 1FFF) each for input (X) and output (Y).
There are actual I/O devices and remote I/O devices in this I/O range.
(c) Allocate to the reception data storage device or transmission data storage
device in the MELSECNET/MINI-S3's automatic refresh setting.
By registering the model name of the following special function modules upon the I/O
allocation from a peripheral device, dedicated commands for special function modules
can be used.
Model name of special function module Model name of the module to be set
A1SJ71UC24-R2
A1SJ71UC24-R4 A1SJ71C24
A1SJ71UC24-PRF
A1SJ71PT32-S3 A1SPT32S3
4 - 18
4 CPU MODULE
MELSEC-Q
Sequence programs can be created using the I/O devices as they are allocated to
send/received by the automatic refresh setting. (The FROM/TO instructions are not
required.)
POINTS
(1) Since up to 8 master modules can be set for automatic refresh by the
parameter, automatic refresh is possible for up to 8 modules. If 9 or more
modules are desired, use the FROM/TO instruction in the sequence program
from the 9th module.
(2) Since automatic refresh is not possible with send/received data for separate
refresh I/O module and for remote terminal modules No.1 to No.14, use the
FROM/TO instruction for them. However, the remote terminal modules shown
below are subject of automatic refresh in a limited area:
• AJ35PTF-R2 RS-232C interface module
• AJ35PT-OPB-M1-S3 mount-type tool box
• AJ35PT-OPB-P1-S3 portable type tool box
(3) For the master modules set up for automatic refresh, CPU automatically turns
ON the link communication start signal Y(n+18) or Y(n+28), so it is not
necessary to turn it on from the sequence program.
(4) Automatic refresh of I/O data is performed by batch after the CPU executes the
END instruction. (Automatic refresh processing is performed when the CPU is
in the RUN/PAUSE/STEP RUN state).
(5) The master module may perform the processing while link communication start
signal Y(n+28) is OFF depending on the remote terminal module connected.
For instance, if the AJ35PTF-R2 RS-232C interface module is used without
protocol, it is necessary to write parameters to the parameter area (buffer
memory address 860 to 929) while the link communication start signal is OFF.
The link communication start signal becomes ON after CPU enters the RUN
state and one scan is performed, so write the parameters during the first 1
scan.
1 scan
CPU RUN
4 - 19
4 CPU MODULE
MELSEC-Q
(1) Parameter setting items, setting ranges and contents of automatic refresh, as well
as the buffer memory address of the master module which is used for exchanging
data with QCPU-A are shown below.
Set the parameters for the number of A1SJ71PT32-S3/AJ71PT32-S3 master
modules used.
I/O signal from Buffer memory
the master address of the Item Setting range Description
module master module
Number of master
—— —— 1 to 8 module (s) • Sets the total number of master modules to be used.
modules
• Sets the head I/O number where the master module is
—— —— Head I/O No. I/O points of CPU
installed.
Model classification of • MINI ........................... In I/O mode (occupies 32 points)
—— —— • MINI or MINI-S3
MINI/MINI-S3 • MINI-S3 ..................... In expansion mode (occupies 48 points)
• Set only when MINI is set.
Total number of remote • In MINI-S3, the number of master module's initial ROMs
—— 0 0 to 64 station (s)
I/O stations becomes valid, so the setting is not necessary .(When it is set,
the setting is ignored).
•X • Sets the devices to store received/send data for batch refresh.
Received data storage
—— 110 to 141 • M, L, B, T, C, D, W, R, none • Specify the head number of a device.
device
(Bit device: multiples of 16) • Occupies as the automatic refresh area from the head of the
•Y device for the number of stations (8 points/station × 64 station =
Send data storage
—— 10 to 41 • M, L, B, T, C, D, W, R, none 512 points: bit device) 2
device
(Bit device: multiples of 16) • Use of X/Y remote I/O range is recommended for devices.
• Sets the number of retries upon a communication error.
—— 1 Number of retries 0 to 32 times • Error is not output if communication is restored within the
number of retries set.
(1) Link priority........... Link access by MINI-S3 has the priority.
During the link access, FROM/TO is
caused to wait.
• Possible to read out the received data refreshed at the
same timing.
• Maximum (0.3ms + 0.2ms × number of separate refresh
Link priority, CPU priority
stations) of FROM/TO instruction wait time may be
1 FROM/TO response Priority selection of access
—— generated.
Y(n + 1A) specification to the master module buffer
(2) CPU priority.......... Access by FROM/TO instruction of CPU
memory
has the priority.
Even during the link access, it interrupts
and accesses.
• Depending on the timing, received data in the midst of I/O
refresh may be read.
• No wait time for FROM/TO instruction.
Data clear specification • Retain ........................ Retains the received data for batch and
1
—— for communication faulty Retain, clear (received data) separate refresh.
Y(n + 1B)
station • Clear .......................... Sets all points to OFF
100 • Sets the head device to store the faulty station detection data.
to M, L, B, T, C, D, W, R, none • MINI ........................... occupies 4 words; MINI-S3: occupies 5
—— Error station detection
103 (Bit device: multiples of 16) words.
195
• Sets the head device to store the error code on the occurrence
107
of an error.
196
—— Error No. T, C, D, W, R • MINI ........................... occupies 1 word;
to
MINI-S3 ..................... occupies (1 + number of remote terminal
209
modules) words
• Test message sending
Line error check setting • OFF data sending • Sets data sending method for verification of error location on
—— 4
(Line error) • Transmit data immediately the occurrence of a line error.
before line error
1 "n" is determined by the installation location of the master module.
2 When the total number of remote I/O station is odd, add 1 to the station number to obtain storage devices occupied.
4 - 20
4 CPU MODULE
MELSEC-Q
(2) Setting of send/received data storage device is explained using the system
example shown below.
<Example> When device X/Y400 and later are used as remote I/O stations:
MELSECNET/MINI
Sample parameter setting of the GPP function software package for the above
system configuration is shown below:
Number of modules [1] (0-8) I/O No. 0040
Model MINI
Number of stations 11
Received X0400
Send Y0400
Retries 5
Response CPU
Data clear Clear
Detection
Error number
Error Retain
The storage devices for send/received data for the present system example are
as follows:
(a) Storage device for received data
Master module QCPU-A
Address b15 b8 b7 b0
110 Station 2 Station 1 X40F to X408 X407 to X400
111 Station 4 Station 3 X41F to X418 X417 to X410
112 Station 6 Station 5 X42F to X428 X427 to X420
113 Station 8 Station 7 X43F to X438 X437 to X430
114 Station 10 Station 9 X44F to X448 X447 to X440
115 Station 11 X45F to X458 X457 to X450
Input area Used by the system
4 - 21
4 CPU MODULE
MELSEC-Q
1 Set the device number (X400) for b0 of the station 1 as a received data
storage device.
1 Set the device number (Y400) for b0 of the station 1 as a send data
storage device.
POINTS
(1) Set the send and received data storage devices so that device numbers do not
overlap.
When the received data storage device is set to B0 in the system configuration
example, it occupies B0 to B5F as the device range.
Set the send data storage device to B60 or later. When the send data storage
device is set to B60, the device range will be B60 to BBF.
(2) If a bit device is specified as the send/received data storage device, the device
number set must be a multiple of 16.
<Example> X0, X10 .............X100,...........
M0, M16,...........M256, ..........
B0, B10, ............B100,...........
(3) Device range used is (8 points) × (Number of stations).
When the number of stations is an odd number, extra 8 points are necessary.
4 - 22
4 CPU MODULE
MELSEC-Q
4 - 23
4 CPU MODULE
MELSEC-Q
4 - 24
4 CPU MODULE
MELSEC-Q
This section describes the new functions added to QCPU-A (A mode) which are not
available with A2USHCPU-S1.
Boot operation is enabled by booting parameters and sequence programs from the
standard ROM to the standard RAM at startup.
The boot operation from the standard ROM allows the retention of sequence programs
without using batteries even when the power is OFF.
The procedure of the boot operation from the standard ROM is described below:
OFF ON
Status of DIP
switch 3
RAM operation RAM operation
OFF D9076: 0 D9076: 0
M9076: OFF M9076: OFF
Boot operation from standard ROM
RAM operation D9076: 2
ON D9076: 1 M9076: ON
M9076: OFF (Writing available with standard
ROM)
POINTS
(1) Like the conventional A2USHCPU-S1, the available capacity of the standard
memory (file register, comment, etc.) does not increase even if the ROM
operation is selected.
(2) During the ROM operation, the program stored in the standard RAM is
overwritten with the program stored in the ROM.
Before starting the boot operation, be sure to back up the program with
peripheral devices.
(3) The capacity of the standard ROM is 144k bytes, the same as that of the
standard RAM. Writing is disabled when the total capacity of parameters and
programs exceeds 144k bytes. (Comments and file registers cannot be written
to the standard ROM.)
(4) When the attempt is made to boot parameters and programs from the
standard ROM to the standard RAM but the standard ROM does not contain
proper programs, a parameter error occurs. (Detailed error code: 114)
(5) Writing during RUN is performed to the standard RAM. When the boot
operation is used, be sure to write the program which is written to the standard
RAM during RUN also to the standard ROM.
4 - 26
4 CPU MODULE
MELSEC-Q
(a) During RAM operation (b) During boot operation from ROM
Parameter
T/C setting value
Main program
MELSECNET/10
network parameter
T/C setting value
Memory capacity
of ROM Sub program 1
(144k bytes max.) Unusable
Boot operation
Unused from ROM
4 - 27
4 CPU MODULE
MELSEC-Q
With QCPU-A, a 1ms timer can be used in addition to the conventional high-speed
timer (10ms) and low-speed timer (100ms).
(1) Usage
Adding "ZHTIME", a 1ms timer setting instruction, in a program enables the use
of a 1ms timer. (The ZHTIME instruction must be written in the main program.)
The ZHTIME instruction is checked at startup and at switching from STOP to
RUN. When this instruction exists in the main program, the 1ms timer can be
used.
If the ZHTIME instruction does not exist in the main program, only the
100ms/10ms timer can be used, and the 1ms timer is disabled.
The number of occupied points is set as the total points of the 100ms timer,
10ms timer, retentive timer, and 1ms timer.
The area for the 1ms timer is reserved following that of the retentive timer.
Consequently, the constant specified with the ZHTIME instruction is designated
as the device number following that of the retentive timer specified by parameters
in the unit of 16 points.
LEDR
4 - 28
4 CPU MODULE
MELSEC-Q
SUB K208
LEDR
According to the setting above, the devices designated for the 100ms timer
are T0 to T119, for the 10ms timer are T120 to T159, for the retentive timer
are T160 to T207, and for the 1ms timer are T208 to T255.
4 - 29
4 CPU MODULE
MELSEC-Q
SUB K400
LEDR
According to the setting above, the devices designated for the 100ms timer
are T0 to T239, for the 10ms timer are T240 to T319, for the retentive timer
are T320 to T399, and for the 1ms timer are T400 to T511.
POINTS
Note the following points to use the ZHTIME instruction.
(1) The ZHTIME instruction must be written in the main program.
(2) The ZHTIME instruction must be designated in the unit of 16 points.
(3) The number of occupied points designated in the timer setting by parameters
should include those for the 1ms timer.
(4) When the range for the timer setting by parameters is between T256 and
2047, the initial device number to be used should be set at the item of the
retentive timer between T256 and 2047.
The 100ms timer should be used as the retentive timer.
4 - 30
4 CPU MODULE
MELSEC-Q
With QCPU-A, as the scan time becomes faster, it may affect the processing of
FROM/TO instruction or the scan time for special function modules.
Such problems can be avoided by using the following special relay and special register
as interlock and executing FROM/TO instruction in the unit of several ms.
(1) Procedure
Set by
Number Name Description Details
(Set at)
• Compares the setting value at D9077 with the time elapsed from
the start of measurement (accumulation time) at every scan.
Then, performs the following operations:
Setting value Accumulation time
: Turns M9077 ON and clears the accumulation time.
Sequence Setting value > Accumulation time
ON : Time elapsed
M9077 accumulation time : Turns M9077 from ON to OFF and clears the accumulation System
OFF: Time not elapsed
measurement time. When M9077 is already OFF, clears the accumulation
time.
When 1 to 255 is designated at D9077, M9077 is turned ON at
the first scan.
When a value other than 1 to 255 is designated at D9077, the
value in D9077 is reset to 0 and M9077 is always turned OFF.
• Stores the accumulation time used by M9077.
Sequence
Setting range: 1 to 255ms (Default: 5ms)
D9077 accumulation time Accumulation time setting User
When a value other than 1 to 255 ms is designated, the value in
measurement
D9077 is reset to 0.
(a) When 5ms is set at D9077 (The scan time is shorter than the setting value.)
1st scan 2nd scan 3rd scan 4th scan 5th scan 6th scan
M9077
Turns OFF because Remains OFF because Turns ON because Remains ON because Turns OFF because Turns ON because
accumulation time accumulation time accumulation time accumulation time accumulation time accumulation time
is 4 ms. is 3 ms. is 10 ms. is 5 ms. is 4 ms. is 10 ms.
Internal timer 0 4 0 3 10 0 5 0 4 0 5 0
In the diagram above, M9077 is ON at the first scan so that the instruction is
executed. At the beginning of the second scan, the accumulation time does
not reach 5 ms. As a result, M9077 turns OFF, the accumulation time is
cleared, and the instruction is not executed. At the end of the second scan,
the accumulation time does not reach 5 ms, so that M9077 remains OFF
and the instruction is not executed. At the end of the third scan, the
accumulation time exceeds 5 ms. As a result, M9077 turns ON, the
accumulation time is cleared, and the instruction is executed at the forth
scan. At the end of the forth scan, the accumulation time exceeds 5 ms, so
that M9077 remains ON and the instruction is executed at the fifth scan. At
the end of the fifth scan, the accumulation time does not reach 5 ms so that
M9077 turns OFF. The accumulation time is cleared and the instruction is
not executed at the sixth scan.
4 - 31
4 CPU MODULE
MELSEC-Q
(b) When 5ms is set at D9077 (The scan time is longer than the setting value.)
1st scan 2nd scan 3rd scan 4th scan
M9077
In the diagram above, M9077 is always ON when the scan time is always
longer than the setting value (D9077).
1: The setting range for the sequence accumulation time is 1 to 255ms (default:
5ms).
The value in D9077 should be in the range between 1 and 255. Otherwise,
the value in D9077 is reset to 0 and M9077 is always OFF.
2: If the instruction signal for the FROM/TO instruction is a pulse signal, the
interlock with M9077 may mask the FROM/TO instruction, disabling
execution. In such a case, keep the instruction signal once in the other
device.
3: If execution order is set to the FROM/TO instruction, adding M9077 may
change the execution order. In such a case, do not use M9077, and make
the execution interval of the FROM/TO instruction longer with a user
program.
4 - 32
4 CPU MODULE
MELSEC-Q
Precautions when handling the CPU module, from unpacking to installation, are
described below.
• Use the PC in the environment given in the general specifications of this manual.
CAUTION
Using the PC outside the range of the general specifications may result in electric
shock, fire or malfunctioning, or may damage or degrade the module.
• Insert the tabs at the bottom of the module into the mounting holes in the base
module before installing the module, and tighten the module fixed screws with the
specified torque. Improper installation may result in malfunctioning, breakdowns or
cause the module to fall out.
• Tighten the screws with the specified torque. If the screws are loose, it may result in
short circuits, malfunctioning or cause the module to fall out.
If the screws are tightened too much, it may damage the screws and the module
may result in short circuits, malfunctioning or cause the module to fall out.
• Make sure the memory card is installed securely in its installation connector. After
installation, confirm that it is securely tightened. Defective contact may cause
malfunctioning.
• Do not touch the conducted part of the module or electric parts. This may cause
malfunctioning or breakdowns.
(1) Module case, memory card, terminal block connector and pin connector are made
of resin. Do not fall them or apply a strong shock to them.
(2) Do not remove the printed board of each module from its case. Doing so may
cause breakdown.
(3) While wiring, be careful not to let foreign matter such as wire chips get inside the
module. If it does get in, remove it immediately.
(4) When using the expansion base module (QA1S6 B), be sure to install the power
supply module. Although the module may work without the power supply module
under light load, stable operation is not guaranteed.
(5) Perform tightening of module installation screws and terminal screws on the CPU
module, power supply module, I/O module and special function module with the
following torque:
Screw location Tightening torque range
QCPU-A module fastening screw (M3 × 12) 36 to 48N • cm
AnS series, Module installation screws (M4 screw) 78 to 118N • cm
Terminal screws for power supply module and I/O module (M3.5 screw) 59 to 88N • cm
(6) When using the expansion cable, do not bind it with or place it close to the main
circuit (high-voltage, large-current) lines.
4 - 33
4 CPU MODULE
MELSEC-Q
14)
RESET L CLR
PULL 15)
USB
11) 1
PULL
RS-232
12)
8)
17)
19)
18)
4 - 35
4 CPU MODULE
MELSEC-Q
4 - 36
4 CPU MODULE
MELSEC-Q
POINT
The CPU will not go into the RUN status if you move the key switch to RUN
immediately after writing a program in the STOP status of the CPU. After writing a
program, perform rest with the RESET/L.CLR switch, then move the RUN/STOP
switch to RUN to set the CPU to the RUN status.
To perform latch clear, operate the RESET/L.CLR switch in the following procedure.
1) RESET/L.CLR switch: Move the switch to L.CLR several times until the
USER LED flickers.
(Do not move it to RESET.)
USER LED: Flicker.............. Ready for latch clear.
2) RESET/L.CLR switch: Move the switch to L.CLR once more.
USER LED: OFF ................. Latch clear complete.
POINT
Latch clear can be set to be valid or invalid device-by-device by making device
setting in the parameter mode.
POINT
If you installed or removed the memory card while power was on, the data within
the memory card may be corrupted.
4 - 37
4 CPU MODULE
MELSEC-Q
MEMO
4 - 38
5 POWER SUPPLY MODULE
MELSEC-Q
5.1 Specifications
Dielectric Primary-5VDC Between input: batch LG and output: batch FG, 500VAC
withstand voltage Primary-24VDC 2830VAC rms/3 cycle (altitude 2,000m (6562 ft) ——
Between input: batch LG and
Insulation resistance output: batch FG, 500VAC 5M or above by insulation resistance tester
(5M or above by insulation resistance tester)
By noise simulator with noise voltage of 1,500Vp-p,
By noise simulator with noise voltage of 500Vp-p,
noise width of 1µs, and noise frequency of 25 to
Noise durability noise width of 1µs, and noise frequency of 25 to
60Hz.
60Hz.
Noise voltage IEC801-4, 2kV
Operation display LED display (ON for 5VDC output)
Terminal screw size M3.5 × 7
Applicable wire size 0.75 to 2mm2
Applicable crimp-style terminal RAV1.25-3.5, RAV2-3.5
Applicable tightening torque 59 to 88N•cm
External dimensions (mm (inch)) 130 (5.12) × 55 (2.17) × 93.6 (3.69)
Weight (kg) 0.60 0.60 0.50
5-1
5 POWER SUPPLY MODULE
MELSEC-Q
POINTS
1: Overcurrent protection
If the current above the spec value flows in the 5VDC or 24VDC circuit,
overcurrent protection device interrupts the circuit and stops the system
operation. LED display of the power supply module is either OFF or ON dimly,
due to the voltage drop.
When this device is once activated, remove factors of insufficient current
capacity and short-circuit before starting up the system. When the current
restores to the normal value, the system performs the initial start.
2: Overvoltage protection
When 5.5V to 6.5V of overvoltage is applied to the 5VDC circuit, overvoltage
protection device interrupts the circuit and stops the system operation.
LED display of the power supply module turns OFF. To restart the system, turn
OFF the input power supply, then back to ON. The system performs the initial
start.
If the system does not start and LED display remains OFF, the power supply
module needs to be replaced
3: Allowable period of momentary power failure
This indicates allowable period of momentary power failure of PC CPU, and is
determined by the power supply module used. Allowable period of momentary
power failure for a system using A1S63P is the period it takes until the 24VDC
falls below the specified voltage (15.6VDC) after cutting off the primary power
supply of the stabilized power supply, which supplies the 24VDC power to
A1S63P.
5-2
5 POWER SUPPLY MODULE
MELSEC-Q
5.2.1 Name of each part of different power supply modules is provided below.
MITSUBISHI MITSUBISHI
8) 8)
INPUT OUTPUT INPUT OUTPUT
100-240VAC 5VDC 5A 100-240VAC 5VDC 3A
105VA 105VA 24VDC 0.6A
50 / 60Hz 50 / 60Hz
NC +24V
NC
2) 24G
3) (FG)
3) (FG)
4) (LG)
4) (LG)
INPUT INPUT
5) 100-240VAC
5) 100-240VAC
A1S61PN A1S62PN
7) 7)
9)
MELSECA1S63P
POWER 1)
MITSUBISHI
8)
INPUT OUTPUT
DC15.6 31.2V DC 5V 5A
NC
NC
3) FG
NC
NC
4) LG
+24V
6) INPUT
24G
7)
(3) A1S63P
No. Name Usage
1) "POWER" LED An LED which turns ON when 5VDC power is supplied
2) 24VDC/24GDC terminals Supplies power to the output module that requires 24VDC power supply (through external wiring).
3) FG terminals A ground terminal connected to the shielded pattern on the PC board
4) LG terminals A ground for power supply filter. With A1S61PN or A1S62PN, the potential is half the input voltage.
A power supply input terminal used to be connected with AC power supply between 100VAC and
5) Power supply input terminals
200VAC
6) Power supply input terminals A power supply input terminal used to be connected with 24VDC power supply
7) Terminal screw M3.5 × 7
8) Terminal cover A protective cover for the terminal block
9) Module fastening screw A screw that fastens the module to the base module (M4 screw, tightening torque: 59 to 88 N•cm)
POINTS
(1) Do not use the terminal marked NC in the terminal block.
(2) Be sure to ground LG and FG terminals with Type D (Type 3) or higher
grounding.
5-3
5 POWER SUPPLY MODULE
MELSEC-Q
MEMO
5-4
6 BASE MODULE AND EXPANSION CABLE
MELSEC-Q
This chapter describes the specifications of the base module (basic base module and
expansion base module) and expansion cable used in the system, as well as the use
standard of the expansion base module.
6-1
6 BASE MODULE AND EXPANSION CABLE
MELSEC-Q
The specifications of the expansion cable used for the QCPU system are shown
below:
Type name
QC06B QC12B QC30B QC50B QC100B
Item
Cable length (m) 0.6 1.2 3.0 5.0 10.0
Connection between the basic base module and the expansion base module, or between the expansion
Usage
base modules
Weight (kg) 0.16 0.22 0.40 0.60 1.11
POINT
When using two or more expansion cables, limit the total length of the cable to
13.2m or less.
6-2
6 BASE MODULE AND EXPANSION CABLE
MELSEC-Q
OUT
5V
CPU
SG
FG
2)
POWER I/O0 I/O1 I/O2 I/O3 I/O4 I/O5 I/O6 I/O7
QA1S38B
1)
3)
6)
6-3
6 BASE MODULE AND EXPANSION CABLE
MELSEC-Q
IN OUT
3)
5V
SG
2) FG
1)
4) 7)
6-4
6 BASE MODULE AND EXPANSION CABLE
MELSEC-Q
This section describes how to set the expansion stage number to use the expansion
base module.
Completion
POINTS
(1) To set the stage number setting connector, select the appropriate number from
1 through 7 in ascending order according to the number of expansion modules.
(2) Do not assign the same stage number to several modules or skip any stage
numbers. Otherwise, improper I/O operation results.
6-5
6 BASE MODULE AND EXPANSION CABLE
MELSEC-Q
MEMO
6-6
7 MEMORY CARD AND BATTERY
MELSEC-Q
This chapter explains the specifications and handling of the memory card and the
battery that can be used with QCPU-A.
The memory card that can be used with QCPU-A conforms to the specifications of
JEIDA/PCMCIA small PC card.
QCPU-A can contain only one memory card.
7-1
7 MEMORY CARD AND BATTERY
MELSEC-Q
POINT
Although a battery is inserted into the CPU module, the memory of the SRAM card
will not be backed up until a battery is inserted into the card.
Also, if a battery is inserted into the SRAM card but not into the CPU module, the
memory of the standard RAM of the CPU module will not be backed up.
1)
4)
Write-protection
ON direction
LOCK
RELEASE direction
direction
3)
2)
7-2
7 MEMORY CARD AND BATTERY
MELSEC-Q
Be sure to turn OFF the CPU module before inserting/removing the memory card
into/from the CPU module.
(1) Inserting the memory card
To insert the memory card into the CPU module, check the right orientation and
fully insert the memory card into the connector so that the remaining section of
the memory card is as high as the memory card EJECT button.
Memory card
CPU module
Direction of "Precautions"
insertion side
Press
Memory card
CPU module
Direction of removal
POINT
Note that the data in the memory card may be corrupted if the proper procedure
above is not followed.
7-3
7 MEMORY CARD AND BATTERY
MELSEC-Q
(1) The battery for the CPU module is shipped with its connector removed. Connect
the connector according to the procedure below:
Connector
Completion
Bottom side
Battery
(2) The battery for the SRAM card is shipped separately from the battery holder. To
use the SRAM memory, set the battery holder according to the procedure below:
Remove the battery holder from
the SRAM card.
"+" mark
Place the battery in the holder
with its "+" side up.
LOCK position
The battery holder lock switch automatically returns to
Completion LOCK position when the battery holder is removed.
With this status, insert the battery holder as far as it will go.
7-4
7 MEMORY CARD AND BATTERY
MELSEC-Q
Special relay M9006 or M9007 turns ON at the voltage drop of the backup battery for
program and memory retention during power failure. The contents of the program and
memory are not cleared immediately after these special relays turns ON, but they may
be lost if you overlook these relays being turned ON.
Be sure to replace the battery before the total of power failure time after M9006 or
M9007 turns ON reaches the specified retention time.
POINT
M9006 gives an alarm about low voltage of the battery. Data is retained within the
specified time after M9006 turns ON; however, the battery should be replaced as
soon as possible.
M9048 turns ON at the voltage drop of the battery for the standard RAM or SRAM
card.
POINTS
The following table shows the relationship between the batteries in the CPU module
and SRAM card and the memory backup.
The following two are the key factors:
1 The battery in the CPU module does not back up the memory of the SRAM
card.
2 The battery in the SRAM card does not back up the memory of the CPU
module.
AC power supply to Battery in CPU Battery in SRAM Memory of CPU Memory of SRAM
CPU module module card module card
ON
ON
OFF
ON
ON
OFF
OFF
ON
ON
OFF
OFF
ON
OFF
OFF
: Backup available : Backup not available
The reference battery service life and replacement procedures are described on the
subsequent pages.
7-5
7 MEMORY CARD AND BATTERY
MELSEC-Q
POINT
Note that the SRAM card in the CPU consumes the battery voltage even when the
CPU is turned ON.
For guidance, the service life of the battery for the SRAM card is guaranteed as
approximately 1.1 years on the condition that it is inserted into the CPU and the CPU is
turned on one hour a day.
The service life of Q6BAT is approximately 10 years when it is not connected with the
CPU module, or when it is connected with the CPU and is always live. Q6BAT should
be immediately replaced when the total of power failure time exceeds the guaranteed
life in the table above and M9006 turns ON.
Even when the total of power failure time is less than the guaranteed life in the table
above, it is recommended to replace the battery within the following years in terms of
preventive maintenance.
1 Ten years for Q02CPU-A
2 Four to five years for Q02HCPU-A or Q06HCPU-A
The battery for the SRAM card should be replaced immediately after M9048 turns ON.
7-6
7 MEMORY CARD AND BATTERY
MELSEC-Q
Battery replacement
Monitor M9006
OFF
to check whether it
turns ON or OFF.
ON
The battery for the memory card is defective.
7-7
7 MEMORY CARD AND BATTERY
MELSEC-Q
POINTS
Note the following precautions before replacing the battery.
1 Back up the data with GPPW before replacing the battery.
2 The battery is replaced while the CPU module is turned ON. Be extremely
careful with surroundings to avoid an electric shock.
3 When removing/inserting the battery holder from/into the SRAM card, be careful
not to drop the battery from the battery holder.
Battery replacement
Monitor M9048
OFF
to check whether it turns
ON or OFF.
ON
ON
The battery for the CPU module is defective.
7-8
8 EMC DIRECTIVE AND LOW-VOLTAGE INSTRUCTION
MELSEC-Q
For the products sold in the European countries, the conformance to the EMC
Directive, which is one of the European Directives, has been legally obliged to be
certified since 1996. Also, the conformance to the Low Voltage Directive, which is one
of the European Directives, has been legally obliged to be certified since 1997.
The manufacturers who recognize their products to conform to the EMC Directive and
Low Voltage Directive require to declare that their products conform to these Directives
and put "CE mark" on their products.
8-1
8 EMC DIRECTIVE AND LOW-VOLTAGE INSTRUCTION
MELSEC-Q
(b) When attaching the control cabinet's top plate or base plate, mask painting
and weld so that good surface contact can be made between the cabinet
and plate.
(c) To ensure good electrical contact with the control cabinet, mask the paint on
the installation bolts of the inner plate in the control cabinet so that contact
between surfaces can be ensured over the widest possible area.
(d) Earth the control cabinet with a thick wire so that a low impedance
connection to ground can be ensured even at high frequencies. (22 mm2
wire or thicker is recommended.)
(e) Holes made in the control cabinet must be 10 cm (3.94 in.) diameter or less.
If the holes are 10 cm (3.94 in.) or larger, radio frequency noise may be
emitted.
In addition, because radio waves leak through a clearance between the
control panel door and the main unit, reduce the clearance as much as
practicable.
The leakage of radio waves can be suppressed by the direct application of
the EMI gasket listed below on the paint surface.
Our tests have been carried out on the panel having the damping
characteristics of 37 db max. and 30 db mean (measured by 3 m method
with 30 to 300 M Hz).
(b) The earth wire led from the earthing point must be twisted with the power
supply wires. By twisting with the earthing wire, noise flowing from the power
supply wires can be relieved to the earthing. However, if a filter is installed
on the power supply wires, the wires and the earthing wire may not need to
be twisted.
8-2
8 EMC DIRECTIVE AND LOW-VOLTAGE INSTRUCTION
MELSEC-Q
8.1.3 Cables
The cables extracted from the control panel contain a high frequency noise
component. On the outside of the control panel, therefore, they serve as antennas to
emit noise. To prevent the noise emission, ensure to use a shielded cable for the
cables which are connected to the I/O unit and intelligent function unit and may be
extracted to the outside of the control panel.
The use of a shielded cable is also increases noise resistance. The signal lines
connected to the sequencer I/O unit and intelligent function unit use shielded type
cables to assure a noise resistance under the conditions where the shield is earthed. If
a shielded cable is not used or not earthed correctly, the noise resistance cannot meet
the specified requirements.
When a shield of the shielded cable is earthed to the cabinet body, please ensure that
the shield contact with the body is over a large surface area. If the cabinet body is
painted it will be necessary to remove paint from the contact area. All fastenings must
be metallic and the shield and earthing contact must be made over the largest
available surface area. If the contact surfaces are too uneven for optimal contact to be
made either use washers to correct for surface inconsistencies or use an abrasive to
level the surfaces. The following diagrams show examples of how to provide good
surface contact of shield earthing by use of a cable clamp.
(b) Take an appropriate measure so that the shield section of the shielded cable
from which the outer cover was partly removed for exposure is earthed to
the control panel on an increased contact surface. A clamp may also be
used as shown in the figure below. In this case, however, apply a cover to
the painted inner wall surface of the control panel which comes in contact
with the clamp.
Screw
Paint mask
Shielded cable
Note) The method of earthing by soldering a wire onto the shield section of the
shielded cable as shown below is not recommended. The high frequency
impedance will increase and the shield will be ineffective.
Shielded cable
Wire
Crimp terminal
8-3
8 EMC DIRECTIVE AND LOW-VOLTAGE INSTRUCTION
MELSEC-Q
Earth here
AUI cable
Shield
(b) Ensure to use a double-shielded cable for the coaxial cables connected to
the 10BASE2 connectors of the A1SJ71E71-B2. The precautions on
earthing are the same as those for the MELSECNET unit.
(c) For the A1SJ71E71-B2/B5, ensure to attach a ferrite core after completing
items (a) and (b) above. The ferrite core of the TDK-make ZCAT3035 is
recommended.
8-4
8 EMC DIRECTIVE AND LOW-VOLTAGE INSTRUCTION
MELSEC-Q
CPU module
module
Cable clamp
Drive unit
(b) When wiring with cable that exceeds 2 m (6.6 ft.), but is 10 m (32.8 ft.) or
less
Ground the shield section of the external wiring cable with the cable clamp.
(Ground the shield at the closest location to the AISD75 external wiring
connector.)
Install a ferrite core.
Wire the external wiring cable to the drive unit and external device with the
shortest distance.
External wiring connector
A1SD75
module
Power supply
CPU module
module
Ferrite core
Cable clamp
Drive unit
(c) Ferrite core and cable clamp types and required quantities
• Cable clamp
Type : AD75CK (Mitsubishi Electric)
• Ferrite core
Type : ZCAT3035-1330 (TDK ferrite core)
• Required quantity
Required Qty
Cable length Prepared part
1 axis 2 axes 3 axes
Within 2 m (6.6 ft.) AD75CK 1 1 1
2 m (6.6 ft.) to 10m AD75CK 1 1 1
(32.8 ft.) ZCAT3035-1330 1 2 3
8-5
8 EMC DIRECTIVE AND LOW-VOLTAGE INSTRUCTION
MELSEC-Q
(c) Do not use a ferrite core for the CC-Link module or CC-Link stations.
(d) The CC-Link module, the CC-Link stations and the FG line inside the control
panel should be connected at both the FG terminal and the SLD terminal as
shown in the diagram below.
[Simplified diagram]
DA DA DA Terminal resistor
Terminal resistor
DB DB DB
DG DG DG
SLD CC-Link SLD CC-Link SLD
FG dedicated FG dedicated FG
cable cable
The precautions required for each power supply module are described below. Always
observe the items noted as precautions.
Model Precautions
A1S61P
Unused
A1S62P
A1S63P ( 1) Use the 24 V DC panel power equipment conforming to the CE standard.
A1S61PEU
A1S62PEU
Always ground the LG and FG terminals after short-circuiting them.
A1S61PN
A1S62PN
( 1) If a sufficient filter circuitry is built into a 24 V DC external power supply module, the noise
generated by A1S63P will be absorbed by that filter circuit, so a line filter may not be
required.
Filtering circuitry of version F or later of A1S63P is improved so that a external line filter is
not required.
8-6
8 EMC DIRECTIVE AND LOW-VOLTAGE INSTRUCTION
MELSEC-Q
A ferrite core has the effect of reducing radiation noise in the 30 M Hz to 100 M Hz
band. With the exception of some models, it is not required to fit ferrite cores to cables,
but it is recommended to fit ferrite cores if shield cables pulled out of the enclosure do
not provide sufficient shielding effects. The ferrite cores used in our tests are TDK's
ZCAT3035.
It should be noted that the ferrite cores should be fitted to the cables in the position
immediately before they are pulled out of the enclosure. If the fitting position is
improper, the ferrite will not produce any effect.
A noise filter is a component which has an effect on conductive noise. With the
exception of some models, it is not required to fit the noise filter to the power supply
line, but fitting it can further suppress noise. (The noise filter has the effect of reducing
conductive noise in the 10 M Hz or less band.) Use any of the following noise filters
(double type filters) or equivalent.
Model name FN343-3/01 FN660-6/06 ZHC2203-11
Manufacturer SCHAFFNER SCHAFFNER TDK
Rated current 3A 6A 3A
Rated voltage 250 V
The precautions required when installing a noise filter are described below.
(1) Do not bundle the wires on the input side and output side of the noise filter. When
bundled, the output side noise will be induced into the input side wires from which
the noise was filtered.
Input side Input side
(power supply side) (power supply side)
Introduction Introduction
Filter Filter
(a) The noise will be included when the (b) Separate and lay the input
input and output wires are bundled. and output wires.
(2) Earth the noise filter earthing terminal to the control cabinet with the shortest wire
possible (approx. 10 cm (3.94 in.)).
8-7
8 EMC DIRECTIVE AND LOW-VOLTAGE INSTRUCTION
MELSEC-Q
For the modules which operate with the rated voltage of 50 V AC/75 V DC or above,
we have developed new models that conform to the above standard.
For the modules which operate with the rated voltage under 50 V AC/75 V DC, the
conventional models can be used, because they are out of the low-voltage instruction
application range.
Module selection
8-8
8 EMC DIRECTIVE AND LOW-VOLTAGE INSTRUCTION
MELSEC-Q
The insulation specification of the power module was designed assuming installation
category II. Be sure to use the installation category II power supply to the PC.
The installation category indicates the durability level against surge voltage generated
by a thunderbolt. Category I has the lowest durability; category IV has the highest
durability.
Category II indicates a power supply whose voltage has been reduced by two or more
levels of isolating transformers from the public power distribution.
8-9
8 EMC DIRECTIVE AND LOW-VOLTAGE INSTRUCTION
MELSEC-Q
(b) The control box must have a structure which automatically stops the power
supply when the box is opened.
As shown above, the PC can realize the pollution level 2 when stored in a control
box equivalent to IP54.
8 - 10
8 EMC DIRECTIVE AND LOW-VOLTAGE INSTRUCTION
MELSEC-Q
8.2.6 Grounding
There are two kinds of grounding terminals as shown below. Either grounding terminal
must be used grounded.
Be sure to ground the protective grounding for the safety reasons.
8 - 11
8 EMC DIRECTIVE AND LOW-VOLTAGE INSTRUCTION
MELSEC-Q
MEMO
8 - 12
9 LOADING AND INSTALLATION
MELSEC-Q
This section describes the precautions to handle the CPU, I/O, special function, power
supply, and base modules.
(1) Do not drop or apply a strong impact to the module housing, memory card,
terminal block connectors, and pin connectors.
(2) Do not remove the PC board of the modules from housing. Otherwise,
malfunctions may result.
(3) When using the expansion base module QA1S6 B, be sure to install the power
supply module.
Although the module may work without the power supply module under light load,
stable operation is not guaranteed.
(4) Limit the tightening torque for the module installation screws and terminal block
screws within the following range:
Location of screw Tightening torque range
QCPU-A module fastening screw (M3 × 12) 36 to 48N • cm
AnS series module installation screw (M4) 78 to 118N • cm
I/O module terminal block installation screw (M3.5)
59 to 88N • cm
Power supply module terminal screw (M3.5)
(5) When using the expansion cable, do not bind it with or place it close to the main
circuit (high-voltage, large-current) lines.
9-1
9 LOADING AND INSTALLATION
MELSEC-Q
OUT
CPU
5V
Hs
H
SG
FG
Ws
W
2
30mm or more PC
Control Door
panel
20mm
30mm or more or more
4
2: In the case where the wiring duct has the height of 50mm or less. In other cases, the figure should be 40mm or more.
3: The figure should be 20mm or more if an expansion cable is connected without removing the next module.
4: The figure should be 80mm or more for the connector type module.
9-2
9 LOADING AND INSTALLATION
MELSEC-Q
(5) Do not install the PC close to a vibration source such as a large electromagnetic
contactor or no-fuse breaker. Install the PC to the separate panel or isolate it as
far as possible.
(6) Provide the following distances between the PC and devices (contactor or relay)
to avoid the influence of radiation noise or heat.
• Devices installed in front of the PC: 100mm or more
• Devices installed on either side of the PC: 50mm ore more
50mm or more
Contactor,
relay, etc.
9-3
9 LOADING AND INSTALLATION
MELSEC-Q
35mm
P P P
9-4
9 LOADING AND INSTALLATION
MELSEC-Q
To use QCPU-A, it is necessary to install the dust-protective cover supplied with the
basic base module to the I/O module on the right of the QCPU-A to prevent foreign
objects from entering the I/O module.
Be sure to install the dust-protective cover. Otherwise, foreign objects may enter the
I/O module, causing breakdown.
The installing/removing procedure of the dust-protective cover is described below:
Dust-protective cover
Release hole
Dust-protective cover
To remove the dust-protective cover from the I/O module, inset the tip of the flat-
blade driver into the release hole as illustrated above, move the driver to the rear
of the module, and release the claw of the cover from the release hole.
9-5
9 LOADING AND INSTALLATION
MELSEC-Q
This section describes how to install/remove the power supply, CPU, I/O, and special
function modules to/from the base module.
Module
connector
Press the module in
the direction of the Module attaching lever
arrow and attach it to
the base module.
Module fixing
Module fixing projection projection
Module fixing hole
Module fixing hole
Check if the module is
securely inserted into
the base module.
Completion
POINTS
(1) Be sure to insert the module fixing projection into the fixing hole first. Forcefully
mounting the module without inserting the projection into the hole may damage
the module connector or the module itself.
(2) When using the modules in a place subjected to especially large vibration or
impacts, secure the CPU module to the base module with a screw.
QCPU-A module fastening screw: M3 × 12 (prepared by user)
9-6
9 LOADING AND INSTALLATION
MELSEC-Q
Completion
POINT
When the CPU module is secured to the base module with a module fastening
screw, be sure to remove the screw first, then remove the module fixing projection
from the hole.
Forcefully removing the module from the base module may damage the module.
9-7
9 LOADING AND INSTALLATION
MELSEC-Q
Module
connector
Completion
POINT
Be sure to insert the module fixing projection into the fixing hole first.
Forcefully mounting the module without inserting the projection into the hole may
damage the module connector or the module itself.
9-8
9 LOADING AND INSTALLATION
MELSEC-Q
Module
connector
Module
Completion
POINT
When the module is secured to the base module with a module fastening screw, be
sure to remove the screw first, then remove the module fixing projection from the
hole.
Forcefully removing the module from the base module may damage the module.
9-9
9 LOADING AND INSTALLATION
MELSEC-Q
When two or more expansion base modules are used, the expansion stage number
should be set with the stage number setting connector of the expansion base module.
The expansion stage number is factory-set to "1," so that the first expansion base
module requires no setting.
Set the expansion stage number in the following procedure.
(1) The stage number setting connector is located inside the base cover of the IN
connector of the expansion base module.
First, loosen the upper and lower screws on the base cover of the IN connector,
and remove the base cover from the expansion base module.
(2) Insert a connector pin into the position of the desired stage number in the
connector (PIN1) located between the IN and OUT expansion cable connectors.
OUT
POINT
To set the stage number setting connector, select the appropriate number from 1
through 7 in ascending order according to the number of expansion modules.
Do not assign the same stage number to several modules or skip any stage
numbers. Otherwise, improper I/O operation results.
9 - 10
9 LOADING AND INSTALLATION
MELSEC-Q
(3) Reattach the base cover to the expansion base module and fasten the screws.
9 - 11
9 LOADING AND INSTALLATION
MELSEC-Q
9 - 12
9 LOADING AND INSTALLATION
MELSEC-Q
POINT
To connect the expansion cable to the basic base module and expansion base
module, be sure to connect it from the OUT connector of the basic base module to
the IN connector of the expansion base module. The system does not properly
operate when the cable is connected from IN to IN, from OUT to OUT, or from OUT
to IN connectors.
To connect two or more expansion base module, be sure to connect the cable from
the OUT connector of the first expansion base module to the IN connector of the
second expansion base module.
(a) To connect the expansion cable to the basic base module, remove the
section below OUT of the base cover with a flat-blade driver (5.5 × 75.6 ×
100) or other tools. Perform the same procedure also to connecting the
expansion cable to the OUT connector of the expansion base module.
OUT
Base cover
(b) To connect the expansion cable to the next expansion base module, remove
the sticker attached on the section below IN of the base cover.
IN OUT
Sticker
9 - 13
9 LOADING AND INSTALLATION
MELSEC-Q
(c) Hold the connector of the expansion cable to connect the expansion cable to
each base module.
(d) After connecting the expansion cable, be sure to tighten the fastening
screws of the expansion cable connector.
(Tightening torque: 20N • cm)
9 - 14
9 LOADING AND INSTALLATION
MELSEC-Q
To prevent improper I/O operation of the PC, design the circuit configuration and
program so that the PC system is started up only in the following procedures.
If the startup procedure is changed so that, for example, the PC is turned ON after the
external power supply for processing the DC output module is turned ON, the DC
output module may produce improper output momentarily.
We have fully inspected the quality of the PC; however, some factor may cause
breakdown or abnormal operation. In preparation for such problems, it is
recommended to configure the circuit externally to the PC for the sections that may
lead to the abnormal operation of whole system, the machine breakdown or an
accident (such as an emergency stop, protection circuit, or interlock circuit).
The subsequent pages describe the examples of system circuit design and fail-safe
provisions against PC breakdown from the standpoints above.
9 - 15
9 LOADING AND INSTALLATION
MELSEC-Q
Transformer
9 - 16
9 LOADING AND INSTALLATION
MELSEC-Q
16-point output
16-point output
16-point output
16-point output
16-point input
16-point input
16-point input
16-point input
16-point input
Power supply
Power supply
C
YB0 to YBF
Vacant
P
U
1: The output module for the fail-safe provision should be installed to the last slot of the system (In the system example
above, YB0 to YBF).
YB0 YBF L
24V
0.5s 0.5s
- +
0V
DC24V
CPU module Output module
T1 T2
2
MC
2: YB0 repeats ON and OFF at 0.5-second interval. Use the non-contact output module for YB0 (A transistor is used in
the example above.).
9 - 17
9 LOADING AND INSTALLATION
MELSEC-Q
AC Power
power supply
Special
supply module CPU Output Input
function
module module module
module
Relay Input current
(IIN) E Current
I24V 24VDC line transistor
External Output current
(IOUT) Vdrop Input
24VDC current
power (IIN)
Output
supply current
(IOUT)
AC LOAD AC E AC
DC DC DC
9 - 18
9 LOADING AND INSTALLATION
MELSEC-Q
W5V=I5V × 5 (W)
(3) Total 24VDC average power consumption of the output module (power
consumption equivalent to the points simultaneously ON)
Average power of the 24VDC output circuit of the power supply module is the total
power consumption of each module.
W24V=I24V × 24 (W)
(4) Average power consumption of the output modules due to voltage drops at the
output part (power consumption equivalent to the points simultaneously ON)
(5) Average power consumption of the input modules at the input part (power
consumption equivalent to the points simultaneously ON)
WIN= IIN × E × Input points × Simultaneous ON ratio (W)
IIN : Input current (actual value in case of AC) (A)
E : Input voltage (voltage for actual usage) (V)
(6) Power consumption of the power supply part of the special function module is:
POINT
When the temperature increase inside the panel exceeds the specified range, it is
recommended to lower the temperature inside the panel by installing a heat
exchanger to the panel.
If a conventional ventilation fan is used, it sucks dust along with the outside air,
which may affect the PC, so care must be taken.
9 - 19
9 LOADING AND INSTALLATION
MELSEC-Q
(1) Separate the wiring systems for the power supply of the PC, the I/O devices, and
the power equipment as shown below.
In a high-noise environment, connect an isolating transformer.
AC200V PC
T1
Power supply
for I/O devices
I/O devices
Power supply for
main circuit equipment
Main circuit equipment
(2) Do not connect the 24VDC outputs of several power supply modules in parallel to
supply power to a single I/O module. The parallel connection may damage the
power supply module.
DC24V
Power supply I/O
module module
(3) Twist the 100VAC, 200VAC, and 24VDC cables as tight as possible and connect
them between modules in the shortest distance.
2
To minimize the voltage drop, use the cable as thick as possible (2 mm max.).
(4) Do not bind the 100VAC and 24VDC cables with or place them close to the main
circuit (high-voltage, large-current) lines or I/O signal lines. Isolate them 100mm or
more if possible.
9 - 20
9 LOADING AND INSTALLATION
MELSEC-Q
(5) To avoid lightning surges, connect the lightning surge absorber as shown below:
I/O device
AC
for PC
E2
POINTS
(1) Isolate the ground for the lightning surge absorber (E1) and the ground for the
PC (E2).
(2) Select the lightning surge absorber so that even the maximum power supply
voltage does not exceed the allowable circuit voltage of the surge absorber.
9 - 21
9 LOADING AND INSTALLATION
MELSEC-Q
(6) The following is the wiring example of the power supply and grounding cables for
the connection of the basic and expansion base modules.
Expansion base module
(QA1S38B)
AC100/110V
AC200/220V A1S62PN CPU
AC
+24V
Fuse 24G
AC (FG)
DC DC24V
DC24V
(LG)
INPUT
100-240VAC
+24V
24G
(FG)
AC100/240V (LG)
INPUT
100-240VAC
Ground cable
Ground
POINTS
2
(1) Use the cable as thick as possible (2mm max.) for the 100/200VAC and
24VDC cables. Be sure to twist the cable from the connected terminal. Use the
crimp terminal with an insulating sleeve to prevent short-circuit when a screw is
loosened.
(2) When connecting the LG and FG terminals, be sure to connect them to the
ground. Otherwise, they may easily be affected by noise. Touching the LG
terminal may cause an electric shock because it has the potential of half the
input voltage.
(3) A1S61PN and A1S62PN feature the wide range of 100 to 240VAC. They do
not require switching.
Note the following precautions when connecting the QCPU-A system with the
uninterruptible power supply (hereafter abbreviated as UPS).
Use the UPS of constant inverter feeding system with the voltage distortion factor of
5% or less.
Do not use the UPS of constant commercial feeding system.
9 - 22
10 MAINTENANCE AND INSPECTION
MELSEC-Q
• Do not touch the terminals while the power is on. Doing so may cause electric
! DANGER shock or malfunctioning.
• Be sure to connect the battery correctly. Do not charge, disassemble, heat, throw
into fire, short, or solder batteries.
Improper handling of batteries may cause injury to the operator or fire due to heat
generation, explosion, or ignition.
• Before cleaning the module or retightening the screws, make sure all phases of the
power supply have been obstructed from the outside. Failure to completely shut off
the power-supply phases may cause electric shock.
If the screws are loose, it may result in short circuits, fire or malfunctioning.
If the screws are tightened too much, it may damage the screws and the module
may result in short circuits, malfunctioning or cause the module to fall out.
In order to use the PC always in good condition, conducting daily and periodical
maintenance/inspection on the following items are strongly recommended.
10
10 - 1
10 MAINTENANCE AND INSPECTION
MELSEC-Q
10 - 2
10 MAINTENANCE AND INSPECTION
MELSEC-Q
Inspection on items shown below should be conducted once or twice every six months
to a year. Conduct the inspection when the equipment is moved or modified, or wiring
is changed.
10 - 3
10 MAINTENANCE AND INSPECTION
MELSEC-Q
MEMO
10 - 4
11 TROUBLESHOOTING
MELSEC-Q
11. TROUBLESHOOTING
11
The description, cause determination, and corrective actions of each error which may
occur during system usage are described.
After confirming (a) to (f), connect a peripheral device and observe the operation
status of the PC and program contents.
11 - 1
11 TROUBLESHOOTING
MELSEC-Q
11.2 Troubleshooting
The error detail determination method, error details corresponding to the error code,
and corrective actions are described.
The I/O module will To "Flowchart for actions when the output
not operate correctly. module's output load does not turn ON" in
Section 11.2.8
11 - 2
11 TROUBLESHOOTING
MELSEC-Q
11.2.2 Flowchart for actions when the "POWER" LED is turned OFF
The corrective action when the "POWER" LED turns OFF when the power is turned
ON or during operation is described.
Is the power NO
Supply the power.
being supplied?
YES
NO Does the YES
"POWER" LED
turn ON?
Is the
power supply NO Set the supplied voltage
voltage within AC85 to
132V or AC170 within the regulated range.
to 264V?
YES
NO Does the YES
"POWER" LED
turn ON?
Is the
power supply NO Fix the power module
module securely fixed
to the base securely.
unit?
YES
NO Does the YES
"POWER" LED
turn ON?
Are the
overvoltage (1) Check the current
protection and YES
capacity, and reduce the
overcurrent protection
amount of overcurrent.
operating?
(2) Turn OFF the input
power supply, then ON.
NO
11 - 3
11 TROUBLESHOOTING
MELSEC-Q
11.2.3 Flowchart for actions when the "MODE" LED turns OFF
The flowchart when the "MODE" LED turns OFF at power on is described.
Is the power NO
Supply the power.
supplied?
Is each module NO
Install each module correctly.
correctly installed?
YES
Does the
NO YES
"MODE" LED
turn ON?
YES
Does the
NO YES
"MODE" LED
turn ON?
YES
Does the
NO YES
"MODE" LED
turn ON?
11 - 4
11 TROUBLESHOOTING
MELSEC-Q
11.2.4 Flowchart for actions when the "RUN" LED is turned OFF
The corrective action when the "RUN" LED turns OFF during operation is described.
Is there
an error display when YES Perform the correction using the
the peripheral device is error detail list.
connected?
NO
11 - 5
11 TROUBLESHOOTING
MELSEC-Q
The corrective action when the "RUN" LED is flashing when turning on the power,
starting operation, or during operation is described.
Does the NO
"RUN" LED
turn ON?
YES
Complete
11 - 6
11 TROUBLESHOOTING
MELSEC-Q
The flowchart when the "ERROR" LED turns ON during operation is described.
NO
Is the M9008 ON?
YES
Software error
YES
Reset the QCPU-A using Can it be corrected?
the RUN/STOP switch.
NO
Complete
11 - 7
11 TROUBLESHOOTING
MELSEC-Q
The flowchart when the "ERROR" LED is flashing during operation is described.
Complete
11 - 8
11 TROUBLESHOOTING
MELSEC-Q
11.2.8 Flowchart for actions when the output module's output load does not turn ON
The corrective action when the output load of the output module does not turn ON
during operation is described.
YES
YES
What is the
Check the wiring of the Check the external
voltage of between 0V
each output COM terminal load power, and recover wiring and external
of the output the power. input equipment.
module?
The supplied
voltage value
is output.
Output module error. Check the load wiring and
Replace the output module. load, and recover.
Confirm the rush current Change the output relay Describe the problem to
NG
when the maximum load number to set the current the nearest system service,
turn ON simultaneously. when the maximum load retail store, or corporate
turn ON simultaneously office, and obtain advice.
within specification.
OK
POINT
For problems when the input signal does not turn off and load does not turn off,
perform troubleshooting by referring to the problem examples for the I/O module in
section 11.4.
11 - 9
11 TROUBLESHOOTING
MELSEC-Q
The flowchart when the program and other data cannot be written to the CPU is
described.
STOP
Can the program YES
be written?
NO
11 - 10
11 TROUBLESHOOTING
MELSEC-Q
When an error occurs while the PC is running or during RUN, error is displayed, or
error code, detailed error code and error step are stored to special registers, D9008,
D9091 and D9010, respectively, by the self-diagnosis function.
Details of errors and corrective actions are shown below.
When an error occurs, the error code can be read with a peripheral device. Refer to the
operating manuals of the peripheral device for operating procedures.
Meanings and causes of error message, error codes, detailed error codes and
corrective actions are described.
11 - 11
11 TROUBLESHOOTING
MELSEC-Q
11 - 12
11 TROUBLESHOOTING
MELSEC-Q
11 - 13
11 TROUBLESHOOTING
MELSEC-Q
11 - 14
11 TROUBLESHOOTING
MELSEC-Q
11 - 15
11 TROUBLESHOOTING
MELSEC-Q
11 - 16
11 TROUBLESHOOTING
MELSEC-Q
11 - 17
11 TROUBLESHOOTING
MELSEC-Q
11 - 18
11 TROUBLESHOOTING
MELSEC-Q
11 - 19
11 TROUBLESHOOTING
MELSEC-Q
Examples of troubles concerning I/O circuits and the countermeasures are explained.
Table 11.2 Troubles with the input circuit and the countermeasures
Situation Cause Countermeasure
• Leak current from input switch (driven by a • Connect an appropriate resistance so that voltage
contactless switch, etc.) between the terminals of the input module is lower
AC input than the OFF voltage.
AC input
Input signal C Input
Example 1 does not turn R Leak current module C Input
OFF. R module
• Line capacity C of the leak current twisted pair • Same as the example 1.
cable due to line capacity of the wiring cable is • However, it does not occur when power supply is
about 100PF/m. on the side of input device as shown below.
AC input AC input
Input signal
Example 3 does not turn
OFF. Leak Input Input
current module module
• Driven by a switch with LED display • Connect an appropriate resistance so that voltage
between the terminal of the input module and the
DC input (sink) common is lower than the OFF voltage as shown
below.
DC input (sink)
Input signal Leak current Input
Example 4 does not turn module
OFF. Resistor Input
module
11 - 20
11 TROUBLESHOOTING
MELSEC-Q
Table 11.2 Troubles with the input circuit and the countermeasures
Situation Cause Countermeasure
• Revolving path due to the use of two power • Use only one power supply.
supplies. • Connect a diode to prevent the revolving path
(figure below).
Input signal
Example 5 does not turn L Input
OFF. E1 E2 module Input
L
E1 E2 module
E1 > E2
(1) Since OFF current of A1SX40 does not satisfy the 1mA, it does not turn OFF.
Thus, a resistance is connected as shown below.
A1SX40
4mA
Iz=1mA
IR=3mA R Z
Input impedance
3.3k
3.6k
24VDC
IZ 1
R (Input impedance) = 3.3 = 1.1 [k ]
IR 3
R < 1.1k
If resistance R is 1k , power capacity W of the resistance R is:
2 2
W = (Input voltage) ÷ R = 26.4 ÷ 1000 = 0.7 (W)
(3) Since the power capacity of a resistance is selected at 3 to 5 times the actual
power consumption, a resistance at 1[k ], 2 to 3[W] needs to be connected to the
terminal causing the problem.
11 - 21
11 TROUBLESHOOTING
MELSEC-Q
Table 11.3 Troubles with the output circuit and the countermeasures
Situation Cause Countermeasure
• When the load is subjected to half wave • Connect a resistance at several tens to several
rectification inside. (Solenoids have these types). hundred of k to the both ends of the load.
A1SY22 With this kind of usage, there is no problem
Output module D1 [1] with the output element, but the diode built-
An excessive in to the load may deteriorate and burn-out.
voltage is Load Resistance
Example 1 impressed to the
load when [2]
output is off. • When the polarity of the power supply is [1], C is Load
charged, and when the polarity is [2], the voltage
charged in C + voltage of the power supply are
impressed to the both ends of D1. The maximum
value of the voltage is about 2.2E.
• Leak current caused by built-in surge killer • Connect a resistance to the both ends of the load.
When the wiring distance from the output
A1SY22 card to the load is long, be aware of the risk
Output module
Load of a leak current due to line capacity.
Load does not
Example 2 OFF Leak current Resistance
(Triac output)
Load
11 - 22
APPENDICES
MELSEC-Q
APPENDICES
The list of instructions that can be used with the QCPU-A is shown.
Refer to the following programming manuals for the details of the instructions.
App - 1
APPENDICES
MELSEC-Q
App - 2
APPENDICES
MELSEC-Q
App - 3
APPENDICES
MELSEC-Q
App - 4
APPENDICES
MELSEC-Q
App - 5
APPENDICES
MELSEC-Q
App - 6
APPENDICES
MELSEC-Q
App - 7
APPENDICES
MELSEC-Q
App - 8
APPENDICES
MELSEC-Q
The list of the special relays and special registers that can be used by the QCPU-A is
shown below:
The special relays are the internal relays that have specific applications in the
sequencer. Therefore, the coil cannot be turned ON/OFF on the program. (Except for
the ones marked by 1 or 2 in the table.)
Refer to the Network System Reference Manual for the special relays after M9200.
App - 9
APPENDICES
MELSEC-Q
App - 10
APPENDICES
MELSEC-Q
App - 11
APPENDICES
MELSEC-Q
App - 12
APPENDICES
MELSEC-Q
App - 13
APPENDICES
MELSEC-Q
App - 14
APPENDICES
MELSEC-Q
OFF: Communication
request to remo-
te terminal
Communication Usable with AnA,
modules enabled • Indication of communication enable/disable to
request to AnA, AnU, A2AS,
M9081 ON: Communication remote terminal modules connected to the
remote terminal QCPU-A (A Mode)
request to remo- AJ71PT32-S3, A2C or A52G.
modules A2C and A52G.
te terminal
modules disabl-
ed
OFF: Final station • Turned on when the final station number of the
number agree- remote terminal modules and remote I/O modules
Final station
ment connected to the A2C or A52G disagrees with the Dedicated to A2C
M9082 number
ON: Final station total number of stations set in the initial setting. and A52G.
disagreement
number • Turned off when the final station number agrees with
disagreement the total number of stations at STOP→RUN.
• Specify whether the following errors are to be
checked or not after the END instruction is
2 OFF: Checks enabled executed (to reduce END processing time): Unusable with An,
Error check
M9084 ON: Checks disabled • Fuse blown A2C and A3V.
• I/O unit verify error
• Battery error
BASIC program OFF: A3M-BASIC stop • Set when the A3M-BASIC is in RUN state, and reset
M9086 Dedicated to A3M
RUN flag ON: A3M-BASIC run when it is in STOP state.
OFF: A3M-BASIC • Specifies enable/disable of A3M-BASIC execution
BASIC program RUN enable when the A3MCPU is in PAUSE state.
M9087 Dedicated to A3M.
PAUSE flag ON: A3M-BASIC OFF: A3M-BASIC is executed.
disable ON: A3M-BASIC is not executed.
App - 15
APPENDICES
MELSEC-Q
: Usable with AnN and AnA which are compatible with SFC.
For the AnN and AnA which are compatible with SFC, refer to the MELSAP-II Programming Manual.
App - 16
APPENDICES
MELSEC-Q
: Usable with AnN and AnA which are compatible with SFC.
For the AnN and AnA which are compatible with SFC, refer to the MELSAP-II Programming Manual.
App - 17
APPENDICES
MELSEC-Q
M9198
to be
displayed
• Switches I/O numbers in the fuse blow module
M9197 X/Y0 to 7F0
Fuse blow, I/O OFF OFF storage registers (D9100 to D9107) and I/O module Usable with AnU,
verify error X/Y800 to verify error storage registers (D9116 to D9123) A2AS and QCPU-A
ON OFF FF0
display switching according to the combination of ON/OFF of the (A Mode).
X/Y1000 to
OFF ON 17F0 M9197 and M9198.
M9198 X/Y1800 to
ON ON 1FF0
: Usable with AnN and AnA which are compatible with SFC.
For the AnN and AnA which are compatible with SFC, refer to the MELSAP-II Programming Manual.
App - 18
APPENDICES
MELSEC-Q
POINTS
(1) Contents of the M special relays are all cleared by power off, latch clear or
reset with the reset key switch. When the RUN key switch is set in the STOP
position, the contents are retained.
(2) The above the relays with numbers marked 1 remain "on" if normal status is
restored. Therefore, to turn them "off", use the following method:
(a) Method by use program
Reset execution
Insert the circuit shown at right into the command
RST M9000
program and turn on the reset
execution command contact to clear the Special function relay to be reset
special relay M.
(b) Perform forced reset by use of the test function of peripheral devices.
For the operation procedure, refer to the manuals for peripheral devices.
(c) By moving the RESET key switch on the CPU front to the RESET
position, the special relays are turned off.
(3) Special relays marked 2 above are switched on/off in the sequence program.
(4) Special relays marked 3 above are switched on/off in test mode of the
peripheral equipment.
App - 19
APPENDICES
MELSEC-Q
The link special relays are internal relays which are switched on/off by various factors
occurring during data link operation.
Their ON/OFF status will change if an error occurs during normal operation.
(1) Link special relays only valid when the host is the master station
App - 20
APPENDICES
MELSEC-Q
App - 21
APPENDICES
MELSEC-Q
(2) Link special relays only valid when the host is a local station
App - 22
APPENDICES
MELSEC-Q
Special registers are data registers of which applications have been determined inside
the PC. Therefore, do not write data to the special registers in the program (except the
ones with numbers marked 2 in the table).
App - 23
APPENDICES
MELSEC-Q
1 Shelf-diagnostic Self-diagnostic • When error is found as a result of self-diagnosis, error Usable with all
D9008 error error number number is stored in BIN code. types of CPUs.
• When one of F0 to 255 is turned on by OUT F or
SET F , the F number, which has been detected
earliest among the F numbers which have turned on, is Unusable with
stored in BIN code. A3, A3N, A3A,
• D9009 can be cleared by RST F or LEDR instruc- A73 and A3N
tion. If another F number has been detected, the board.
clearing of D9009 causes the next number to be stored
F number at which in D9009.
Annunciator
D9009 external failure • When one of F0 to 255 is turned on by OUT F or
detection
has occurred SET F , the F number, which has been detected
earliest among the F numbers which have turned on, is
stored in BIN code. Usable with A3,
• D9009 can be cleared by executing RST F or LEDR A3N, A3A, A73
instruction or moving INDICATOR RESET switch on and A3N board.
CPU front to ON position. If another F number has
been detected, the clearing of D9009 causes the nest
number to be stored in D9009.
App - 24
APPENDICES
MELSEC-Q
Status in program
0 Except below
1 STOP instruction execution
App - 25
APPENDICES
MELSEC-Q
App - 26
APPENDICES
MELSEC-Q
D9029
D9030
D9031
D9032
D9033 Remote terminal module No.13 area
D9033 D9034 Remote terminal module No.14 area
D9034 Usable with
• Sets attribute of each remote terminal module A2C and A52G.
connected to A2C and A52G with 0 or 1 at each bit.
0: Conforms to the MINI standard protocol or remote
terminal unit.
1: No-protocol mode of AJ35PTF-R2
• Data configuration
b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0: MINI standard
Attribute of remote D9035 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1
D9035 protocol
terminal module
1: No protocol
Remote terminal No.1
App - 27
APPENDICES
MELSEC-Q
: Usable with AnN and AnA which are compatible with SFC.
For the AnN and AnA which are compatible with SFC, refer to the MELSAP-ll Programming Manual.
App - 29
APPENDICES
MELSEC-Q
App - 30
APPENDICES
MELSEC-Q
App - 31
APPENDICES
MELSEC-Q
1 O Only remote
1
module
points of fuse blow D9107 0 0 0 0 BC
Y7 0 0 0 0 0 0 0 1
Y7 0 0 0
30 I/O station in-
D9104 modules
formation is
1 Indicates fuse blow. valid for A2C.
D9105
• Fuse blow check is executed also to the output module
1
of remote I/O station.
D9106
(If normal status is restored, clear is not performed.
1 Therefore, it is required to perform clear by user
D9107 program.)
App - 32
APPENDICES
MELSEC-Q
2 • Sets value for the step transfer monitoring timer and the
D9108 number of F which turns on when the monitoring timer
2 timed out.
D9109 b15 to b8 b7 to b0 Usable with
2 AnN , AnA ,
D9110 AnU, A2AS,
Step transfer Timer setting value and
2 Timer setting QCPU-A
monitoring timer the F number at time (1 to 255 sec
D9111 (A Mode), A2C,
setting out in seconds)
2 F number setting A0J2H, AnS,
D9112 AnSH, A1FX
(By turning on any of M9108 to M9114, the monitoring
2 and A52G
timer starts. If the transfer condition following a step
D9113
2 which corresponds to the timer is not established within
D9114 set time, set annunciator (F) is tuned on.
1 • When I/O modules, of which data are different from
D9116 those entered at power-on, have been detected, the I/O
1 unit numbers (in units of 16 points) are entered in bit
D9117 pattern. (Preset I/O unit numbers when parameter
1 setting has been performed.)
D9118 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 Usable with all
1 D9116 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 XY
Bit pattern in units of 16 1
0
types of CPUs
D9119 I/O module verify D9117 0 0 0 0 0 0 XY 0 0 0 0 0 0 0 0 0
points of verify error
180
Only remote
1 error 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
D9123 0 7E0
XY I/O station in-
D9120 units
formation is
1 Indicates I/O module verify error. valid for A2C.
D9121
• I/O module verify check is executed also to remote I/O
1
station modules.
D9122
(If normal status is restored, clear is not performed.
1 Therefore, it is required to perform clear by user
D9123 program.)
• When one of F0 to 255 (F0 to 2047 for AuA and AnU) is
turned on by SET F 1 is added to the contents of
D9124. When RST F or LEDR instruction is
executed, 1 is subtracted from the contents of D9124.
Annunciator Annunciator detection (If the INDICATOR RESET switch is provided to the Usable with all
D9124
detection quantity quantity CPU, pressing the switch can execute the same types of CPUs.
processing.)
• Quantity, which has been turned on by SET F is
stored into D9124 in BIN code. The value of D9124 is
maximum 8.
: Usable with AnN and AnA which are compatible with SFC.
For the AnN and AnA which are compatible with SFC, refer to the MELSAP-ll Programming Manual.
App - 33
APPENDICES
MELSEC-Q
D9129 D9009 0 50 50 50 50 50 50 50 50 50 50 50 99
D9124 0 1 2 3 2 3 4 5 6 7 8 8 8
D9125 0 50 50 50 50 50 50 50 50 50 50 50 99
D9130
D9126 0 0 25 25 99 99 99 99 99 99 99 99 15
D9127 0 0 0 99 0 15 15 15 15 15 15 15 70
D9128 0 0 0 0 0 0 70 70 70 70 70 70 65
D9131
D9129 0 0 0 0 0 0 0 65 65 65 65 65 38
D9130 0 0 0 0 0 0 0 0 38 38 38 38 110
App - 34
APPENDICES
MELSEC-Q
D9163
D9164 Number of retries
0: Normal
D9165
1: Station error
D9166
D9167
"n" is determined by station number of I/O module or
D9168 remote terminal module.
D9169 Odd number stations: b0 to b7 (n = 0)
D9170 Even number stations: b8 to b15 (n = 8)
D9171
D9172
App - 35
APPENDICES
MELSEC-Q
Usable with
module error are set with
D9187 D9192 Remote terminal module No.13 D9020 to A2C and A52G.
number
D9188 D9193 Remote terminal module No.14
D9034.
D9189
• Error code is cleared in the following cases.
D9190 When the RUN key switch is moved from STOP to
D9191 RUN.
D9192 (D9180 to D9183 are all cleared.)
When Yn4 of each remote terminal is set from OFF to
D9193 ON.
App - 36
APPENDICES
MELSEC-Q
Limit switch output D9183 Y3F Y3E Y3D Y3C Y3B Y3A Y39 Y38 Y37 Y36 Y35 Y34 Y33 Y32 Y31 Y30
state storage Dedicated to
D9183 areas for axes 7
Axis 8 Axis 7
A73.
and 8
• Stores error codes occurred at the PCPU in BIN code.
0: Normal
1: A73CPU hardware error
Cause of 2: PCPU error Dedicated to
D9184 PCPU error code
PCPU error 10: A70AF error A73.
11: A70MDF error
12: A70MDF error
13: AY42 error
• Servo amplifier connection state is checked and the
result is stored in the bit which corresponds to each
axis number.
Connection state is continuously checked. Axes which
changed from disconnected state to connected state
Bit pattern of are regarded as connected. But, axes which changed
Servo amplifier Dedicated to
D9185 servo amplifier from connected state to disconnected state are still
connection data A73.
connection state regarded as connected.
b15 to b8 b7 to b0
For For For For For For For For
0 0 0 0 0 0 0 0 axis axis axis axis axis axis axis axis
8 7 6 5 4 3 2 1
All 0 Connected: 1
Disconnected: 0
App - 37
APPENDICES
MELSEC-Q
Error program • Stores error servo program number (0 to 4095) when Dedicated to
D9189 Error program number
number the servo program setting error flag (M9079) is set. A73.
• Stores error code which corresponds to the error
Data setting Dedicated to
D9190 Data setting error setting item when the servo program setting error flag
error number A73.
(M9079) is set.
• Stores type of connected servo amplifier in the bit which
corresponds to each axis number.
0: MR-SB is connected or not connected.
Bit pattern of the 1: General-purpose servo amplifier is connected.
Servo amplifier axis connected to a b15 to b8 b7 to b0 Dedicated to
D9191 For For For For For For For For
type general-purpose 0 0 0 0 0 0 0 0 axis axis axis axis axis axis axis axis
A73.
8 7 6 5 4 3 2 1
servo amplifier
All 0 Type of servo amplifier
set at each axis is stored
with "0" or "1".
D9199 D9199
Stasion Stasion Stasion Stasion Stasion Stasion Stasion Stasion Stasion Stasion Stasion Stasion Stasion Stasion Stasion Stasion
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
1: Error
0: Normal
App - 38
APPENDICES
MELSEC-Q
POINTS
(1) Special registers are cleared when the PC is switched off or the RESET switch
is set to LATCH CLEAR or RESET. Data remains unchanged when the RUN
key switch is set to STOP.
(2) Special registers marked 1 above are latched and their data will remain
unchanged after normal status is restored.
(a) Method by user program Clear execution
command
Insert the circuit shown at right into
RST D9005
the program and turn on the clear
Special function register to be cleared
execution command contact to clear
the contents of register.
(b) Method by peripheral equipment
Set the register to "0" by changing the present value by the test function
of peripheral equipment or set to "0" by forced reset. For the operation
procedure, refer to the Instruction Manual for peripheral equipment.
(c) By moving the RESET key switch at the CPU front to the RESET
position, the special register is set to "0".
(3) Data is written to special registers marked 2 above in the sequence program.
(4) Data is written to special registers marked 3 above in test mode of the
peripheral equipment.
App - 39
APPENDICES
MELSEC-Q
The link special register stores the result of any error, etc. which may occur during data
communication as a numeric value.
By monitoring the link special register, any station number with an error or fault
diagnosis can be read.
These special registers are applicable to all types of CPUs except the A3V.
For description of the special registers for link for the A3V, refer to the A3VTS Data
Link System User’s Manual.
(1) Link special registers only valid when the host station is the master
station
Link special Register
Number Name Description Details
0: Normal Stores the execution result of the LRDP (word device read) instruction
2: LRDP instruction • LRDP instruction setting fault: Faulty setting of the LRDP
setting fault instruction constant, source,
LRDP processing 3: Corresponding station and/or destination
D9200 • Corresponding station error: One of the stations is not
result error
communicating.
4: LRDP cannot be
• LRDP cannot be executed in the The specified station is a
executed in the corresponding station: remote I/O station.
corresponding station
0: Normal Stores the execution result of the LWTP (word device write)
2: LWTP instruction instruction.
setting fault • LWTP instruction setting fault: Faulty setting of the LWTP
LWTP processing 3: Corresponding station instruction constant, source,
D9201 and/or destination.
result error
• Corresponding station error: One of the stations is not
4: LWTP cannot be
communicating.
executed in the • LWTP cannot be executed in the The specified station is a remote
corresponding station corresponding station: I/O station.
Stores the present path status of the data link.
• Data link in forward loop
Master
station
Station 1 Station 2 Station n
App - 40
APPENDICES
MELSEC-Q
Forward loopback
D9204 Link status
• Loopback in reverse loop only
Master
station
Station 1 Station 2 Station 3 Station n
Reverse loopback
Loopack executing Station executing In the above example, 1 is stored into D9205 and 3 into D9206. If data
D9206
station reverse loopback link returns to normal status (data link in forward loop), values in D9205
and D9206 remain 1 and 3. Reset using sequence program or the
RESET key.
Stores the data link processing time with all local and remote I/O
D9207 Link scan time Maximum value stations.
• Input (X) , output (Y) , link relay (B) , and link register (W) assigned in
D9208 Link scan time Minimum value link parameters communicate with the corresponding stations every
link scan.
• Link scan is a period of time during which data link is executed with
D9209 Link scan time Present value all connected slave stations, independently of the sequence program
scan time
Stores the number of retry times due to transmission error.
D9210 Retry count Total number stored Count stops at maximum of "FFFFH" .
RESET to return the count to 0.
Stores the number of times the loop line has been switched to reverse
Loop switching loop or loopback.
D9211 Total number stored
count Count stops at maximum of "FFFFH".
RESET to return the count to 0.
App - 41
APPENDICES
MELSEC-Q
D9215 L64 L63 L62 L61 L60 L59 L58 L57 L56 L55 L54 L53 L52 L51 L50 L49
D9219 L64 L63 L62 L61 L60 L59 L58 L57 L56 L55 L54 L53 L52 L51 L50 L49
Local station
parameter
Stores the status of
D9223 mismatched or
stations 49 to 64.
remote station I/O
assignment error
App - 42
APPENDICES
MELSEC-Q
Initial communication Stores the local or remote station numbers while they are
Stores the status of
D9224 between local or communicating the initial data with their relevant master station.
stations 1 to 16
remote I/O stations Device Bit
number b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
Initial communication D9224 L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R
Stores the status of 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
D9225 between local or D9225 L/R
32
L/R
31
L/R
30
L/R
29
L/R
28
L/R
27
L/R
26
L/R
25
L/R
24
L/R
23
L/R
22
L/R
21
L/R
20
L/R
19
L/R
18
L/R
17
stations 17 to 32 L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R
remote I/O stations D9226 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33
D9227 L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
Initial communication
Stores the status of
D9226 between local or The bit corresponding to the station number which is currently
stations 33 to 48
remote I/O stations communicating the initial settings becomes "1" .
Example: When stations 23 and 45 are communicating, bit 6 of D9225
Initial communication and bit 12 of D9226 become "1", and when D9225 is
Stores the status of
D9227 between local or monitored, its value is "64 (40H)", and when D9226 is
stations 49 to 64
remote I/O stations monitored, its value is "4096 (1000H)"
Local or remote I/O Stores the status of Stores the local or remote station numbers which are in error.
D9228 Bit
station error stations 1 to 16 Device
number b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
D9228 L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R
Local or remote I/O Stores the status of 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
D9229 D9229 L/R
32
L/R
31
L/R
30
L/R
29
L/R
28
L/R
27
L/R
26
L/R
25
L/R
24
L/R
23
L/R
22
L/R
21
L/R
20
L/R
19
L/R
18
L/R
17
station error stations 17 to 32 L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R
D9230 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33
D9231 L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R L/R
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
Local or remote I/O Stores the status of
D9230
station error stations 33 to 48 The bit corresponding to the station number with the error becomes "1"
Example: When local station 3 and remote I/O station 14 have an error,
Local or remote I/O Stores the status of bits 2 and 13 of D9228 become "1", and when D9228 is
D9231
station error stations 49 to 64 monitored, its value is "8196 (2004H)".
Stores the local or remote station number at which a forward or reverse
Local or remote I/O Stores the status of
D9232 loop error has occurred
station loop error stations 1 to 8.
Device Bit
number b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
Local or remote I/O Stores the status of R F R F R F R F R F R F R F R F
D9233 D9232
station loop error stations 9 to 16 L/R8 L/R7 L/R6 L/R5 L/R4 L/R3 L/R2 L/R1
R F R F R F R F R F R F R F R F
D9233
L/R16 L/R15 L/R14 L/R13 L/R12 L/R11 L/R10 L/R9
Local or remote I/O Stores the status of
D9234 R F R F R F R F R F R F R F R F
station loop error stations 17 to 24 D9234
L/R24 L/R23 L/R22 L/R21 L/R20 L/R19 L/R18 L/R17
R F R F R F R F R F R F R F R F
D9235
Local or remote I/O Stores the status of L/R32 L/R31 L/R30 L/R29 L/R28 L/R27 L/R26 L/R25
D9235
station loop error stations 25 to 32 D9236
R F R F R F R F R F R F R F R F
App - 43
APPENDICES
MELSEC-Q
(2) Link special registers only valid when the host station is a local
station
Local station operating Stores the status of D9248 L16 L15 L14 L13 L12 L11 L10 L9 L8 L7 L6 L5 L4 L3 L2 L1
D9249 D9249 L32 L31 L30 L29 L28 L27 L26 L25 L24 L23 L22 L21 L20 L19 L18 L17
status stations 17 to 32
D9250 L48 L47 L46 L45 L44 L43 L42 L41 L40 L39 L38 L37 L36 L35 L34 L33
D9251 L64 L63 L62 L61 L60 L59 L58 L57 L56 L55 L54 L53 L52 L51 L50 L49
Local station operating Stores the status of
D9250 The bit corresponding to the station number which is in STOP or
status stations 33 to 48
PAUSE mode, becomes "1" .
Example: When local stations 7 and 15 are in STOP mode, bits 6
Local station operating Stores the status of
D9251 and 14 of D9248 become "1" , and when D9248 is
status stations 49 to 64
monitored, its value is "16448 (4040H)" .
Stores the local station number other than the host, which is in
Stores the status of
D9252 Local station error error.
stations 1 to 16
Device Bit
number b7 b5
b15 b14 b13 b12 b11 b10 b9 b8 b6 b4 b3 b2 b1 b0
Stores the status of D9252 L16 L15 L14 L13 L12 L11 L10 L9 L8 L7 L6 L5 L4 L3 L2 L1
D9253 Local station error D9253 L32 L31 L30 L29 L28 L27 L26 L25 L24 L23 L22 L21 L20 L19 L18 L17
stations 17 to 32
D9254 L48 L47 L46 L45 L44 L43 L42 L41 L40 L39 L38 L37 L36 L35 L34 L33
D9255 L64 L63 L62 L61 L60 L59 L58 L57 L56 L55 L54 L53 L52 L51 L50 L49
Stores the status of
D9254 Local station error The bit corresponding to the station number which is in error,
stations 33 to 48
becomes "1" .
Example: When local station 12 is in error, bit 11 of D9252
Stores the status of
D9255 Local station error becomes "1" , and when D9252 is monitored, its value
stations 49 to 64
is "2048 (800H) " .
App - 44
APPENDICES
MELSEC-Q
(1) The following table shows whether the peripheral devices and system FD which
are used by the conventional system can be used or not.
Model Name of the Model Name of the Model Name of the PC
Usable or Not Usable Range
Peripheral Device Software Package at the Startup
SW4GP-GPPAA Usable Device range of A3ACPU A3A
A6GPP/A6PHP SW3GP-GPPA Usable Device range of A3HCPU A3H
Prior to SW2 -type Not usable
SW3-HGPA Usable Device range of A3HCPU A3H
A6HGP
Prior to SW2 -type Not usable
A2USH (displayed at
A8PU Usable Device range of A3ACPU
the startup)
A7PU A2USH (displayed at
Usable Device range of A3HCPU
A7PUS the startup)
Software version "E" or
Usable Device range of A3ACPU
later
A6WU
Software version "D" or
Not usable
earlier
(2) The compatibility of the conventional products (existing system products) and the
new products (AnU-compatible products) are listed in the following table.
Product Used to Write Product Used to Read
No. Compatible
to the CPU from the CPU
Conventional product New Product
1
(PC: A3A startup) (PC: A3A startup)
• All the data is compatible.
New Product Conventional product
2
(PC: A3A startup) (PC: A3A startup)
• Because the model names of the PCs for write and read are
Conventional product New Product
3 different, the following things apply.
(PC: A3A startup) (PC: A3U startup)
1 When the verification is executed after the readout, the
verification fails. (The data is usable.)
2 The setting values (data stored in the CPU) of the sampling
New Product Conventional product trace/status latch cannot be displayed.
4
(PC: A3U startup) (PC: A3A startup)
3 When the network parameters are set in the new product, they
cannot be displayed on the conventional product.
POINT
Do not execute readout and the following operations to a conventional product from
the QCPU-A in which the MELSECNET/10 network parameters have been set by
the new product, because "LINK PARA.ERROR" (CPU error) will occur:
(a) Modifying and writing in the main sequence program area (memory capacity).
(b) Writing the readout parameters to another QCPU-A in the network system.
App - 45
APPENDICES
MELSEC-Q
Appendix 4 Precautions When the Existing Sequence Programs Are Diverted for the QCPU-A
The precautions for diverting the sequence programs created for the A1SCPU and
A2SCPU for the QCPU-A are explained.
The sequence programs created for the A2USCPU(S1) can directly be used for the
QCPU-A.
POINTS
(1) The following three instructions created exclusively for the AnUCPU can be
used by adding to the existing sequence program.
ZNWR instruction ................. For writing to word devices of the stations
connected to the MELSECNET/10
ZNRD instruction .................. For reading from word devices of the stations
connected to the MELSECNET/10
ZCOM instruction ................. MELSECNET/10 network refresh instruction
(2) All of the sequence programs for the A1SCPU and A2SCPU can be used.
(3) The following instructions cannot be used by the QCPU-A as they cannot be
used by the A2USCPU(S1). Please note, however, that the handling is different
between the A2USCPU(S1) and QCPU-A when they are used mistakenly.
LEDC Y010
LEDR
ON
X5
OFF
ON
Y10 OFF
App - 46
APPENDICES
MELSEC-Q
LED D0
Appendix 4.2 Special relays and special registers with different specifications
The QCPU-A does not use the following special relays and special registers.
Even though no error occurs when the following special relays and special registers
exist in the diverted program (ignored), it is recommended that they are deleted from
the program.
• M9010...........Turned ON when a operation error occurs and turned OFF when the
error disappears.
• M9053...........Link refresh enable of the EI instruction /interrupt enable instruction of
the interrupt program, DI instruction to the link refresh disable/interrupt
disable instruction of the interrupt program.
App - 47
APPENDICES
MELSEC-Q
The parameters set by the existing CPU can be used as is if the following items do not
apply to them.
Setting Item Description
The microcomputer area of the QCPU-A is for the SFC only.
"PARAMETER ERROR" occurs if a utility package of the
Microcomputer program capacity
microcomputer program is stored in the microcomputer area of
the existing CPU.
Registering the model name of the When the AD57 module or AD57-S1 module is used in the
module by the I/O assignment existing system, the utility package of the SW -AD57P is
stored in the microcomputer program area.
By the system FD which is The QCPU-A system does not allow the AD57 or AD57-S1 to
compatible with the QCPU-A be loaded.
The following items are executed differently from the parameter setting of the existing
CPU.
• Watchdog timer setting ...............The setting time is ignored and processed by 200ms.
• Interrupt counter setting..............The interrupt counter set by the A1SCPU and
A2SCPU are ignored and treated as a normal
counter by the sequence program.
App - 48
APPENDICES
MELSEC-Q
The I/O control method of the QCPU-A is the refresh method (partial direct I/O
depending on the instruction), and is different from that of the A1SCPU and A2SCPU.
Therefore, pay attention to the input timing of the input (X) and the output timing of the
output (Y).
X0 SET M9052
SET Y10 (a) When the
SEG K4Y10 K4B1
instructions
to
common to the to
RST M9052
X0
LEDA DSET
LEDB Y10
(b) When the
LEDR
instructions
dedicated to the to
QCPU-A are
LEDA DRST
used:
LEDC Y10
LEDR
POINT
Use the program above in order to send the pulse signal output to the special
function module when a special function module is used, such as the A1SD61-type
high-speed counter module.
App - 49
APPENDICES
MELSEC-Q
The utility software packages and the microcomputer programs created by the user
which are used by the A1SCPU and A2SCPU cannot be used by the QCPU-A
because it does not have the microcomputer mode. (The microcomputer program area
of the QCPU-A is for the SFC only.)
When the utility software packages or the microcomputer programs above are used,
delete all of the SUB instructions (microcomputer program call) used for executing
them from the sequence program.
When the following utility package is used, modify the program using instructions
dedicated to the QCPU-A.
1 SW -UTLP-FNO······· AnSH/AnACPU/AnUCPU Programming Manual (Dedicated
Instruction) IB-66251
2 SW -UTLP-PID········ AnACPU/AnUCPU Programming Manual (PID) IB-66258
3 SW -AD57P
4 SW -SIMA
Unusable
5 SW -UTLP-FDI
6 SW -SAPA
The index register of the QCPU-A is written over again to the value prior to the
execution of the interrupt program when the processing is handed over to the main or
sequence program even if the value was updated by the interrupt program.
MOV K5 Z No write
instruction
1 Z=5 to Z 1 Z=0
Main sequence
program
Interrupt Interrupt
occurred 4 Z=5 occurred 4 Z=0
App - 50
APPENDICES
MELSEC-Q
The following table shows the instruction processing time of QCPU-A (A mode).
App - 51
APPENDICES
MELSEC-Q
App - 52
APPENDICES
MELSEC-Q
App - 53
APPENDICES
MELSEC-Q
App - 54
APPENDICES
MELSEC-Q
App - 55
APPENDICES
MELSEC-Q
App - 56
APPENDICES
MELSEC-Q
App - 57
APPENDICES
MELSEC-Q
App - 58
APPENDICES
MELSEC-Q
App - 59
APPENDICES
MELSEC-Q
App - 60
APPENDICES
MELSEC-Q
App - 61
APPENDICES
MELSEC-Q
App - 62
APPENDICES
MELSEC-Q
App - 63
APPENDICES
MELSEC-Q
App - 64
APPENDICES
MELSEC-Q
Appendix 6 Dimensions
The dimensions of QCPU-A and the base module are shown below:
(1) Q02CPU-A
Q02CPU
MODE
RUN
ERR.
USER
BAT.
BOOT
98 (3.86) PULL
RS-232
Unit: mm (inch)
(2) Q02HCPU-A, Q06HCPU-A
Q02HCPU
MODE
RUN
ERR.
USER
BAT.
BOOT
98 (3.86)
PULL
USB
RS-232
89.3 (3.52)
27.4 (1.08)
Unit: mm (inch)
App - 65
APPENDICES
MELSEC-Q
A1S61PN
POWER
MITSUBISHI
INPUT OUTPUT
100 240VAC DC 5V 5A
105VA
50/60Hz
130 (5.11)
NP
Unit: mm (inch)
App - 66
APPENDICES
MELSEC-Q
(0.39)
10
OUT
110 (4.33)
130 (5.11)
5V
CPU
SG
FG
235 (9.25) 10
10
(0.39)
16.4
(0.65) (0.39)
51.2 (2.02) 255 (10.04)
Unit: mm (inch)
OUT
130 (5.11)
110 (4.33)
5V
CPU
SG
FG
Unit: mm (inch)
OUT
110 (4.33)
130 (5.11)
5V
CPU
SG
FG
10
10
Unit: mm (inch)
App - 67
APPENDICES
MELSEC-Q
(0.39)
10
130 (5.11) IN OUT
110 (4.33) 5V
SG
FG
10 295 (11.61) 10
(0.39)
16.4
10
Unit: mm (inch)
IN OUT
130 (5.11)
110 (4.33)
5V
SG
FG
10 400 (15.75) 10
(0.39)
16.4
10
Unit: mm (inch)
App - 68
APPENDICES
MELSEC-Q
MEMO
App - 69
WARRANTY
Please confirm the following product warranty details before starting use.
3. Overseas service
Overseas, repairs shall be accepted by Mitsubishi's local overseas FA Center. Note that the repair conditions at each FA
Center may differ.
6. Product application
(1) In using the Mitsubishi MELSEC programmable logic controller, the usage conditions shall be that the application will
not lead to a major accident even if any problem or fault should occur in the programmable logic controller device, and
that backup and fail-safe functions are systematically provided outside of the device for any problem or fault.
(2) The Mitsubishi general-purpose programmable logic controller has been designed and manufactured for applications
in general industries, etc. Thus, applications in which the public could be affected such as in nuclear power plants and
other power plants operated by respective power companies, and applications in which a special quality assurance
system is required, such as for each Japan Railways company or the Department of Defense shall be excluded from
the programmable logic controller applications.
Note that even with these applications, if the user approves that the application is to be limited and a special quality is
not required, application shall be possible.
When considering use in aircraft, medical applications, railways, incineration and fuel devices, manned transport
devices, equipment for recreation and amusement, and safety devices, in which human life or assets could be greatly
affected and for which a particularly high reliability is required fin terms of safety and control system, please consult
with Mitsubishi and discuss the required specifications.
QCPU-A(A Mode)
User's Manual
MODEL QCPU-A(A)-U-SHO-E
MODEL 13JR10
CODE
SH(NA)-080065-B(0003)MEE
HEAD OFFICE : MITSUBISHI DENKI BLDG MARUNOUCHI TOKYO 100-8310 TELEX : J24532 CABLE MELCO TOKYO
NAGOYA WORKS : 1-14 , YADA-MINAMI 5 , HIGASHI-KU, NAGOYA , JAPAN
When exported from Japan, this manual does not require application to the
Ministry of International Trade and Industry for service transaction permission.