Indicates that incorrect handling may cause hazardous conditions, resulting in
death or severe injury.
CAUTION
Indicates that incorrect handling may cause hazardous conditions, resulting in
minor or moderate injury or property damage.
(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.
The precautions given in this manual are concerned with this product only. Refer to MELSEC iQ-R Module Configuration
Manual for a description of the PLC system safety precautions.
In this manual, the safety precautions are classified into two levels: " WARNING" and " CAUTION".
Under some circumstances, failure to observe the precautions given under "CAUTION" may lead to serious
consequences.
Observe the precautions of both levels because they are important for personal and system safety.
Make sure that the end users read this manual and then keep the manual in a safe place for future reference.
[Design Precautions]
WARNING
● Configure safety circuits external to the programmable controller to ensure that the entire system
operates safely even when a fault occurs in the external power supply or the programmable controller.
Failure to do so may result in an accident due to an incorrect output or malfunction.
(1) Emergency stop circuits, protection circuits, and protective interlock circuits for conflicting
operations (such as forward/reverse rotations or upper/lower limit positioning) must be configured
external to the programmable controller.
(2) When the programmable controller detects an abnormal condition, it stops the operation and all
outputs are:
• Turned off if the overcurrent or overvoltage protection of the power supply module is activated.
• Held or turned off according to the parameter setting if the self-diagnostic function of the CPU
module detects an error such as a watchdog timer error.
(3) All outputs may be turned on if an error occurs in a part, such as an I/O control part, where the
CPU module cannot detect any error. To ensure safety operation in such a case, provide a safety
mechanism or a fail-safe circuit external to the programmable controller. For a fail-safe circuit
example, refer to "General Safety Requirements" in the MELSEC iQ-R Module Configuration
Manual.
(4) Outputs may remain on or off due to a failure of a component such as a relay and transistor in an
output circuit. Configure an external circuit for monitoring output signals that could cause a
serious accident.
● In an output circuit, when a load current exceeding the rated current or an overcurrent caused by a
load short-circuit flows for a long time, it may cause smoke and fire. To prevent this, configure an
external safety circuit, such as a fuse.
● Configure a circuit so that the programmable controller is turned on first and then the external power
supply. If the external power supply is turned on first, an accident may occur due to an incorrect output
or malfunction.
1
[Design Precautions]
WARNING
● For the operating status of each station after a communication failure, refer to manuals relevant to the
network. Incorrect output or malfunction due to a communication failure may result in an accident.
● When connecting an external device with a CPU module or intelligent function module to modify data
of a running programmable controller, configure an interlock circuit in the program to ensure that the
entire system will always operate safely. For other forms of control (such as program modification,
parameter change, forced output, or operating status change) of a running programmable controller,
read the relevant manuals carefully and ensure that the operation is safe before proceeding. Improper
operation may damage machines or cause accidents.
● Especially, when a remote programmable controller is controlled by an external device, immediate
action cannot be taken if a problem occurs in the programmable controller due to a communication
failure. To prevent this, configure an interlock circuit in the program, and determine corrective actions
to be taken between the external device and CPU module in case of a communication failure.
● Do not write any data to the "system area" and "write-protect area" of the buffer memory in the
module. Also, do not use any "use prohibited" signals as an output signal from the CPU module to
each module. Doing so may cause malfunction of the programmable controller system. For the
"system area", "write-protect area", and the "use prohibited" signals, refer to the user's manual for the
module used.
● If a communication cable is disconnected, the network may be unstable, resulting in a communication
failure of multiple stations. Configure an interlock circuit in the program to ensure that the entire
system will always operate safely even if communications fail. Failure to do so may result in an
accident due to an incorrect output or malfunction.
● To maintain the safety of the programmable controller system against unauthorized access from
external devices via the network, take appropriate measures. To maintain the safety against
unauthorized access via the Internet, take measures such as installing a firewall.
● Configure safety circuits external to the programmable controller to ensure that the entire system
operates safely even when a fault occurs in the external power supply or the programmable controller.
Failure to do so may result in an accident due to an incorrect output or malfunction.
● If safety standards (ex., robot safety rules, etc.,) apply to the system using the module, servo amplifier
and servo motor, make sure that the safety standards are satisfied.
● Construct a safety circuit externally of the module or servo amplifier if the abnormal operation of the
module or servo amplifier differs from the safety directive operation in the system.
● Do not remove the SSCNET cable while turning on the control circuit power supply of modules and
servo amplifier. Do not see directly the light generated from SSCNET connector of the module or
servo amplifier and the end of SSCNET cable. When the light gets into eyes, you may feel
something wrong with eyes. (The light source of SSCNET complies with class1 defined in JISC6802
or IEC60825-1.)
2
[Design Precautions]
CAUTION
● Do not install the control lines or communication cables together with the main circuit lines or power
cables. Keep a distance of 100mm or more between them. Failure to do so may result in malfunction
due to noise.
● During control of an inductive load such as a lamp, heater, or solenoid valve, a large current
(approximately ten times greater than normal) may flow when the output is turned from off to on.
Therefore, use a module that has a sufficient current rating.
● After the CPU module is powered on or is reset, the time taken to enter the RUN status varies
depending on the system configuration, parameter settings, and/or program size. Design circuits so
that the entire system will always operate safely, regardless of the time.
● Do not power off the programmable controller or reset the CPU module while the settings are being
written. Doing so will make the data in the flash ROM and SD memory card undefined. The values
need to be set in the buffer memory and written to the flash ROM and SD memory card again. Doing
so also may cause malfunction or failure of the module.
● When changing the operating status of the CPU module from external devices (such as the remote
RUN/STOP functions), select "Do Not OPEN in Program" for "Open Method Setting" of "Module
Parameter". If "OPEN in Program" is selected, an execution of the remote STOP function causes the
communication line to close. Consequently, the CPU module cannot reopen the line, and external
devices cannot execute the remote RUN function.
[Installation Precautions]
WARNING
● Shut off the external power supply (all phases) used in the system before mounting or removing the
module. Failure to do so may result in electric shock or cause the module to fail or malfunction.
3
[Installation Precautions]
CAUTION
● Use the programmable controller in an environment that meets the general specifications in the Safety
Guidelines included with the base unit. Failure to do so may result in electric shock, fire, malfunction,
or damage to or deterioration of the product.
● To mount a module, place the concave part(s) located at the bottom onto the guide(s) of the base unit,
and push in the module until the hook(s) located at the top snaps into place. Incorrect mounting may
cause malfunction, failure, or drop of the module.
● To mount a module with no module fixing hook, place the concave part(s) located at the bottom onto
the guide(s) of the base unit, push in the module, and fix it with screw(s). Incorrect mounting may
cause malfunction, failure, or drop of the module.
● When using the programmable controller in an environment of frequent vibrations, fix the module with
a screw.
● Tighten the screws within the specified torque range. Undertightening can cause drop of the screw,
short circuit, or malfunction. Overtightening can damage the screw and/or module, resulting in drop,
short circuit, or malfunction.
● When using an extension cable, connect it to the extension cable connector of the base unit securely.
Check the connection for looseness. Poor contact may cause malfunction.
● When using an SD memory card, fully insert it into the SD memory card slot. Check that it is inserted
completely. Poor contact may cause malfunction.
● Securely insert an extended SRAM cassette into the cassette connector of the CPU module. After
insertion, close the cassette cover and check that the cassette is inserted completely. Poor contact
may cause malfunction.
● Do not directly touch any conductive parts and electronic components of the module, SD memory
card, extended SRAM cassette, or connector. Doing so may cause malfunction or failure of the
module.
[Wiring Precautions]
WARNING
● Shut off the external power supply (all phases) used in the system before installation and wiring.
Failure to do so may result in electric shock or cause the module to fail or malfunction.
● After installation and wiring, attach the included terminal cover to the module before turning it on for
operation. Failure to do so may result in electric shock.
4
[Wiring Precautions]
CAUTION
● Individually ground the FG and LG terminals of the programmable controller with a ground resistance
of 100 ohms or less. Failure to do so may result in electric shock or malfunction.
● Use applicable solderless terminals and tighten them within the specified torque range. If any spade
solderless terminal is used, it may be disconnected when the terminal screw comes loose, resulting in
failure.
● Check the rated voltage and signal layout before wiring to the module, and connect the cables
correctly. Connecting a power supply with a different voltage rating or incorrect wiring may cause fire
or failure.
● Connectors for external devices must be crimped or pressed with the tool specified by the
manufacturer, or must be correctly soldered. Incomplete connections may cause short circuit, fire, or
malfunction.
● Securely connect the connector to the module. Poor contact may cause malfunction.
● Do not install the control lines or communication cables together with the main circuit lines or power
cables. Keep a distance of 100mm or more between them. Failure to do so may result in malfunction
due to noise.
● Place the cables in a duct or clamp them. If not, dangling cable may swing or inadvertently be pulled,
resulting in damage to the module or cables or malfunction due to poor contact. Do not clamp the
extension cables with the jacket stripped. Doing so may change the characteristics of the cables,
resulting in malfunction.
● Check the interface type and correctly connect the cable. Incorrect wiring (connecting the cable to an
incorrect interface) may cause failure of the module and external device.
● Tighten the terminal screws or connector screws within the specified torque range. Undertightening
can cause drop of the screw, short circuit, fire, or malfunction. Overtightening can damage the screw
and/or module, resulting in drop, short circuit, fire, or malfunction.
● When disconnecting the cable from the module, do not pull the cable by the cable part. For the cable
with connector, hold the connector part of the cable. For the cable connected to the terminal block,
loosen the terminal screw. Pulling the cable connected to the module may result in malfunction or
damage to the module or cable.
● Prevent foreign matter such as dust or wire chips from entering the module. Such foreign matter can
cause a fire, failure, or malfunction.
● A protective film is attached to the top of the module to prevent foreign matter, such as wire chips,
from entering the module during wiring. Do not remove the film during wiring. Remove it for heat
dissipation before system operation.
● Programmable controllers must be installed in control panels. Connect the main power supply to the
power supply module in the control panel through a relay terminal block. Wiring and replacement of a
power supply module must be performed by qualified maintenance personnel with knowledge of
protection against electric shock. For wiring, refer to the MELSEC iQ-R Module Configuration Manual.
● For Ethernet cables to be used in the system, select the ones that meet the specifications in the user's
manual for the module used. If not, normal data transmission is not guaranteed.
5
[Startup and Maintenance Precautions]
WARNING
● Do not touch any terminal while power is on. Doing so will cause electric shock or malfunction.
● Correctly connect the battery connector. Do not charge, disassemble, heat, short-circuit, solder, or
throw the battery into the fire. Also, do not expose it to liquid or strong shock. Doing so may cause the
battery to generate heat, explode, ignite, or leak, resulting in injury or fire.
● Shut off the external power supply (all phases) used in the system before cleaning the module or
retightening the terminal screws, connector screws, or module fixing screws. Failure to do so may
result in electric shock.
[Startup and Maintenance Precautions]
CAUTION
● When connecting an external device with a CPU module or intelligent function module to modify data
of a running programmable controller, configure an interlock circuit in the program to ensure that the
entire system will always operate safely. For other forms of control (such as program modification,
parameter change, forced output, or operating status change) of a running programmable controller,
read the relevant manuals carefully and ensure that the operation is safe before proceeding. Improper
operation may damage machines or cause accidents.
● Especially, when a remote programmable controller is controlled by an external device, immediate
action cannot be taken if a problem occurs in the programmable controller due to a communication
failure. To prevent this, configure an interlock circuit in the program, and determine corrective actions
to be taken between the external device and CPU module in case of a communication failure.
● Do not disassemble or modify the modules. Doing so may cause failure, malfunction, injury, or a fire.
● Use any radio communication device such as a cellular phone or PHS (Personal Handy-phone
System) more than 25cm away in all directions from the programmable controller. Failure to do so
may cause malfunction.
● Shut off the external power supply (all phases) used in the system before mounting or removing the
module. Failure to do so may cause the module to fail or malfunction.
● Tighten the screws within the specified torque range. Undertightening can cause drop of the
component or wire, short circuit, or malfunction. Overtightening can damage the screw and/or module,
resulting in drop, short circuit, or malfunction.
● After the first use of the product, do not mount/remove the module to/from the base unit, and the
terminal block to/from the module, and do not insert/remove the extended SRAM cassette to/from the
CPU module more than 50 times (IEC 61131-2 compliant) respectively. Exceeding the limit of 50 times
may cause malfunction.
● After the first use of the product, do not insert/remove the SD memory card to/from the CPU module
more than 500 times. Exceeding the limit of 500 times may cause malfunction.
● Do not touch the metal terminals on the back side of the SD memory card. Doing so may cause
malfunction or failure.
● Do not touch the integrated circuits on the circuit board of an extended SRAM cassette. Doing so may
cause malfunction or failure.
● Do not drop or apply shock to the battery to be installed in the module. Doing so may damage the
battery, causing the battery fluid to leak inside the battery. If the battery is dropped or any shock is
applied to it, dispose of it without using.
6
[Startup and Maintenance Precautions]
CAUTION
● Startup and maintenance of a control panel must be performed by qualified maintenance personnel
with knowledge of protection against electric shock. Lock the control panel so that only qualified
maintenance personnel can operate it.
● Before handling the module, touch a conducting object such as a grounded metal to discharge the
static electricity from the human body. Failure to do so may cause the module to fail or malfunction.
● Before testing the operation, set a low speed value for the speed limit parameter so that the operation
can be stopped immediately upon occurrence of a hazardous condition.
● Confirm and adjust the program and each parameter before operation. Unpredictable movements
may occur depending on the machine.
● When using the absolute position system function, on starting up, and when the module or absolute
position motor has been replaced, always perform a home position return.
● Before starting the operation, confirm the brake function.
● Do not perform a megger test (insulation resistance measurement) during inspection.
● After maintenance and inspections are completed, confirm that the position detection of the absolute
position detection function is correct.
● Lock the control panel and prevent access to those who are not certified to handle or install electric
equipment.
[Operating Precautions]
CAUTION
● When changing data and operating status, and modifying program of the running programmable
controller from an external device such as a personal computer connected to an intelligent function
module, read relevant manuals carefully and ensure the safety before operation. Incorrect change or
modification may cause system malfunction, damage to the machines, or accidents.
● Do not power off the programmable controller or reset the CPU module while the setting values in the
buffer memory are being written to the flash ROM in the module. Doing so will make the data in the
flash ROM and SD memory card undefined. The values need to be set in the buffer memory and
written to the flash ROM and SD memory card again. Doing so also may cause malfunction or failure
of the module.
● Note that when the reference axis speed is specified for interpolation operation, the speed of the
partner axis (2nd, 3rd, or 4th axis) may exceed the speed limit value.
● Do not go near the machine during test operations or during operations such as teaching. Doing so
may lead to injuries.
[Disposal Precautions]
CAUTION
● When disposing of this product, treat it as industrial waste.
● When disposing of batteries, separate them from other wastes according to the local regulations. For
details on battery regulations in EU member states, refer to the MELSEC iQ-R Module Configuration
Manual.
7
[Transportation Precautions]
CAUTION
● When transporting lithium batteries, follow the transportation regulations. For details on the regulated
models, refer to the MELSEC iQ-R Module Configuration Manual.
● The halogens (such as fluorine, chlorine, bromine, and iodine), which are contained in a fumigant
used for disinfection and pest control of wood packaging materials, may cause failure of the product.
Prevent the entry of fumigant residues into the product or consider other methods (such as heat
treatment) instead of fumigation. The disinfection and pest control measures must be applied to
unprocessed raw wood.
8
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.
INTRODUCTION
Thank you for purchasing the Mitsubishi Electric MELSEC iQ-R series programmable controllers.
This manual describes the Multiple CPU system, parameters, devices, functions, memory structure etc. of the relevant
products listed below.
Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the
functions and performance of the MELSEC iQ-R series programmable controller to handle the product correctly.
When applying the program examples provided in this manual to an actual system, ensure the applicability and confirm that it
will not cause system control problems.
Please make sure that the end users read this manual.
This manual explains the Multiple CPU system configuration,
performance specifications, common parameters, auxiliary/applied
functions, error lists and others.
This manual explains specifications of the Motion CPU modules,
SSCNET cables, synchronous encoder, troubleshooting, and
others.
This manual explains the functions, programming, debugging for
Motion SFC and others.
This manual explains the servo parameters, positioning
instructions, device lists and others.
This manual explains the dedicated instructions to use
synchronous control by synchronous control parameters, device
lists and others.
This manual explains the dedicated instructions to use machine
control by machine control parameters, machine positioning data,
device lists and others.
This manual explains the dedicated instructions to use G-code
control by G-code control parameters and G-code programs.
Print book
e-Manual
PDF
Print book
e-Manual
PDF
Print book
e-Manual
PDF
Print book
e-Manual
PDF
Print book
e-Manual
PDF
Print book
e-Manual
PDF
Print book
e-Manual
PDF
e-Manual refers to the Mitsubishi FA electronic book manuals that can be browsed using a dedicated tool.
e-Manual has the following features:
• Required information can be cross-searched in multiple manuals.
• Other manuals can be accessed from the links in the manual.
• The hardware specifications of each part can be found from the product figures.
• Pages that users often browse can be bookmarked.
15
TERMS
Unless otherwise specified, this manual uses the following terms.
Ter mDescription
R64MTCPU/R32MTCPU/R16MTCPU or
Motion CPU (module)
MR-J4(W)-BServo amplifier model MR-J4-B/MR-J4W-B
MR-J3(W)-BServo amplifier model MR-J3-B/MR-J3W-B
AMP or Servo amplifierGeneral name for "Servo amplifier model MR-J4-B/MR-J4W-B/MR-J3-B/MR-J3W-B"
RnCPU, PLC CPU or PLC CPU moduleAbbreviation for MELSEC iQ-R series CPU module
Multiple CPU system or Motion systemAbbreviation for "Multiple PLC system of the R series"
CPUnAbbreviation for "CPU No.n (n = 1 to 4) of the CPU module for the Multiple CPU system"
Operating system softwareGeneral name for "SW10DNC-RMTFW"
Engineering software packageGeneral name for MT Developer2/GX Works3
MELSOFT MT Works2General product name for the Motion controller engineering software "SW1DND-MTW2"
MT Developer2Abbreviation for the programming software included in the "MELSOFT MT Works2" Motion controller
GX Works3General product name for the MELSEC PLC software package "SW1DND-GXW3"
Serial absolute synchronous encoder or
Q171ENC-W8
SSCNET/H
SSCNET
SSCNET(/H)General name for SSCNET/H, SSCNET
Absolute position systemGeneral name for "system using the servomotor and servo amplifier for absolute position"
Intelligent function moduleGeneral name for module that has a function other than input or output such as A/D converter module and D/A
SSCNET/H head module
Optical hub unit or MR-MV200Abbreviation for SSCNET/H Compatible Optical Hub Unit (MR-MV200)
Sensing moduleGeneral name for SSCNET/H compatible sensing module MR-MT2000 series
Sensing SSCNET/H head module
MR-MT2010
Sensing extension moduleGeneral name for I/O module (MR-MT2100), pulse I/O module (MR-MT2200), analog I/O module (MR-
Sensing I/O module or MR-MT2100Abbreviation for I/O module (MR-MT2100)
Sensing pulse I/O module or MR-MT2200Abbreviation for pulse I/O module (MR-MT2200)
Sensing analog I/O module or MR-MT2300Abbreviation for analog I/O module (MR-MT2300)
Sensing encoder I/F module or MR-MT2400 Abbreviation for encoder I/F module (MR-MT2400)
*1
*1
*1
*1
Abbreviation for MELSEC iQ-R series Motion controller
engineering software
Abbreviation for "Serial absolute synchronous encoder (Q171ENC-W8)"
High speed synchronous network between Motion controller and servo amplifier
converter module.
Abbreviation for "MELSEC-L series SSCNET/H head module (LJ72MS15)"
or
Abbreviation for SSCNET/H head module (MR-MT2010)
MT2300), encoder I/F module (MR-MT2400)
*1 SSCNET: Servo System Controller NETwork
16
MANUAL PAGE ORGANIZATION
Ex.
Ex.
Representation of numerical values used in this manual
■Axis No. representation
In the positioning dedicated signals, "n" in "M3200+20n", etc. indicates a value corresponding to axis No. as shown in the
following table.
• The range of axis No.1 to 16 (n=0 to 15) is valid in the R16MTCPU. The range of axis No.1 to 32 (n=0 to 31) is valid in the
R32MTCPU.
• Calculate as follows for the device No. corresponding to each axis.
For axis No. 32 in Q series Motion compatible device assignment
M3200+20n ([Rq.1140] Stop command)=M3200+2031=M3820
M3215+20n ([Rq.1155] Servo OFF command)=M3215+2031=M3835
In the positioning dedicated signals, "n" in "M10440+10n", etc. of the "Synchronous encoder axis status", "Synchronous
encoder axis command signal", "Synchronous encoder axis monitor device" and "Synchronous encoder axis control device"
indicates a value corresponding to synchronous encoder axis No. as shown in the following table.
• Calculate as follows for the device No. corresponding to each synchronous encoder.
For synchronous encoder axis No.12 in Q series Motion compatible device assignment
M10440+10n ([St.320] Synchronous encoder axis setting valid flag)=M10440+1011=M10550
D13240+20n ([Md.320] Synchronous encoder axis current value)=D13240+2011=D13460
17
■Machine No. representation
Ex.
Ex.
Ex.
In the positioning dedicated signals, "m" in "M43904+32m", etc. indicates a value corresponding to machine No. as shown in
the following table.
Machine No.mMachine No.m
1054
2165
3276
4387
• Calculate as follows for the device No. corresponding to each machine.
For machine No.8 in MELSEC iQ-R Motion device assignment
M43904+32m ([St.2120] Machine error detection) M43904+327=M44128
D53168+128m ([Md.2020] Machine type)=M53168+287=D54064
■Line No. representation in G-code control
In the positioning dedicated signals, "s" in "D54496+128s", etc. indicates a value corresponding to line No. as shown in the
following table.
Line No.s
10
21
• Calculate as follows for the device No. corresponding to each line.
For line No.2 in MELSEC iQ-R Motion device assignment
D54440.0+4s ([St.3208] During G-code control)=D54440.0+41=D54444.0
D54496+128s ([Md.3016] Number of axes on line)=D54496+1281=D54624
■Line No. and axis No. representation in G-code control
In the positioning dedicated signals, "sn" in "D54278+16sn", etc. indicates a value corresponding to line No. and axis No. as
shown in the following table.
Line No.Axis No.snLine No.Axis No.sn
110 218
2129
32310
43411
54512
65613
76714
87815
• Calculate as follows for the device No. corresponding to each line.
For line No.2, axis No. 8 in MELSEC iQ-R Motion device assignment
D54448.0+2sn ([St.3076] Smoothing zero)=D54448.0+215=D54478.0
D54754+32sn ([Md.3146] Rotating axis setting status)=D54754+3215=D55234
18
Representation of device No. used in this manual
The "R" and "Q" beside the device No. of positioning dedicated signals such as "[Rq.1140] Stop command (R: M34480+32n/
Q: M3200+20n)" indicate the device No. for the device assignment methods shown below. When "R" and "Q" are not beside
the device No., the device No. is the same for both device assignment methods.
SymbolDevice assignment method
RMELSEC iQ-R Motion device assignment
QQ series Motion compatible device assignment
19
1MULTIPLE CPU SYSTEM
1.1Multiple CPU System
Overview
What is Multiple CPU system?
A Multiple CPU system is a system in which more than one PLC CPU module and Motion CPU module (up to 4 modules) are
mounted on several main base unit in order to control the I/O modules and intelligent function modules. Each Motion CPU
controls the servo amplifiers connected by SSCNET cable.
System configuration based on load distribution
• By distributing such tasks as servo control, machine control and information control among multiple processors, the flexible
system configuration can be realized.
• You can increase the number of control axes by using a multiple Motion CPU modules. It is possible to control up to 192
axes by using the three CPU modules (R64MTCPU).
• Overall system responsiveness is improved by distributing the high-load processing over several CPU modules.
Communication between CPUs in the Multiple CPU system
• Since device data of other CPUs can be automatically read by the Multiple CPU refresh function, the self CPU can also use
device data of other CPUs as those of self CPU.
• Motion dedicated PLC instructions can be used to access device data from the PLC CPU to Motion CPU and start Motion
SFC program.
20
1 MULTIPLE CPU SYSTEM
1.1 Multiple CPU System
Restrictions on Multiple CPU systems using Motion CPUs
Refer to the following for details on the Multiple CPU system concept (system configuration such as CPU module installation
positions and combinations, CPU Nos., I/O No. allocation etc.).
MELSEC iQ-R Series Module Configuration Manual
This section describes restrictions when using Motion CPUs.
CPU module installation position
Motion CPUs can only be used with the Multiple CPU system.
Motion CPU modules cannot be installed in CPU slots.
Controllable modules
■MELSEC iQ-R series modules
The following modules can be controlled with a Motion CPU. Modules other than those below cannot be controlled with a
Motion CPU.
ModuleModel
Input moduleRX10
RX40C7
RX41C4
RX42C4
RX40PC6H
RX40NC6H
RX41C6HS
RX61C6HS
Output moduleRY10R2
RY40NT5P
RY41NT2P
RY41NT2H
RY42NT2P
RY40PT5P
RY41PT1P
RY41PT2H
RY42PT1P
Input/output composite moduleRH42C4NT2P
Analog input moduleR60AD4
R60ADI8
R60ADV8
R60AD8-G
R60AD16-G
R60ADH4
Analog output moduleR60DA4
R60DAI8
R60DAV8
R60DA8-G
R60DA16-G
High-speed counter moduleRD62D2
RD62P2
RD62P2E
Temperature input moduleRD60TD8-G
RD60RD8-G
1
1 MULTIPLE CPU SYSTEM
1.1 Multiple CPU System
21
■MELSEC Q series modules
MELSEC Q series modules cannot be controlled with the Motion CPU. If the Motion CPU is specified as the MELSEC Q
series module control CPU, a moderate error (error code: 2020H) is detected when turning ON the Multiple CPU system
power supply, and the module cannot be accessed.
Module access range from non-controlling CPU
• Access to MELSEC Q series modules controlled by other CPU is not possible from Motion CPU. (I/O reading from outside
the group is also not performed.)
• Module access devices (U\G) can be read. An error (error code differs for each function) is output when attempting to
write.
• X/Y devices for modules controlled by another CPU can be refreshed to a Motion X/Y with the I/O settings for outside the
group. However, I/O reading from outside the group is not performed for modules controlled by other CPUs that apply to
inter-module synchronization.
22
1 MULTIPLE CPU SYSTEM
1.1 Multiple CPU System
Module control with Motion CPUs
The settings required to control modules with Motion CPUs are as follows.
System configuration settings
The system configuration for Multiple CPU systems and common parameters is set in the GX Works3 [Module Configuration]
and [System Parameter].
With Motion CPUs, parameters set in GX Works3 are read by MT Developer2, and therefore the system configuration and
common parameters are not set in MT Developer2. If setting the system configuration and common parameters, always do so
with GX Works3.
Furthermore, module parameters for modules set in the system configuration are set in GX Works3, however, module
parameters for modules for which a Motion CPU has been set as the control CPU cannot be set in GX Works3.
Settings for modules controlled by Motion CPUs are specified at the MT Developer2 [Module Configuration List].
For modules used with "High-accuracy" high-speed input request signals, set the "Synchronization Setting
within the Modules" to "Use" in GX Works3, and set the fixed scan interval setting to "0.444ms" or greater.
Please note that "Synchronization Setting within the Modules" can be used for modules with 32 or less input/
output points.
System configuration setting method
■GX Works3 settings
Set the following parameters in GX Works3.
• Module configuration
• System parameter(I/O assignment setting, Multiple CPU setting, Synchronization setting)
• Set the Motion CPU as the module control CPU in "Control PLC Settings" in [I/O Assignment Setting].
1
■MT Developer2 settings
• Read the parameters set in GX Works3 using MT Developer2 [System Parameter Diversion].
• Select [R Series Common Parameters] [Module Configuration List] "Setting item" "Detailed" button in MT
Developer2, and then set the parameters for the module for which a Motion CPU set has been set as the control CPU in the
module detailed settings that appear.
Module individual settings
The setting items for modules for which a Motion CPU has been set as the control CPU are shown below.
Set the module settings not shown in the tables with the buffer memory for each module.
■Input module
*1
Item
Input response time settingNo setting/10micro-s/20micro-s/50micro-s/0.1ms/0.2ms/
*1 Items that can be set will differ depending on the module used.
*2 Setting range will differ depending on the module used.
*3 Default values will differ depending on the module used.
Setting range
0.4ms/0.6ms/1ms/5ms/10ms/20ms/70ms
*2
Default value
*3
■Output module
ItemSetting rangeDefault value
Setting of error-time output modeClear/HoldClear
1 MULTIPLE CPU SYSTEM
1.1 Multiple CPU System
23
■I/O module
ItemSetting rangeDefault value
Input response time setting0.1ms/0.2ms/0.4ms/0.6ms/1ms/5ms/10ms/20ms/70ms10ms
Warning output flag (Rate alarm)/Input signal error
detection flag/A/D conversion completed/Logging hold flag/
Logging read/Continuous logging data storage
CH8/CH9/CH10/CH11/CH12/CH13/CH14/CH15/CH16
*1 Items that can be set will differ depending on the module used.
*2 Setting range will differ depending on the module used.
*3 Default values will differ depending on the module used.
Scaling upper limit value-32000 to -1, 1 to 32000
Scaling lower limit value-32000 to -1, 1 to 32000
Warning output settingEnable/DisableDisable
Warning output upper limit value 1 to 32767
Warning lower upper limit value-32768 to -1
Rate control enable/disable
setting
Increase digital limit value0 to 64000
Decrease digital limit value0 to 64000
Output selection during
synchronous error
Auto restore of Offset/gain
setting with the module change
Setting range
12V/4 to 20mA (Extension)/1 to 5V (Extension)/User range
setting (Voltage)/User range setting (Current)/User range
setting 3/User range setting 2/User range setting 1
detection flag/External power supply READY flag/External
power supply READY flag (CH1_CH8)/External power
supply READY flag (CH9_CH16)
CH8/CH9/CH10/CH11/CH12/CH13/CH14/CH15/CH16
*2
Default value
Disable
1
All CH specification
*2
Default value
*3
Normal mode(D/A
conversion process)
Inter-module
synchronization continue
Disable
All CH specification
*1 Items that can be set will differ depending on the module used.
*2 Setting range will differ depending on the module used.
*3 Default values will differ depending on the module used.
1 MULTIPLE CPU SYSTEM
1.1 Multiple CPU System
27
■Temperature input module
*1
Item
Basic
setting
RTD type
selection
function
Thermocouple
type selection
function
Cold junction
temperature
compensation
with/without
setting function
Operation mode
setting function
Conversion
enable/disable
setting function
Temperature
conversion
system
RTD type settingPt100(-200 to 850)/Pt100(-20 to 120)/JPt100(-180 to
Offset/gain settingFactory default setting/User range settingFactory default setting
Thermocouple type settingThermocouple K/Thermocouple E/Thermocouple J/
Offset/gain settingFactory default setting/User range settingFactory default setting
Cold junction temperature
compensation with/without
setting
Auto restore of Offset/gain
setting with the module change
Setting range
Enable/DisableDisable
-270.0 to 1820
-270.0 to 1820
-270.0 to 1820
-270.0 to 1820
Enable/DisableDisable
1 to 32000 times
Enable/DisableEnable
Up scale/Down scale/Given value/Value immediately
before disconnection
-3276.8 to 3276.7
Enable/DisableDisable
s: 1 to 3600
(Condition: Fall)/Level trigger (Condition: Rise and Fall)
Enable/Disable
1 to 1000
Enable/DisableEnable
Warning output flag (Rate alarm)/Disconnection detection
flag/Conversion completed flag/Logging hold flag/Logging
read
CH8
*1 Items that can be set will differ depending on the module used.
*2 Setting range will differ depending on the module used.
*2
Default value
1
Down scale
Disable
All CH specification
1 MULTIPLE CPU SYSTEM
1.1 Multiple CPU System
29
1.2Setting Operation for Multiple CPU System
This section describes all operation settings for Multiple CPU systems. Specify all operation settings for Multiple CPU systems
in the GX Works3 [System Parameter]. Refer to the following for details on all operation settings.
MELSEC iQ-R CPU Module User's Manual (Application)
Setting operation for CPU module stop error
If a moderate or major error occurs at any of the CPUs, set whether to stop or continue operation for all CPUs.
Set the stopping mode for the CPU to be stopped in [System Parameter] [Multiple CPU Setting] "Multiple CPU Setting"
"Operation Mode Setting" "Stop Setting" in GX Works3.
Multiple CPU synchronous startup setting
Multiple CPU synchronous startup function synchronizes the startups of CPU No.1 to CPU No.4. (It takes about ten seconds
to startup for Motion CPU. After startup, each CPU requires time for initializing.)
Since this function monitors the startup of each CPU module, when other CPU is accessed by a user program, an interlock
program which checks the CPU module startup is unnecessary. With the Multiple CPU synchronous startup function, the
startup is synchronized with the slowest CPU module to startup; therefore, the system startup may be slow.
Multiple CPU synchronous startup function is for accessing each CPU module in a Multiple CPU system
without needing an interlock. This function is not for starting an operation simultaneously among CPU
modules after startup.
Multiple CPU synchronous startup setting
Set "Synchronize" in the Multiple CPU synchronous startup setting of the CPU in [System Parameter] [Multiple CPU
Setting] "Multiple CPU Setting" "Operation Mode Setting" "Synchronous Startup Setting"
When not performing Multiple CPU synchronous startup (each CPU startup without synchronization), startup of each CPU
module can be confirmed by using special relays SM220 to SM223 (CPU No.1 to 4 READY complete flag).
Clock synchronization between Multiple CPU
Motion CPU clock data is synchronized with the clock of CPU No. 1.
The clock data used for synchronization in a Multiple CPU system can be edited.(Page 113 Clock Function)
30
1 MULTIPLE CPU SYSTEM
1.2 Setting Operation for Multiple CPU System
1.3Data Communication Between CPU Modules in the
0
User setting area
0
to
to
to
to
to
2047
2048
524287
524288
999999
1000000
2097151
CPU buffer memory
System area
System area
User setting area
User setting area
Refresh(END) area
Occupies the points for refresh(END) only.
When refresh(END) is not used, this can be
used as user setting area.
(Fixed scan communication
area setting points - 1)
Refresh(I45 executing)
area
CPU buffer memory
(Fixed scan communication area)
Occupies the points for refresh(I45 executing) only.
When refresh(I45 executing) is not used, this
can be used as user setting area.
Multiple CPU System
Data transfer is performed between CPU modules in the Multiple CPU system. Data can be written and read between CPUs
through communication by refreshing or by direct access. Data communication methods are shown below.
Refer to the following for details on data communication between CPU modules (data communication via CPU buffer memory/
fixed scan communication area).
MELSEC iQ-R CPU Module User's Manual (Application)
Communication methodApplicationDetails
Data communication via CPU
buffer memory
Data communication via fixed
scan communication area
Used memory
Data communication between CPU modules uses the CPU buffer memory.
CPU buffer memory configuration
The CPU buffer memory configuration is shown below.
Use to transfer data based on
the timing of the respective CPU
modules.
Use to transfer data based on
the timing between CPU
modules.
CPU modules transmitting data write to the self CPU buffer memory. CPU modules
receiving data read from the self CPU buffer memory of the CPU module (other CPU)
from which the data was transmitted.
CPU modules transmitting data write to the self CPU fixed scan communication area
(transmission area). CPU modules receiving data read from the self CPU fixed scan
communication area (receipt area) of the CPU module to which the data was transmitted.
1
MemoryCommunication methodDetailsArea size
CPU buffer memoryCommunication by direct
Refresh areaCommunication by refreshData communication is performed by refreshing at END
Fixed scan
communication area
Refresh areaCommunication by refreshRefresh is performed in fixed scan communication cycles.
*1 To transfer data using the fixed scan communication area, specify fixed scan communication area settings at GX Works3. Refer to the
following for details on fixed scan communication area settings.
MELSEC iQ-R CPU Module User's Manual (Application)
access
Communication by direct
*1
access
Data reading and writing is performed for the self CPU or
other CPU area.
processing.
Data reading and writing is performed for the self CPU fixed
scan communication area, and self CPU and other CPU data
transfer is performed in fixed scan communication cycles.
1.3 Data Communication Between CPU Modules in the Multiple CPU System
PLC CPU: 512k words
Motion CPU: 2M words
Changes can be made within an
overall range of 0 to 24k words. The
transmission area per module can
be set in the 0 to 12k word range.
1 MULTIPLE CPU SYSTEM
31
• The system area is determined by the allocation in the system. Use the user area for communicating user
data.
• The refresh (END, I45 executing) area is used with the Multiple CPU refresh. Do not directly change this
area with a program.
Assurance for data communicated between Multiple CPUs
■Assurance of data sent between CPUs
Due to the timing of data sent from the self CPU and automatic refresh in any of the other CPUs, old data and new data may
become mixed (data separation).
The following shows the methods for avoiding data separation at communications by refresh.
• Data consistency for 32 bit data
Transfer data with refresh method is in units of 32 bits. Since refresh is set in units of 32 bits, 32-bit data does not separate.
For word data, 2 words data can be prevented from separating by using an even number to set the first number of each
device in refresh setting.
• Data consistency for 64-bit data
By setting the first number for the device set by refreshing to a multiple of 4, 64-bit data separation can be prevented.
• Data consistency for data exceeding 64 bits
In refresh method, data is read in descending order of the setting number in refresh setting parameter. Transfer data
separation can be avoided by using a transfer number lower than the transfer data as an interlock device.
32
1 MULTIPLE CPU SYSTEM
1.3 Data Communication Between CPU Modules in the Multiple CPU System
Data communication by refreshing at Motion CPUs
Motion CPU
fixed-cycle
processing
Motion operation cycle
Fixed scan communication cycle
Receipt refresh
Fixed scan communication
data transmission section
Transmission refresh
This section describes data communication by refreshing at Motion CPUs.
Refresh timing
The refresh timing at Motion CPUs differs from that for PLC CPUs. The refresh types and refresh timing are as follows.
Refresh typeMemory usedRefresh timing
PLC CPU sideMotion CPU side
MELSEC iQ-R seriesRefresh (END)CPU buffer memoryAt END processingMain cycle
Operation cycle and main cycle
The longer of the operation cycle or
fixed scan communication cycle
0.888ms and main cycle
*2
MELSEC Q series
(iQ Platform compatible)
Refresh (Q compatibility
high-speed refresh)
Refresh (I45 executing)Fixed scan
Automatic refreshAt END processingMain cycle
High-speed refreshThe longer of the operation cycle or
*1
communication area
When executing Multiple CPU
synchronous interrupt program (I45)
*1 This is an interchangeable setting equivalent to the MELSEC Q series "High-speed refresh" setting.
*2 The order of processing inside the Motion CPU is as follows.
*3 The order of processing inside the Motion CPU is as follows.
"Receipt refresh Motion SFC event task Motion operation Transmission refresh".
Furthermore, if the operation cycle is shorter than the fixed scan communication cycle, receipt refresh and transmission refresh are
performed only at the operation cycle immediately after the fixed scan communication cycle.
1
*2
*3
If using refresh (fixed scan communication), it is recommended that fixed scan communication cycles and
Motion operation cycles be aligned.
1 MULTIPLE CPU SYSTEM
1.3 Data Communication Between CPU Modules in the Multiple CPU System
33
Multiple CPU refresh setting
Window
Displayed items
Setting for communicating by refresh.
In the refresh settings, up to 32 setting ranges (refresh (END) and refresh (I45 executing)) can be set for each CPU module.
[R Series Common Parameter] [System Parameter] [Multiple CPU Setting] "Communication Setting between
CPU" "Refresh (END) Setting" or "Refresh (I45 executing) Setting" "Detailed Setting"
Refresh timing Select "Detailed setting" based on the timing
at which data communication by refresh is
executed.
CPU selection Select the CPU module for editing of the
CPU specific send range setting.
Setting No.The setting No. for transmission of each
CPU module is displayed. Automatic refresh
is executed between devices set to the
same setting No. for all CPUs that constitute
the Multiple CPU system.
PointsSet the number of points for data
communication.
StartSpecifies the device which performs the data
communication (refresh). Specifies the
device sent by the self CPU when the "Send
source CPU selection" is the self CPU, and
specifies the device received by the self
CPU when the CPU specific send range
setting is the other CPU.
Refresh (END) setting/Refresh
(I45 executing)
CPU No.1 to No.4CPU No. which exceeds the number of
1 to 32
Range: Refer to device list for
usable ranges.
(Page 75 Device
List)
Unit: 2 [points]
Usable device (X, Y, M, B, D,
*1
W, #)
Fixed-cycle refresh cannot be set if
fixed scan communication is invalid.
CPU modules cannot be selected.
• Setting which exceeds the number of
points of the self CPU send area
allocated to each CPU module (CPU
specific send range) cannot be set.
• Bit device can be specified in units of
32 points (2 words) only.
• Bit device can be specified in units of
16 points (1 word) only.
• Device number cannot be duplicated.
Provided
None
*1 Set "blank" when automatic refresh is not executed.
34
1.3 Data Communication Between CPU Modules in the Multiple CPU System
1 MULTIPLE CPU SYSTEM
Parameters set at GX Works3 are read at MT Developer2, and therefore there is no need to specify the
Write by main cycle
of CPU No.2
Read by main cycle
of CPU No.2
Read by END process
of CPU No.1
CPU No.1
B0 to B1F (CPU No.1)
B20 to B3F (CPU No.2)
Device
Refresh area
CPU buffer memory
Write by END process
of CPU No.1
CPU No.2
B0 to B1F (CPU No.1)
B20 to B3F (CPU No.2)
Device
Refresh area
CPU buffer memory
Refresh before and after I45 process
CPU No.1
B0 to B1F (CPU No.1)
B20 to B3F (CPU No.2)
Device
B0 to B1F (CPU No.1)
B20 to B3F (CPU No.2)
Device
Write to refresh area
CPU No.1 fixed scan
communication area
CPU No.2 fixed scan
communication area
Refresh area
CPU buffer memory
Refresh area
Read from refresh area
Refresh at the longer cycle of operation
cycle or fixed scan communication cycle
CPU No.2
Write to refresh area
CPU No.1 fixed scan
communication area
CPU No.2 fixed scan
communication area
Refresh area
CPU buffer memory
Refresh area
Read from refresh area
Send to CPU No.1
Send to CPU No.2
refresh (END) and refresh (I45 executing) settings, however, they should be set in the following cases.
• When a Motion register (#) is set to the transmitting device.
• When the Q compatibility high-speed refresh setting is used.
If specifying the Refresh (I45 executing) setting, specify the following settings in the GX Works3 [System
Parameter] [Multiple CPU Setting] "Communication setting between CPU".
Refer to the following for details on settings.
MELSEC iQ-R CPU Module User's Manual (Application)
• Set the "Fixed scan communication function" to "Use".
• Set the send area range for each CPU in the "Fixed scan communication area setting".
• Set the fixed scan interval setting of fixed scan communication (0.222ms/0.444ms/0.888ms/1.777ms/
3.555ms/7.111ms) in "Fixed scan communication settings".
Refresh processing performance is improved by setting the first device beginning with a 2-word unit or 4-word
unit.
■Operation example of refresh (END) that uses CPU buffer memory
A refresh (END) operation example using the CPU buffer memory is shown below.
1
■Refresh (I45 executing) operation example using fixed scan communication area
A refresh (I45 executing) operation example using the fixed scan communication area is shown below.
■Application example of refresh setting (I45 executing)
Refresh setting (I45 executing) is used as in the following applications.
• Read the data such as the real current value and synchronous encoder current value with PLC CPU at high speed.
• Exchange the FIN waiting signal at high speed.
1.3 Data Communication Between CPU Modules in the Multiple CPU System
1 MULTIPLE CPU SYSTEM
35
Multiple CPU refresh setting (Q compatibility high-speed refresh setting)
Window
Displayed items
With self Motion CPUs, data between Motion CPU internal devices and the CPU buffer memory is updated every operation
cycle in the settings of devices for which refresh (at END) is set.
[R Series Common Parameter] [System Parameter] [Multiple CPU Setting] "Fixed Scan Communication Area
Setting" "Refresh (END) Setting" "Detailed Setting" "Q Compatibility High-speed Refresh Setting"
ClassificationItemDescriptionSetting/display
value
DisplaySetting
No.
CPUCPU No. set in the refresh (END) setting is
User settingDevice
setting
PointsSet the number of points to refresh data of each
Refresh
cycle
Setting No. which executes high speed refresh is
displayed.
automatically displayed by setting devices.
•Self CPU
Refresh from the internal device of Motion CPU
to CPU buffer memory.
•Other CPU
Refresh from the CPU buffer memory to
internal device of Motion CPU.
Set the device No. of Motion CPU to execute the
high speed refreshes.
data in word unit.
*: Refresh is not executed when not set.
Operation cycle (fixed)
1 to 128
(Up to 128)
CPU No. 1 to No.4
Usable device:
D, W, #, M, X, Y, B
Range: 2 to 256[points]
Unit: 2 points
*1
*1 Point in word unit.
Restriction
• The start device number must be a multiple of
16 for the bit device.
• Cannot set a device not set also in the refresh
(END) setting.
• No. of "start device+number of points" cannot
exceed setting range of each setting No. in
refresh (END) setting.
• Cannot overlap the device No. between
setting No..
Sets the total of all CPUs to 256 points or lower.
36
1.3 Data Communication Between CPU Modules in the Multiple CPU System
1 MULTIPLE CPU SYSTEM
This refresh method is a setting for compatibility with the Q series Motion CPU with the purpose of making the
Read by main cycle or
operation cycle of
CPU No.2
Write by main
cycle or operation
cycle of CPU No.2
Read by END process
of CPU No.1
CPU No.1
B0 to B1F (CPU No.1)
B20 to B3F (CPU No.2)
Device
Refresh area
CPU buffer memory
Write by END process
of CPU No.1
CPU No.2
B0 to B1F (CPU No.1)
B20 to B3F (CPU No.2)
Device
Refresh area
CPU buffer memory
data refresh timing equivalent to that of "Multiple CPU high speed refresh" of the Q series Motion CPU.
When configuring a new system, we recommend using refresh (I45 executing) for communication of data that
is synchronized with the control of the Motion CPU.
■Operation example of Multiple CPU refresh setting (Q compatibility high-speed refresh
setting)
The operation example of Multiple CPU refresh setting (Q compatibility high-speed refresh setting) is shown below.
1
1.3 Data Communication Between CPU Modules in the Multiple CPU System
1 MULTIPLE CPU SYSTEM
37
Fixed scan data transmission section over check
Fixed scan
transmission
section
OK (the send data can be seen
from other CPU in next cycle)
Fixed scan
transmission
section
Motion operation time
Fixed scan communication cycle
NG (the send data cannot be seen from
other CPU in the next cycle because data
write was not completed by the beginning
of the transmission section)
Receipt
refresh
Receipt
refresh
Motion CPU
fixed-cycle
processing
Transmission
refresh
Transmission
refresh
Operation
cycle
Motion operation time
Operation cycle
Fixed scan communication cycle
A check is performed to verify whether Motion CPU fixed-cycle processing (Motion SFC event tasks, motion operations, etc.)
is completed by the data transmission section of the CPU fixed scan communication.
A check can be carried out to detect whether fixed scan transmission data separation has occurred. "Detect/Not detected"
and "Stop/Continue" can be selected in the "RAS settings" (Page 55 CPU parameter).
Checks are performed as follows depending on the relationship between the motion operation cycle and fixed scan
communication cycle.
When motion operation cycle < fixed scan communication cycle
A check is performed only when an operation cycle over condition is detected, and not performed otherwise.
When motion operation cycle = fixed scan communication cycle
A check is performed every cycle.
When motion operation cycle > fixed scan communication cycle
A check is performed only at the fixed scan communication section immediately before the motion operation cycle. No check
is performed part of the way into a fixed scan communication section during a motion operation cycle, thus if a cycle shorter
than the motion operation cycle is referenced from another CPU, separation may occur even if no error occurs when
performing this check.
Special relay/special register
The special relay and special register relating to the fixed scan data communication section excess check are shown below.
Refer to the following for details on special relays and special registers.
• Special relay(Page 426 Special Relays)
• Special register(Page 431 Special Registers)
DeviceNumberName
Special relaySM484Fixed scan data transmission section over
Special registerSD484Fixed scan data transmission section over count
38
1 MULTIPLE CPU SYSTEM
1.3 Data Communication Between CPU Modules in the Multiple CPU System
Inter-module synchronization function
Inter-module synchronization function overview
• By using the inter-module synchronization function, control timing can be synchronized across Motion CPUs, I/O modules,
and intelligent function modules. By enabling inter-module synchronization for modules controlled by a Motion CPU, motion
control and synchronized I/O control are possible.
• With the inter-module synchronization function, each module executes a "Inter-module synchronization interrupt program"
to perform fixed-cycle control. At the Motion CPU, overall Motion CPU fixed-cycle processing (Motion SFC fixed-cycle
event tasks, motion operation processing, etc.) corresponds to the inter-module synchronization interrupt program.
• By enabling the inter-module synchronization function between Multiple CPUs, the execution timing for self CPU Motion
CPU fixed-cycle processing and other CPU inter-module synchronization interrupt programs (PLC CPU 144 interrupt
program, Motion CPU fixed-cycle processing) can be synchronized.
• Set the inter-module synchronization function in the following cases.
• When using I/O module signals as high-speed input request signals
• When using a synchronous encoder via a high-speed counter module (By enabling inter-module synchronization, variations between synchronous encoder
input value operation cycles are reduced.)
Refer to the following for details on the overall system inter-module synchronization function, including PLC
CPUs and network modules.
MELSEC iQ-R Inter-Module Synchronization Function Reference Manual
1
Inter-module synchronization setting
Set the inter-module synchronization settings in [System Parameter] [Synchronization Setting within the Modules]
"Synchronization Setting within the Modules" of GX Works3. Inter-module synchronization settings must be consistent across
the Multiple CPU system.
1 MULTIPLE CPU SYSTEM
1.3 Data Communication Between CPU Modules in the Multiple CPU System
39
If setting inter-module synchronization settings at the Motion CPU, set as follows.
Operating procedure
1. Set "Use inter-module synchronization function in
system" to "Use".
2. Set "Synchronize" from the setting of the selected
synchronization target module displayed in "Select the
synchronous target unit", for the module to be
synchronized.
3. Set the "Inter-module synchronization target module
selection" as follows.
• Set "0.05ms unit setting" to "Not set".
• Set the following fixed scan interval compatible with the
Motion CPU in "Fixed scan interval setting (not set by
Refresh settings are not required for modules controlled by Motion CPUs. I/O (X/Y) refresh is performed for all modules
controlled by Motion CPU control. Also, perform read to and write from the module buffer memory by direct access with a
module access device (U\G).
40
1 MULTIPLE CPU SYSTEM
1.3 Data Communication Between CPU Modules in the Multiple CPU System
Inter-module synchronization control timing
Motion operation time
Inter-module synchronization cycle
Input
refresh
Input module
(Internal buffer)
Input latchSynchronized output
Motion CPU
fixed-cycle
processing
Output
refresh
Operation
cycle
*1
Input
Input
Output
Output
Input
Input
External
equipment
External
equipment
Output
External
equipment
Output
Output module
(Internal buffer)
Motion CPU fixed-cycle
processing
Inter-module
synchronization cycle
Motion operation cycle
Example 1
Example 2
Example 3
: Actual output timing
: Actual input timing
: Output refresh
: Input refresh
Operation cycle over
■Timing of I/O refresh processing
When using the inter-module synchronization function, the timing of motion operation cycles with Motion CPUs is linked to
inter-module synchronization cycles. Refresh of inter-module synchronization target modules I/O (X/Y) is performed before
and after Motion CPU fixed-cycle processing (Motion SFC fixed-cycle event tasks, motion operation processing, etc.) The
processing timing is as follows.
*1 Motion SFC event task and Motion real-time task processing
Inter-module synchronization target module input (X) refresh is performed when starting Motion CPU fixed-cycle processing,
and output (Y) refresh is performed when Motion CPU fixed-cycle processing is complete. Perform read to and write from the
module buffer memory by direct access with a module access device (U\G). Depending on the module, a buffer memory is
available for inter-module synchronous control. Refer to the User's Manual of each module for details on module operation
relating to the inter-module synchronization function.
1
■When the inter-module synchronization cycle and motion operation cycle differ
The processing timing if the inter-module synchronization cycle and motion operation cycle differ is as follows.
• When inter-module synchronization cycle < motion operation cycle
• The Y device content at the moment output refresh processing is executed is output at the inter-module synchronization cycle immediately after. (Example 1,
2)
• When the timing of the output refresh and inter-module synchronization cycle overlap, a discrepancy in the actual output timing may occur depending on the
module. (Example 2) Therefore, to align the actual output timing of all modules, ensure that the "inter-module synchronization cycle motion operation cycle".
• If the Motion CPU fixed-cycle processing time, including output refresh processing, does not end within the motion operation cycle, an operation cycle over is
detected. (Example 3)
1.3 Data Communication Between CPU Modules in the Multiple CPU System
1 MULTIPLE CPU SYSTEM
41
• When inter-module synchronization cycle > motion operation cycle
Inter-module synchronization cycle
Motion operation cycle
Example 4
Example 5
Operation cycle over
: Actual output timing
: Actual input timing
: Output refresh
: Input refresh
• Input refresh is performed when processing the first Motion CPU fixed cycle within the inter-module synchronization cycle. Output refresh is performed when
processing the last Motion CPU fixed cycle within the inter-module synchronization cycle. (Example 4)
• If the Motion CPU fixed-cycle processing time, including output refresh processing, does not end within the motion operation cycle, an operation cycle over is
detected. (Example 5)
CPU module operating status and refresh operation
The CPU module operating status when using the inter-module synchronization function and the I/O (X/Y) refresh operation
are shown below.
CPU operating statusRefresh
executed/not
executed
RUN (including when continue error
occurs)
STOP (including when stop error
occurs due to moderate error)
STOP (when major error occurs)Do not refresh
Test mode (including when continue
error occurs)
RefreshMotion operation cycle
RefreshMotion operation cycle
I/O (X/Y) refresh timingRemarks
*1
• Refresh OFF for Y.
• Refresh is not performed at such times as when the module
does not start up or refresh does not function due to a
parameter error, etc.
*1
*2
*1 Refresh is still performed if interrupt is prohibited with a Motion SFC DI instruction.
*2 The Y immediately before going into STOP status is saved, and all devices are turned OFF. Not all modules are turned OFF if there are
modules with allocations as synchronous encoder/manual pulse generator inputs.
Inter-module synchronization processing time
When using the inter-module synchronization function with a Motion CPU, I/O refresh is performed when processing fixed
cycles in the Motion CPU, therefore processing time increases by the increased amount of motion operation time. The
following is a guideline for inter-module synchronization function processing time.
Inter-module synchronization function processing time = 5[s] + 0.7[s] Number of input points
*1
points
*1 Total number of I/O points (words) for modules that are part of inter-module synchronization and controlled by the Motion CPU
If an operation cycle over condition occurs, review the module subject to synchronization and the inter-module
synchronization cycle settings.
If not using the inter-module synchronization function, by accessing actual I/O (X/Y) at the Motion SFC fixedcycle event task, bus access occurs for each instruction, causing a drop in performance.
If using the inter-module synchronization function, an overhead occurs for the amount of processing time
mentioned above, and actual I/O (X/Y) are collectively refreshed, which can reduce motion operation time.
*1
+3[s] Number of output
42
1 MULTIPLE CPU SYSTEM
1.3 Data Communication Between CPU Modules in the Multiple CPU System
Special relay/special register
The special relays and special register relating to the inter-module synchronization function are shown below. Refer to the
following for details on special relays and special registers.
• Special relay(Page 426 Special Relays)
• Special register(Page 431 Special Registers)
DeviceNumber Name
Special relaySM480Motion operation cycle over flag
SM488Module synchronization error detection
Special registerSD480Motion CPU operation cycle over counter No.
Inter-module synchronization function in Multiple CPU configuration
■Operating specifications
Refer to relationship between fixed scan communication and inter-module synchronization for the motion operation cycle
relationship when fixed scan communication and inter-module synchronization are combined. (Page 47 Relationship
between fixed scan communication and inter-module synchronization)
The data flow when fixed scan communication and the inter-module synchronization function are combined and
communicating with the PLC CPU is as follows.
• When the Multiple CPU synchronous interrupt function and inter-module synchronization function are combined (PLC CPU
Motion CPU)
Two inter-module synchronization cycles are required for data acquired by the PLC CPU by the time it reaches the Motion
CPU via the CPU buffer memory (fixed scan communication area). When synchronizing output between CPUs, use a
function block for the inter-module synchronization function with a PLC CPU, and program taking into account the
difference in output timing (two cycles) between the PLC CPU control module and Motion CPU control module.
• When the Multiple CPU synchronous interrupt function and inter-module synchronization function are combined (Motion
CPU PLC CPU)
One inter-module synchronization cycle is required for data acquired by the Motion CPU by the time it reaches the PLC
CPU via the CPU buffer memory (fixed scan communication area). If synchronizing output between CPUs, adjust the
number of Motion SFC fixed-cycle event task consecutive transitions for the Motion CPU, and program taking into account
the difference in output timing (one cycle) between the PLC CPU control module and Motion CPU control module.
1
■Module access from other CPU
Even if the following settings are set in GX Works3, inputs (X) and outputs (Y) cannot be read from modules subject to the
inter-module synchronization function. Reading from the buffer memory is possible by direct access with a module access
device (U\G), FROM instruction, etc.
• When set to "import" at the [System Parameter] [Multiple CPU Setting] "Other PLC Control Module Setting" "I/O
Setting Outside Group".
■Aligning the inter-module synchronization function start timing at all CPUs, all stations
Specify the following settings in GX Works3.
• Set each module in [System Parameter] [Synchronization Setting within the Modules] "Select Synchronous Target
Unit between Unit" to "Synchronize".
• Set all CPUs in [System Parameter] [Multiple CPU Setting] "Operation Mode Setting" "Synchronous Startup
Setting" to "Synchronize".
1 MULTIPLE CPU SYSTEM
1.3 Data Communication Between CPU Modules in the Multiple CPU System
43
■Link between inter-module synchronization function and CPU fixed scan communication
Output and deceleration stop are performed for all modules,
including the target module of inter-module synchronization,
when the STOP operation is performed.
(Refresh is performed at END processing during STOP status)
As the module is in the STOP condition, the inter-module
synchronization interrupt program does not run
Inter-module synchronization
cycle
RUN to STOP
Inter-module synchronization cycle
ScanScan
Inter-module synchronization cycle
Synchronous
interrupt prgrm.
Normal control
program
END
Normal control
program
ENDCPU module
If performing key operation, RUN to STOP is recognized
when CPU module END processing is performed.
The execution of all programs, including inter-module
synchronous interrupt programs, is stopped with the
STOP operation.
When the following are set in GX Works3, CPU fixed scan communication operates based on the fixed scan interval set with
the inter-module synchronization function, enabling control with the timing of both inter-module synchronization function and
CPU fixed scan communication aligned.
• Set "Cooperate" in [System Parameter] [Multiple CPU Setting] "Communication Setting Between CPU" "Fixed Scan
Communication Function" "Fixed Scan Interval Setting of Fixed Scan Communication" "Fixed Scan Communication
Function and Inter-Module Synchronization Function".
If using both the fixed scan communication function and inter-module synchronization function, set "Fixed
Scan Communication Function and Inter-Module Synchronization Function" to "Cooperate". If set to "Not
cooperated", a moderate error (error code: 2222H) occurs, and the Motion CPU does not RUN.
Inter-module synchronization function operation when CPU operating status changes
■Operation at power supply ON, reset
• Normal startup (RUN)
If there are no setting errors in the parameters etc. after analyzing inter-module synchronization function related settings
(system parameters, CPU parameters, module parameters) written to the Motion CPU when turning the Multiple CPU
system power supply ON or when cancelling a reset, the inter-module synchronization function operates.
• Abnormal stop (STOP)
When parameter inconsistencies between Multiple CPUs or network parameter setting errors, etc. occur, or if module
hardware errors have occurred when analyzing inter-module synchronization function related settings (system parameters,
CPU parameters, module parameters) written to the Motion CPU when turning the Multiple CPU system power supply ON
or when cancelling a reset, the inter-module synchronization function does not operate, and a stop error occurs. When this
happens, I/O refresh is not performed.
■Operation at STOP (RUN STOP)
• Normal stop
I/O refresh continues even during a STOP condition. With a normal stop operation such as STOP, Motion CPU output is
turned OFF, and a stop command is issued to each module. Refer to the User's Manual for each module for details on
operation when the module stops normally.
44
1 MULTIPLE CPU SYSTEM
1.3 Data Communication Between CPU Modules in the Multiple CPU System
• Abnormal stop
RUN to STOP
Inter-module synchronization cycle
Motion SFC
normal task
CPU module
Motion operation/
Motion SFC
fixed-cycle event task
Motion operation
Inter-module
synchronization timing
(first stop)
Inter-module
synchronization timing
(second stop)
If a moderate error occurs, motion
operation continues (deceleration stop)
Output modules either hold or clear (stop)
external outputs depending on the specifications
for each module.
Inter-module synchronization cycle
Execution of the program is
stopped when a stop error
occurs.
The next operation is performed at the second inter-module synchronization cycle.
•Execution of the Motion SFC fixed cycle event task is started.
The next operation is performed at the first inter-module synchronization cycle.
•An “Inter-module synchronization command” is issued to the control module.
•The Motion SFC fixed-cycle event task is not executed.
Output is resumed in
accordance with the
transition to the RUN status.
If a Motion CPU major/moderate error occurs (including cases where settings ensure that Motion CPUs stop at a major/
moderate error at each module), Motion CPU output is turned OFF (there are also cases when output is retained
depending on the parameter settings), and a stop command is issued to the control module. I/O refresh continues even
during a STOP condition. Refer to the User's Manual for each module for details on operation when the module stops
abnormally.
1
■Operation at RUN (STOP RUN)
When the Motion CPU is changed from STOP to RUN, the Motion CPU issues an inter-module synchronization start
command to each module at the next inter-module synchronization cycle after STOP to RUN, and begins execution of the
Motion SFC fixed-cycle event task at the next inter-module synchronization cycle.
Please note that if system parameters related to the inter-module synchronization function are rewritten during STOP,
analysis is not performed at STOP to RUN, and therefore the module operates based on parameters before rewriting. The
changed parameters will be valid the next time the Multiple CPU system power supply is turned ON, or when reset.
1.3 Data Communication Between CPU Modules in the Multiple CPU System
1 MULTIPLE CPU SYSTEM
45
Error detection
The following error statuses are monitored at the Motion CPU.
■Execution time monitoring of the Motion CPU fixed-cycle processing
Regardless of whether the inter-module synchronization function is used, the Motion CPU fixed-cycle processing (intermodule synchronization I/O refresh, Motion SFC fixed-cycle event task, motion operation processing, etc.) execution time is
monitored. When Motion CPU fixed-cycle processing is not completed within the motion operation cycle, the number of times
that a Motion CPU fixed-cycle processing cycle error occurs is stored in "Motion CPU operation cycle over counter No.
(SD480)".
When "Over Execute Time (Operation Cycle Over)" in [CPU Parameter] "RAS Setting" "Error Detections Setting" is set
to "Detect", "Stop" or "Continue" can be selected for Motion CPU operation processing. When set to "Detect", a moderate
error (error code: 2600H) is output.
■Inter-module synchronization signal error monitor
Inter-module synchronization signal cycle errors are monitored, and a moderate error (error code: 2610H) occurs if there is an
error.
Motion CPU operation processing can bet set to "Stop" or "Continue" when an inter-module synchronization signal error
occurs with [CPU Parameter] "RAS Setting" "CPU Module Operation Setting at Error Detected".
When "Synchronous Interrupt Execution Interval Error (CPU module)" is set to "Continue", if the continuation
error is cancelled, the Motion CPU ERROR LED turns OFF but the error factor is not removed. Furthermore,
errors are not detected again even if a synchronous interrupt execution interval error reoccurs.
46
1 MULTIPLE CPU SYSTEM
1.3 Data Communication Between CPU Modules in the Multiple CPU System
Relationship between fixed scan communication and inter-
Fixed scan communication
timing
Motion operation
Inter-module
synchronization timing
Motion operation
Inter-module
synchronization timing
Fixed scan communication
timing
Motion operation
module synchronization
If using fixed scan communication and inter-module synchronization between multiple CPUs, the relationship between motion
operations and Motion SFC event task (fixed-cycle tasks) is as follows.
Inter-module synchronization function
Not used
Fixed scan
communication
function
*1 If inter-module synchronization function is set to not used, or if the Motion CPU is not the module subject to inter-module
synchronization.
*2 If the motion operation cycle and fixed scan communication cycle, or the inter-module synchronization cycle differ, the start timing with
longer cycle is always synchronized with the start timing with shorter cycle.
Not usedMotion CPU inherent cycleSynchronization with inter-module
UsedIf the "Fixed scan communication function
and inter-module synchronization function"
setting is "Not cooperated".
If the "Fixed scan communication function
and inter-module synchronization function "
setting is "Cooperate".
Synchronization with fixed scan
communication cycle
(timing example 1)
Setting not possible with Engineering
To ol
If a cycle (other than 0.222ms, 0.444ms, 0.888ms, 1.777ms, 3.555ms, 7.111ms) not compatible with Motion
CPUs is set for a fixed scan communication cycle or inter-module synchronization cycle, a moderate error
(error code: 2222H) occurs when the Multiple CPU system power supply is turned ON.
*1
*2
Used
synchronization cycle
(timing example 2)
Moderate error
(error code: 2222H)
Inter-module synchronization cycle
=synchronization with fixed scan
communication cycle
(timing example 3)
*2
*2
1
Timing Example 1
Timing Example 2
Timing Example 3
1 MULTIPLE CPU SYSTEM
1.3 Data Communication Between CPU Modules in the Multiple CPU System
47
Control instruction from PLC CPU to Motion CPU
Ex.
PLC CPU
Start request
D(P).SFCS instruction
Motion CPU
Motion SFC
Control can be instructed from the PLC CPU to the Motion CPU using the Motion dedicated PLC instructions listed in the table
below.
Refer to the following for the details of each instruction. (Control may not be instructed from one Motion CPU to another
Motion CPU.)
MELSEC iQ-R Motion controller Programming Manual (Program Design)
Instruction nameDescription
M(P).□D(P).□
M(P).SFCSD(P).SFCSStart request of the Motion SFC program (Program No. may be specified.)
M(P).SVSTD(P).SVSTStart request of the specified servo program
Basic settingSet the basic parameters of the Motion
Servo network settingSet the servo network type, and the
Limit output dataSet the output device and watch data for
High-speed input request signalSet the high-accuracy input request signal
Mark detectionSet the data for mark detection.Page 102
Manual pulse generator connection
setting
Vision system parameterSet the parameters used for connecting
Head moduleSet the parameters used for connecting
Refresh (END/I45 executing)
setting
Set the data required for connecting the
Set the Multiple CPU refresh (main cycle/
At STOP to
RUN/test
mode request
parameters for the base, slot, and module
settings and the Multiple CPU system
settings.
The system parameters for each CPU in
the Multiple CPU system must be
matched.
system, such as operation cycle and the
external forced stop input.
connected servo amplifiers, SSCNET/H
head modules, and sensing modules.
limit output.
used for advanced synchronous control or
mark detection.
Set the MELSEC iQ-R series CPU module common parameters used at the Multiple CPU system for the R series common
parameters.
52
2 COMMON PARAMETERS
2.2 R Series Common Parameter
System parameter
Window
Displayed items
These parameters are used to set the Multiple CPU system module configuration and common system items. The system
parameters for each CPU in the Multiple CPU system must be matched. There is no need to set system parameters because
the parameters set in the GX Works3 "Module Configuration" or "System Parameter" are read by MT Developer2. However,
the "Refresh (END) setting", "Refresh (I45 executing) setting", and "Q compatibility high-speed refresh setting" in the
communication setting between CPU can be set based on the Motion CPU settings.
[R Series Common Parameter] [System Parameter] [Multiple CPU Setting] "Communication Setting between
CPU"
2
ItemSetting rangeDefault
Multiple CPU
setting
*1 Q compatibility high-speed refresh setting
Setting rangeDefault
Up to 128 settings for each CPU
No. of points: 2 to 256
Start: Usable devices (X, Y, M, B, D, W, #)
Communication
setting between
CPU
Refresh (END) setting
Refresh (I45 executing) settingUp to 32 settings for each CPU
*1
Up to 32 settings for each CPU
No. of points: Refer to device list for allowable setting range.
(Page 75 Device List)
Start: Usable devices (X, Y, M, B, D, W, #)
No. of points: Refer to device list for allowable setting range.
(Page 75 Device List)
Start: Usable devices (X, Y, M, B, D, W, #)
No setting
No setting
No setting
2 COMMON PARAMETERS
2.2 R Series Common Parameter
53
Communication setting between CPU
■Refresh (END) setting
Set up to 32 settings for refresh device per CPU. Refer to device list for the range of devices that can be set. (Page 75
Device List)
• Q compatibility high-speed refresh setting
Set refresh between CPUs with up to of 128 settings for the entire Multiple CPU system. Set 2 points (words) or more each,
and no more than 256 points in total. Refer to device list for the range of devices that can be set. (Page 75 Device List)
■Refresh (I45 executing)
Set up to 32 settings for refresh device per CPU. Refer to device list for the range of devices that can be set. (Page 75
Device List)
• Refer to Multiple CPU refresh setting for details on the Refresh (at END) and Refresh (I45 executing)
settings. (Page 34 Multiple CPU refresh setting, Page 36 Multiple CPU refresh setting (Q
compatibility high-speed refresh setting))
• If using the CPU fixed scan communication function set at GX Works3, or the inter-module synchronization
function, set the cycles that can be set at the Motion CPU (0.222ms/0.444ms/0.888ms/1.777ms/3.555ms/
7.111ms) for the fixed scan communication cycle or inter-module synchronization cycle. A moderate error
(error code: 2222H) occurs if a cycle other than the above cycles is set. Refer to relationship between fixed
scan communication and inter-module synchronization for details on the relationship with motion operation
cycle settings. (Page 47 Relationship between fixed scan communication and inter-module
synchronization)
54
2 COMMON PARAMETERS
2.2 R Series Common Parameter
CPU parameter
Window
Displayed items
Set the operational details for the Motion CPU's functions. Also, regarding the overall system, settings for which verification
between CPUs is not necessary are also stored in these parameters.
[R Series Common Parameter] [Motion CPU Module] [CPU Parameter]
2
ItemSetting rangeDefault value
Name settingTitle settingUp to 32 charactersNo setting
Comment settingUp to 256 charactersNo setting
Operation
related setting
Device related
setting
RAS settingError detections
I/O assignment
setting
RUN contactX0 to X2FFFNo setting
Output mode setting of STOP to RUNOutput the output (Y) status before STOP/
Module synchronous settingSynchronize/Do not synchronizeSynchronize
Set the Motion CPU title (name, application). Up to 32 characters can be set.
■Comment setting
Set a comment for the title. Up to 256 characters can be set.
Operation related setting
■RUN contact
Set contacts used to control Motion CPU RUN signals. Only inputs (X) can be set.
Setting range
X0 to X2FFF
Refer to remote RUN/STOP for details on operation with RUN contacts. (Page 302 Remote RUN/STOP)
■Output mode setting of STOP to RUN
Set the output (Y) operation when switching from the STOP status to RUN status.
• Output the output (Y) status before STOP: If outputting the output (Y) status before STOP
• Clear the output (Y) (output 1 scan later) : If clearing the output (Y) status and outputting 1 scan later
■Module synchronous setting
Set whether or not to synchronize Motion CPU and intelligent function module startup.
• Synchronize: Synchronizes startup.
• Do not synchronize: Does not synchronize startup.
Device related setting
■Device points
Set the range for the number of points for each device.
Refer to device points setting for details on the number of devices setting. (Page 84 Device points setting)
Refer to device list for the range of devices that can be set. (Page 75 Device List)
Settable devices
M, B, F, D, W, #
■Latch setting
Set the device (M, B, F, D, W, #) latch range. Up to 32 devices can be set for the latch (1) and latch (2) latch range. Refer to
latch function for details on the latch range setting. (Page 86 Latch Function)
Refer to device list for the range of devices that can be set. (Page 75 Device List)
56
2 COMMON PARAMETERS
2.2 R Series Common Parameter
RAS setting
■Error detections setting
• Module verify error
Set whether to "Detect" or "Not detect" module comparison errors in cases such as when a different module is detected
when the Multiple CPU system power supply is ON.
• Over execute time of Motion CPU fixed scan process
• Over execute time (operation cycle over)
Set whether to "Detect" or "Not detect" Motion CPU fixed-cycle processing execution time over conditions.
• Over fixed scan data send section
Set whether to "Detect" or "Not detect" errors if Motion CPU fixed-cycle processing is not complete by the time fixed scan data communication to another
CPU starts.
■CPU module operation setting at error detected
• Instruction execution error module I/O No. specification incorrect
Set whether to "Stop" or "Continue" Motion CPU processing if a module I/O No. specification incorrect error is detected.
• Memory card access error
Set whether to "Stop" or "Continue" Motion CPU processing if a memory card access error is detected.
• Module verify error
Set whether to "Stop" or "Continue" Motion CPU processing if a module comparison error is detected.
• Over execute time of Motion CPU fixed scan process
• Over execute time (operation cycle over)
Set whether to "Stop" or "Continue" Motion CPU processing if a Motion CPU fixed-cycle processing operation cycle over condition is detected.
• Over fixed scan data send section
Set whether to "Stop" or "Continue" Motion CPU processing if a Motion CPU fixed-cycle processing fixed scan data communication section over condition is
detected.
• Synchronous interrupt execution interval error (CPU module)
Set whether to "Stop" or "Continue" Motion CPU processing if the Motion CPU detects a synchronous signal error.
2
■Event history setting
• Save destination
Set the storage destination for event history files.
• SD memory card
• Standard ROM
• Set save volume of per file
Set the saving volume per event history file.
Setting range
1 to 2048[k bytes]
I/O assignment setting
■CPU module operation setting at error detected
Set the CPU module operation mode during error for slot 0 to slot 63.
• Major: Stop, Moderate: Stop
• Major: Stop, Moderate: Continue
• Major: Continue, Moderate: Continue
2 COMMON PARAMETERS
2.2 R Series Common Parameter
57
Module Parameter
Window
Displayed items
Specify local node settings and security in order to communicate with external devices with the Motion CPU PERIPHERAL I/F.
[R Series Common Parameter] [Motion CPU Module] [Module Parameter]
ItemSetting rangeDefault value
Local node
setting
SecurityIP filter settingIP filter use or notUse/Not usedNot used
IP address
setting
Disable direct connection to MELSOFTEnable/DisableEnable
Do not respond to search for CPU module on
network
IP address0.0.0.1 to 223.255.255.254192.168.3.39
Subnet mask0.0.0.1 to 255.255.255.254/blankNo setting
Default gateway0.0.0.1 to 255.255.255.254/blankNo setting
IP filter settingUp to 32 settingsNo setting
Response (no check)/Not responded (check)Response (no check)
Local node setting
■IP address setting
• IP address
Set the local node IP address.
• Subnet mask
Set the IP address in order to set which upper bit to use for the network address to identify the network.
• Default gateway
Set the IP address for the passing device (default gateway) used to access the network device to which the local node
belongs.
Security
■IP filter setting
Data set at GX Works3 is read by MT Developer2, and therefore there is no need to set the IP filter.
■Disable direct connection to MELSOFT
Set whether to "Enable" or "Disable" a direct connection (simple connection) with the Engineering Tool.
■Do not respond to search for CPU module on network
Set whether to "Respond" or "Not respond" to an Engineering Tool network CPU module search.
58
2 COMMON PARAMETERS
2.2 R Series Common Parameter
2.3Motion CPU Common Parameter
The Motion CPU common parameters are used to specify Motion CPU basic settings, the servo network configuration, and all
auxiliary functions. A list of Motion CPU common parameter settings is shown in the table below.
Not used/2 times/4 times/8 timesNot usedSet the magnification for the
Standard ROM write protection/read protection/
Standard ROM write protection/read permission/
Standard ROM write permission/read permission/
Boot operation file invalid
<Communication type "SSCNET/H" use>
MR-J4(W)-B(-RJ)/MR-J4-B-LL/FR-A800-1/FRA800-2/MR-MT2010/LJ72MS15/VC (CKD NIKKI
DENSO)/VPH (CKD NIKKI DENSO)/STEP AZ
(ORIENTAL MOTOR)/5-Phase ST (ORIENTAL
MOTOR)/IAI Driver for Electric Actuator (IAI)
Station No.d <Operation mode "Axis mode (MR-MT2200)" use>
1 station occupied mode/Axis mode (MR-MT2200) No settingSet the model name, axis No.
<Operation mode "1 station occupied mode" use>
0 to 4
<Operation mode "Axis mode (MR-MT2200)" use>
1 to 4
<Operation mode "1 station occupied mode" use>
MR-MT2100/MR-MT2200/MR-MT-2300/MRMT2400
R64MTCPU: Up to 2 lines, 64 axes
R32MTCPU: Up to 2 lines, 32 axes
R16MTCPU: Up to 1 line, 16 axes
1 to 64
R64MTCPU: 2 lines (Up to 8 modules)
R32MTCPU: 2 lines (Up to 8 modules)
R16MTCPU: 1 line (Up to 4 modules)
and other details for the
No setting
No setting
No setting
No setting
No setting
No settingPage 199 Parameter
servo amplifiers.
data setting
input request signal setting
setting
generator connection setting
Communication Line Setting
Program Operation Setting
setting of SSCNETIII/H head
module
Page 207 Parameter
setting of sensing module
*1 This can only be set when "MR-J4(W)-B(-RJ)" is selected for the amplifier model.
*2 This is the RIO-axis when "LJ72MS15" or "MR-MT2010 (operation mode: 1 station occupied mode)" is selected for the amplifier model.
*3 This can only be set when "MR-MT2010" is selected for the amplifier model.
60
2 COMMON PARAMETERS
2.3 Motion CPU Common Parameter
Basic setting
Window
Displayed items
The following explains each item to be set in basic setting.
G-code control settingNot used/Use line 1 only/Use line 1 and line 2Not used
InstructionNot used/UsedNot used
DeviceBit deviceNo setting
Not used/2 times/4 times/8 timesNot used
Standard ROM write permission/read protection/
Standard ROM write protection/read protection/
Standard ROM write protection/read permission/
Standard ROM write permission/read permission/Boot operation file invalid
Standard ROM write
permission/read protection
Operation cycle
• Set the of motion operation cycle (cycles at which a position command is computed and sent to the servo amplifier).
• The default value is "Default Setting". The operation cycle is set according to the table below based on the number of axes
for servo amplifier set in the servo network setting.
Number of axesOperation cycle setting
R64MTCPUR32MTCPUR16MTCPU
1 to 2 axes1 to 2 axes1 to 2 axes0.222ms
3 to 8 axes3 to 8 axes3 to 8 axes0.444ms
9 to 20 axes9 to 20 axes9 to 16 axes0.888ms
21 to 38 axes21 to 32 axes1.777ms
39 to 64 axes3.555ms
• If the duration of motion operation has exceeded the operation cycle, the "[St.1046] Operation cycle over flag (R: M30054/
Q: M2054)" turns ON. (Page 370 Processing time monitor and check)
• The number of stations capable of connecting to the SSCNET(/H) 1 line is limited based on the motion operation cycle.
Refer to the following for details on restrictions based on the communication types and operation cycles used.
MELSEC iQ-R Motion Controller User's Manual
2 COMMON PARAMETERS
2.3 Motion CPU Common Parameter
61
Low speed operation cycle magnification setting
Set the magnification of the operation cycle for using the mixed operation cycle function.
Refer to mixed operation cycle function for details of mixed operation cycle function (Page 160 Mixed Operation Cycle
Function)
SettingDetails
Not usedNot use the low speed operation cycle.
2 timesThe low speed operation cycle is executed at intervals 2 times the operation cycles.
4 timesThe low speed operation cycle is executed at intervals 4 times the operation cycles.
8 timesThe low speed operation cycle is executed at intervals 8 times the operation cycles.
The setting information of the low speed motion operation cycle when the Multiple CPU system power supply
is turned ON is stored in the following special registers.
• Low speed operation cycle control axis information (SD732 to SD735)
• Command generation axis low speed operation cycle control axis information (SD736 to SD739)
Refer to special registers for details of special registers (Page 431 Special Registers)
Forced stop input setting
Set the bit device used for the forced stop to perform a forced stop for all servo amplifier axes together. Refer to device list for
the range of bit devices that can be set. (Page 75 Device List)
No default value has been set. The set bit device is designated as contact B and performs the following control in response to
ON/OFF of the device.
Bit deviceDetails
Bit device is turned OFFForced stop input is ON (forced stop)
Bit device is turned ONForced stop input is OFF (forced stop is released.)
File transmission setting during booting
Set the operation for performing the file transmission at boot function.
Refer to file transmission at boot function for details of the file transmission at boot function. (Page 118 File Transmission
at Boot Function)
The file transmission at boot settings from the last time power supply was shutoff are valid when the power supply of the
Multiple CPU system is turned ON.
SettingDetails
Standard ROM write permission/read
protection
Standard ROM write protection/read
protection
Standard ROM write protection/read
permission
Standard ROM write permission/read
protection
Boot operation file invalidFile transmission at boot function cannot be used.
The file transmission at boot settings at the time of when Multiple CPU system power supply is turned ON are
stored in "Boot file transfer information (SD509)".
Refer to special registers for details on special registers. (Page 431 Special Registers)
• Moving or copying to the standard ROM is permitted for files saved outside of the standard ROM.
• Moving or copying out of the standard ROM is protected for files saved in the standard ROM.
• Moving or copying to the standard ROM is protected for files saved outside of the standard ROM.
• Moving or copying out of the standard ROM is protected for files saved in the standard ROM.
• Moving or copying to the standard ROM is protected for files saved outside of the standard ROM.
• Moving or copying out of the standard ROM is permitted for files saved in the standard ROM.
• Moving or copying to the standard ROM is permitted for files saved outside of the standard ROM.
• Moving or copying out of the standard ROM is permitted for files saved in the standard ROM.
62
2 COMMON PARAMETERS
2.3 Motion CPU Common Parameter
Machine control setting
Set when performing machine control.
Refer to the following for details on machine control.
MELSEC iQ-R Motion Controller Programming Manual (Machine Control).
SettingDetails
Not used• Machine control is disabled.
• Machine common parameters, and machine parameters are not read.
Used• Machine control is enabled.
• When machine control parameters (machine common parameters, machine parameters) exist, they are read and
machine control is performed.
• When machine control parameters do not exist, machine control is not performed.
The machine control settings at the time of when Multiple CPU system power supply is turned ON are stored
in "Machine control setting information (SD519)".
Refer to special registers for details on special registers. (Page 431 Special Registers)
G-code control setting
Set when performing G-code control.
Add-on library must be installed to perform G-code control.
Refer to the following for details on G-code control.
MELSEC iQ-R Motion Controller Programming Manual (G-Code Control).
SettingDetails
Not used• G-code control is disabled.
• The G-code add-on library is not executed, and G-code control parameters are not read.
Use line 1 only• When the G-code control add-on library is installed, G-code control is enabled. (When the G-code control add-on
Use line 1 and line 2
library is not installed, a moderate error (error code: 30FFH) occurs.)
• If the parameters for G-code control (G-code control system parameters, G-code control axis parameters, and Gcode control work parameters) are written in the Motion CPU, the parameters are read and G-code control is
performed.
• When G-code control parameters do not exist, a moderate error (error code: 2200H) occurs.
2
The G-code control enable information at the time of when Multiple CPU system power supply is turned ON is
stored in "G-code control enable information (SD518)".
Refer to special registers for details on special registers. (Page 431 Special Registers)
2 COMMON PARAMETERS
2.3 Motion CPU Common Parameter
63
Servo network setting
Window
Displayed items
The following explains each item to be set in servo network setting.
[Motion CPU Common Parameter] [Servo network setting]
ItemSetting range
SSCNET settingPage 65 SSCNET setting
Amplifier settingPage 66 Amplifier setting
64
2 COMMON PARAMETERS
2.3 Motion CPU Common Parameter
SSCNET setting
Window
Displayed items
[Motion CPU Common Parameter] [Servo network setting] [SSCNET Setting]
ItemSetting rangeDefault value
Communication typeSSCNET/H/SSCNETSSCNET/H
2
■Communication type
Set the communication type to communicate with the servo amplifier for every line.
•SSCNET/H: MR-J4(W)-B
•SSCNET: MR-J3(W)-B
2 COMMON PARAMETERS
2.3 Motion CPU Common Parameter
65
Amplifier setting
Window
Displayed items
[Motion CPU Common Parameter] [Servo network setting] [Amplifier Setting]
Allowable travel during Power-Off<Communication type "SSCNET" use>
Sensing
module
information
Amplifier model<Communication type "SSCNET/H" use>
MR-J4(W)-B(-RJ)/MR-J4-B-LL/FR-A800-1/FR-A800-2/MR-MT2010/LJ72MS15/
VC (CKD NIKKI DENSO)/VPH (CKD NIKKI DENSO)/STEP AZ (ORIENTAL
MOTOR)/5-Phase ST (ORIENTAL MOTOR)/IAI Driver for Electric Actuator (IAI)
Station No.d<Operation mode "Axis mode (MR-MT2200)" use>
R64MTCPU: Up to 2 lines, 64 axes
R32MTCPU: Up to 2 lines, 32 axes
R16MTCPU: Up to 1 line, 16 axes
1 to 64
No setting
No setting
No setting
*1 This can only be set when "MR-J4(W)-B(-RJ)" is selected for the amplifier model.
*2 This is the RIO-axis when "LJ72MS15" or "MR-MT2010 (operation mode: 1 station occupied mode)" is selected for the amplifier model.
*3 This can only be set when "MR-MT2010" is selected for the amplifier model.
■Amplifier information
Set the amplifier model and amplifier operation mode.
• Amplifier model
Communication typeAmplifier model
When "SSCNET/H" is set• MR-J4(W)-B(-RJ)
When "SSCNET" is set• MR-J3(W)-B
• MR-J4-B-LL
•FR-A800-1
•FR-A800-2
• MR-MT2010
• LJ72MS15
•VC (CKD NIKKI DENSO)
• VPH (CKD NIKKI DENSO)
• STEP AZ (ORIENTAL MOTOR)
• 5-Phase ST (ORIENTAL MOTOR)
• IAI Driver for Electric Actuator (IAI)
• MR-J3-B(S) fully closed
• MR-J3(W)-B linear
• MR-J3(W)-B DD motor
• MR-MT1200
•FR-A700
•FR-A700-NA
•FR-A700-EC
• FR-A700-CHT
•VC (CKD NIKKI DENSO)
• VPH (CKD NIKKI DENSO)
2
• Amplifier operation mode
Set the amplifier operation mode only when "MR-J4(W)-B(-RJ)" is selected for the amplifier model.
Amplifier modelAmplifier operation mode
MR-J4(W)-B(-RJ) • Standard
• Fully closed
• Linear
• DD motor
• Use as virtual servo amplifier
Set whether to use/not use as virtual servo amplifier only when "MR-J4(W)-B(-RJ)" is selected for the amplifier model.
■Axis information
Set the axis No., station No., and axis label used to identify the servo amplifier.
• Axis No.
Set the axis No. for each line used by the Motion CPU to identify the servo amplifier.
Motion CPUAxis No. setting range
R64MTCPU1 to 64
R32MTCPU1 to 32
R16MTCPU1 to 16
2 COMMON PARAMETERS
2.3 Motion CPU Common Parameter
67
• RIO Axis No.
Set the RIO axis No. used by the Motion CPU to identify the remote I/O only when "LJ72MS15", or "MR-MT2010 (operation
mode: 1 station occupied mode)" is selected for the amplifier model.
Motion CPUAxis No. setting range
R64MTCPU601 to 608
R32MTCPU601 to 608
R16MTCPU601 to 604
• Station No. d
Set the station No. set with the servo amplifier rotary switch for each line.
Communication typeStation No. setting range
When "SSCNET/H" is set1 to 64
When "SSCNET" is set1 to 16
• Axis label/RIO axis label
Set an axis label of up to 32 characters for the set axis/RIO axis. This is the RIO axis label when "LJ72MS15" is selected for
the amplifier model. When "MR-MT2010" is selected for the amplifier model, the RIO axis label is set if operation mode is "1
station occupied mode", and axis label is set if operation mode is "Axis mode (MR-MT2200)".
■External synchronous encoder input
Set external synchronous encoder input when "MR-J4(W)-B(-RJ)" is selected for the amplifier model.
■Input filter setting
Set the signal input filter time for the servo amplifier with external input signal.
■Operation cycle selection
Set the cycle for operation control of the applicable axes.
SettingDetails
Operation cycleThe applicable axis operates at the operation cycle.
Low speed operation cycleThe applicable axis operates at the low speed operation cycle.
Refer to mixed operation cycle function for details of low speed operation cycle. (Page 160 Mixed Operation Cycle
Function)
When [Motion CPU Common Parameter] [Basic Setting] "Low Speed Operation Cycle Magnification
Setting" is set to "Not Used", this setting is ignored.
■Allowable travel during power off
Set only when "MR-J3(W)-B" or "MR-J3-B(S) fully closed" is selected for the amplifier model when communication type
"SSCNET" is selected. If the motor travel distance when the servo amplifier control circuit power supply is OFF exceeds the
permissible travel amount when power supply off, a warning (error code: 093FH) occurs.
Setting range
0 to 8191
68
2 COMMON PARAMETERS
2.3 Motion CPU Common Parameter
■Sensing module information
Set the sensing module operation mode and extension module connection number when "MR-MT2010" is selected for the
amplifier model.
• Operation mode
Set the sensing module operation mode.
Amplifier modelOperation mode
MR-MT2010• 1 station occupied mode
• Axis mode (MR-MT2200)
• Extension module connection number
Set the number of sensing extension modules connected when "1 station occupied mode" is selected for the operation
mode. When using the sensing SSCNET/H head module only, set "0",
Setting range
0 to 4
• Used axis number
Set the used axis number of the sensing pulse I/O modules to control the axes when "Axis mode (MR-MT2200)" is selected
for the operation mode.
Setting range
1 to 4
■Extension module setting information
Set the extension modules for the number of modules set in extension module connection number when "MR-MT2010" is
selected for the amplifier model, and "1 station occupied mode" is selected for operation mode.
ItemExtension module type
No.1 type to No.4 type• MR-MT2100
• MR-MT2200
• MR-MT2300
• MR-MT2400
2
■MR-MT2200 axis information
Set the axis No. and station No. for identifying the sensing pulse I/O module to control the axes when "MR-MT2010" is
selected for the amplifier model, and "Axis mode (MR-MT2200)" is selected for the operation mode.
• Axis No.
Set the axis No. that the Motion CPU uses to identify the sensing pulse I/O module.
Motion CPUAxis No. setting range
R64MTCPU1 to 64
R32MTCPU1 to 32
R16MTCPU1 to 16
• Station No.
Set the station No. set by the rotary switch of the sensing module.
Station No. setting range
1 to 64
2 COMMON PARAMETERS
2.3 Motion CPU Common Parameter
69
Manual pulse generator connection setting
Window
Displayed items
This section describes the manual pulse generator connection setting items.
[Motion CPU Common Parameter] [Manual Pulse Generator Connection Setting]
ItemSetting rangeDefault value
Valid setting0: Invalid/1: Valid0: Invalid
I/O No.H0000 to H0FF0No setting
CH No.1 to 2No setting
Valid setting
Enable/disable the manual pulse generator (P1 to P3).
Setting rangeDetails
0: InvalidDoes not connect the manual pulse generator (P1 to P3).
1: ValidConnects the manual pulse generator (P1 to P3).
I/O No.
Set the start I/O No. for the high-speed counter module used to connect the manual pulse generator. Set the high-speed
counter module as the Motion CPU management module in the GX Works3 "System Parameters" "I/O Assignment
Setting".
Setting range
H0000 to H0FF0
CH No.
Set the channel number for the high-speed counter module used to connect the manual pulse generator. The same channel
number for the same module can be set to overlap in manual pulse generator (P1 to P3).
Setting range
1 to 2
70
2 COMMON PARAMETERS
2.3 Motion CPU Common Parameter
Refer to the following for details on the manual pulse generator.
MELSEC iQ-R Motion Controller Programming Manual (Positioning Control)
2.4Motion CPU Operating Status
This section describes the Motion CPU operating status and details of all processes. The operation for when the Motion CPU
is started with the rotary switch set to "0: Normal mode" are shown below. Refer to each function for details on operation when
started with rotary switch set to other than "0: Normal mode".
Initial processing
Initial processing the pre-processing used to start Motion CPU control. Initial processing is performed once only when the
CPU module status is one of those shown in the table below. When initial processing is complete, the Motion CPU transitions
to the operating status based on "[Rq.1120] PLC ready flag (R: M30000/Q: M2000)". Details of initial process are shown in the
table below.
: Execute, : Don't execute
Initial processing itemMotion CPU status
When Multiple CPU
system power
supply turned ON
Executing file transmission at boot
R series common
parameters reading and
check
Motion CPU common
Parameter reading
Motion control
Parameter reading
System configuration check
I/O module, intelligent function module initialization
Initialization of devices outside latch range
Motion SFC program, servo program reading
System parameter
CPU parameter
Module parameter
Basic setting
*1
Servo network setting
Limit switch output setting
High-speed input request signal setting
Mark detection setting
Manual pulse generator connection setting
Vision system parameter
Head module setting
Refresh (END/I45 executing) setting
Axis setting
*1
parameter
Servo parameter
Parameter block
Synchronous
control parameter
Machine control
parameter
G-code control
parameter
Fixed parameter
Home position return data
JOG operation data
External signal parameter
Expansion parameter
Speed-torque control data
Optional data monitor setting
Pressure control data
Override data
Vibration suppression command
filter data
Input axis parameter
Synchronous parameter
Machine common parameter
Machine parameter
G-code control system parameter
G-code control axis parameter
G-code control work parameter
When resetting
Multiple CPU
system
At STOP to RUN/
When making test
mode request
2
2 COMMON PARAMETERS
2.4 Motion CPU Operating Status
71
Initial processing itemMotion CPU status
When Multiple CPU
system power
supply turned ON
Cam data reading
*1 Shows the timing at which data is read from the settings file. Refer to each function for details on the indirect setting data read cycle and
data check timing.
When resetting
Multiple CPU
system
At STOP to RUN/
When making test
mode request
Parameter and program content is read from a file and processed as follows until used for control.
(1) Data (programs or parameters) is read from a file.
(2) The read data is extracted to standard memory. (A consistency check is performed if necessary.)
(3) Indirectly set parameter values are read from the device.
(4) The data content is checked. (Value range check, etc.)
(5) Data is then used for control.
The timing of the above steps (1) to (5) may differ depending on the processing. The parameter and program
read processing in the table above indicates the timing for steps (1) and (2). Refer to each function for details
on the timing of steps (3) to (5).
72
2 COMMON PARAMETERS
2.4 Motion CPU Operating Status
RUN/STOP status control
STOP/RUN/test mode
When initial processing is complete, the Motion CPU status will be "STOP status", "RUN status", or "Test mode status"
depending on the "[Rq.1120] PLC ready flag (R: M30000/Q: M2000)" and existence of a test mode request from MT
Developer2, and the respective control will be performed.
Motion CPU processing will be as follows for each operating status.
: Possible, : Possible (restrictions apply), : Not possible
Positioning control, home position return, JOG
operation, manual pulse generator operation,
speed-torque control
Motion SFC program execution
Motion dedicated command accept
Synchronous encoder monitor
Program/parameter reading
Program/parameter writing
Online change
Device monitor, device test
Transition to test mode
Remote operation request
Latch clear
Memory formatting
Disconnect/disconnect function
Amplifier-less operation function
Servo parameter transfer/read/change
Optional data monitor function
Mark detection function
Servo ON/OFF
Follow-up function
Digital oscilloscope (online/offline)
*2
*2
*2
*2
*2
*2
*2
*2
*2
*2
*2
*2
*2
*2
*2
*2
*2
*2
*2
*1
*5
*6
mode
*3
*4
*5
2
*1 Refer to "[Rq.1120] PLC ready flag (R: M30000/Q: M2000)" ON OFF (RUN STOP) processing. (Page 74 "[Rq.1120] PLC
ready flag (R: M30000/Q: M2000)" ON -> OFF (RUN -> STOP) processing)
*2 Execution may not be possible if an error occurs.
*3 Only transmission refresh is performed.
*4 Refer to test mode for functions that can be used from the MT Developer2 test screen. (Page 328 Test Mode)
*5 Only the M(P).CHGA/D(P).CHGA/M(P).CHGT/D(P).CHGT/D(P).DDWR/M(P).DDWR/D(P).DDRD/M(P).DDRD/M(P).BITWR/
D(P).BITWR commands are possible.
*6 The servo system can be turned ON, however, axes cannot be moved. Furthermore, only position control mode is possible.
2 COMMON PARAMETERS
2.4 Motion CPU Operating Status
73
"[Rq.1120] PLC ready flag (R: M30000/Q: M2000)" OFF -> ON (STOP -> RUN) processing
OFF
ON
[Rq.1120] PLC ready flag
(R: M30000/Q: M2000)
t
V
OFF
ON
PCPU READY
complete flag (SM500)
Positioning start
Clear a M-code
Deceleration stop
PCPU READY complete flag
(SM500) does not turn on because
during deceleration.
■Processing details
1. The Y device content is initialized based on the "Output mode setting of STOP to RUN" (Refer to Page 55 CPU
parameter) operation.
2. All parameters are read from a file. (Refer to Page 71 Initial processing)
3. Clear the M-code storage area of all axes.
4. The "PCPU READY complete flag (SM500)" is turned ON when all of the above steps are complete. (Motion SFC
program execution is possible. The execution of automatically started Motion SFC programs is started from the
beginning.)
• If there is a starting axis, an error occurs, and the processing above is not executed.
• The processing above is not executed during the test mode. It is executed when the test mode is cancelled and "[Rq.1120]
PLC ready flag (R: M30000/Q: M2000)" is ON.
Refer to the following for details on the processing time when the "[Rq.1120] PLC ready flag (R: M30000/Q:
M2000)" turns from OFF to ON.
MELSEC iQ-R Motion Controller Programming Manual (Positioning Control)
"[Rq.1120] PLC ready flag (R: M30000/Q: M2000)" ON -> OFF (RUN -> STOP) processing
■Processing details
1. Deceleration stop of the starting axis.
2. Execution of the Motion SFC program is stopped. (The program currently being executed stops at the position where
only the set number of consecutive transitions has been executed.)
3. All Y devices are turned OFF. If the "Output mode setting of STOP to RUN" (Refer to Page 55 CPU parameter) is
"output the output (Y) status before STOP", the status prior to clearing is saved. However, the high-speed counter
module Y device set for the synchronous encoder or manual pulse generator input does not turn OFF even if the status
is STOP.
4. The "PCPU READY complete flag (SM500)" is turned OFF.
• Refer to the following for details on the processing time when the "[Rq.1120] PLC ready flag (R: M30000/Q:
M2000)" turns from ON to OFF.
MELSEC iQ-R Motion Controller Programming Manual (Positioning Control)
• Axis stoppage processing when transitioning from the RUN status to STOP status may differ depending on
the cause of the stoppage. Refer to the following for details.
MELSEC iQ-R Motion Controller Programming Manual (Positioning Control)
74
2 COMMON PARAMETERS
2.4 Motion CPU Operating Status
3DEVICES
This section describes the devices used with the Motion CPU.
3.1Device List
The following is a list of devices that can be used with the Motion CPU.
: Setting possible, : Setting not possible
CategoryTypeDevice nameDevice rangeWord device Bit
No. of pointsSetting rangeNotation
User deviceBit deviceInput (X)12288 points (12k)
Output (Y)12288 points (12k)
Internal relay (M)49152 points (48k)
Link relay (B)8192 points (8k)
Annunciator (F)2048 points (2k)
Word deviceData register (D)57344 points (56k)
Link register (W)8192 points (8k)
Motion register (#)12288 points (12k)
System device Bit deviceSpecial relay (SM)4096 pointsSM0 to SM4095Decimal
Word deviceSpecial register (SD)4096 pointsSD0 to SD4095Decimal
CPU buffer
memory
access device
Module
access device
Constant16-bit integer
Word deviceCPU buffer memory
Word deviceModule access device Up to 268435456
type
32-bit integer
type
64-bit
floating-point
type
access device
CPU buffer memory
access device
(fixed scan
communication area)
Decimal notationK-32768 to K32767
Hexadecimal notationH0 to HFFFF
Decimal notationK-2147483648L to K2147483647L
Hexadecimal notationH0L to HFFFFFFFFL
Decimal notationK-1.79E+308 to K-2.23E-308
Up to 2097152 (2M)U3E\G0 to
Up to 12288 points
*8
(12k)
points (256M)
K0.0
K2.23E-308 to K1.79E+308
*3
X0 to X2FFFHexadecimal
*3
Y0 to Y2FFFHexadecimal
*4*5
M0 to M49151Decimal
*4
B0 to B1FFFHexadecimal
*4
F0 to F2047Decimal
*4*5
D0 to D57343Decimal
*4
W0 to W1FFFHexadecimal
*4
#0 to #12287Decimal
Decimal
U3E\G2097151
U3E\HG0 to
U3E\HG12287
U\G0 to
UG268435455
*6*7
Decimal
*6
Decimal
*9
designation
Latch
*1
setting
*2
3
*1 The description for word device bit designation is "Device No. n (n = bit No.: 0 to F)".
(Example) "W100.A" indicates W100 bit A.
*2 Refer to latch function for details on the latch function. (Page 86 Latch Function)
*3 Up to 4096 X/Y points set in the GX Works3 [System Parameter] [I/O Assignment Setting] can be used as actual input/actual output.
(By specifying I/O settings other than group settings, the I/O status for management of other CPUs can be read.)
*4 The total number of devices for the number of devices/latch setting can be changed within 128k words.(Page 84 Device points
setting)
*5 Includes dedicated positioning devices.
*6 indicates the CPU No. (CPU No.1: 0, CPU No.2: 1, CPU No.3: 2, CPU No.4: 3).
*7 This is the usage range at the Motion CPU. The maximum number of CPU buffer memory access devices will differ depending on the
CPU module.
*8 The total number for each unit can be changed within 24k words in the GX Works3 [System Parameter] [Multiple CPU Setting].
However, the maximum number per CPU is 12288.
*9 indicates 00H to FFH (module I/O No. /10H). The accessible range differs depending on the module. Refer to the manual for the
module being used.
3 DEVICES
3.1 Device List
75
[Device writing precautions]
Do not write to the following devices from the Motion CPU. Writing will be ignored, or a malfunction will occur.
• Actual input devices, or I/O number that is not allocated to any module and is within range of the maximum
I/O number for the modules being used, from inputs (X).
• Actual output devices from outputs (Y) for which other CPU management performed.
• Other CPU buffer memory access devices (U3E\G, U3E\HG).
• Other CPU management module access devices (U\G).
• Devices updated at the module side from module access devices (U\G).
• Devices other than user set devices from special relays (SM), special registers (SD).
• Monitor signals from internal relay (M), data register (D), Motion register (#) dedicated positioning devices.
76
3 DEVICES
3.1 Device List
Devices that can be used with each function
The following is a list of word and bit devices that can be used with each Motion CPU function.
: Setting possible, : Setting possible (restrictions apply), : Setting not possible
ItemDevice typeSystem
device
compatibility
(SM/SD)
Multiple
CPU refresh
setting
ParameterR series common
First device
parameter
Module CPU common
parameter
Motion
control
parameter
Axis setting
parameter
Synchronous
control
parameter
Machine
control
parameter
Bit
device
Word
device Bit
Word
device
designation
*1
CPU refresh setting END
I45 executing
Main cycle/operation cycle
CPU parameterRUN contact
Basic settingsForced stop input setting
Limit switch output
setting
High-speed input
request signal
setting
Mark detection
setting
Vision system
parameter
Head module
setting
Home position
return data
External signal
parameter
Expansion
parameter
Speed-torque
control parameter
Optional data
monitor
Pressure control
data
Override dataWord device setting item
Vibration
suppression
command filter data
Command
generation axis
parameter
Multiple CPU
advanced
synchronous
control setting
Machine common
meter
ara
p
Machine parameter Option setting A
Bit device setting item
Word device setting item
Bit device setting item
Word device setting item
Bit device setting item
Word device setting item
Bit device setting item
Word device setting item
CPU refresh device setting
(Input: RX, RWr/Output:
RY, RWw)
Motion SFC start request from the PLC CPU to
the Motion CPU (M(P).SFCS/D(P).SFCS)
Servo program start request from the PLC CPU to
the Motion CPU (M(P).SVST/D(P).SVST)
Direct positioning start instruction from the PLC
CPU to the Motion CPU (M(P).SVSTD/
D(P).SVSTD)
Current value change instruction from the PLC
CPU to the Motion CPU (M(P).CHGA/
D(P).CHGA)
Current value change instruction of command
generation axis from the PLC CPU to the Motion
CPU (M(P).CHGAS/D(P)CHGAS)
Speed change instruction from the PLC CPU to
the Motion CPU (M(P).CHGV/D(P).CHGV)
Speed change instruction of command generation
axis from the PLC CPU to the Motion CPU
(M(P).CHGVS/D(P).CHGVS)
Torque limit value change request instruction from
the PLC CPU to the Motion CPU (M(P).CHGT/
D(P).CHGT)
Machine program operation start request from the
PLC CPU to the Motion CPU (M(P).MCNST/
D(P).MCNST)
Device writing to Motion CPU(M(P).DDWR/
D(P).DDWR)
Reading from Motion CPU device (M(P).DDRD/
D(P).DDRD)
Write bit device to the Motion CPU (M(P).BITWR/
D(P).BITWR)
Interrupt instruction to the other CPU (M(P).GINT/
D(P).GINT)
Positioning dataBit device setting item
program (F/FS)/
transition program
(G)
WAIT ON/WAIT OFF
Bit device setting item
Word device setting item
Word device setting item
Word device setting item
Bit device setting item
Word device setting item
Bit
device
Word
device Bit
Word
device
designation
*4
*4
*1
*2
*2
*2
*2
*2
*2
*2
*2
*2
*2
*2
*2
*2
*2
*2
*5
*1 Annunciators (F) cannot be set.
*2 CPU buffer memory access devices (U3E\G, U3E\HG) and module access devices (U\G) cannot be set.
*3 Only inputs (X) can be set.
*4 Inputs (X) and outputs (Y) cannot be set.
*5 Setting is not possible for commands (BMOV, FMOV, TO, RTO, RFROM, DIN, DOUT) in which bit data is used as 16 point units or 32
point units.
78
3 DEVICES
3.1 Device List
3.2User Device
This section describes user devices used with the Motion CPU.
Input (X)
These are commands or data given to the Motion CPU with external devices such as buttons, switches, limit switches, and
digital switches.
Output (Y)
These are program control results output to external signal lamps, digital displays, electromagnetic contactors, and solenoids,
etc.
Internal relay (M)
These are devices intended for use as auxiliary relays inside the Motion CPU. When the following operations are performed,
all internal relays turn OFF.
• Multiple CPU system power OFF ON
• Multiple CPU system reset
• Latch clear
Some internal relays (M) are used as positioning signals.
Refer to the following for details.
MELSEC iQ-R Motion Controller Programming Manual (Positioning Control)
Link relay (B)
These are devices intended for use as auxiliary relays inside the Motion CPU. Link relays perform the same role as internal
relays (M).
Annunciator (F)
3
These are devices intended for use as auxiliary relays inside the Motion CPU. Annunciators perform the same role as internal
relays (M).
Data register (D)
These devices are able to store numerical data. Some data registers (D) are used for positioning control.
Refer to the following for details.
MELSEC iQ-R Motion Controller Programming Manual (Positioning Control)
Link register (W)
These devices are able to store numerical data. Link registers (W) perform the same role as data registers (D).
Motion register (#)
These devices are able to store numerical data. Some Motion registers (#) are used as monitoring devices.
Refer to the following for details.
MELSEC iQ-R Motion Controller Programming Manual (Positioning Control)
3 DEVICES
3.2 User Device
79
3.3System Device
Ex.
U 3E \
Communication area
• G: CPU buffer memory
• HG: Fixed scan communication area
First address in buffer memory
CPU module installation position
CPU No.1: 3E0
CPU No.2: 3E1
CPU No.3: 3E2
CPU No.4: 3E3
System devices are devices for the system. Allocation and capacity are fixed, and cannot be changed arbitrarily.
Special relay (SM)
These are internal relays whose specifications inside the Motion CPU are fixed, and as with standard internal relays, they
cannot be used at the program. However, they can be turned ON and OFF to control the Motion CPU if required.
Refer to special relays for details on special relays. (Page 426 Special Relays)
Special register (SD)
These are internal registers whose specifications inside the Motion CPU are fixed, and as with standard internal registers,
they cannot be used at the program. However, data can be written to control the Motion CPU if required.
Refer to special registers for details on special registers. (Page 431 Special Registers)
3.4CPU Buffer Memory Access Device
These devices access memory used to read and write data between CPU modules in a Multiple CPU system.
Specification method
Specify with U [CPU module installation position]\[Communication area][First address in buffer memory].
80
CPU No.2, CPU buffer memory address 4095
U3E1\G4095
CPU No.3, CPU buffer memory (fixed scan communication area) address 1024
U3E2\HG1024
3 DEVICES
3.3 System Device
3.5Module Access Device
Ex.
U \
Intelligent function module or
I/O module I/O number
• 00 to FF
Buffer memory address
These devices are used to directly access the buffer memory in intelligent function modules or I/O modules installed on the
main base unit or expansion base unit from the Motion CPU.
Specification method
Specify with U [Intelligent function module or I/O module I/O No.*1]\[Buffer memory address].
*1 2 high-order digits if first I/O No. is expressed with 3 digits
These devices are used to specify decimal data in the program. Specify with K.
The specification range is determined based on the argument data type for the instruction using the decimal constant.
Hexadecimal constants (H)
These devices are uses to specify hexadecimal data in the program. Specify with H.
To specify data by BCD, specify each hexadecimal digit with 0 to 9.
The specification range is determined based on the argument data type for the instruction using the hexadecimal constant.
3 DEVICES
3.5 Module Access Device
81
3.7Device Setting
Ex.
Ex.
Axis 1 status (M32400 to M32431)
Axis 2 status (M32432 to M32463)
:
:
Axis 63 status (M34384 to M34415)
Axis 64 status (M34416 to M34447)
Device assignment of axis 1 to 64 is
MELSEC iQ-R Motion device assignment
Axis 1 status (M2400 to M2419)
Axis 2 status (M2420 to M2439)
:
:
Axis 31 status (M3000 to M3019)
Axis 32 status (M3020 to M3039)
Axis 33 status (M33424 to M33455)
Axis 34 status (M33456 to M33487)
:
:
Axis 63 status (M34384 to M34415)
Axis 64 status (M34416 to M34447)
Device assignment of axis 1 to 32 is
Q series Motion compatible device assignment
Device assignment of axis 33 to 64 is
MELSEC iQ-R Motion device assignment
Device assignment method
Device assignment methods set the usable range of devices to be used by the Motion CPU.
The device assignment methods available are MELSEC iQ-R Motion device assignment, and Q series Motion compatible
device assignment.
Refer to the following for the devices of MELSEC iQ-R Motion device assignment and Q series Motion compatible device
assignment.
MELSEC iQ-R Motion Controller Programming Manual (Positioning Control)
Device assignment method for the Motion CPU
■MELSEC iQ-R Motion device assignment
This device assignment is best suited for the device assignment of positioning dedicated signals (internal relay(M), data
register(D)) for the MELSEC iQ-R series Motion CPU. When configuring a new system, the MELSEC iQ-R Motion device
assignment method is recommended.
For axis status
■Q series Motion compatible device assignment
This device assignment provides compatibility for the device assignment of positioning dedicated signals (internal relay(M),
data register(D), Motion register(#)) for the Q series Motion CPU. Use Q series Motion compatible device assignment in the
following cases:
• When diverting devices from a Q series system.
• When diverting devices from a Q series system, and expanding the system from 33 axes onwards with the R64MTCPU.
For axis status
3 DEVICES
82
3.7 Device Setting
Selecting device assignment method
The device assignment method can be selected in MT Developer2 by the following method.
For details on the operation for selecting device assignment method, refer to the following.
Help of MT Developer2
■Selecting at the creation of a new project
When creating a new project in MT Developer2, select MELSEC iQ-R Motion device assignment or Q series Motion
compatible device assignment.
■Switching device assignment methods
Switching between MELSEC iQ-R Motion device assignment method and Q series Motion compatible device assignment
method is possible in the change device assignment method screen of MT Developer2.
[Online] [Change Device Assignment Method]
Precautions
• When changing the device assignment method, the changes are enabled by power ON of the Multiple CPU system, or by
reset.
• When using R64MTCPU in Q series Motion compatible device assignment, the devices for axis 33 to 64 use MELSEC iQR Motion device assignment. Bear in mind that the regularity of MELSEC iQ-R Motion device assignment differs to that of Q
series Motion compatible device assignment.
• Performing "Motion CPU memory clear" from MT Developer2, or clearing "Backup RAM" with the "built-in memory clear" by
rotary switch returns the device assignment "Q series Motion compatible device assignment".
• When loading backup data to the Motion CPU with MT Developer2, the device assignment method of the Motion CPU
where backup data is being loaded and the backup data must be the same. If the device assignments methods are different
an error occurs and loading is not possible. Also, when the backup data does not support the device assignment method of
the Motion CPU, set the device assignment method of the Motion CPU to "Q series Motion compatible device assignment".
• Communication between MT Developer2 and the Motion CPU is not possible when the device assignment methods differ.
3
3 DEVICES
3.7 Device Setting
83
Device points setting
Window
Device points setting for user devices
The number of devices used can be changed with the number of device points/latch setting.
[R Series Common Parameter] [Motion CPU Module] [CPU Parameter] "Device Related Setting" "Device
Points/Latch Setting" "Detailed Setting"
Precautions
Pay attention to the following if changing the number of devices.
• The number of inputs (X) and outputs (Y) cannot be changed.
• The maximum number of total user devices is 128k words.
• When device points are outside the setting range, the default points are set.
• The range within which each device can be changed is shown below.
*1 If devices other than the relevant device are set as the minimum number of set devices
3 DEVICES
3.7 Device Setting
• If the number of user devices used is changed, the change will be valid when power supply of the Multiple
Ex.
(Bit device capacity) =
16
(words)
(X+Y+M+B+F)
(Word device capacity) =
16
(D+W+#)
×
16 (words)
CPU system is turned ON, or when reset.
• If changing the number of user devices used, ensure that the Multiple CPU refresh range and latch range do
not lie outside the range for the number of devices. If the relevant device range is exceeded, data may be
written to another device, or an error may occur.
User device memory capacity
Set user devices so that they satisfy the following formula.
(Bit device capacity) + (word device capacity) 128k words
■Bit devices
For bit devices, 16 points are calculated as 1 word.
■Word devices
For data registers (D), link registers (W), and Motion registers (#), 16 points are calculated as 16 words.
Device allocation examples
An example of device point allocation is shown below.
For Q series Motion compatible device assignment
Device nameSymbolNumber
base
Bit devicesInputXHexadecimal 12k (12288) points X0 to X2FFF 16 768 words
OutputYHexadecimal 12k (12288) points Y0 to Y2FFF 16 768 words
Internal relayMDecimal.16k (16384) points M0 to M16383 16 1024 words
Link relayBHexadecimal 1k (1024) pointsB0 to B03FF 16 64 words
AnnunciatorFDecimal.4k (4096) pointsF0 to F4095 16 256 words
Word devicesData registerDDecimal.22k (22528) points D0 to D22527 122528 words
Link registerWHexadecimal 5k (5120) pointsW0 to W13FF 15120 words
Motion register#Decimal.15k (15360) points #0 to #15359 115360 words
Device total45888 words (131072 words or less)
Device pointsLimit check
PointsSetting rangeCapacity (words)
3
3 DEVICES
3.7 Device Setting
85
3.8Latch Function
Window
The content of each Motion CPU device is cleared in the following cases, and is returned to the respective default value (bit
devices: OFF, word devices: 0).
• Multiple CPU system power supply OFF to ON
• Multiple CPU system reset
• Power failure longer than permissible momentary power failure time
The content of each device for which the latch setting has been specified is retained in the event of a power failure even in the
above cases. Consequently, when managing data when performing consecutive control, all data is retained, allowing control
to be continued even if the Multiple CPU system power supply turns OFF to ON, or if a power failure longer than permissible
momentary power failure time occurs.
Devices for which latch is possible
Devices for which a latch is possible are as follows.
• Internal relays (M)
• Link relays (B)
• Annunciators (F)
• Data registers (D)
• Link registers (W)
• Motion registers (#)
Operation when latches used
Operation in the program is the same regardless of whether a latch has been set.
Latch range setting
Set the latch range for each device with the device points/latch setting.
Multiple latch ranges can be set for each device type. A combined total of 32 latch ranges can be set for latch (1) and latch (2).
However, the latch range must be set so that the latch (1) and latch (2) ranges do not overlap.
Latch range setting is valid when the Multiple CPU system power supply is turned ON.
[R Series Common Parameter] [Motion CPU Module] [CPU Parameter] "Device Related Setting" "Device
Points/Latch Setting" "Detailed Setting"
86
3 DEVICES
3.8 Latch Function
Clearing the latch range
The latch (1) and latch (2) ranges are cleared with the following operations. (Page 352 Memory Initialization)
Latch rangeClear operation
Latch (1)• Clearing the MT Developer Motion CPU memory.
Latch (2)Cleaning built-in memory with Motion CPU rotary switch "C".
• Cleaning built-in memory with Motion CPU rotary switch "C".
Precautions
• When increasing the ranges set for latch (1) or latch (2), the latch device value when the Multiple CPU system power
supply is turned ON again after parameter writing will be the value when the power supply was previously turned OFF.
• All latch ranges are cleared if the device point setting, or device assignment method differs from the setting at the previous
operation when turning ON the Multiple CPU system or when resetting.
3
3 DEVICES
3.8 Latch Function
87
4AUXILIARY AND APPLIED FUNCTIONS
Watch data value
OFF
ON
OFF
Upper limit value
Lower limit value
Output device
Lower limit value ≤ (Watch data value) < Upper limit value
ON section setting
Watch data value
ON
OFF
ON
Lower limit value
Upper limit value
Output device
Lower limit value ≤ (Watch data value)(Watch data value) < Upper limit value
ON section setting
Watch data value
OFF in whole region
Lower limit value Upper limit value
Output device
ON section setting
4.1Limit Switch Output Function
This function is used to output the ON/OFF signal corresponding to the data range of the watch data set per output device.
Motion control data or optional word data can be used as watch data.(Page 90 Limit output data setting)
A maximum output device for 64 points can be set regardless of the number of axes.
Operations
Limit switch output function
ON output to an output device is made while the watch data value is in the ON region set with lower limit value and upper limit
value in the limit switch output function. Up to two ON regions can be set for each limit output setting data.
• Lower limit value, upper limit value and watch data value are handled as signed data. ON output region where an ON
output is made to the output device is governed by the magnitude relationship between lower limit value and upper limit
value as indicated below.
Relationship between lower limit value
and upper limit value
Lower limit value < Upper limit valueLower limit value (watch data value) < Upper limit value
ON output region
Lower limit value > Upper limit valueLower limit value (watch data value)
Lower limit value = Upper limit valueOutput OFF in whole region
(Watch data value) < Upper limit value
88
4 AUXILIARY AND APPLIED FUNCTIONS
4.1 Limit Switch Output Function
• The limit switch outputs are controlled based on each watch data during the READY complete status (SM500: ON) by the
Watch data value
OFF
ON
OFF
ON
OFF
Upper limit value
Lower limit value
Upper limit value
Lower limit value
Output device
ON section setting No.2
ON section setting No.1
"[Rq.1120] PLC ready flag (R: M30000/Q: M2000)" from OFF to ON. With the setting of "Rq.1120: PLC ready flag keep the
output device when turns OFF" invalid, when the "PCPU READY complete flag (SM500)" turns OFF by turning the
"[Rq.1120] PLC ready flag (R: M30000/Q: M2000)" from ON to OFF, all points turn OFF. With the setting of "Rq.1120: PLC
ready flag keep the output device when turns OFF" valid for output devices other than Y devices, the output devices do not
turn OFF even when the "[Rq.1120] PLC ready flag (R: M30000/Q: M2000)" turns from ON to OFF. The setting is valid for
all the output devices. Y devices always turn OFF when the "[Rq.1120] PLC ready flag (R: M30000/Q: M2000)" turns from
ON to OFF. When lower limit value and upper limit value are specified with word devices, the word device contents are
input
to the internal area when the "[Rq.1120] PLC ready flag (R: M30000/Q: M2000)" turns from OFF to ON. After that, the word
device contents are input per motion operation cycle, and limit switch outputs are controlled.
• Multiple outputs (Up to 64 points) can be also set to one watch data. In each setting, the output device may be the same. If
both of the two regions of the ON section setting are used or if the same output device is designated by multiple output
settings (regardless of whether or not the watch data is the same), the logical add of the output results in the regions is
output.
4
Setting the forced OFF bit
Forced OFF bit can be set to forcibly turn off the output of the output device point-by-point. When the forced OFF bit is ON, the
output is OFF.
Setting the forced ON bit
Forced ON bit can be set to forcibly turn on the output of the output device point-by-point. When the forced ON bit is ON, the
output is ON. Priority is given to control of this setting over ON of the "forced OFF bit" (forced output OFF).
4 AUXILIARY AND APPLIED FUNCTIONS
4.1 Limit Switch Output Function
89
Limit output data setting
Window
Displayed items
This section describes limit output data setting items.
Up to 64 points of output devices can be set. (The items in the table below are set together as one point.)
[Motion CPU Common Parameter] [Limit Output Data]
ItemSetting rangeFetch cycleRefresh cycle
Rq.1120: PLC ready flag keep the output device
when turns OFF
Output
device
Limit output compensation time-5000000 to 5000000[s]/Word deviceOperation
Watch dataWatch data settingMotion control data/Word device data/Word device data (ring counter)
ON section
setting
Forced OFF
bit
Forced ON
bit
Output deviceBit deviceOperation cycle
16 point unit batch output
setting
*1
Axis
*1
Name
*2*3
Device
*2*3
Data type
Ring counter value
ON section
setting 1
ON section
setting 2
Forced OFF bitInvalid (default)/valid
Forced OFF bit deviceBit device
Forced ON bitInvalid (default)/valid
Forced ON bit deviceBit device
*3
Upper limit value Word device/constant (K, H)Operation
Lower limit value
Upper limit value
Lower limit value
Invalid (default)/valid
Invalid (default)/valid
cycle
1 to 64
Page 92 Motion control data
Word device
16-bit integer type/32-bit integer type
16-bit integer type: K1 to K32767, H0001 to H7FFF
32-bit integer type: K1 to K2147483647, H00000001 to H7FFFFFFF
cycle
*1 When Motion control data selected
*2 When word device data selected
*3 When word device data (ring counter) selected
90
4.1 Limit Switch Output Function
4 AUXILIARY AND APPLIED FUNCTIONS
Rq.1120: PLC ready flag keep the output device when turns OFF
With this setting valid for output devices other than Y devices, the output devices do not turn OFF even when the "[Rq.1120]
PLC ready flag (R: M30000/Q: M2000)" turns from ON to OFF. The setting is valid for all the output devices. Y devices always
turn OFF when the "[Rq.1120] PLC ready flag (R: M30000/Q: M2000)" turns from ON to OFF.
Output device
• Set the bit device which outputs the ON/OFF signal toward the preset watch data.
• As the output device, bit devices are used. Refer to device list for the range of bit devices that can be set. (Page 75
Device List)
• When the 16 point unit batch output setting is valid, the batch output of the sequential 16 point unit devices has less effect
on the operation cycle as compared with the output of each output device point-by-point. When the 16 point unit batch
output setting is valid, it is recommended to set multiple output devices as sequential 16 point unit output devices. The
sequential devices to be output in a 16 point unit batch is counted as one set and up to 4 sets can be set. When the 16 point
unit batch output setting is valid, among the 16 point unit devices, the devices that are not used as the output devices are
always OFF.
16 point unit batch output settingControl description
InvalidThe output device is output point-by-point.
ValidThe sequential 16-point output devices are output in a batch.
Limit output compensation time
Compensate the output timing of the output device.
Set it to compensate for output signal delays. (Set a positive value to compensate for a delay.)
In indirect setting, the timing is compensated as "-5000000" when the compensation time is set to less than -5000000, and it
is compensated as "5000000" when it is set to more than 500000.
4
■Direct setting
Setting range
-5000000 to 5000000[s]
■Indirect setting
Word devices are used for the limit output compensation time.
Set an even number for the device number. Refer to device list for the range of word devices that can be set. (Page 75
Device List)
4 AUXILIARY AND APPLIED FUNCTIONS
4.1 Limit Switch Output Function
91
Watch data
Upper limit setting
Lower limit setting
Without output device
compensation time
ON section
setting
OFF
ON
OFF
Ring counter value
0
This data is used to perform the limit switch output function. This data is comparison data to output the ON/OFF signal. The
output device is ON/OFF-controlled according to the ON section setting.
As the watch data, motion control data, word device data or word device data (ring counter) can be used.
■Motion control data
Settable watch data is shown in the following table.
ItemUnitData typeAxis No. setting rangeRemarks
R64MTCPUR32MTCPUR16MTCPU
Feed current valueControl unit32-bit integer type1 to 641 to 321 to 16
Real current value
Servo command valuepulse
Position feed back
Absolute position encoder single revolution
position
Absolute position encoder multiple revolution
position
Deviation counter valuepulse32-bit integer type
Servo command speedpulse/s
Motor speed0.01r/min
Motor current value0.1%16-bit integer type
Command generation axis feed current valueControl unit32-bit integer type
Command generation axis cumulative current
value
Command generation axis current value per cycle
Synchronous encoder axis current valueEncoder axis
Synchronous encoder axis current value per cycle
Cam axis current value per cycleCam axis
Cam axis current value per cycle (Actual)
16-bit integer type
unit
cycle unit
1 to 12
1 to 641 to 321 to 16Valid in
synchronous
control
■Word device data/word device data (ring counter)
•Device
Word devices are used for watch data. Refer to device list for the range of word devices that can be set. (Page 75
Device List)
• Data type
The following data type is set as the data type to be compared.
Data typeRemarks
16-bit integer type
32-bit integer typeSet the device No. as an even No.
• Ring counter value
When the watch data is the word device data (ring counter), the ring counter value is set.
Data typeRemarks
16-bit integer typeH0001 to H7FFF
32-bit integer typeK1 to K2147483647, H00000001 to H7FFFFFFF
92
4 AUXILIARY AND APPLIED FUNCTIONS
4.1 Limit Switch Output Function
For the word device data updated as ring counter, when the output timing is compensated without setting the
correct ring counter value or when the output timing is compensated by setting the ring counter for the word
device data that is not updated as ring counter, the output device may not be output at the correct timing.
ON section setting
• The data range which makes the output device turn ON/OFF toward the watch data. Up to two ON regions can be set for
each limit output setting data.
• Word devices constants (Hn/Kn) can be used as the lower limit value and upper limit value of the data range. The data type
of device/constant to be set is the same as the type of watch data. Refer to device list for the range of word devices that can
be set. (Page 75 Device List)
Forced OFF bit
• Set the "forced OFF bit" when forced OFF of the output device is desired during operation. The following control is
exercised.
Forced OFF bitControl description
InvalidOutput device is turned ON/OFF based on the ON section setting.
Val idO FF
ONOutput device is turned OFF.
• Bit devices are used for forced OFF bits. Refer to device list for the range of bit devices that can be set. (Page 75
Device List)
4
Forced ON bit
• Set the "forced ON bit" when forced ON of the output device is desired during operation. The following control is exercised.
Forced ON bitControl description
InvalidOutput device is turned ON/OFF based on the ON section setting.
Val idO FF
ONOutput device is turned ON.
• Bit devices are used for forced ON bits. Refer to device list for the range of bit devices that can be set. (Page 75 Device
List)
4 AUXILIARY AND APPLIED FUNCTIONS
4.1 Limit Switch Output Function
93
4.2External Input Signal
Signal type
• Bit device• Bit device
• Amplifier input DI3
• Bit device
• Amplifier input DI1
• Bit device
• Amplifier input DI2
• Bit device
Signal control
Control function
High-speed input
request signal
(64 signals)
• Compensation time
• Valid/Invalid
• Status
• Leading edge/
Trailing edge/
Both directions
• Precision settings
DOG signal
• Normal open/
Normal close
• Precision settings
FLS signal
• Normal open/
Normal close
RLS signal
• Normal open/
Normal close
STOP signal
• Normal open/
Normal close
Mark detection
(64 settings)
• High-speed input
request signal
• Compensation time
• Latch data
• Current value
• Feed current
value
• Synchronous
encoder current
Clutch
(64 axes × 2)
Synchronous encoder
current value change/
counter enable and
disable (12 axes)
Speed/position
switching (64 axes)
• Enable flag
Home
position
return
(64 axes)
Hardware limit
processing/limit
combined home
position return
(64 axes)
Stop
processing
(64 axes)
External signal
(64 axes)
External input signals are managed as "external signals" or "high-speed input request signals".
External signals are used with control functions such as home position return, speed/position switching control, hardware
limits, and stop processing.
High-speed input request signals are used with control functions such as mark detection clutch control, and synchronous
encoder axis current value changes.
External signal
External signals (FLS signals, RLS signals, STOP signals, DOG signals) are assigned to each axis, and are used with control
functions such as home position return, speed/position switching control, hardware limits, and stop processing.
External signals are set in the external signal parameters.
Refer to following for details on external signal parameters.
MELSEC iQ-R Motion Controller Programming Manual (Positioning Control)
94
4 AUXILIARY AND APPLIED FUNCTIONS
4.2 External Input Signal
High-speed Input Request Signal
High-speed input request signal 3
(X0005)
[Md.320] Synchronous encoder axis
current value
(R: D38650+32n, D38561+32n/
Q: D13240+20n, D13241+20n)
t
OFF
ON*1
OFF
ON
OFF
ON
High-speed input request signal
valid flag
High-speed input request signal
status
[Cd.320] Synchronous encoder axis
control start condition
(R: D42322+16n/Q: D14822+10n)
[Cd.321] Synchronous encoder axis
control method
(R: D42323+16n/Q: D14823+10n)
103: High-speed input request signal 3
0: Current value change
*1: Set the high-speed input request signal
detection direction to "Leading edge"
Set the allocation of high-speed input request signals. The high-speed input request signals are used for mark detection and
to control clutch ON/OFF operations, synchronous control or the counter enable/counter disable/current value change
operation of the synchronous encoder axis with high accuracy. An example of current value change of the synchronous
encoder axis using input module (X0005) as the high-speed input request signal is shown below.
4
4 AUXILIARY AND APPLIED FUNCTIONS
4.2 External Input Signal
95
High-speed input request signal setting
Window
Displayed items
This section describes the high-speed input request signal setting items. Up to 64 signals can be registered.
[Motion CPU Common Parameter] [High-speed Input Request Signal]
High-speed input request signal detection direction
High-speed input request signal accuracy
High-speed input request signal compensation time-5000000 to 5000000[s]/Word device
High-speed input request signal valid flag
High-speed input request signal status
High-speed input request signal control cycle settingOperation cycle/Low speed operation cycle
*1*3
*1*3
Bit device
*2
MR-MT2010/MR-MT2100/MR-MT2200
1 to 64, 601 to 608
*2*3
DI1 to DI16
Leading edge/Trailing edge/Both directions
General/High-accuracy
*4
/Bit device
*4
/Bit device
*1 When bit device is selected
*2 When sensing module input is selected
*3 When amplifier input is selected
*4 This setting can be omitted
■High-speed input request signal
Set the input signal for high-speed input request signal.
•Bit device
Bit devices are used for high-speed input request signals. Refer to device list for the range of bit devices that can be set.
(Page 75 Device List)
• Amplifier input
Input signals DI1 to DI3 of the servo amplifier are used for high-speed input request signals.
Input moduleAxis No.Input signal
R64MTCPUR32MTCPUR16MTCPU
Servo amplifier1 to 641 to 321 to 16DI1 to DI3
96
4.2 External Input Signal
4 AUXILIARY AND APPLIED FUNCTIONS
• Sensing module input
The external input signal DI of the sensing module is used as the high-speed input request signal.
Input moduleAxis No.Input signal
ModelOperation
mode
MR-MT2010
MR-MT2100Station mode601 to 608601 to 608601 to 608DI1 to DI16
MR-MT2200
*1 When the operation mode of MR-MT2010 is axis mode and high-accuracy ("1: Timing-latch input" set in servo parameter "DI setting 2
*2 When "MR-MT2010+Extension modules" is 1 station and using the high-speed input request signal with high-accuracy, the setting range
*3 When high-accuracy ("1: Timing-latch input" set in servo parameter "DI setting 2 (function selection)") is set for MR-MT2200, or the
*1
Station mode601 to 608601 to 608601 to 608DI1 to DI12
Axis mode1 to 641 to 321 to 16
*3
(function selection)") is set, or MR-MT2010 is set at an axis No. other than the start station in 1 block, a moderate error (error code:
30D3H) occurs.
is "DI1 to DI4".
operation mode is axis mode, a moderate error (error code: 30D3H) occurs.
R64MTCPUR32MTCPUR16MTCPU
*2
DI1 to DI14 (CH.1: DI1 to DI7,
CH.2: DI8 to DI14)
■High-speed input request signal detection direction
When bit device or amplifier input is set, set whether to perform the high-speed input request signal detection operation in the
input signal leading edge (OFF to ON), trailing edge (ON to OFF), or both directions (OFF to ON, ON to OFF).
Input signal detection
direction
Leading edgePerforms high-speed input request detection with the input signal OFF to ON.
Trailing edgePerforms high-speed input request detection with the input signal ON to OFF.
Both directionsPerforms high-speed input request detection with the input signal OFF to ON or ON to OFF.
Remarks
4
For sensing module input, the high-speed input request signal detection direction is set in the servo
parameters. Refer to the following for details of servo parameters.
Sensing Module Instruction Manual
• When the high-speed input request signal accuracy of the sensing module is set to general, the high-speed
input request signal detection direction is leading edge only. However, when detecting by input ON or input
OFF to the DI signal, set the servo parameter "DI setting 1 (polarity selection)".
• When the high-speed input request signal accuracy of the sensing module is set to high-accuracy, the
detection direction can be set in the servo parameter "DI setting 2 (DI signal edge selection)"
4 AUXILIARY AND APPLIED FUNCTIONS
4.2 External Input Signal
97
■High-speed input request signal accuracy
High-speed input request signal accuracy Detection accuracy [µs]
General• Operation cycle 0.444[ms] or less: Operation cycle
• Operation cycle 0.888[ms] or more: 888
High-accuracy1
When bit device or amplifier input is set, set the accuracy of high-speed input request signals.
High-speed input request
signal accuracy
GeneralBit deviceNone222
High-accuracyBit device• Enable the inter-module
*1 When using an actual device with the inter-module synchronization setting, the inter-module synchronization cycle is used.
*2 When not set, a moderate error (error code: 30D3H) occurs.
*3 Detection accuracy of the high-accuracy setting of the bit device.
Input response time [ms]Detection accuracy
0.104.97
0.209.912
0.4019.822
0.6025.027
1.0039.541
5.00158160
10.00316318
20.00630632
70.0025002502
Signal typeSetting required on the module
side
Amplifier input (DI1 to DI3)None• Operation cycle 1.777[ms] or less:
synchronization function.
• Set the input response time.
Theoretical value [s]Measured value [s]
*2
Detection accuracy[s]
*1
Operation cycle
• Operation cycle 3.555[ms] or more:
3555
*3
• General
The detection accuracy is based on the fixed-cycle processing of the Motion CPU. General detection accuracy is used even
when the input module setting is "Enable synchronization between modules".
• High-accuracy
When the input module setting is "inter-module synchronization valid", by setting the high-speed input request signal
accuracy to "High-accuracy", high-speed input request signals can be controlled with high accuracy. If this signal is
specified for a signal that is not compatible with high-accuracy input, a moderate error (error code: 30D3H) occurs.
For sensing module input, the high-speed input request signal accuracy is set in the servo parameters. Refer
to the following for details of servo parameters.
Sensing Module Instruction Manual
• When the high-speed input request signal accuracy of the sensing module is set to general, set "0: Digital
input" in the servo parameter "DI setting 2 (function selection)".
• When setting the high-speed input request signal accuracy of the sensing module to high-accuracy, set "1:
Timing-latch input" in the servo parameter "DI setting 2 (function selection)". By setting a sensing module
DI signal that supports the timing-latch input function, control accuracy using the high-speed input request
signal can be changed to high-accuracy. Refer to timing-latch input function for details of timing-latch input
function. (Page 240 Timing-latch input function)
The detection accuracy of sensing module input is as follows.
98
4 AUXILIARY AND APPLIED FUNCTIONS
4.2 External Input Signal
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.