(Read these precautions before using this product.)
Before using this product, please read this manual and the relevant manuals carefully and pay full attention
to safety to handle the product correctly.
In this manual, the safety precautions are classified into two levels: " WARNING" and " CAUTION".
WARNING
CAUTION
Under some circumstances, failure to observe the precautions given under " CAUTION" may lead to
serious consequences.
Make sure that the end users read this manual and then keep the manual in a safe place for future
reference.
Indicates that incorrect handling may cause hazardous conditions,
resulting in death or severe injury.
Indicates that incorrect handling may cause hazardous conditions,
resulting in minor or moderate injury or property damage.
[DESIGN PRECAUTIONS]
WARNING
Create a safety circuit outside the PLC to ensure the whole system will operate safely even if an
external power failure or a PLC failure occurs. Otherwise, incorrect output or malfunction may cause
an accident.
(1) For an emergency stop circuit, protection circuit and interlock circuit that is designed for
incompatible actions such as forward/reverse rotation or for damage prevention such as the
upper/lower limit setting in positioning, any of them must be created outside the PLC.
(2) When the PLC detects the following error conditions, it stops the operation and turn off all the
outputs.
• The overcurrent protection device or overvoltage protection device of the power supply
module is activated.
• The PLC CPU detects an error such as a watchdog timer error by the self-diagnostics
function.
In the case of an error of a part such as an I/O control part that cannot be detected by the PLC
CPU, all the outputs may turn on. In order to make all machines operate safely in such a case,
set up a fail-safe circuit or a specific mechanism outside the PLC. For fail-safe circuit example,
refer to "LOADING AND INSTALLATION" of this manual.
(3) Depending on the failure of the output module's relay or transistor, the output status may remain
ON or OFF incorrectly. For output signals that may lead to a serious accident, create an external
monitoring circuit.
A - 1
[DESIGN PRECAUTIONS]
WARNING
If load current more than the rating or overcurrent due to a short circuit in the load has flowed in the
output module for a long time, it may cause a fire and smoke. Provide an external safety device such
as a fuse.
Design a circuit so that the external power will be supplied after power-up of the PLC.
Activating the external power supply prior to the PLC may result in an accident due to incorrect
output or malfunction.
For the operation status of each station at a communication error in data link, refer to the respective
data link manual.
Otherwise, incorrect output or malfunction may cause an accident.
When controlling a running PLC (data modification) by connecting a peripheral device to the CPU
module or a PC to a special function module, create an interlock circuit on sequence programs so that
the whole system functions safely all the time.
Also, before performing any other controls (e.g. program modification, operating status change (status
control)), read the manual carefully and ensure the safety.
In these controls, especially the one from an external device to a PLC in a remote location, some PLC
side problem may not be resolved immediately due to failure of data communications.
To prevent this, create an interlock circuit on sequence programs and establish corrective procedures
for communication failure between the external device and the PLC CPU.
When setting up the system, do not allow any empty slot on the base unit.
If any slot is left empty, be sure to use a blank cover (AG60) or a dummy module (AG62) for it.
When using the extension base unit, A52B, A55B or A58B, attach the included dustproof cover to
the module in slot 0.
Otherwise, internal parts of the module may be flied in the short circuit test or when an overcurrent or
overvoltage is accidentally applied to the external I/O section.
A - 2
[DESIGN PRECAUTIONS]
CAUTION
Do not install the control lines or communication cables together with the main circuit or power lines,
or bring them close to each other.
Keep a distance of 100mm (3.94inch) or more between them.
Failure to do so may cause malfunctions due to noise.
If having read register R outside the allowable range with the MOV instruction, the file register data
will be FFFF
file register when designing sequence programs. For instruction details, refer to the programming
manual.
When an output module is used to control the lamp load, heater, solenoid valve, etc., a large current
(ten times larger than the normal one) may flow at the time that the output status changes from OFF
to ON. Take some preventive measures such as replacing the module with the one of a suitable
current rating.
Time from when the CPU module is powered on or is reset to when it enters in RUN status depends
on the system configuration, parameter settings, and program size.
Design the program so that the entire system will always operate safely, regardless of the time.
H. Using this as it is may cause malfunctions. Pay attention not to use any out-of-range
[INSTALLATION PRECAUTIONS]
CAUTION
Use the PLC under the environment specified in the user's manual.
Otherwise, it may cause electric shocks, fires, malfunctions, product deterioration or damage.
Insert the module fixing projection into the fixing hole in the base unit to mount the module.
Incorrect mounting may cause malfunctions, a failure or a drop of the module.
In an environment of frequent vibrations, secure the module with the screw.
Tighten the screw within the specified torque range.
If the screw is too loose, it may cause a drop of the module, a short circuit or malfunctions.
Tightening the screw excessively may damage the screw and/or the module, resulting in a drop of
the module, a short circuit or malfunctions.
Connect the extension cable to the connector of the base unit or module.
Check for incomplete connection after installing it.
Poor electrical contact may cause incorrect inputs and/or outputs.
Insert the memory card and fully press it to the memory card connector.
Check for incomplete connection after installing it.
Poor electrical contact may cause malfunctions.
Be sure to shut off all phases of the external power supply used by the system before mounting or
removing the module.
Failure to do so may damage the module.
Do not directly touch the conductive part or electronic components of the module.
Doing so may cause malfunctions or a failure of the module.
A - 3
[WIRING PRECAUTIONS]
WARNING
Be sure to shut off all phases of the external power supply used by the system before wiring.
Failure to do so may result in an electric shock or damage of the product.
Before energizing and operating the system after wiring, be sure to attach the terminal cover
supplied with the product.
Failure to do so may cause an electric shock.
CAUTION
Ground the FG and LG terminals correctly.
Failure to do so may cause an electric shock or malfunctions.
Wire the module correctly after confirming the rated voltage and terminal layout.
Connecting a power supply of a different voltage rating or incorrect wiring may cause a fire or failure.
Do not connect multiple power supply modules to one module in parallel.
The power supply modules may be heated, resulting in a fire or failure.
Press, crimp or properly solder the connector for external connection with the specified tool.
Incomplete connection may cause a short circuit, fire or malfunctions.
Tighten terminal screws within the specified torque range.
If the screw is too loose, it may cause a short circuit, fire or malfunctions.
If too tight, it may damage the screw and/or the module, resulting in a short circuit or malfunctions.
Carefully prevent foreign matter such as dust or wire chips from entering the module.
Failure to do so may cause a fire, failure or malfunctions.
Install our PLC in a control panel for use.
Wire the main power supply to the power supply module installed in a control panel through a
distribution terminal block.
Furthermore, the wiring and replacement of a power supply module have to be performed by a
maintenance worker who acquainted with shock protection.
(For the wiring methods, refer to Section 19.7.)
A - 4
[STARTUP AND MAINTENANCE PRECAUTIONS]
WARNING
Do not touch any terminal during power distribution.
Doing so may cause an electric shock.
Correctly connect the battery connector.
Do not charge, disassemble, heat, short-circuit, solder, or throw the battery into the fire.
Incorrect battery handling may cause personal injuries or a fire due to exothermic heat, burst and/or
ignition.
Be sure to shut off all phases of the external power supply used by the system before cleaning or
retightening the terminal screws or module mounting screws.
Failure to do so may result in an electric shock.
If they are too loose, it may cause a short circuit or malfunctions.
Tightening the screw excessively may damage the screw and/or the module, resulting in a drop of
the module, a short circuit or malfunctions.
A - 5
[STARTUP AND MAINTENANCE PRECAUTIONS]
CAUTION
When performing online operations (especially, program modification, forced output or operating
status change) by connecting a peripheral device to the running CPU module, read the manual
carefully and ensure the safety.
Incorrect operation will cause mechanical damage or accidents.
Do not disassemble or modify each of modules.
Doing so may cause failure, malfunctions, personal injuries and/or a fire.
When using a wireless communication device such as a mobile phone, keep a distance of 25cm
(9.84inch) or more from the PLC in all directions.
Failure to do so may cause malfunctions.
Be sure to shut off all phases of the external power supply used by the system before mounting or
removing the module.
Failure to do so may result in failure or malfunctions of the module.
When replacing the fuse, use a fuse specified by the manufacturer.
Using the one for the high-rated current or an electric wire may cause a fire.
Do not drop or apply any impact to the battery.
Doing so may damage the battery, resulting in electrolyte spillage inside the battery.
If any impact has been applied, discard the battery and never use it.
Before handling modules, touch a grounded metal object to discharge the static electricity from the
human body.
Failure to do so may cause failure or malfunctions of the module.
[DISPOSAL PRECAUTIONS]
CAUTION
When disposing of the product, treat it as an industrial waste.
When disposing of batteries, separate them from other wastes according to the local regulations.
(For details of the battery directive in EU member states, refer to Appendix 11.)
[TRANSPORTATION PRECAUTIONS]
CAUTION
When transporting lithium batteries, make sure to treat them based on the transportation regulations.
(Refer to Appendix 10 for details of the relevant models.)
A - 6
CONDITIONS OF USE FOR THE PRODUCT
(1) Mitsubishi programmable controller ("the PRODUCT") shall be used in conditions;
i) where any problem, fault or failure occurring in the PRODUCT, if any, shall not lead to any major
or serious accident; and
ii) where the backup and fail-safe function are systematically or automatically provided outside of
the PRODUCT for the case of any problem, fault or failure occurring in the PRODUCT.
(2) The PRODUCT has been designed and manufactured for the purpose of being used in general
industries.
MITSUBISHI SHALL HAVE NO RESPONSIBILITY OR LIABILITY (INCLUDING, BUT NOT
LIMITED TO ANY AND ALL RESPONSIBILITY OR LIABILITY BASED ON CONTRACT,
WARRANTY, TORT, PRODUCT LIABILITY) FOR ANY INJURY OR DEATH TO PERSONS OR
LOSS OR DAMAGE TO PROPERTY CAUSED BY the PRODUCT THAT ARE OPERATED OR
USED IN APPLICATION NOT INTENDED OR EXCLUDED BY INSTRUCTIONS, PRECAUTIONS,
OR WARNING CONTAINED IN MITSUBISHI'S USER, INSTRUCTION AND/OR SAFETY
MANUALS, TECHNICAL BULLETINS AND GUIDELINES FOR the PRODUCT.
("Prohibited Application")
Prohibited Applications include, but not limited to, the use of the PRODUCT in;
• Nuclear Power Plants and any other power plants operated by Power companies, and/or any
other cases in which the public could be affected if any problem or fault occurs in the PRODUCT.
• Railway companies or Public service purposes, and/or any other cases in which establishment of
a special quality assurance system is required by the Purchaser or End User.
• Aircraft or Aerospace, Medical applications, Train equipment, transport equipment such as
Elevator and Escalator, Incineration and Fuel devices, Vehicles, Manned transportation,
Equipment for Recreation and Amusement, and Safety devices, handling of Nuclear or
Hazardous Materials or Chemicals, Mining and Drilling, and/or other applications where there is a
significant risk of injury to the public or property.
Notwithstanding the above, restrictions Mitsubishi may in its sole discretion, authorize use of the
PRODUCT in one or more of the Prohibited Applications, provided that the usage of the PRODUCT
is limited only for the specific applications agreed to by Mitsubishi and provided further that no
special quality assurance or fail-safe, redundant or other safety features which exceed the general
specifications of the PRODUCTs are required. For details, please contact the Mitsubishi
representative in your region.
A - 7
REVISIONS
*The manual number is given on the bottom left of the back cover.
CONDITIONS OF USE FOR THE PRODUCT, APPENDIX 2, 3, 11, 11.1, 11.2
Japanese Manual Version SH-3532-L
This manual confers no industrial property rights or any rights of any other kind, nor dose it confer any patent licenses.
Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may
occur as a result of using the contents noted in this manual.
1995 MITSUBISHI ELECTRIC CORPORATION
A - 8
*The manual number is given on the bottom left of the back cover.
Thank you for purchasing the Mitsubishi programmable logic controller MELSEC-QnA series.
Before using your new PLC, please read this manual thoroughly to gain an understanding of its functions so
that you can use it properly.
Please forward a copy of this manual to the end user.
Table of Contents
1ABOUT THIS MANUAL1 - 1 to 1 - 2
1.1About this Manual..........................................................................................................................1 - 1
1.2Abbreviations and Generic Terms Used in this Manual ................................................................1 - 2
7.2Auto Refresh Setting of CC-Link ...................................................................................................7 - 8
A - 10
8DEBUGGING FUNCTION8 - 1 to 8 - 64
8.1Function List ..................................................................................................................................8 - 1
8.9Simulation Function .....................................................................................................................8 - 57
8.10 Debugging by Several People.....................................................................................................8 - 61
8.10.1 Simultaneous monitoring by several people .......................................................................8 - 62
8.10.2 Simultaneous execution of write during RUN by several people ........................................8 - 63
9MAINTENANCE FUNCTION9 - 1 to 9 - 21
9.1Function List ..................................................................................................................................9 - 1
9.4Error History ................................................................................................................................9 - 10
10.1 Function List ................................................................................................................................10 - 1
10.8 Reading Module Access Time Intervals ....................................................................................10 - 23
11COMMENTS THAT CAN BE STORED IN QnACPU11 - 1 to 11 - 8
11.1 Function List ................................................................................................................................11 - 1
11.2 PLC name ...................................................................................................................................11 - 2
11.3 Drive Title ....................................................................................................................................11 - 3
After removing a battery of the CPU module, format the memory using a peripheral
device to start next operation. (Refer to Section 21.5)
(2)The operation after excess of a battery life
After removing a battery of the CPU module due to its excess life, format the memory
using a peripheral device to start next operation. (Refer to Section 21.6)
A - 19
1.
ABOUT THIS MANUAL
1ABOUT THIS MANUAL
1.1About this Manual
This manual serves to explain the specifications and functions of the Q2ACPU(S1),
Q3ACPU, and Q4ACPU (abbreviated as QnACPU hereafter), the specifications of other
modules, and the maintenance required for smooth system operation, to users of
MELSEC-QnA series programmable controllers.
It is divided into the following three main parts:
(1) Sections 2 and 3These sections give the general description and system
(2) Sections 4 to 15These sections give the specifications and functions of
configuration for the QnACPU.
Read them to learn the features of QnACPU, and the modules
that can be used and points to note when configuring a system.
QnACPU.
They describe each QnACPU function to enable you to use the
QnACPU effectively.
(3) Sections 16 to 18These sections describe the specifications and handling of units/
modules other than the CPU module (power supply module,
base units, etc.).
Read them to learn how to handle the power supply module,
base units, memory cards, etc.
(4) Sections 19 to 20These sections describe the loading and installation, EMC and
low voltage directives.
(5) Sections 21 to 22These sections describe all aspects of maintenance, from
installing the QnACPU to daily inspections and troubleshooting.
Read them to learn how to install the QnACPU so as to ensure
smooth operation, and how to carry out daily inspections and
corrective action in the event of trouble.
REMARK
This manual does not cover MELSECNET(II) data link systems, MELSECNET/B data
link systems, MELSECNET/10 networks, or the SFC function.
For details on each function, refer to the following manuals.
• MELSECNET(II), MELSECNET/B Data Link
MELSECNET, MELSECNET/B Data Link System Reference Manual
• MELSECNET/10 Network
MELSECNET/10 Network System Manual for QnA/Q4AR
• SFC Function
QCPU (Q Mode)/QnACPU Programming Manual (SFC)
1 - 1
1.
ABOUT THIS MANUAL
1.2Abbreviations and Generic Terms Used in this Manual
The following abbreviations and generic terms are used in this manual.
(1)QnACPU...................................Abbreviation for Q2ACPU, Q2ACPU-S1,
(2)Network module......................... Abbreviation of AJ71QLP21(G), AJ71QLP21S,
(3)Ethernet module......................... Abbreviation of AJ71QE71N-B2 and
(4)Serial communication module.... Abbreviation of AJ71QC24 (N), AJ71QC24 (N)-
Q3ACPU, and Q4ACPU type CPU modules.
AJ71QLR21, AJ72QLP25 (G), AJ71QBR11,
AJ72QBR15 and AJ72QLR25 type
MELSECNET/10 network modules.
AJ71QE71N-B5T type Ethernet interface
modules.
R2 type serial communication module.
(5)CC-Link.....................................Abbreviation of Control & Communication Link
(6)GPP function.............................
(7)Personal computer..................... IBM's PC/AT or completely compatible
(8)Peripheral device capable .........
of GPP functions
(9)Q6PU......................................... Abbreviation for Q6PU programming unit.
(10) Peripheral device........................ Generic term for a device that is connected to a
(11) Built-in RAM............................... A RAM incorporated in the QnA CPU that stores
(12) Memory card..............................
(13) ACPU......................................... Generic term for a MELSEC-A series
Abbreviations for the SWIVD-GPPQ type
GPP function software package, GX Developer.
computers.
Generic term for a peripheral device capable of
running the GPP function software, for example
an IBM PC/AT.
QnACPU and can be used to operate it, for
example a IBM-PC/AT-compatible personal
computer or Q6PU.
sequence programs and other data.
Abbreviation for Q1MEM- type memory
card
programmable controller
1 - 2
2.
OVERVIEW
2OVERVIEW
2.1Features
QnACPU has the following features.
(1)Large memory capacity
(a) Q4ACPU has a program capacity of 124k steps, which means that 124k steps
can be used for a single program (Q2ACPU: 28k steps, Q2ACPU-S1: 60k steps,
Q3ACPU: 92k steps).
(b) The device memory capacity is 32k words and the user can change the number
of points as required.
For example, the default number of points for internal relays (M) is 8k points, but
this can be expanded up to 32k points.
(c) Two memory cards of a maximum of 2M bytes can be installed.
Memory cards are used to store programs, comments, statements, and file
registers.
(Programs can be stored in the CPU module itself, so a memory card is not
essential to run a CPU module.)
(2)High-speed processing
(a) Higher operation processing speeds have been achieved for basic instructions
(b) The access time for expansion data memory (file registers: R) has been
conformed with the internal devices of the QnACPU (data registers: D, and link
registers: W).
(c) Reading/writing of the buffer memories of special function modules dedicated to
QnA (serial communication modules) have been realised processing speed-up
by six times compared to AnUCPU.
(The processing speed of the existing special function modules for ACPU use is
about the same as that when using AnUCPU.)
(d) A high-speed access base unit (A38HB/A38HBEU) is available to speed up the
processing time for accessing special function modules such as network
modules and serial communication modules that handle large quantities of data.
Simply by mounting the special function module on the high-speed access base
unit, the access processing speed is increased when the QnACPU accesses the
special function module.
0.15 s0.075 s
0.90 s0.225 s
2 - 1
2.OVERVIEW
(3)Selection of program execution type that is appropriate for the control has been
realised.
There are four program execution types to be selected as follows.
(a) Initial execution type
This program type is executed once only when the QnACPU is set to RUN.
(b) Scan execution type
This program type is run continually while the QnACPU is in the RUN status.
This is equivalent to a conventional program that runs from step 0 to END
instruction. It is possible to create subroutine programs and interrupt programs
for this type of program.
(c) Low-speed execution type
This is a program type which is executed only during the surplus constant scan
time (process to preset the program execution time for constant scan time) or
during the set execution time of the low-speed execution program.
(d) Stand-by type
This type of program consists entirely of a subroutine program or interrupt
program.
(4)The SFC language MELSAP3 has been supplied.
With enhancement of step attributes and SFC control instructions, MELSAP3 makes
SFC programming even easier.
(5)A software development environment that improves program productivity has been
realized.
(a) In order to enable the design of structured programs, a file format has been
adopted for programs.
What would conventionally have been a single continuous program can now be
handled in a structured way as a number of files.
This allows for design work to be shared by several designers, and allows
management of programs in accordance with functions, processes, or
designers, etc.
2 - 2
2.OVERVIEW
(b) The user can standardize and simplify programs by creating and using macro
instructions corresponding to functions.
(c) Devices can be used without restrictions.
1) Word device bit operations are possible.
2) Differential contacts can be used.
3) Buffer memories of special function modules can be accessed directly from a
program as devices.
4) The link data of network modules can be accessed directly from a program as
devices.
(d) Ease of operation for GPP function program editing has been improved.
1) Up to four programs, data, etc., can be edited simultaneously.
Programs and data can be cut and pasted between edited objects.
2) Ladder editing is possible while the ladder is displayed with comments.
3) Familiar operations can be performed with pull-down menus and dialog
boxes.
(e) The debugging function at start-up has been perfected.
1) Ladder modification while performing monitoring is possible.
2) Coil ON/OFF causes can be searched for.
3) The timing for monitoring can be set using a step number or device status,
allowing debugging to be conducted under the optimum conditions.
4) Devices for which index qualifications have been set can be monitored.
(f)The GPP function document creation function has been strengthened.
1) Since comments can now comprise 32 characters, they can be more detailed
than before.
2) Comments can now be set for all devices.
3) The statements and notes appended to programs can now be managed as
an integral part of the program, which makes program modifications and
utilization easier.
4) Printout data can be saved in a file.
2 - 3
2.OVERVIEW
(g) A powerful array of support software packages is available for program creation.
1) Data conversion package
Comment data, device data, etc., which is created with spreadsheet software
and text editors available on the market, can be converted to files for GPP
function use.
Conversely, files created for GPP function use can be converted to data for
spreadsheets or text editors.
2) Macro/library package
The basic programs for accessing special function modules, and standard
programs for error detection, alarm processing, etc., have been brought
together as a package of macro and library data.
3) Ladder sequence linking package
This package is used to link multiple programs to make a single program.
This has an automatic allocation function that ensures that devices from each
program without duplicating in the created program.
4) CAD interface program
This package is used to handle sequence ladders, instruction lists, comment
data and SFC diagrams as CAD data and communicate these data to CAD
systems.
2 - 4
2.
OVERVIEW
2.2Additional Functions of QnACPU
New functions and instructions for special function module are added to the QnACPU.
[Additional functions]
Variety of local devices.................................................. Refer to Section 2.2.1 (1).
Monitor test of local device.................................. Refer to Section 8.2.2.
Use of local device at the subroutine/interrupt
program storage destination................................. Refer to Appendix 7.
Auto refresh setting of CC-Link...................................... Refer to Section 2.2.1 (2),
MELSECNET/10 relay communication from the
Ethernet module (Network relay).................................... Refer to Section 2.2.1 (3),
Addition of AJ71QC24N-compatible commands ............Section 2.2.1 (4)
Section 7.2.
Appendix 8.
[Added instructions for special function module]
The following instructions have been added for function version "B'' of the QnACPU:
AJ61QBT11 control instructions...................................... 13
AD75 control instructions................................................ 19
AJ71D-R4 control instructions.....................................
AJ71QE71 control instructions........................................ 10
Additional function/special function module instructions can be used for the QnACPU
described function version B in the date column of the rating plate.
Check that function version B is described on the QnACPU rating plate before using the
additional function/special function module instructions.
If your QnACPU does not have indication of function version B, skip this item and the
description of additional functions.
12
When using additional function/special function module instructions of the QnACPU, it is
necessary to match the GPP function model and the function version/version of the
applicable special function module. (Refer to Table 2.1.)
2 - 5
2.OVERVIEW
Table 2.1 List of combination between QnACPU and function version/version of special function module
SW0IVD-
Module/package NameQnACPU
Function version
Condition
Version–
Local device
monitor test
Local device switching of
subroutine/interrupt program
Auto refresh function of CC-Link––––
AJ61QBT11 control instructions ––––
MELSECNET/10 relay
communication from Ethernet
AJ71QE71 control instructions––––
AD75 control instructions––––
ID interface module instructions––––
9707B and
later
GPPQ
SW1IVD-
GPPQ
––
No
restriction
SW2IVD-
GPPQ
No
restriction
––––––
AJ71QE71
(B2), (B5)
9707B and
later
–
–––––
AD75P-S3
––
No
restriction
––––
AJ71
ID -R4
BC and later–
AJ61QBT11
9707B and
later
AJ71QC24
(N)(R2)
restriction
–
No
Compatibility with AJ71QC24N
commands
REMARK
–––––
1) Marks , –, and in Table 2.1 indicate as follows:
:
Essential for use of function and instruction
– :
Irrelevant to function and instruction
:
Required in the case of access to the QnACPU in other stations from
the peripheral device via Ethernet
:
Not available on peripheral devices.
2) GX Developer complies with functions of function version B.
2 - 6
2.
OVERVIEW
2.2.1Overview of added functions
This section shows an overview of the added functions.
(1)Variety of local device
(a) The device set as the local device at "Device" in Parameter can be monitored
and tested with a peripheral device.
This function allows checking and debug of the local device in the program
monitored with a peripheral device.
(b) The local device of the file where the subroutine program/interrupt program is
stored has made it possible to be used during execution of the subroutine
program/interrupt program.
For this function, even if an operation using the local device of the subroutine
program is carried out, the original local device cannot be overwritten. In
addition, even if an operation using the local device of the interrupt program, the
local device which is executed before starting up the interrupt program cannot be
overwritten.
(c) The following GPP function software packages are required to perform the
monitor test of the local device:
• Personal computer
GX Developer, SW2IVD-GPPQ type GPP function software package
(2)Auto refresh setting of CC-Link
(a) When setting auto refresh of the CC-Link on the peripheral function, cyclic
communication with other stations connected to the CC-Link can be
automatically performed according to the set auto refresh data.
• Remote I/O station (Communication in ON/OFF data)
• Remote device station (Communication in ON/OFF data and Word data)
• Intelligent device station (Communication in ON/OFF data and Word data)
• Local station/master station (Communication in ON/OFF data and Word data)
The auto refresh setting of the CC-Link allows communication with other stations
using the FROM/TO instruction without communicating with the master station of
the CC-Link.
(b) Auto refresh is available for up to 8 CC-Link modules for each unit of QnACPU.
Communication for 9th CC-Link module and more can be performed with the
CC-Link module using the FROM/TO instruction.
(c) The following GPP function software packages are required to perform the auto
refresh setting of the CC-Link:
• Personal computer:
GX Developer, SW2IVD-GPPQ type GPP function software package
It is necessary to upgrade the master station local station module of CC-Link to
function version B or later.
2 - 7
2.OVERVIEW
(3)Netwotk relay from Ethernet module
(a) In the network system with mixture of Ethernet and MELSECNET/10, data can
be communicated with the QnACPU of other stations via multiple Ethernets or
MELSECNET/10 modules.
(b) For the network relay from the Ethernet module, the function version of the
Ethernet module should be upgraded to "B" or later.
(4)AJ71QC24N-compatible commands are possible.
(a) The following AJ71QC24N commands are available:
• Multiple blocks batch read: Command "0406"
• Multiple blocks batch write: Command "1406"
(b) Multiple blocks batch read/batch write is available with AJ71QC24N (-R2, R4).
Multiple blocks batch read/batch write is not available with AJ71QC24 (-R2, R4).
For commands of multiple blocks batch read/batch write, refer to the following
manual:
• Corresponding Additional Explanation for AJ71QC24N (-R2/R4)
2 - 8
3.
SYSTEM CONFIGURATION
3SYSTEM CONFIGURATION
This section describes the system configurations that can be used for a system centered
on a QnACPU, cautions on configuring the system, and the system equipment.
3.1System Configuration
The following shows the configuration of equipment and peripheral device when a
QnACPU is used in a stand-alone system.
3.1.1Equipment configuration in a stand-alone system
POINT
*1 Up to two memory cards can be installed, if required.
2
SRAM and E
CPU module.
*2 When using an A5B extension base unit, pay particular attention to the
power supply capacity of the main base unit. In the case of I/O modules and
the special function module with a high internal current consumption,
mounting on an A6B extension base unit is recommended.
(Refer to Section 16.1 and Section 17.3 for details.)
PROM memory cards allow file read/write when mounted on the
3 - 1
3.
SYSTEM CONFIGURATION
3.1.2Configuration of peripheral devices capable of QnACPU
(To RS-422 interface)
QnACPU
AC30R4-PUS cable
AC20R4-A8PU cable
RS-422 cable
Q6PU
programming unit
*2
RS-422 RS-232C
convertor
IBM-PC/AT-compatible
software package used:
RS-232C cable
*3
AJ71QC24 serial
communication module
(Mounted to the
base unit)
(To RS-422 interface/RS-232C)
(To option board slot)
Option board
*2
RS-232C cable
Dedicated cable
IBM-PC/AT-compatible
software package used:
IC memory card
reader/writer
*1
*1For details on the IC memory card reader/writer setting, refer to Operating Manual for the
peripheral device capable of GPP functions.
*2For connection to RS-422 interface, use the RS-422RS-232C converter.
*3When connecting the serial communication module and the peripheral devices capable of
GPP function, see User's Manual of the serial communication modules.
REMARK
1.For details on the system configuration for each peripheral device, refer to
the Operating Manual for each.
2.QnACPU can connect a peripheral device capable of ACPU only when
accessing an ACPU in another station via a MELSECNET/10 or
MELSECNET data link. (However, QnACPU cannot be accessed. ) In this
case, set SW2 of system setting switch 2 on the CPU module ON.
3 - 2
3.
SYSTEM CONFIGURATION
3.2System Configuration Overview
(a) Q2ACPU system
System configuration
Maximum number of
extension stages
Maximum number of I/O
modules
Maximum number of I/O
points
Main base unit model
name
Extension base unit
model name
Extension cable model
name
Precautions
I/O number assignment
* An example when the 16-point module is installed to each slot is shown.
3rd extension stage
32 modules
512 points
A32B, A32B-S1, A35B, A38B, A38HB, A38HBEU
A62B, A65B, A68B, A52B, A55B, A58B
AC06B, AC12B, AC30B
(1) It is not possible to connect an extension base unit to an A32B main base unit. For an extension base, use A32B-S1.
(2) When using the extension base unit A52B, A55B, A58B, 5VDC is supplied from the power supply module of the main
base unit. Before use, refer to Section 17.3 and examine if it can be used.
(3) The overall distance of the extension cable must be 6.6m (21.65ft.) or shorter.
(4) When using the extension cable, do not tie it with the main circuit cables, which has high voltage, large current, or install
them close to each other.
(1) I/O numbers are allocated in accordance with the order of the numbers set for the extension base stages, regardless of
the order in which the extension cables are connected.
(2) Assign I/O numbers as if both main base unit and extension base unit have 8 slots each.
Consequently, allocations of 16 points per slot are made for the parts of the system configuration drawing indicated with
dotted lines.
(3) 16 points are assigned to an empty slot.
(4) Extension stage numbers do not need to be sequential, but any extension stage omitted from the system will occupy 8
(slots) 16 I/O points.
(5) With regard to items (2) to (4) above, the I/O allocations can be changed by setting I/O allocations in the
parameters.(Refer to Section 5.3)
3 - 3
3.SYSTEM CONFIGURATION
(b) Q2ACPU-S1 system
Extension
cable
1st extension
stage
2nd extension
stage
System configuration
3rd extension
stage
4th extension
stage
Main base unit (A38B)
0
23
1
CF
20
14F
1B0
1BF
230
23F
20
2F
12
C0
27
35
30
3F 4F
13
D0
DF
(21)(22)
150140
160
16F
15F
28
1C0
1D0
1DF
1CF
36
250
240
25F
24F
4
40
14
E0
EF
29
37
00
10
C
to to to to to to to to
P
U
0F
1F
Power supply
module
A58B extension base unit
8
9
11
10
B0
90
80
A0
to to to to to to to to
AF
BF
9F
8F
A55B extension base unit
19
18
16
17
130
120
100
110
to to to to to to to to
11F10F
13F
12F
A68B extension base unit
26
25
24
180
1A0
190
to to to to to to to to
1AF
18F
19F
Power supply
module
33
32
34
220
210
200
to to to to to to to to
22F
21F
20F
Power supply
module
50
5F
15
F0
FF
(23)
170
17F
30
1E0
1EF
38
260
26F
5
6
60 70
6F
31
1F0
1FF
39
270
27F
Slot No.
7
7F
* An example when the 16-point module
is installed to each slot is shown.
5th extension
stage
6th extension
stage
7th extension
stage
A65B extension base unit
2A0
2AF
320
32F
3A0
3AF
(45)(46)
44
43
42
2D0
2B0
2C0
2DF
2BF
2CF
52
51
50
330
350
340
33F
35F
34F
59
58
60
3C0
3D0
3B0
3BF
3DF
3CF
41
40
280
290
to to to to to to to to
29F
28F
Power supply
module
49
48
300
310
to to to to to to to to
31F
30F
Power supply
module
57
56
380
390
to to to to to to to to
39F
38F
Power supply
module
(
2E0
2EF
(((
53
360
36F
61
3E0
3EF
(47)
(
(
2F0
2FF
54
55
370
37F
63
62
3F0
3FF
Maximum number of
extension stages
Maximum number of I/O
modules
Maximum number of I/O
points
Main base unit model
name
Extension base unit
model name
Extension cable model
name
Precautions
I/O number assignment
7th extension stage
64 modules
1024 points
A32B, A32B-S1, A35B, A38B, A38HB, A38HBEU
A62B, A65B, A68B, A52B, A55B, A58B
AC06B, AC12B, AC30B
(1) It is not possible to connect an extension base unit to an A32B main base unit. For an extension base, use A32B-S1.
(2) When using extension base units A52B, A55B, A58B, 5VDC is supplied from the power supply module of the main base.
Before use, refer to Section 17.3 and examine if it can be used.
(3) The overall distance of the extension cable must be 6.6m (21.65ft.) or shorter.
(4) When using the extension cable, do not tie it with the main circuit cables, which has high voltage, large current, or install
them close to each other.
(1) I/O numbers are allocated in accordance with the order of the numbers set for the extension base stages, regardless of
the order in which the extension cables are connected.
(2) Assign I/O numbers as if both main base unit and extension base unit have 8 slots each.
Consequently, allocations of 16 points per slot are made for the parts of the system configuration drawing indicated with
dotted lines.
(3) 16 points are assigned to an empty slot.
(4) Extension stage numbers do not need to be sequential, but any extension stage omitted from the system will occupy 8
(slots) 16 I/O points.
(5) With regard to items (2) to (4) above, the I/O allocations can be changed by setting I/O allocations in the
parameters.(Refer to Section 5.3)
3 - 4
3.SYSTEM CONFIGURATION
(c) Q3A/Q4ACPU system
Extension
cable
1st extension
stage
2nd extension
stage
System configuration
3rd extension
stage
4th extension
stage
Main base unit (A38B)
0
23
1
00
10
C
to to to to to to to to
P
U
0F
1F
Power supply
module
A58B extension base unit
8
9
11
10
B0
90
80
A0
to to to to to to to to
AF
BF
9F
8F
A55B extension base unit
18
16
17
130
120
100
110
to to to to to to to to
11F10F
13F
12F
A68B extension base unit
25
24
180
1A0
190
to to to to to to to to
1AF
18F
19F
Power supply
module
33
32
220
210
200
to to to to to to to to
22F
21F
20F
Power supply
module
4
30
20
40
2F
3F 4F
13
12
14
D0
C0
E0
CF
DF
EF
20
19
(21)(22)
160
150140
14F
16F
15F
27
26
29
28
1B0
1C0
1D0
1BF
1DF
1CF
35
36
34
37
250
230
240
23F
25F
24F
(23)
170
17F
1E0
1EF
260
26F
5
6
50
60 70
6F
5F
15
F0
FF
31
30
1F0
1FF
38
39
270
27F
Slot No.
7
7F
* An example when the 16-point module
is installed to each slot is shown.
5th extension
stage
6th extension
stage
7th extension
stage
A65B extension base unit
2A0
2AF
320
32F
3A0
3AF
(45)(46)
44
43
42
2B0
2C0
2D0
2BF
2CF
2DF
52
51
53
50
330
350
340
33F
35F
34F
59
58
61
60
3C0
3D0
3B0
3BF
3DF
3CF
41
40
280
290
to to to to to to to to
29F
28F
Power supply
module
49
48
300
310
to to to to to to to to
31F
30F
Power supply
module
57
56
380
390
to to to to to to to to
39F
38F
Power supply
module
(
(
2E0
2EF
(((
54
360
36F
62
3E0
3EF
(47)
2F0
2FF
370
37F
3F0
3FF
(
55
63
Maximum number of
extension stages
Maximum number of I/O
modules
Maximum number of I/O
points
Main base unit model
name
Extension base unit
model name
Extension cable model
name
Precautions
I/O number assignment
7th extension stage
64 modules
Q3A 2048 points/Q4A 4096 points
A32B, A35B, A38B, A38HB, A38HBEU
A62B, A65B, A68B, A52B, A55B, A58B
AC06B, AC12B, AC30B
(1) It is not possible to connect an extension base unit to an A32B main base unit. For an extension base, use A32B-S1.
(2) When extension base unit A52B, A55B, A58B is used, 5VDC power supply is supplied from the power supply module of
the main base. Before use, refer to Section 17.3 and examine if it can be used.
(3) The overall distance of the extension cable must be 6.6m (21.65ft.) or shorter.
(4) When using the extension cable, do not tie it with the main circuit cables, which has high voltage, large current, or install
them close to each other.
(1) I/O numbers are allocated in accordance with the order of the numbers set for the extension base stages, regardless of
the order in which the extension cables are connected.
(2) Assign I/O numbers as if both main base unit and extension base unit have 8 slots each.
Consequently, allocations of 16 points per slot are made for the parts of the system configuration drawing indicated with
dotted lines.
(3) 16 points are assigned to an empty slot.
(4) Extension stage numbers do not need to be sequential, but any extension stage omitted from the system will occupy 8
(slots) 16 I/O points.
(5) With regard to items (2) to (4) above, the I/O assignment can be changed by setting I/O assignments in the
parameters.(Refer to Section 5.3)
3 - 5
3.
SYSTEM CONFIGURATION
3.3System Equipment
3.3.1System equipment list
The following shows the system equipment (modules and peripheral devices) that can be
used in a QnACPU system.
(1)For QnA module
Product NameModel NameDescription
Number of I/O points: 512, built-in RAM: 28k
steps
Number of I/O points: 1024, built-in RAM: 60k
steps
Number of I/O points: 2048, built-in RAM: 92k
steps
Number of I/O points: 4096, built-in RAM: 124k
steps
SRAM, 32k bytes, E
2
PROM, 32k bytes
CPU module
Memory card
Q2ACPU
Q2ACPU-S1
Q3ACPU
Q4ACPU
Q1MEM-64SSRAM, 64k bytes
Q1MEM-128SSRAM, 128k bytes
Q1MEM-256SSRAM, 256k bytes
Q1MEM-512SSRAM, 512k bytes
Q1MEM-1MSSRAM, 1M bytes
Q1MEM-2MSSRAM, 2M bytes
Q1MEM-64SE
Number of Occupied
Points (points)
[I/O Allocation
Module Type]
–
–––
Current Consumption
5VDC(A) 24VDC(A)
0.4–
0.4–
0.4–
0.9–
Remark
Memory card
procured
separately.
Including
memory card
current
consumption.
Function that
protects the
transistors from
damage due to
external
temperature rise
attributable to
external causes.
Performs I/O
processing in 8point units
independently
of the CPU
module, while
scanning.
The first half 32
points are inputs
and the second
half 32 points
are outputs.
3.SYSTEM CONFIGURATION
Product NameModel NameDescription
1-axis positioning control, speed control
1-axis
positioning
module
Positioning
module
Special function module
AD70
AD70D-S21-axis, digital output, for MR-SB(K)/SD32 (special 32 points)0.8–
AD72
AD75P1-S3
AD75P2-S30.7
AD75P3-S3
AD75M1
AD75M2
AD75M3
and speed-positioning control,
analog voltage output for speed-positioning
control (0 to 10V)
For positioning control
analog voltage output for speed-positioning
control (0 to 10V)
2-axis (independent control, simultaneous 2axis control, linear interpolation control).
• Maximum 4
modules can
be used for
one CPU
module.
(Refer to
Section 3.3.2 )
3 - 13
3.SYSTEM CONFIGURATION
Product NameModel NameDescription
Link module that communicates data with a
Computer link
module
Intelligent
communication
module
Host controller
high-speed link
module
Multidrop data link
module
AJ71UC24
AD51H-S3
AJ71C23-S3
AJ71C22-S1
A0J2C25
computer.
*2
Transmission speed: 300bps to 19.2kbps
RS-232C, RS-422: one channel each,
compatible with RS485
AD51H-BASIC, maximum of 8 tasks executes
data communication with a PLC or a computer,
and monitoring control status.
Data communication with a computer can be
executed by any format.
RS-232C: 2 channels, RS-422, Parallel: one
channel each
Link module that sends/receives data at high
speed to/from a computer.
*2
Transmission speed: 500kbps
RS-422: one channel each
Sends and receives bit data to maximum 8
slave stations to which it is connected in a
multidrop system.
Used for the master station of a multidrop link.
Transmission speed: 38.4kbps
RS-422: one channel each
Used for a remote I/O station of a multidrop
link.
Number of Occupied
Points (points)
[I/O Allocation
Module Type]
32 (special 32 points)0.3–
First half:
empty 16 points
48
Second half:
special 32
points
32 (special 32 points)1.5–
32 (special 32 points)1.4–
–––
Current Consumption
5VDC(A) 24VDC(A)
1.0–
Remark
Maximum 6
modules can be
used for one
CPU module.
CC-Link system
master/local
module
MELSECNET/
MINI-S3 data link
module
B/NET interface
module
Interrupt module
Used for a local station in a multidrop link.
A0J2C214(S1)
AJ61QBT11
AJ71PT32-S3
AJ71T32-S3
AJ71B62-S3
AI61
AI61-S1Product for changing time to turn ON/OFF A61
In A0J2CPU and A0J2HCPU systems,
A0J2C214 can also be used as the master
station in computer links and multidrop data links
For CC-Link system master and local stations
When used as the master station, the module
controls maximum 64 remote I/O stations.
When a local station is used, the module
occupies 1 or 4 station(s).
For MELSECNET/MINI-S3 master stations
(max. 64 stations). Performs remote I/O and
remote terminal control of a total of 512 I/O
points.
Used for B/NET transmission terminal control.
Up to 63 stations can be controlled per module.
Used to designate execution of interrupt
programs (16 interrupt inputs).
A6TBX70-EFor source type input modules (3-wire type)AX82
AC05TBFor 0.5m (1.64ft.) sink module
AC10TBFor 1m (3.28ft.) sink module
AC20TBFor 2m (6.56ft.) sink module
AC30TBFor 3m (9.84ft.) sink module
AC50TBFor 5m (16.40ft.) sink module
AC80TB
AC100TB
For sink-type input module and
sink-type output module (standard type)
AX42(S1), AY42(S1/S3/S4), AH42
For sink-type input module and
sink-type output module. (2-wire type)
A6TBXY36
A6TBXY54
A6TBX70
For 8m (314.96inch) sink module (Common
current: 0.5A or less)
For 10m (393.7inch) sink module (Common
current: 0.5A or less)
Relay terminal
module
Cable for connecting
relay terminal module
AC05TB-EFor 0.5m (1.64ft.) source module
AC10TB-EFor 1m (3.28ft.) source module
AC20TB-EFor 2m (6.56ft.) source module
AC30TB-EFor 3m (9.84ft.) source module
AC50TB-EFor 5m (16.40ft.) source module
A6TE216SRN
AC06TE0.6 m (1.97ft.) long
AC10TE1m (3.28ft.) long
AC30TE3m (9.84ft.) long
AC50TE5m (16.40ft.) long
AC100TE10m (32.80ft.) long
For sink-type output module
A6TBX36-E
A6TBY36-E
A6TBX54-E
A6TBY54-E
A6TBX70-E
AY42, AY42-S1, AY42-S3, AY42-S4,
AH42
A6TE2-16SRN
3 - 19
3.SYSTEM CONFIGURATION
REMARK
Toa Electric Industrial CO., LTD. provides I/O cables with connectors, which can
connect to 40-pin connector (AX42, AY42, etc.) or 37-pin D-sub connector (AX82,
AY82) of I/O modules.
Contact:
(2) Peripheral device
Product NameModel NameRemark
TOA ELECTRIC INDUSTRIAL CO., LTD.
Programming unit Q6PU
AC30R4-PUS
RS-422 cable
AC20R4-A8PU
Connected to the CPU module by an RS-422 cable (AC30R4-PUS,
AC20R4-A8PU); for program writing and reading. (5VDC 0.4A)
Cable for connection between CPU module and Q6PU
3m (9.84ft.) long
Cable for connection between CPU module and Q6PU
2m (6.56ft.) long
3 - 20
3.
SYSTEM CONFIGURATION
3.3.2Precautions when configuring the system
The following shows the hardware and software packages which can be used for
QnACPU.
(1)Hardware
(a) The number of modules that can be mounted is restricted depending on the
module type.
Applicable ModuleDedicated to QnACPUFor ACPURemark
I/O module
Special function moduleNo restrictionsNo restrictions–
Intelligent special
function module
Interrupt module
Link module
Ethernet module
Total 4 for network,
Ethernet use
–No restrictions–
No restrictionsTotal 6 modules
–Only 1 module–
Total 2 for data link use
Including GOT-A900
Series
(Only when the bus
connection is used.),
and GOT1000 Series
(Only when the bus
connection is used.)
Total 4 for network,
Ethernet and data link
use
REMARK
The modules described above are categorized as follows.
1) I/O module............................... Standard input modules and output modules
2) Special function module.......... Special function modules that perform processing
in accordance with FROM/TO instructions from the
QnACPU (for example: A68AD, A62DA, etc.)
3) Intelligent special function......
module
Special function modules that can process not only
by executing FROM/TO instruction of QnACPU but
also by accessing QnACPU from special function
module (Example: AJ71UC24, AJ71QC24N, etc.)
4) Interrupt module...................... Modules that issue interrupts to the QnACPU
(AI61)
5) Link module............................. Special function modules for MELSECNET II, /B
data links and MELSECNET/10 networks.
(Example: AJ71AP21, AJ71QLP21, etc.)
6) Ethernet module...................... Dedicated Ethernet interface modules for
QnACPU (AJ71QE71, AJ71QE71-B5)
3 - 21
3.SYSTEM CONFIGURATION
(b) The following shows special function modules that cannot be used with
QnACPU:
• AJ71C23 (Host controller high-speed link module)
• AD57-S2 (A6MD controller module)
• AJ71C24 (Computer link module): Manufactured through February 1987.
• AD51 (Intelligent communication module): Manufactured thorugh March 1987.
• A7GT-BUS (Bus connection interface module for A77GOT and A870GOT):
Manufactured through January 1996.
Products manufactured in March 1987 or later,
and products marked "H" (corresponding to A3H)
can be used.
Products manufactured in April 1987 or later,
and products marked "H"(corresponding to A3H )
can be used.
Products manufactured in February 1996 or
later, and products marked "C" (corresponding to
A3H ) can be used.
(c) When using a special function module with QnACPU, the device range to be
used is depending on models of special function modules.
Access range
Device range equivalent to the
Device
AD51(S3), AJ71C24-S3,
I/O device (X/Y)X/Y0 to X/Y7FFX/Y0 to X/Y7FF
Internal relays (M, L, S)
Link relay (B)B0 to B3FFB0 to BFFFB0 to BFFF
Timer (T)T0 to T255T0 to T2047T0 to T2047
Counter (C)C0 to C255C0 to C1023C0 to C1023
*3
M0 to M2047M0 to M8191M0 to M8191
A3HCPU
AJ71P41
*1
AD51H(S3), AD51FD-S3,
AJ71C23-S3, AJ71C24-S6/S8,
AJ71UC24, AJ71AP21(S3)
AJ71AR21
Device range equivalent to the AnACPU
AJ71E71(S3)
*2
*2
, AJ71AT21B
AJ71ME81
,
*2
,
Q2AQ2A-S1Q3A, Q4A
X/Y0 to
X/Y1FF
AJ71E71N-B5T/B2/B5
*1
*2
, AJ71E71N(3)-T,
X/Y0 to
X/Y3FF
X/Y0 to
X/Y7FF
Data register (D)D0 to D1023D0 to D6143D0 to D6143
Link register (W)W0 to W3FFW0 to WFFFW0 to WFFF
Annunciator (F)F0 to F255F0 to F2047F0 to F2047
*1Reading/Writing of file registers, programs, etc. are not possible.
*2Only I/O devices (X/Y), link relay (B), and link register (W) are available.
*3Even when L or S is specified, the device becomes M.
(Example: Even when L10 is specified, the device becomes M10.)
3 - 22
3.SYSTEM CONFIGURATION
(d) When a QnACPU is mounted on a main base unit for A38HB/A38HBEU high-
speed access, the QnACPU can access special function modules, intelligent
special function modules and link modules to write/read at greater speeds.
QnACPU cannot input/output to the I/O module at greater speed.
(e) The following shows how to connect graphic operation terminal units to a
QnACPU.
ModelConnection MethodAccessible Device Range
Direct connection to CPU
Computer link connection
GOT1000 series
GOT-A900 series
CC-Link connection
MELSECNET/10 connection
Bus connection
Direct connection to CPU
Computer link connection
CC-Link connection
MELSECNET(II), /B, /10 connection
Bus connection
Access is available for all device ranges of QnACPU.
(Refer to the GT Works2/GT Designer2 Reference Manual for
details.)
Access is available for all device ranges of QnACPU.
(Refer to the GT Works2/GT Designer2 Reference Manual for
details.)
(f)The accessible range for an AJ71UC24 computer link module comprises the
CPU to which the AJ71UC24CPU is mounted (the host station) and the other
stations in the network to which the host station is connected.
It is not possible to access other stations in other networks by using the
MELSECNET/10 network system routing function.
The access range for an AJ71QC24N serial communication module is the host
station, other stations in the network connected to the host station, and other
stations in other networks accessed through up to 7 relay stations by using the
routing function.
(g) When accessing from intelligent communication module AD51H-S3 to other
station QnACPU on the network, only Format 1 control table can be used.
Format 2 control table cannot be used.
Access to other network is not allowed on Format 1 control table.
(h) In QnACPU, I/O assignment set with the parameter cannot be valid for
MELSECNET (II) and MELSECNET/B. When setting the I/O assignment for a
remote I/O station, build the remote I/O network with MELSECNET/10.
3 - 23
3.SYSTEM CONFIGURATION
(2)Software package
The following shows the system start-up software packages to create programs for
QnACPU.
Peripheral Device Capable of GPP FunctionsSoftware Package for System Start-up
Personal computer
GX Developer, SW IVD-GPPQ
Apart from the above, the following software packages can be used.
• CAD interface package
• Data conversion package
• Macro/library package
SW IVD-CADQ
SW IVD-CNVQ
SW IVD-MSDQ
SW IVD-MSPQ
• Ladder sequence linking package
SW IVD-LNKQ
REMARK
The following shows the peripheral devices and software packages that cannot be
used with QnACPU:
• A PU (Programming unit)
• A6WU (ROM writer unit)
• A6DU-B (Data access unit)
• A6TEL (Modem interface unit)
• A6GPP (Intelligent GPP)
• A6HGP (Hand-held graphic programmer)
• A6PHP (Plasma hand-held graphic programmer)
• System start-up software package for ACPU
SW-GPPA, SW-SAP2
The following block diagram shows the QnACPU memory configuration.
Built-in RAM: Memory that stores parameters, sequence programs, etc.
Error history storage
memory
Device memory: Memory that stores device data
Memory card
(RAM, ROM area)
PLC memory: Indicates all the memories of drives 0 through 4.
For file types stored in each memory, refer to "File Types & Storage Destinations of Files
Managed by QnACPU" in the QnACPU Programming Manual (Fundamentals).
: Memory that stores error history data
: Memory that stores the files, comments, etc., for parameters,
sequence programs, sampling traces, etc.
3 - 25
4.
PERFORMANCE SPECIFICATIONS
4PERFORMANCE SPECIFICATIONS
This section shows the performance specifications of the QnACPU.
Max. 60k
steps
Model Name
0.15 s/
steps
0.45 s/
steps
Max. 92k
steps
0.075 s/
steps
0.225 s/
steps
Max. 124k
steps
Item
Control methodSequence program control method
I/O control modeRefresh mode
Programming language
Processing speed
(Sequence instruction)
Constant scan
(Function that makes the scan time
constant)
Memory capacityCapacity of the installed memory card (Max. 2036k bytes)
Program
capacity
Number of steps
Number of files28 files60 files92 files124 files
LD
MOV
Q2ACPUQ2ACPU-S1Q3ACPUQ4ACPU
Language dedicated to sequence control
Relay symbol language, logic symbolic language, MELSAP-3 (SFC)
0.2 s/steps
0.6 s/steps
5ms to 2000ms (Possible to set in 5ms units)Possible to set in the parameters
Max. 28k
steps
Remark
Direct input/output is allowed by
specifying direct input/output (DX ,
DY ).
Number of I/O device points8192 points (X/Y0 to X/Y1FFF)
Number of I/O points
512 points
(X/Y0 to
X/Y1FF)
1024 points
(X/Y0 to
X/Y3FF)
2048 points
(X/Y0 to
X/Y7FF)
4096 points
(X/Y0 to
X/YFFF)
The number of points usable in the
program
The number of accessible points to
actual I/O module
4 - 1
4.PERFORMANCE SPECIFICATIONS
Item
Internal relay [M]Default: 8192 points (M0 to M8191)
Latch relay [L]Default: 8192 points (L0 to L8191)
Link relay [B]Default: 8192 points (B0 to B1FFF)
Timer [T]
Retentive timer [ST]
Counter [C]
Data register [D]Default: 12288 points (D0 to D12287)
Q2ACPUQ2ACPU-S1Q3ACPUQ4ACPU
Default: 2048 points (T0 to T2047)
(Low-speed timers and high-speed timers sharing)
Set low-speed timers/high-speed timers switching with instructions.
Set low-speed/high-speed measurement units by parameter.
(Low-speed timers: 10ms to 1000ms, 10ms units, Default: 100ms)
(High-speed timers: 1ms to 100ms, 1ms units, Default: 10ms)
Default: 0 point (ST0 to ST2047)
(Low-speed timers and high-speed timers sharing)
Set Low-speed timers/high-speed timers switching with instructions.
Set low-speed/high-speed measurement units by parameter.
(Low-speed timers: 10ms to 1000ms, 10ms units, Default: 100ms)
(Latch ranges can be set for B, F, V, T, ST, C, D, W devices.)
Possible to setup one contact point for each of
Year, month, day, hour, minute, second, day of the week (automatic
Accuracy -2.3 to +4.4s (TYP. +1.8s)/d at 0
Accuracy -1.1 to +4.4s (TYP. +2.2s)/d at 25
Accuracy -9.6 to +2.7s (TYP. +2.4s)/d at 55
Depends on the power supply modulesRefer to Section 16.1.
Model Name
of special function modules.
L0 to L8191 (Default)
RUN/PAUSE from X0 to X1FFF.
detection of the leap year)
Remark
Possible to set in the parameters
REMARK
*Indicates current consumption of the QnACPU with function version "B" (9707B).
The following shows the current consumption values of the QnACPU without the function
version:
• Q2ACPU, Q2ACPU-S1, Q3ACPU: 0.3A
• Q4ACPU: 0.6A
4 - 3
5.
I/O NUMBER ASSIGNMENT
5I/O NUMBER ASSIGNMENT
This section explains the method for I/O number assignment using the QnACPU to enable
data communications with a I/O modules and a special function module.
5.1I/O Numbers
The I/O number is used in the sequence program to input data from a input module and to
output data to an output module.
The I/O number is expressed as three-digit hexadecimal numbers.
The I/O numbers when all the I/O modules are occupied in 16 points are indicated below.
Concept of I/O numbers
REMARK
When programming with a peripheral device for GPP function, I/O numbers can be
input in 2 digits.
I/O numbers Input with a peripheral device
X010 X10
Y020 Y20
5 - 1
5.
I/O NUMBER ASSIGNMENT
5.2I/O Number Assignment Concept
When the PLC power is ON or the CPU module is reset, the I/O assignment described
below is performed.
In the sequence program, designate the I/O numbers assigned in accordance with the
following.
(1)I/O numbers are sequentially assigned from left to right, taking slot 0 (The slot to the
right of the CPU module) of the main base unit to be "0".
(2)The I/O modules and special function modules mounted to the main base unit occupy
the I/O numbers corresponding to the number of I/O points for each module.
(3)16 points are assigned to the empty slots where no I/O module or special function
module is mounted.
(4)If an extension base unit is connected, its assignment starts from the number
immediately after the number assigned to a main base unit.
The order of assignment for extension base units is not the order in which the
extension base units are connected, but the order of the stage numbers set for the
extension base units. It is possible to connect extension base units as follows: main
base unit2nd extension base stage1st extension stage.
(5)If any extension stage number is skipped, I/O points are assigned with assuming that
"all the skipped stage8 slots" occupy 16 points.
5 - 2
5.I/O NUMBER ASSIGNMENT
(6)I/O numbers are assigned assuming that every base unit has 8 slots.
If a 5-slot type base unit is used, an I/O number obtained by adding points equivalent
to 3 slots (48 points) to the final I/O number of the 5-slot base unit is assigned to the
next extension base unit.
Extension cable
Stage number setting
2nd extension
stage
UNIT
1
1
2
2
3
3
4
4
5
5
6
6
7
7
3rd extension
stage
UNIT
1
1
2
2
3
3
4
4
5
5
6
6
7
7
Main base unit
Power supply
Extension
base unit
100
0123456
000F101F202F303F404F505F606F70
to to to to toto
module
CPU module
1)2)
I/O No. assignment order
89 10 11 12 13 14 15
808F909FA0AFB0BFC0CFD0DFE0EFF0
to to to to toto toto
3)4)
140
150
22 23
160
18 19 20 21
1716
120
110
130
170
7
to
to
7F
8 slots are occupied
FF
Equivalent of 8 slots occupied, allocated as 8 slots.
to to to to to to to to
12F
13F
14F
15F
16F
1D0
1DF
17F
Number obtained by adding equivalent of one extension stage
(128 points) is allocated here.
1E0
1F0
1EF
1FF
11F
10F
5)6)
Extension
base unit
180
18F
26 27 28 29 30 31
2524
1A0
1B0
1AF
1BF
1C0
1CF
190
to to to to to to to to
19F
7)8)
Number obtained by adding the points of slots 21 to 23 of the previous stage
(48 points) is allocated here.
Example above shows a case where all slots are 16-point modules.
The three slots, from 21 to 23,
are treated as empty slots.
.
I/O number assignment example without no extension base on the 1st extension stage
5 - 3
5.
I/O NUMBER ASSIGNMENT
5.3I/O Assignment with GPP Function
When using the QnACPU, I/O modules and a special function module can be controlled
even if I/O assignment with GPP function is not performed.
I/O assignment with GPP function are valid in the following cases.
(1)The purpose of I/O assignment with GPP function
(a) When using a base unit for 5 slots, set 0 point for 3 slots for efficient use of
number of I/O points.
(b) Reserve the points when changing a module to other than a 16-point module for
future system extension.
(c) The I/O assignment prevents the I/O numbers from changing if an I/O module or
special function module that occupies other than 16 points has to be removed
due to failure.
(d) The I/O assignment reduces the I/O number modification in a program since it
enables to match with the I/O numbers of the designed program and to change
the I/O numbers assigned to each module on the base unit per slot.
(2)The concept of I/O assignment with GPP function
The following two methods are available for I/O assignment with GPP function.
1) Set the number of points for the empty slots on a main base and extension
base. (Points occupied by empty slot)
2) Set the I/O assignment per slot of main base unit or extension base unit to
each module type. (I/O assignment)
Parameter settings are used for both of these methods. If both 1) and 2) are set, the
setting of 2) takes priority.
(a) Setting points occupied by empty slot
Set the number of points for all slots that are empty on the base unit.
In the systems in which this setting is not made in the parameters, 16 points are
set for empty slots.
Make this setting in "7. # of empty slots" on the "PC system" screen in the
parameter mode.
5 - 4
5.I/O NUMBER ASSIGNMENT
The setting is made in units of 16 point within the range of 0 to 64. The default is 16 points.
Example: When the points occupied by empty slot is set to 0 points
A35B
Power supply
module
A65B9
Power supply
module
points
Y070
Y08F
(b) I/O assignment settings
Set the I/O assignment per slot of main base unit or extension base unit to each
module type.
Make this setting in the "I/O Allocation" screen in the parameter mode.
012345 67
Input
Input
Input
Output
CPU module
32
16
points
points
X000
X020
X01F
X02F
32
points
X030
X04F
16
points
Y050
Y05F
16
points
Y060
Y06F
Output
point
0
10 11 128
Empty
Output
Output
Empty
Output
16
32
32
points
points
Y090
Y0AF
Y0BF
48
points
Y0C0
Y0EF
32
points
Y0F0Y0B0
Y10F
Three empty slots (48 points) of the A35B are
allocated as 0 point.
0
0
point
point
Allocate a number consecutive to the last I/O number of the main
base unit.
5 - 5
5.I/O NUMBER ASSIGNMENT
The setting details are as follows:
ItemSettingSetting rangeDefault value
Slot setting
TypeSet the module type.
PointsSet the number of points for the module.
Start XYSet the start number of XY devices of the module.0 to 1FFF (in 16 point units)
Model nameSet the model name of the module.Up to 16 characters
Base specificationSet data for each base unit.
Extension cableSet the model name of the extension cable.Up to 16 characters
Set data for each slot.
(Not necessary to set all data).
Free/input/output/special
0 to 64 points
(in 16 point units)
Up to 16 characters
The items without settings are handled as follows:
Type and Points : In accordance with the loaded module.
Start XY: The number following the total points obtained by adding the
number of points of the modules already set.
If there is any duplication, an error (SP.UNIT LAY ERROR) is
detected.
No setting
No settingPower model nameSet the model name of the power supply module.
POINT
The power supply module names set in the base specification is only used for the
current capacity check in the PLC diagnostics mode and not used for a CPU
module. Therefore, even if they are not set, any problem does not occur.
5 - 6
5.I/O NUMBER ASSIGNMENT
The CPU module performs the following processing when I/O assignment is set.
1) Any of the following assignment can be performed per slot of each base unit.
Assigned number of points
Empty slotInput moduleOutput module
0–––
16161616
32323232
48484848
64646464
Special function
module
2) The slots for which I/O assignment has been performed with GPP function,
the I/O assignment setting takes priority regardless of the loaded module.
• If a number of points fewer than the that of the loaded I/O module is set, the
actual number of points of the loaded I/O module is reduced.
For example, if the loaded module is a 32-point input module but I/O
assignment is set for a 16-point input module using GPP function, the latter
16 points for the input module cannot be used.
• If a number of points is greater than the that of the loaded I/O module is
set, the number of points in excess of the actual number of points is
occupied with dummy points.
• If the slot where an I/O module is loaded is set as a empty slot, the I/O
module will be unusable.
3) The slots for which I/O assignment is not performed using GPP function are
assigned with the number of points of the loaded module.
4) The slots for which I/O assignment is not performed using GPP function are
assigned I/O numbers that are consecutive to those of modules for which I/O
assignment has been performed.
(3)Precautions
(a) If there is a disparity between the I/O assignment made in the parameter settings
and the actually loaded I/O modules, the input and output is not normally
performed.
Loaded moduleI/O assignmentResult
InputOutputNo input
OutputInputNo output
Input/OutputSpecialCPU module error
SpecialInput/OutputCPU module error
5 - 7
5.I/O NUMBER ASSIGNMENT
(b) The I/O assignment of a slot to which a special function module is loaded has to
be the same setting with the module. Not doing so may cause an error.
3) AG62.............................................Input: Set number of points
4) Modules that occupy 2 slots.......... Set "Empty, 16 points" and "Special, 32 points".
(c) When operating MELSECNET data link, perform I/O assignment as follows.
1) As for a master station, I/O assignment has to be performed for the master
station and all remote I/O stations.
I/O assignment of MELSECNET (II)/B to the remote I/O station is invalid.
2) As for a local station, perform I/O assignment only for the local station.
3) Assign the I/O for the I/O hybrid module (e.g. A42XY) as an output module.
(d) When the MELSECNET/10 network is established, assign the I/O only for the
host station (master station).
Since the I/O assignment of MELSECNET/10 to the remote I/O station is
irrelevant, the I/O assignment is not allowed.
For I/O assignment of MELSECNET/10 to the remote I/O station, use the I/O
assignment settings in the "Network parameter".
REMARK
As for the remote I/O station of MELSECNET (II)/B, I/O assignment settings in the
"Network parameter" is irrelevant, therefore, the I/O assignment is not allowed.
5 - 8
5.
I/O NUMBER ASSIGNMENT
5.4Example of I/O Number Assignment
The following shows the example of I/O number assignment when I/O assignment is
performed using GPP function.
(1)When changing the assignment for an empty slot from 16 points to 0 or 32 points
When the A35B is used, there are three empty slots. When setting the assignment for
these to 0 points in order to increase the number of I/O points that can be used by the
CPU module.
When reserving 32 I/O points for a current empty slot to which a 32-point input
module is loaded later, in order to prevent the I/O number assignment change.
To achieve these operations, perform I/O assignment as follows.
(a) Loading status and I/O numbers
5 - 9
5.I/O NUMBER ASSIGNMENT
(b) I/O numbers when I/O assignment is performed using GPP function
1) I/O Allocation example
The example of I/O assignment with GPP function
5 - 10
5.I/O NUMBER ASSIGNMENT
2) I/O numbers after performing I/O assignment using GPP functon
*1Since 16 points is set, the latter 16 points of inputs cannot be used.
*2Since 32 points is set, the points from 40 to 4F is occupied with dummy points.
*3Since "Empty (S), 16 points" is set, the points cannot be used for outputs.
*4Since "Empty (S), 0 points" is set, the number of I/O points for the three slots are not lost.
*5Since "input (S), 32 points" is set, there are 32 input points.
*6Since 48 points are set, E0 to EF is occupied with dummy points.
5 - 11
5.I/O NUMBER ASSIGNMENT
(2)Replacing a 16-point input module with a 32-point input module
When replacing the 16-point input module with a 32-point input module without
changing the all I/O number assignment in a system to which a 16-point input module
is designed. To achieve this operation, perform I/O assignment as follows.
(a) Loading status and I/O numbers before the replacement
A38B
01234567
Input
Input
module
16
CPU module
Power supply
points16points
X00
X0F
Input
16
16
points
points
X10 X20 X30 Y40 Y50
X2F
X1F
X3F
Input
points
16
Y4F
Output
points
Y5F
Output
16
16
points
Y60
Y6F
Output
16
points
Y70
Y7F
Output
These I/O numbers are not to be changed.
This module is to be replaced by a 32-point module.
The I/O numbers are to be changed to X80 to X9F.
(b) I/O numbers when I/O Allocation is performed using GPP function
1) I/O Allocation example
The example of I/O assignment with GPP function
5 - 12
5.I/O NUMBER ASSIGNMENT
A
2) I/O numbers after performing I/O assignment using GPP function and
replacing the module
38B
01234567
Input
Input
Input
points
X2F
16
points
X3F
Input
module
16
CPU module
Power supply
points
X00
X0F
32 16
points
X80 X20 X30 Y40 Y50
X9F
16
points
Y4F
Output
Output
16
points
Y5F
16
Y60
Y6F
Output
Output
16
pointspoints
Y70
Y7F
POINT
When the I/O number set for "Start XY" in the "I/O Assign" is changed, also set the
"Start XY" for the next module to avoid changing the I/O numbers of the module
for which the change was made and the subsequent modules.
In the example above, since "20" is set for the "Start XY" for the second slot,
consecutive I/O numbers starting from X30 are set for slot 3 and later.
5 - 13
5.I/O NUMBER ASSIGNMENT
(3)When combining an input module and output module having non-consecutive I/O
numbers on a base unit
When controlling the machine (I/O numbers X0 to X3F, Y40 to Y7F) and machine
(I/O numbers X200 to X23F and Y240 to Y27F) with a single PLC, it is desired to
B
combine input modules and output modules on the base unit. To achieve this
operation, perform I/O assignment as follows.
(a) Loading status and I/O numbers to be set
A
(b) The example of I/O Allocation with GPP function
5 - 14
6.
DATA COMMUNICATIONS WITH SPECIAL FUNCTION MODULES
6DATA COMMUNICATIONS WITH SPECIAL FUNCTION MODULES
This chapter explains the methods for reading data from a special function module, and
writing data to a special function module with the QnACPU.
The special function module is a module that allows analog quantity, high-speed pulse,
etc., which cannot be processed with I/O module alone, to be handled by the QnACPU.
For example, analog quantity is converted to a digital value by an analog/digital converter
module (which is a special function module) so that they can be used by the QnACPU.
The special function module has buffer memory in which data input from external sources
and data to be output to external destinations are stored.
The folloiwng two methods are available for reading data from a special function module,
and writing data to a special function module with the QnACPU.
1) Using the FROM/TO instruction
2) Using special direct devices
These methods are explained in the following sections.
6 - 1
6.DATA COMMUNICATIONS WITH SPECIAL FUNCTION MODULES
6.1Reading/Writing Data from/to the QnACPU Using the FROM/TO Instruction
When the FROM/TO instruction is performed, data stored in the buffer memory of a
special function module is read, or data is written to the buffer memory of a special
function module.
Data communications with a special function module
When the FROM instruction is performed, the data read from the buffer memory is stored
in the specified device. When the TO instruction is performed, the data in the specified
device is written to the buffer memory.
REMARK
1) For details on the FROM/TO instructions, refer to the QCPU (Q mode)/
QnACPU Programming Manual (Common Instructions).
2) For details on the buffer memory of a special function module, refer to the
manual of the special function module in use.
POINT
When executing the FROM/TO instruction for the special function module
frequently in short scan time, it may cause the target special function module
operation error.
When executing the FROM/TO instruction, match the processing time and
conversion time of the special function module using timer or constant scanning.
6 - 2
6.
DATA COMMUNICATIONS WITH SPECIAL FUNCTION MODULES
6.2Reading/Writing Data from/to the QnACPU Using Special Direct Devices
As the FROM/TO instruction, the special direct device reads data stored in the buffer
memory of a special function module or writes data to the buffer memory of a special
function module.
The special direct device represents the buffer memory in a special function module as the
QnACPU device.
Example: U10\G10:U10
G10
Indicates the head I/O No.100 of the special function
module. (Hexadecimal)
Indicates the buffer memory address 10. (Decimal)
REMARK
For details on a special direct device, refer to the QnACPU Programming Manual
(Fundamentals).
The special direct device differs from the FROM/TO instruction in that the CPU
module can handle the buffer memory of a special function module as a direct
device.
This can reduce the total number of steps in the program. However, the instruction
processing speed is the same with the FROM/TO instruction.
Example: Writing data to address 0 of the buffer memory in the special function
module loaded at X/Y0, and reading the data of address 1.
(a) Using the FROM/TO instruction(b) Using special direct device
6 - 3
6.DATA COMMUNICATIONS WITH SPECIAL FUNCTION MODULES
POINT
1. When reading data from the special function module frequently during the
programming, store the special direct device to a data register after reading in
an area of the program by using the FROM instruction rather than by using
them at each instruction.
This is because programming scan interval is added due to an access
processing to the special function module for each instruction.
2. When executing the instruction using a special direct device for the special
function module frequently in short scan time, it may cause the target special
function module operation error.
When performing the instruction using a special direct device, match the
processing time and conversion time of the special function module using
timer or constant scanning.
6 - 4
6.
DATA COMMUNICATIONS WITH SPECIAL FUNCTION MODULES
6.3Processing for Data Communication Requests from a Special Function Module
When a data communication request is received from a special function module such as a
serial communication module, the QnACPU performs the processing for the data
communication request at the END processing.
The QnACPU can process all the data communication requests received in one scan with
one END processing, according to the parameter settings. In this case, the data lag to
each module is eliminated, but the END processing is extended by the data
communications request processing.
Data communications request batch processing is set in the "6. General Data
Processing"on the "PC system" screen in the GPP function parameter mode.
The setting range is 1 to 6 modules, and the processsing can be set per module.
6 - 5
7.
AUTO REFRESH FUNCTION
7AUTO REFRESH FUNCTION
7.1For MELSECNET/MINI-S3
By setting link information, I/O storage device, etc. of the MELSECNET/MINI-S3 to the
parameters, the module automatically communicates with the buffer memory area for the
batch refresh send/received data of the type AJ71PT32-S3 MELSECNET/MINI-S3 master
module (abbreviated as the MINI master module hereafter).
The settings are made on the MELSECNET/MINI setting in the parameter mode of GPP
function.
Sequence programs can be created using the I/O devices allocated to send/received by
the MELSECNET/MINI-S3 setting. (The FROM/TO instructions are not required.)
7 - 1
7.AUTO REFRESH FUNCTION
POINT
(1) Since up to 8 master modules can be set for auto refresh by the parameter,
auto refresh is possible for up to 8 modules.
When 9 or more modules are desired, use the FROM/TO instruction in the
sequence program from the 9th module.
(2) Since auto refresh is not possible with send/received data for the separate
refresh I/O modules and for the remote terminal units No.1 to No.14, use them
by the FROM/TO instructions.
However, the remote terminal units shown below are subject of auto refresh in
the limited area:
(3) For the master modules set up for auto refresh, since the QnACPU
automatically turns ON the link communication start signal Y(n+18) or
Y(n+28), it is not necessary to turn it on from the sequence program.
(4) Auto refresh of I/O data is performed by the batch after the QnACPU performs
the END instruction.
(Auto refresh processing is performed when the CPU module is in the RUN/
PAUSE/STEP-RUN status.)
(5) The master module may perform the processing while the link communication
start signal Y(n+18) or Y(n+28) is OFF depending on the remote terminal units
connected.
For instance, if the AJ35PTF-R2 RS-232C interface unit 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.
Since the link communication start signal becomes ON after the CPU module
enters the RUN status and one scan is performed, write the parameters
during the first 1 scan.
Link communication
start signal
Y(n+28)
SM402
ON
OFF
ON
OFF
1 scan
Set CPU module to RUN
(6) If the hardware error signal X(n+0)or X(n+20) or ROM error signal X(n+8)or
X(n+28) of a master module for which auto refresh has been set comes ON,
the QnACPU does not perform auto refresh processing.
(7) When making the settings, ensure that there is no duplication between
receive data refresh devices and send data refresh devices.
7 - 2
7.AUTO REFRESH FUNCTION
(1)Parameter setting items, setting ranges and contents of auto refresh, as well as the
buffer memory address of the master module which is used for exchanging data with
the QnACPU are shown below.
Set the parameters for the number of the master modules used.
I/O signal
from a
master
module
––
––Start I/O No.
––
–0
–
–
Buffer memory
address of a
master module
110
to
141
10
to
41
Number of
master
modules
Model
classification
of MINI/MINIS3
Total number
of remote I/O
stations
Storage
device for
received data
*4
Send data
storage
device
ItemSetting rangeDescriptionDefault value
0, 1 to 8 module(s)
Number of I/O points of CPU
module
• MINI or MINI-S3
0 to 64 stations
•X
• M, L, B, T, ST, C, D, W, R, ZR,
none
(Bit device: multiples of 16)
•Y
• M, L, B, T, ST, C, D, W, R, ZR,
none
(Bit device: multiples of 16)
• Sets the total number of the master modules used.
Set "0" if auto refresh is not to be used.
• Sets the head I/O number where the master module
is installed.
•MINI
In I/O mode (occupies 32 points)
• MINI-S3
In expansion mode (occupies 48 points)
• Set only when MINI is set.
• In MINI-S3, since the number of master module's
initial ROMs becomes valid, the setting is not
necessary .(When the setting is executed, ignore it).
• Sets the devices to store the received/send data for
batch refresh.
• Specify the head number of the device.
• The total number of remote I/O stations, set starting
from the first device number, is occupied as a auto
refresh area.
(8 points/station 64 stations = 512 points : Bit
*2
device)
• Use of X/Y remote I/O range is recommended for
devices.
Follow the
settings
made in the
"I/O Assign"
in the
parameter
*3
mode.
X1000 to
X11FF
Y1000 to
Y11FF
–1
Y(n+1A)
Y(n+1B)
*1
*1
–
–
Number of
retries
FROM/TO
response
specification
Data clear
specification
for
communication
faulty station
0 to 32 times
Link priority; CPU priority
Priority selection of access
to the master module
buffer memory
Retention, clear (received data)
• Sets the number of retries upon the communication
errors occurrence.
• Error is not output when the communication is
restored within the number of the 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.
• The maximum wait time (0.3ms + 0.2ms number
of separate refresh stations) for the FROM/TO
instruction may be generated.
2) CPU priority
• The FROM/TO instructions from a CPU module are
given access 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 the FROM/TO instruction.
• Retention
Retains the received data for batch and separate
refresh.
• Clear
Sets all points to OFF
5 times
CPU priority
Clear
7 - 3
7.AUTO REFRESH FUNCTION
I/O signal
from a
master
module
–
–
–4
––
Buffer memory
address of a
master module
100
to
103
195
107
196
to
203
ItemSetting rangeDescriptionDefault value
Faulty station
detection
Error No.T, ST, C, D, W, R, ZR
Line error
check setting
(Line error)
Operation at
CPU STOP
M, L, B, T, ST, C, D, W, R, ZR,
none
(Bit device: multiples of 16)
• Test message sending (Test)
• OFF data sending (OFF)
• Immediate data transmission
before line errors
(Retention)
Stop/Continue
• Sets the head device to store the faulty stations
detected data.
• MINI occupies 4 words; MINI-S3 occupies 5 words.
• Sets the head device to store the error code at the
error occurrence.
• MINI occupies 1 word; MINI-S3 occupies (1 +
Number of remote terminal modules) words.
• Sets data sending method for verification of faulty
area when the line errors occur.
• Sets the operating status when the CPU module is
in the STOP state.
No setting
No setting
*1"n" is determined by the installation location of the master modules.
*2When the total number of remote I/O station is odd, add 1 to the station number to obtain the
occupied storage devices.
*3When the master module number setting column is made blank in parameter setting, auto
refresh can be used without this setting.
However, model name registration is required in the "I/O Assign". (MINI mode: AJ71PT32,
MINI-S3 mode: AJ71PT32-S3)
*4When the input (X) is specified in the received data storage device, use the I/O number later
than the number used for the module loaded on the main base unit and the extension base
unit. When the I/O number usage range for the module loaded on the main base and the
extension base is used for input/output of the received data storage device, the CPU module
imports both the input ON/OFF data from the input module and the ON/OFF data from auto
refresh of MELSECNET/MINI-S3. Therefore, input (X) of the CPU module is not operated as
desired.
Retention
Stop
7 - 4
7.AUTO REFRESH FUNCTION
(2)Setting of the send/received data storage devices is explained using the system
example shown below.
(Example) When the device X/Y400 and later are used as the remote I/O stations:
Sample parameter setting of the GPP function for the above system configuration is
shown below:
7 - 5
7.AUTO REFRESH FUNCTION
A
The storage devices for the send/received data for the present system example are as
follows:
(a) Storage device for received data
ddress
110
111
112
113
114
115
Master module
b15b8 b7b0
Station No.2
Station No.4
Station No.6
Station No.8
Station No.10
Station No.
Station No.3
Station No.5
Station No.7
Station No.9
Station No.11
Input area
1
X40F
X41F
X42F
X43F
X44F
X45F
CPU module
X408
X407
X418
X417
X427
X428
X437
X438
X447
X448
X457
X458
Used by the system
1) Set the device number (X400) for b0 of the station 1 as a received data
storage device.
2) The received data storage device occupies from X400 to X45F.
For the present system example, since the total number of stations is odd, it
is occupied for one extra station.
3) The device numbers of input modules connected are as follows:
Stations 1 to 4
Stations 5 and 6
Stations 7 and 8
AX41C
AJ35TB-16D
AX40Y50C
X400 to X41F
X420 to X42F
X430 to X43F
With respect to X440 to X45F, they are simultaneously refreshed, and set to
OFF at any time.
Do not use X440 to X45F in the sequence program.
X400
X410
X420
X430
X440
X450
7 - 6
7.AUTO REFRESH FUNCTION
(b) Send data storage device
1) Set the device number (Y400) for b0 of the station 1 as a send data storage
device.
2) The send data storage device occupies from Y400 to Y45F.
For the present system example, since the total number of stations is odd, it
is occupied for one extra station.
3) The device numbers of output modules connected are as follows:
Station 9 to 10
Station 11
With respect to Y400 to Y43F and Y458 to Y45F, they are simultaneously
refreshed, but are not output.
AX40Y50C
AJ35TJ-8R
Y440 to Y44F
Y450 to Y457
POINT
(1) If the same device type is used for the send data storage devices and
received data storage devices, make sure that there is no duplication of
device numbers.
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:
(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) When specifying input (X) for the received data storage device, specify the
device number out of the actual input (X) range.
X0, X10, X100,
M0, M16, M256,
B0, B10, B100,
7 - 7
7.
AUTO REFRESH FUNCTION
7.2Auto Refresh Setting of CC-Link
Auto refresh of the CC-Link designates automatic communications between the QnACPU
and the buffer memory for cyclic communication of CC-Link master stations/local stations.
Data for communication varies depending on the remote station connected.
• Remote I/O station (Communication in ON/OFF data)
• Remote device station (Communication in ON/OFF data and Word data)
• Intelligent device station (Communication in ON/OFF data and Word data)
• Master station/local station (Communication in ON/OFF data and Word data)
The auto refresh setting of the CC-Link allows communication with other stations of CCLink using the FROM/TO instruction without communicating with the master station of the
CC-Link.
7 - 8
7.AUTO REFRESH FUNCTION
(1)Settings for auto refresh
The Table 7.1 shows the setting items for auto refresh parameters of the QnACPU.
Table 7.1 List of auto refresh settings
ItemDescriptionSetting range
Number of modulesThe number of CC-Link modules is set.1 to 8
Module head I/O numberThe head I/O number of a CC-Link module is set.0000
• M: Master station
• L: Local station
• T: Stand-by station
X, M, L, B, T, ST, C, D,
W, R, ZR
X, M, L, B, T, ST, C, D,
W, R, ZR
M, L, B, T ,ST, C, D, W,
R, ZR
Module type
Receiving data batch refresh
bit device
(Input data)
Transmission data batch
refresh bit device
(Output data)
Receiving data batch refresh
word device
(Remote device: RWr)
The loaded CC-Link module type (Master station, local station, stand-by station)
is set.
• The device that stores the batch refresh received data from the remote station
is set.
• When the head device number is set, the points corresponding to the specified
number of stations (Total number of stations) are obtained to refresh all areas.
The output module area is also refreshed.
• The settings are made in units of 16 points.
• The device that stores the batch refresh send data to the remote station is set.
• When the head device number is set, the points corresponding to the specified
number of stations (Total number of stations) are obtained to refresh all areas.
The input module area is also refreshed.
• The settings are made in units of 16 points.
• The device that stores the batch refresh received data from the remote station
is set.
• When the head device number is set, the points corresponding to the specified
number of stations (Total number of stations) are obtained to refresh all areas.
The I/O module area is also refreshed.
• The settings are made per point.
Setting station
MLT
H to 0FE0H
*
*
*
Transmission data batch
refresh device
(Remote device: RWw)
Receiving buffer specification
for transient station
Transmission buffer
specification for transient
station
Batch refresh device for
special relay
• The device that stores the batch refresh send data to the remote station is set.
• When the head device number is set, the points corresponding to the specified
number of stations (Total number of stations) are obtained to refresh all areas.
The I/O module area is also refreshed.
• The settings are made per point.
• The receive buffer capacity for transient station is set.80 to 4096
• The send buffer capacity for transient station is set.80 to 4096
• The destination device for special relay is set.
M, L, B, T ,ST, C, D, W,
*
R, ZR
M, L, B, T ,ST, C, D, W,
*
R, ZR
*Only when the file register is set to "Use the designated file" with the "Parameter", R and ZR
can be used as the auto refresh devices.
When "Use same file name as program" is set, R and ZR cannot be used.
REMARK
1)In "Setting station" in the table above, M refers to the master station, L to the
local station, and T to the stand-by station.
2)
In the table above, means that the setting can be made and means that
the setting is not required.
7 - 9
7.AUTO REFRESH FUNCTION
Table 7.1 List of auto refresh settings (Continued)
ItemDescriptionSetting range
Batch refresh device for
special register
Auto update buffer
specification
Total number of slave
stations
Delay timer• The delay time of link scan is set.
Standby station specification• The use status of the stand-by master function is set.
Number of retries• The number of retries at the occurrence of a transient transmission error is set. 1 to 7
Number of automatic return
stations
Operation specification for
CPU stop
Scan mode setting• Synchronization/Non-synchronization is set to the CPU module scan.
• The destination device for special register is set.
• The buffer capacity for automatic update is set.128 to 4096
• The last station number of the remote station connected to the master station
is set.
• The number of automatic return stations is set to one link scan.1 to 10
• When the CPU module has stopped, continuation/stop of the data link is set.
T, ST, C, D, W, R, ZR
1 to 64
1 to 100
(0 is invalid.)
• Not used
• Used
•Stop
• Continue
• Non-synchronization
• Synchronization
Setting station
MLT
*
Station type• The model for each remote station is set.
Number of occupied stations • The number of occupied stations for each remote station is set.
Specification of reserved
station
Specification of invalid
station
• Reservation for remote station is set.
• Validity/Invalidity for error detection of the remote station is set.
*Only when the file register is set to "Use the designated file" with the "Parameter",
R and ZR can be used as the auto refresh devices. When "Use same file name as program" is
set, R and ZR cannot be used.
REMARK
1)In "Setting station" in the table above, M refers to the master station, L to the
local station, and T to the stand-by station.
2)
In the table above, means that the setting can be made and means that
the setting is not required.
• Remote I/O station
• Remote device
station
• Intelligent device
station
• 1 station
•2 stations
•3 stations
•4 stations
•Not reserved
• Reserved
•Invalid
• Valid
7 - 10
7.AUTO REFRESH FUNCTION
(2)Precautions
(a) Auto refresh of the CC-Link is available when the QnACPU and the CC-Link
module with function version "B" are used.
When either of the QnACPU or the CC-Link module does not indicate function
version "B," auto refresh of the CC-Link is not available.
(b) Auto refresh can be set to up to 8 CC-Link modules.
When 9 or more CC-Link modules are used, handle with the FROM/TO
instruction of the sequence program for the 9th module or later.
(c) When both the CC-Link module and the master station module for
MELSECNET/MINI-S3 are loaded and auto refresh is not set, the default
parameter is set to the master station module for MELSECNET/MINI-S3.
(d) The COM instruction or the G(P). ZCOM instruction allows auto refresh to the
CC-Link module while performing the sequence program.
However, auto refresh to the CC-Link module cannot be performed with the
J(P).ZCOM instruction. Error code "4102" (The network number designated with
the dedicated network instruction does not exist) appears.
(e) Refresh operation for the mixture of MELSECNET (/10, /II) and MELSECNET/
MINI-S3.
• Refresh is performed in the order of MELSECNET (/10, /II), CC-Link and
MELSECNET/MINI-S3.
Therefore, the input data specifying the same range is afterward overwritten
with the executed data.
• The output data is output to the MELSECNET (/10, /II), CC-Link, and
MELSECNET/MINI-S3.
(f)The operation of the QnACPU when the CC-Link module is in the online/offline
mode is shown in the table below:
Parameter settings
for auto refresh
Set
Not set
CC-Link module
status
Online
Offline
Online
Offline
Operation of the QnACPU
The communications with the remote station is
performed with the specified parameter for
auto refresh.
The QnACPU does not generate an error, but
does not communicate with the remote station.
The communications with the remote station is
performed by the FROM/TO instruction.
The QnACPU does not generate an error, but
does not communicate with the remote station.
(g) Auto refresh setting to the CC-Link is performed using the following peripheral
devices.
• Personal computer:
GX Developer, SW2IVD-GPPQ type GPP function software package
7 - 11
7.AUTO REFRESH FUNCTION
(3)Setting method
Auto refresh setting to the CC-Link is set with the following procedures.
(a) When the "CC-Link" is selected in the "Parameter", the "CC-Link setting" screen
appears.
(b) Set the number of the CC-Link modules loaded on the main base unit and
extension base unit for the QnACPU and selct "Execute", then the screen of CCLink setting list appears.
Pressing the key registers the set data.
Esc
7 - 12
7.AUTO REFRESH FUNCTION
(c) Move the cursor to the module number position for auto refresh setting and
I/O number setting
of the CC-Link
module for the
specified module
number
CC-Link module
type setting for
the specified unit
number
Device setting of
QnACPU used
press the key (Detail). The "CC-Link setting" screen appears.
F3
Select "4. Auxiliary setting...." and "5. Station information setting...." to set
QnACPU has a variety of convenient functions when debugging.
The following shows the debugging functions.
ItemDescriptionReference
Monitor function
Write during RUN
Execution time measurement
Program monitor list
Interrupt program monitor list
Scan time measurement
Sampling trace function
Status latch function
Step operation
Step executionFunction that runs a program step by stepSection 8.7.1
*1
*1
Function that reads CPU programs, device statuses from a
peripheral device capable of GPP functions
Function that writes a program while the CPU module is
running
Functions that displays the processing time of a program
being execute
Functions that displays the processing time of a program
being executed
Function that displays the number of executions of an
interrupt program
Function that measures the execution time of section of a
program
Function that continually collects the data of devices in
accordance with a timing set at the CPU module
Function that collects the device data at the moment to
designate
Functions that runs one step or one part of a program,
runs a program with a part skipped
Section 8.2
Section 8.3
Section 8.4
Section 8.4.1
Section 8.4.2
Section 8.4.3
Section 8.5
Section 8.6
Section 8.7
Partial executionFunction that executes a designated part of a program Section 8.7.2
Skip execution
Program trace function
Simulation function
Debugging by several people
Monitoring trace function
*1
*2
Function that executes a program with a designated part
skipped
Function that collects the program execution status Section 8.8
Function that simulats execution in isolation from the I/O
modules and special function modules
Function that simultaneously debuggs from several
peripheral devices capable of GPP functions
Function that collects device data at a peripheral device
capable of GPP functions in accordance with the
designated timing
Section 8.7.3
Section 8.9
Section 8.10
For details on the operation for each function, refer to the GPP function Operating
Manual.
*1When executing this function, a memory card is required.
*2When executing part of this function, a memory card is required.
8 - 1
–
8.
DEBUGGING FUNCTION
8.2Monitor Function
This function reads CPU module programs and device statuses to a peripheral device
capable of GPP functions.
Application
This function is used to set monitoring conditions for monitoring the operating
statuses of the PLC in accordance with a precise timing.
There are three "Monitoring Condition" as follows.
• Executing a monitoring at END processing.
• Setting the step number to be monitored and the step conducting status.
• Setting the device status.
This function is used to retain the monitoring screen by setting "Monitor stop
condition setup" in accordance with a precise timing.
When monitoring the CPU module marked Function version B using a peripheral
device capable of GPP function, local device monitor test is executed by setting
"local device monitor".
8.2.1Monitoring condition setting
Function Description
(1)This function allows setting of the monitoring condition.
All operations are performed using Monitor/test menu in the ladder mode.
The following shows an example of setting a monitor condition.
The following shows an explanation of the screen above:
The monitoring condition can be select either "1. ( ) Monitor Always." or "2. ( )
Condition".
(a) When "1. ( ) Monitor Always." is set
The collection timing for monitor data is every scan after END processing at the
CPU module.
8 - 2
8.DEBUGGING FUNCTION
(b) When "2. ( ) Condition" is set
"1. [ ] Device" and "2. [ ] Step #" can be set.
1) When only "2. [ ] Step #" is set
The monitor data collection timing is the moment when a QnACPU shows
designated status immediately before executing the designated step.
The following shows the possible designations to execute.
When switching from OFF to ON:
When switching from ON to OFF:
All the time only during ON:< ON >
All the time only during OFF :<OFF >
All the time in any statuses:<Always>
:< >
:< >
8 - 3
8.DEBUGGING FUNCTION
REMARK
1) When Step # [ 0] is designated, the execution condition must be set as Always.
2) When "1. [ ] Device" only is specified (when "2. [ ] Step #" is not specified), the
monitor data collection timing is every scan after END processing of the PLC CPU.
When the data is changed in the same scan, it cannot be detected. (Including the
low-speed program)
3) When only "1. [ ] Device" is set, either
"1. ( ) Word Device" or "2. ( ) Bit Device" can be designated.
When "1. ( ) Word Device" is designated
The collection timing of the monitor data is the scan END processing when the
current value of the specified word device becomes the specified value.
The following shows the method for designating the current value.
Decimal designation: [K ]
Hexadecimal designation: [H ]
Decimal number
Hexadecimal number
When "2. ( ) Bit Device" is designated
The collection timing of the monitor data is the scan END processing when the
execution status of the specified bit device becomes the specified status.
The following shows the possible designations for execution status.
At leading edge :< >
At trailing edge :< >
4)
When "2. [ ] Step #" and "1. [ ] Device" are designated
The monitor data collection timing is such that data is collected when the status
immediately before execution of the designated step or the execution status (current
value) of the designated bit device (word device) attains the designated status.
8 - 4
8.DEBUGGING FUNCTION
POINT
In the ladder block shown below, assuming that the detailed condition is set as
The monitor timing is shown below. However, the monitoring interval at a
peripheral device capable of GPP functions depends on the processing speed of
that peripheral device. Even if data changes occur faster than the monitor interval,
data can be collected only once during the interval.
8 - 5
8.DEBUGGING FUNCTION
POINT
(1) Assume that "Step # [ 2] = <ON>" is designated as the detailed condition in
the case of the ladders shown below; In this case the monitor execution differs
for the two ladders. For (a) it is "X0 and X1 both ON" and for (b) it is "X1 ON
(regardless of ON/OFF status of X0)".
If a step part way through an AND/OR block is designated for a monitor
condition, the monitor data collection timing is such that data is collected when
the status immediately before execution of the step designated from the LD
instruction in the block becomes the designated status.
(2) If the ladder block head other than 0 step is specified to the step number as
detailed conditions, the monitor data is collected when the instruction
execution status immediately before execution is the specified status.
When "Step # [ 2] = <ON>" is specified in the ladder below, the monitor data is
collected for OUT Y10 ON.
8 - 6
8.DEBUGGING FUNCTION
(2)A monitor stop condition can be set.
All operations are performed on the monitor/test screen window in the ladder mode.
The following shows an example of the setting for a monitor stop condition.
The following shows an explanation of the screen above:
Either "1. ( ) Without Monitor Stop" or "2. ( ) Condition" can be set for the monitor stop
condition.
(a) When "1. ( ) Without Monitor Stop" is set
Monitoring is stopped when key is pressed.
(b) When "2. ( ) Condition" is set
"1. [ ] Device" and "2. [ ] Calculation State" can be set.
1) When "2. [ ] Calculation State" is set
The monitor stop timing is such that monitoring stops when the execution
condition of the step designated for the monitor condition attains the
designated status.
The following shows the possible designations for execution status.
When switching from OFF to ON
When switching from ON to OFF
All the time only during ON
All the time only during OFF
All the time in any statuses
If "2. [ ] Calculation State" isn't set, the timing for monitor stop is such that
monitoring is stopped after CPU module END processing.
:
:
:ON
:OFF
:Always
8 - 7
8.DEBUGGING FUNCTION
2) When "1. [ ] Device" is set Either
"1. ( ) Word Device" or "2. ( ) Bit Device" can be set.
When "1. ( ) Word Device" is set
The monitor stop timing is such that monitoring stops when the present
value of the designated word device attains the designated value.
The following shows the method for designating the current value.
For decimal (word) designation
For hexadecimal (word) designation: [H]
For decimal (double word) designation
For hexadecimal (double word)
: [K]
Decimal number
Hexadecimal number
: [KL]
Decimal number
: [HL]
Hexadecimal number
Space
Space
designation
For real number designation: [E ]
Real number
When "2. ( ) Bit Device" is designated
The monitor stop timing is such that monitoring stops when the execution
status of the designated bit device becomes the designated status.
The following shows the possible designations for execution status.
At leading edge :
At trailing edge :
(3)In the case of devices for which index qualifications have been made, the index
qualified value is monitored.
The following shows an example of this type of monitoring.
8 - 8
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.