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. For the safety precautions of the programmable
controller system, refer to the MELSEC iQ-R Module Configuration Manual.
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.
1
Page 4
[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.
● 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.
2
Page 5
[Design Precautions]
WARNING
● 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.
[Precautions for using the channel isolated analog-digital converter modules in SIL2 mode]
● When the R60AD8-G detects a fault in the external power supply or programmable controller, a digital
operation value becomes an OFF value (equivalent to 0V/0mA) in all channels. Configure an external
circuit to ensure that the power source of a hazard is shut off when a digital operation value of the
R60AD8-G is an OFF value (equivalent to 0V/0mA). Failure to do so may result in an accident.
● When a communication failure occurs in CC-Link IE Field Network, a digital operation value of the
R60AD8-G becomes an OFF value (equivalent to 0V/0mA). Check the communication status
information and configure an interlock circuit in the program to ensure that the entire system will
operate safely. Failure to do so may result in an accident due to an incorrect output or malfunction.
[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 undefined. The values need to be set in the
buffer memory and written to the flash ROM 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" in the module
parameters. 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.
3
Page 6
[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.
[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 interconnection
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 can 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
Page 7
[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.
● Individually ground the shielded cables of the programmable controller with a ground resistance of
100 ohms or less. Failure to do so may result in electric shock or malfunction.
5
Page 8
[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 will cause the
battery to produce heat, explode, ignite, or leak, resulting in injury and 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.
6
Page 9
[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 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 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 of the module.
● Do not touch the integrated circuits on the circuit board of an extended SRAM cassette. Doing so may
cause malfunction or failure of the module.
● 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.
● 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.
7
Page 10
[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 undefined. The values need to be set in the buffer memory and written to the flash ROM
again. Doing so can cause malfunction or failure of the module.
[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.
[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
Page 11
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.
(1) Although MELCO has obtained the certification for Product's compliance to the international safety standards
IEC61508, IEC61511 from TUV Rheinland, this fact does not guarantee that Product will be free from any malfunction
or failure. The user of this Product shall comply with any and all applicable safety standard, regulation or law and take
appropriate safety measures for the system in which the Product is installed or used and shall take the second or third
safety measures other than the Product. MELCO is not liable for damages that could have been prevented by
compliance with any applicable safety standard, regulation or law.
(2) MELCO prohibits the use of Products with or in any application involving, and MELCO shall not be liable for a default, a
liability for defect warranty, a quality assurance, negligence or other tort and a product liability in these applications.
(a) power plants,
(b) trains, railway systems, airplanes, airline operations, other transportation systems,
(c) hospitals, medical care, dialysis and life support facilities or equipment,
(d) amusement equipments,
(e) incineration and fuel devices,
(f) handling of nuclear or hazardous materials or chemicals,
(g) mining and drilling,
(h) and other applications where the level of risk to human life, health or property are elevated.
• When SIL2 mode is set
9
Page 12
INTRODUCTION
Thank you for purchasing the Mitsubishi Electric MELSEC iQ-R series programmable controllers.
This manual describes the functions, parameter settings, and troubleshooting 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.
Unless otherwise specified, this manual provides program examples in which the I/O numbers of X/Y0 to X/YF
are assigned to the A/D converter module. Assign I/O numbers when applying the program examples to an
actual system. For I/O number assignment, refer to the following.
MELSEC iQ-R Module Configuration Manual
Relevant products
R60AD8-G, R60AD16-G
Modes
Modes of the R60AD8-G are roughly classified into two groups listed below. A mode is set using the module parameter of GX
Works3. Mode transition is not possible while the module is operating.
ModeDescription
Standard mode• The mode for using the A/D converter module in a normal system
• The standard mode is subdivided into three types: normal mode, offset/gain
setting mode, and Q compatible mode.
SIL2 mode• The mode is certified according to the safety requirements of IEC61508:
2010 SIL2 and IEC61511: 2015 SIL2. This mode is used when a customer
builds a SIL2 system using products compliant with IEC61508: 2010 SIL2 or
IEC61511: 2015 SIL2.
• The R60AD8-G in SIL2 mode can be used to build safety functions for
general industry machinery.
Note that the R60AD16-G does not support SIL2 mode and operates only in standard mode.
■Enabling/disabling the safety module
To operate the R60AD8-G in SIL2 mode, it is necessary to enable the safety module so that the set parameters become
enabled.
To stop the safety I/O of the R60AD8-G operating in SIL2 mode, or to use that module in standard mode in the other system,
e-Manual refers to the Mitsubishi Electric 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.
• Sample programs can be copied to the engineering tool.
Functions, parameter settings, troubleshooting, I/O
signals, and buffer memory of the A/D converter
module
Performance specifications, procedures before
operation, wiring, programming, and offset/gain setting
of the A/D converter module
Dedicated instructions for the intelligent function
modules
Print book
e-Manual
PDF
Print book
e-Manual
PDF
e-Manual
PDF
TERMS
Unless otherwise specified, this manual uses the following terms.
Ter mDescription
A/D converter moduleThe abbreviation for the MELSEC iQ-R series channel isolated analog-digital converter module
Buffer memoryA memory in an intelligent module for storing data (such as setting values and monitored values) to be transferred
to the CPU module
Engineering toolAnother term for GX Works3
Factory default settingA generic term for analog input ranges of 0 to 10V, 0 to 5V, 1 to 5V, -10 to 10V, 0 to 20mA, 4 to 20mA, 1 to 5V
Global labelA label that is valid for all the program data when multiple program data are created in the project. There are two
GX Works3The product name of the software package for the MELSEC programmable controllers
Module LabelA label that represents one of memory areas (I/O signals and buffer memory areas) specific to each module in a
Normal modeA mode used for normal A/D conversion.
Offset/gain setting modeA mode used for performing the offset/gain setting
Q compatible modeA mode in which the module operates with the buffer memory map converted to the equivalent one of the MELSEC
R modeA mode in which the module operates with the buffer memory map that has been newly laid out in the MELSEC iQ-
Remote head moduleThe abbreviation for the RJ72GF15-T2 CC-Link IE Field Network remote head module
SIL2 modeA mode certified according to the safety requirements of IEC61508: 2010 SIL2 and IEC61511: 2015 SIL2
Standard modeA mode for using the A/D converter module in a normal system
User rangeAn analog input range where any value can be set. This range can be set in the offset/gain setting.
Watchdog timer errorAn error that occurs if the internal processing of the A/D converter module fails. The module monitors its own
(extended mode), and 4 to 20mA (extended mode).
In the window on the engineering tool, 4 to 20mA (extended mode) and 1 to 5V (extended mode) are displayed as
the following:
• 4 to 20mA (Extension)
• 1 to 5V (Extension)
types of global label: a module specific label (module label), which is generated automatically by GX Works3, and
an optional label, which can be created for any specified device.
given character string. For the module used, GX Works3 automatically generates this label, which can be used as
a global label.
In the engineering tool, the item name of the mode is displayed as "Normal mode (A/D conversion process)".
Q series
R series
internal processing by using the watchdog timer.
15
Page 18
MEMO
16
Page 19
PART 1STANDARD MODE
This part consists of the following chapters. These chapters describe the details on using the A/D converter
module in standard mode.
1 FUNCTIONS
2 PARAMETER SETTINGS
3 TROUBLESHOOTING
APPENDICES (STANDARD MODE)
PART 1
17
Page 20
1FUNCTIONS
This chapter describes the functions of the A/D converter module and the setting procedures for those functions.
For details on the I/O signals and the buffer memory, refer to the following.
Page 115 I/O Signals
Page 125 Buffer Memory Areas
• This chapter describes buffer memory addresses for CH1. For details on the buffer memory addresses after
CH2, refer to the following.
Page 125 List of buffer memory addresses
• Numerical values corresponding to the channel where an error has occurred and the error description fit in
the and of an error code and alarm code described in this chapter. For details on the numerical values,
refer to the following.
Page 108 List of Error Codes
Page 112 List of Alarm Codes
18
1 FUNCTIONS
Page 21
1.1Processing of Each Function
CH Digital
output value
CH Maximum
value
CH Minimum
value
CH Digital
operation value
CH Logging
data
Analog input
(CH1 to CH16)
A/D conversion
method
Input signal
error detection
function
Sampling
processing
Count average
Time average
Alert output
function
Moving average
Primary delay
filter
Digital clipping
function
Scaling function
Shift function
Difference
conversion
function
Maximum value/
minimum value
hold function
Logging function
CH Digital
output value
(32 bits)
Rate
alarm
Process
alarm
The functions are processed in the order shown below. If multiple functions are enabled, the output of the first processed
function is used as the input of the next function.
1
Digital output value (32 bits)
These values are the digital values after the sampling processing, each averaging processing, or primary delay filter has been
performed.
Digital output value
These values are the 16-bit digital output values that were converted from 32-bit digital output values.
Digital operation value
These values are obtained by operating a digital output value using the digital clipping function, scaling function, shift function,
or difference conversion function. When each function is not used, the same value as the digital output value is stored.
Maximum and minimum value
The maximum and minimum values of the digital operation values are stored.
Logging data
When the logging function is used, digital output values or digital operation values are collected.
1 FUNCTIONS
1.1 Processing of Each Function
19
Page 22
1.2Range Switching Function
This function allows switching the input range of an analog input for each channel.
Switching the range makes it possible to change the I/O conversion characteristic.
Operation
Analog input values are converted to digital values within the set input range, and the converted values are stored in the
following areas.
• 'CH1 Digital output value' (Un\G400)
• 'CH1 Digital operation value' (Un\G402)
• 'CH1 Digital output value (32 bits)' (Un\G410, Un\G411)
The data of 32768 or more cannot be output to 'CH1 Digital output value' (Un\G400) or 'CH1 Digital operation value'
(Un\G402).
To check the data of 32768 or more, monitor 'CH1 Digital output value (32 bits)' (Un\G410, Un\G411).
Digital output values (32768 to 36767) in the extended mode can be monitored within the range of 'CH1 Digital
operation value' (Un\G402) with the shift function or scaling function.
For details, refer to the following.
Page 51 Shift Function
Page 26 Scaling Function
Setting procedure
Set the input range to be used in the "Input range setting".
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter] [Basic
setting] [Range switching function]
Input range settingDigital output value
4 to 20mA0 to 32000
0 to 20mA
1 to 5V
0 to 5V
-10 to 10V-32000 to 32000
0 to 10V0 to 32000
4 to 20mA (extended mode)-8000 to 36000
1 to 5V (extended mode)
User range setting-32000 to 32000
After the data is written, the range is switched when the programmable controller power supply is turned off and on or when
the CPU module is reset.
The range can be switched or set with the following buffer memory areas.
• 'CH1 Range setting' (Un\G598)
• 'CH1 Range setting monitor' (Un\G430)
For details on the buffer memory addresses, refer to the following.
Page 195 CH1 Range setting
Page 159 CH1 Range setting monitor
Precautions
The input range cannot be changed for channels with A/D conversion disabled. To change the input range, set "A/D
conversion enable/disable setting" to "A/D conversion enable".
20
1 FUNCTIONS
1.2 Range Switching Function
Page 23
1.3A/D Conversion Enable/Disable Setting Function
This function controls whether to enable or disable the A/D conversion for each channel.
Disabling the A/D conversion for unused channels reduces the A/D conversion cycles.
Setting procedure
Set "A/D conversion enable/disable setting" to "A/D conversion enable" or "A/D conversion disable".
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter] [Basic
1.3 A/D Conversion Enable/Disable Setting Function
21
Page 24
1.4A/D Conversion Method
Ex.
Ex.
Lower limit value to be set ≥ Conversion speed × Number of conversion enabled channels × Minimum number of processing times (4 times)
Number of processing times =
Setting time
(Number of conversion enabled channels × Conversion speed)
= 6.25
*1
250
(4 × 10)
An A/D conversion method can be set for each channel.
Sampling processing
This function converts analog input values to digital values at every sampling period and stores the digital output values in
buffer memory areas.
The sampling period is "Conversion speed (10ms) number of conversion enabled channels".
Whether to enable or disable the A/D conversion can be set for each channel. Disabling the A/D conversion
for unused channels reduces the A/D conversion cycles.
Conversion cycle that applies when CH1 to CH3 is set to A/D conversion enabled
•10 3 = 30 (ms)
The conversion cycle is 30 (ms).
Digital output values and digital operation values of CH1 to CH3 are updated every 30ms.
Averaging processing
The A/D converter module performs the averaging processing on digital output values for each channel. The processed
values are stored in the buffer memory area.
The following three types of averaging processing are provided.
• Time average
• Count average
• Moving average
■Time average
The A/D converter module executes the A/D conversion for the setting time, and performs the averaging processing on the
total value excluding the maximum and the minimum values. The processed values are stored in the buffer memory area.
• Setting time
Set a value that satisfies the following condition.
The following shows the lower limit value to be set for when CH1 to CH8 are used.
10 (ms) 8 (CH) 4 (times) = 320 (ms)
• Processing times
The number of processing times within the set time changes depending on the number of channels where the A/D conversion
is enabled.
The following table shows the processing times with the setting below.
ItemSetting
Number of channels where the A/D conversion is enabledFour channels (CH1 to CH4)
Setting time250ms
*1 Values after the decimal point are omitted.
Conversion is processed 6 times and the mean value is output.
22
1 FUNCTIONS
1.4 A/D Conversion Method
Page 25
When the number of processing times is less than 4 due to the set time, a time average setting range error
Ex.
(1) + (2) + (3) + (4)+ (5)
5
(2) + (3) + (4) + (5)+ (6)
5
(3) + (4) + (5) + (6)+ (7)
5
32000
(1)
(2)
(3) (4)
(5)
(6)
(7)
(8)(9)
(10) (11)
(12)
16000
0
0
(a)(b)(c)
ON
OFF
1st storage (a)2nd storage (b)3rd storage (c)
Data transition in buffer memory
0
3rd storage (c)
Time [ms]
2nd storage (b)
1st storage (a)
Sampling cycle
Digital output value
'CH1 Digital output value'
(Un\G400)
'A/D conversion
completed flag' (XE)
(error code: 192H) occurs. The value 0 is stored in the following buffer memory areas.
• 'CH1 Digital output value' (Un\G400)
• 'CH1 Digital operation value' (Un\G402)
• 'CH1 Digital output value (32 bits)' (Un\G410, Un\G411)
■Count average
The A/D converter module executes the A/D conversion for a set number of times, and performs the averaging processing on
the total value excluding the maximum and the minimum values. The processed values are stored in the buffer memory area.
The time taken for the mean value calculated through the average processing to be stored in the buffer memory changes
depending on the number of channels where the A/D conversion is enabled.
Processing time = Set number of times (Number of conversion enabled channels Conversion speed)
The following table shows the processing time with the setting below.
ItemSetting
Number of channels where the A/D conversion is enabledFour channels (CH1 to CH4)
Set number of timesFive times
5 (times) (4 (CH) 10 (ms)) = 200 (ms)
A mean value is output every 200ms.
1
Because the count average requires a sum of at least two counts excluding the maximum and minimum
values, the set number of times should be four or more.
■Moving average
The A/D converter module averages digital output values taken at every sampling period for a specified number of times, and
stores the mean value in the buffer memory area. Since the averaging processing is performed on a moving set of sampling,
the latest digital output values can be obtained.
The following figure shows the moving average processing of when the set number of times is five.
1 FUNCTIONS
1.4 A/D Conversion Method
23
Page 26
Primary delay filter
Ex.
Yn = X
n-1
+
Δt + TA
(X
n
- X
n-1
)
Δt
Y
n
= Y
n-1
+
Δt
Δt + TA
(X
n
- Y
n-1
)
040
0
0.2
0.4
0.6
0.8
1.0
1.23840
3200
640
1280
1920
2560
63.2%
Analog input valueDigital output value
0
Elapsed time (ms)
Digital output value
Analog input value (V)
Depending on the set time constant, transient noise of analog input is smoothed. The smoothed digital output values are
stored in the buffer memory area.
Time constant is the time taken for the digital output value to reach 63.2% of the steady-state value.
The following shows the relational expressions of time constants and digital output values.
When n = 1
Yn = 0
When n = 2
When n 3
Yn: Current digital output value
Y
-1: Last digital output value
n
n: Number of samplings
X
: Digital output value before smoothing
n
X
-1: Last digital output value before smoothing
n
T: Conversion time
TA: Time constant
*1 The corresponding bit of 'A/D conversion completed flag' (Un\G42) turns on when n 2.
*1
Digital output value when an analog input value is changed from 0 to 1V
The following figure shows the change of the digital output value with the input range of 0 to 10V and time constant
(Conversion cycle Primary delay filter) of 40ms.
After 40ms from the analog input value becomes 1V, the digital output value reaches 63.2% of the digital output value of when
the sampling processing is selected.
24
1 FUNCTIONS
1.4 A/D Conversion Method
Page 27
Setting procedure
■Sampling processing
Set "Averaging process specification" to "Sampling processing".
1. Set "Averaging process specification" to "Time average", "Count average", "Moving average", or "Primary delay filter".
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter] [Basic
setting] [A/D conversion method]
2. Set a value for "Time average/Count average/Moving average/Primary delay filter constant setting".
ItemSetting range
Time average40 to 5000 (ms)
Count average4 to 500 (times)
Moving average2 to 200 (times)
Primary delay filter1 to 500 (times)
*1 Set a value greater than the value calculated by the following formula as the time average.
Conversion speed Number of conversion enabled channels Minimum processing times (4 times)
*1
1
1 FUNCTIONS
1.4 A/D Conversion Method
25
Page 28
1.5Scaling Function
Ex.
DX × (SH - SL)
D
Max
+ S
L
DY =
DX × (SH - SL)
D
Max
- D
Min
+
D
Y
=
(SH + SL)
2
This function performs the scale conversion on digital output values. The values are converted within a specified range
between a scaling upper limit value and scaling lower limit value. This function helps reduce the time taken for creating a scale
conversion program.
The converted values are stored in 'CH1 Digital operation value' (Un\G402).
Concept of scaling setting
When the input range is set to -10 to 10V:
For the scaling lower limit value, set a value corresponding to the lower limit value of the input range (-32000).
For the scaling upper limit value, set a value corresponding to the upper limit value of the input range (32000).
Calculating the scaling value
The scale conversion is based on the following formula. (In scale conversion, values are rounded to the nearest whole
number.)
*1
Current: 0 to 20mA, 4 to 20mA, 4 to 20mA (extended mode)
Voltage: 0 to 10V, 0 to 5V, 1 to 5V, 1 to 5V (extended mode)*1, user range setting (voltage)
, user range setting (current)
Voltage: -10 to 10V
DX: Digital output value
D
: Scaling value (Digital operation value)
Y
D
: Maximum digital output value of the input range in use
Max
D
: Minimum digital output value of the input range in use
Min
S
: Scaling upper limit value
H
S
: Scaling lower limit value
L
*1 Although the range of the digital output value in the extended mode is -8000 to 36000, this function performs the scale conversion for
digital output values within the range of 0 to 32000.
When the calculated digital operation value exceeds 32767, the value 32767 is stored as the digital operation
value. When the calculated digital operation value is falls below -32768, the value -32768 is stored.
Setting procedure
1. Set "Scaling enable/disable setting" to "Enable".
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter]
[Application setting] [Scaling setting]
2. Set values for "Scaling upper limit value" and "Scaling lower limit value".
ItemSetting range
Scaling upper limit value-32000 to 32000
Scaling lower limit value
26
1 FUNCTIONS
1.5 Scaling Function
• Even when the scaling upper limit value and the scaling lower limit value are set so that the change is
greater than the resolution, the resolution will not increase.
• If the relation between the values is the scaling lower limit value > the scaling upper limit value, the scale
conversion can be performed according to a negative slope.
• Set the scaling with the condition "Scaling upper limit value Scaling lower limit value".
Page 29
Setting example
Ex.
Ex.
32000
0
50
Analog input voltage (V)
Scaling upper limit value 20000
Scaling lower limit value 4000
32000
-32000
10
0
-10
0
Analog input voltage (V)
Scaling upper limit value: 20000
Scaling lower limit value: 4000
When 20000 is set to the scaling upper limit value and 4000 is set to the scaling lower limit value for the module with the input
range of 0 to 5V
1
Voltage input (V)Digital output value
*1
Digital operation value
(scaling value)
004000
164007200
21280010400
31920013600
42560016800
53200020000
*1 These values are also applied to the case of digital output values (32 bits).
When 20000 is set to the scaling upper limit value and 4000 is set to the scaling lower limit value for the module with the input
range of -10 to 10V
Voltage input (V)Digital output value
-10-320004000
-5-160008000
0012000
51600016000
103200020000
*1 These values are also applied to the case of digital output values (32 bits).
*1
Digital operation value
(scaling value)
1 FUNCTIONS
1.5 Scaling Function
27
Page 30
Ex.
When 20000 is set to the scaling upper limit value and 4000 is set to the scaling lower limit value for the module with the input
32000
36000
0
-8000
5 5.501
Analog input voltage (V)
Scaling upper limit value: 20000
Scaling lower limit value: 4000
range of 1 to 5V (extended mode)
Voltage input (V)Digital output valueDigital operation value
16 bits32 bits
0-8000-80000
1004000
2800080008000
3160001600012000
4240002400016000
5320003200020000
5.532767
*1
3600022000
*1 Because the value exceeds the range of -32768 to 32767, the value is fixed to 32767 (the upper limit value).
(scaling value)
1 FUNCTIONS
28
1.5 Scaling Function
Page 31
Ex.
When 32000 is set to the scaling upper limit value and -32000 is set to the scaling lower limit value for the module with the
32000
36000
0
-8000
20 2204
Analog input current (mA)
Scaling upper limit value: 32000
Scaling lower limit value: -32000
input range of 4 to 20mA (extended mode)
Current input (mA)Digital output valueDigital operation value
16 bits32 bits
0-8000-8000-32768
400-32000
880008000-16000
1216000160000
16240002400016000
20320003200032000
20.24324803248032767
2232767
*2
3600032767
*1 Because the value falls below the range of -32768 to 32767, the value is fixed to -32768 (the lower limit value).
*2 Because the value exceeds the range of -32768 to 32767, the value is fixed to 32767 (the upper limit value).
(scaling value)
*1
*2
*2
1
When the scaling function is used with the digital clipping function, the scale conversion is performed on the
digital operation values after digital clipping.
1 FUNCTIONS
1.5 Scaling Function
29
Page 32
1.6Alert Output Function
ON
ON
ON
ON
OFF
OFF
OFF
OFF
Lower lower limit value
Lower upper limit value
Upper lower limit value
Upper upper limit value
Alert
Alert
Alert
Alert cleared
Alert cleared
Alert cleared
Alert output range
Out of alert output range
Included
Digital operation value
Time
'CH1 Digital operation
value' (Un\G402)
'CH2 Digital operation
value' (Un\G602)
'CH1 Alert output flag
(Process alarm upper limit)'
(Un\G36, b0)
'CH1 Alert output flag
(Process alarm lower limit)'
(Un\G37, b0)
'CH2 Alert output flag
(Process alarm upper limit)'
(Un\G36, b1)
'Alert output signal' (X8)
This section describes process alarms and rate alarms used for the alert output function.
Process alarm
This function outputs an alert when a digital operation value enters the preset alert output range.
30
1 FUNCTIONS
1.6 Alert Output Function
Page 33
Operation
■Operation performed when an alert is output
When a digital operation value is equal to or greater than 'CH1 Process alarm upper upper limit value' (Un\G514), or the value
is equal to or smaller than 'CH1 Process alarm lower lower limit value' (Un\G520) and the value enters the alarm output range,
an alert is output as follows.
• Alarm ON (1) is stored in 'Alert output flag (Process alarm upper limit)' (Un\G36) or 'Alert output flag (Process alarm lower
limit)' (Un\G37).
• 'Alert output signal' (X8) turns on.
• The ALM LED turns on.
In addition, an alarm code is stored in 'Latest alarm code' (Un\G2).
For details on the alarm codes, refer to the following.
Page 112 List of Alarm Codes
The A/D conversion on a channel where an alert was output continues.
■Operation after an alert was output
After an alert was output, if the digital operation value does not satisfy the alert output condition due to being smaller than
'CH1 Process alarm upper lower limit value' (Un\G516) or being greater than 'CH1 Process alarm lower upper limit value'
(Un\G518), Normal (0) is stored in a bit position corresponding to the channel number of 'Alert output flag (Process alarm
upper limit)' (Un\G36) or 'Alert output flag (Process alarm lower limit)' (Un\G37).
In addition, when all the bits of 'Alert output flag (Process alarm upper limit)' (Un\G36) and 'Alert output flag (Process alarm
lower limit)' (Un\G37) return to Normal (0), 'Alert output signal' (X8) turns off and the ALM LED turns off. However, the alarm
code stored in 'Latest alarm code' (Un\G2) is not cleared. To clear the alarm code, turn on and off 'Error clear request (YF)'
after all the bits of 'Alert output flag (Process alarm upper limit)' (Un\G36) and 'Alert output flag (Process alarm lower limit)'
(Un\G37) return to Normal (0).
1
Detection cycle
When time average is specified, the function works at every interval of the time (for averaging). When count average is
specified, the function works at every count (for averaging).
When the sampling processing, moving average, and primary delay filter is specified, this function works at every sampling
cycle.
Detection target for outputting an alert
When the digital clipping function, scaling function, shift function, or difference conversion function is used, the digital
operation value obtained after digital clipping, scale conversion, shift-and-add, or difference conversion is performed is the
detection target for outputting an alert. Set values for 'CH1 Process alarm upper upper limit value' (Un\G514), 'CH1 Process
alarm upper lower limit value' (Un\G516), 'CH1 Process alarm lower upper limit value' (Un\G518), and 'CH1 Process alarm
lower lower limit value' (Un\G520) while considering the digital clipping, scale conversion, shift-and-add, and difference
conversion.
1 FUNCTIONS
1.6 Alert Output Function
31
Page 34
Setting procedure
1. Set "Alert output setting (Process alarm)" to "Enable".
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter]
[Application setting] [Alert output function (Process alarm)]
2. Set values for "Process alarm upper upper limit value", "Process alarm upper lower limit value", "Process alarm lower
upper limit value", and "Process alarm lower lower limit value".
ItemSetting range
Process alarm upper upper limit value-32768 to 32767
Process alarm upper lower limit value
Process alarm lower upper limit value
Process alarm lower lower limit value
32
1 FUNCTIONS
1.6 Alert Output Function
Page 35
Set values within the range satisfying the condition "Process alarm upper upper limit value Process alarm
ON
ON
OFF
ON
OFFOFF
OFF
OFF
ON
OFF
OFF
0
(1)(2)(3)
(1)(2)(3)
Change rate of the
digital output value (%)
Digital output value
'CH1 Alert output flag
(Rate alarm upper
limit)' (Un\G38, b0)
'CH2 Alert output flag
(Rate alarm lower
limit)' (Un\G39, b1)
'Alert output signal'
(X8)
Rate alarm alert
detection cycle
Rate alarm upper
limit value
(CH1: Un\G524,
CH2: Un\G724)
Rate alarm lower
limit value
(CH1: Un\G526,
CH2: Un\G726)
Time
Time
Controlled by the A/D converter module
'CH1 Digital output value' (Un\G400)
'CH2 Digital output value' (Un\G600)
Change rate of CH1 Digital output value
Change rate of CH2 Digital output value
The change amount of the digital output value is converted to the change
rate at every rate alarm alert detection cycle. "Change rate > 0" if the change
amount increases, and "Change rate < 0" if the change amount decreases.
For the rate alarm upper limit value: 5.0%, and
the rate alarm lower limit value: -5.0%
No.Change rate of the digital output value
CH1CH2
(1)10.0%
3.0%
10.0%
An upper limit
alert issued
for CH1
No alert
issued
-3.0%No alert
issued
No alert
issued
(2)-10.0%
A lower limit
alert issued
for CH2
(3)-3.0%
:::
:
:
:
Ex.
An upper limit
alert issued
for CH1
upper lower limit value Process alarm lower upper limit value Process alarm lower lower limit value". If a
value out of the range is set, a process alarm upper lower limit value setting range error (error code: 1BH)
occurs.
Rate alarm
This function outputs an alert when the change rate of a digital output value is equal to or greater than the rate alarm upper
limit value, or the rate is equal to or smaller than the rate alarm lower limit value.
1
1 FUNCTIONS
1.6 Alert Output Function
33
Page 36
Operation
Ex.
■Operation performed when an alert is output
Digital output values are monitored on the rate alarm alert detection cycle. When a change rate of a digital output value (from
a previous value) is equal to or more than the rate alarm upper limit value, or the rate is equal to or less than the rate alarm
lower limit value, an alert is output as follows.
• Alarm ON (1) is stored in 'Alert output flag (Rate alarm upper limit)' (Un\G38) or 'Alert output flag (Rate alarm lower limit)'
(Un\G39).
• 'Alert output signal' (X8) turns on.
• The ALM LED turns on.
In addition, an alarm code is stored in 'Latest alarm code' (Un\G2).
For details on the alarm codes, refer to the following.
Page 112 List of Alarm Codes
The A/D conversion on a channel where an alert was output continues.
■Operation after an alert was output
After an alert was output, if the change rate of a digital output value does not satisfy the alert output conditions due to being
smaller than the rate alarm upper limit value or being greater than the rate alarm lower limit value, Normal (0) is stored in a bit
position corresponding to the channel number of 'Alert output flag (Rate alarm upper limit)' (Un\G38) or 'Alert output flag (Rate
alarm lower limit)' (Un\G39).
In addition, when all 'Alert output flag (Rate alarm upper limit)' (Un\G38) and 'Alert output flag (Rate alarm lower limit)'
(Un\G39) return to Normal (0), 'Alert output signal' (X8) turns off and the ALM LED turns off. However, the alarm code stored
in 'Latest alarm code' (Un\G2) is not cleared. To clear the alarm code, turn on and off 'Error clear request (YF)' after all the bits
of 'Alert output flag (Rate alarm upper limit)' (Un\G38) and 'Alert output flag (Rate alarm lower limit)' (Un\G39) return to Normal
(0).
Detection cycle
Set the rate alarm alert detection cycle in 'CH1 Rate alarm alert detection cycle setting' (Un\G522).
The rate alarm alert detection cycle is the value calculated by multiplying the set value by the conversion cycle.
The rate alarm alert detection cycle under the following conditions
The present value is compared to the previous value (50ms) in a rate alarm alert detection cycle of 50ms (sampling period
10ms 5). A digital value is judged if it increases 8000 digits (25.0%) or more, or if the increase is 1600 digits (5.0%) or less
from the previous value (when the maximum digital output value is 32000).
Use the following formula to calculate a change rate to be set based on the change amount of voltage and current to detect an
alert.
*1 Values after the decimal point are omitted.
1 FUNCTIONS
1.6 Alert Output Function
35
Page 38
Application examples of rate alarms
Ex.
+30%
+20%
0
Time
Change rate of the digital output value (%)
Rate alarm upper value
Rate alarm lower value
A rate alarm serves to monitor that the variation rate of a digital output value lies in a limited range as shown below:
To monitor that a rising rate of a digital output value is within the specified range
36
1 FUNCTIONS
1.6 Alert Output Function
Page 39
Ex.
To monitor that a drop rate of a digital output value is within the specified range
Ex.
-20%
-30%
0
Time
Change rate of the digital output value (%)
Rate alarm upper value
Rate alarm lower value
+10%
-10%
0
Time
Change rate of the digital output value (%)
Rate alarm upper value
Rate alarm lower value
To monitor that a change rate of a digital output value is within the specified range
1
Setting procedure
1. Set "Alert output setting (Rate alarm)" to "Enable".
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter]
[Application setting] [Alert output function (Rate alarm)]
2. Set an alert detection cycle of rate alarms.
Set the cycle in "Rate alarm alert detection cycle setting".
ItemSetting range
Rate alarm alert detection cycle setting1 to 32000 (times)
In the channel where a value out of the range is set, a rate alarm alert detection cycle setting range error
(error code: 1B9H) occurs.
3. Set values for "Rate alarm upper limit value" and "Rate alarm lower limit value".
Set a value for the maximum value of the digital output value in increments of 0.1%.
• Other than extended mode of the input range: 32000
• Extended mode of the input range: 36000
ItemSetting range
Rate alarm upper limit value-3276.8 to 3276.7 (%)
Rate alarm lower limit value
Set values within the range satisfying the condition "Rate alarm upper limit value > Rate alarm lower limit
value".
If a value out of the range is set, a rate alarm upper/lower limit setting value inversion error (error code:
1BAH) occurs.
1 FUNCTIONS
1.6 Alert Output Function
37
Page 40
1.7Input Signal Error Detection Function
ON
ON
ON
OFF
OFF
OFF
OFF
OFF
OFF
OFF
ON
Controlled by the A/D converter module
Controlled by the program
Input signal error detection
upper limit value
Input signal error detection
lower limit value
Analog input value
Time
Error
detection
Normal
input value
Error
detection
Detection range
Out of detection range
Included
CH1 Analog
input value
CH2 Analog
input value
'CH2 Input signal error detection flag'
(Un\G40, b1)
'CH1 Input signal error detection flag'
(Un\G40, b0)
'Input signal error detection signal'
(XC)
'Error clear request' (YF)
This function outputs an alarm when an analog input value exceeds the preset range.
38
1 FUNCTIONS
1.7 Input Signal Error Detection Function
Errors can be cleared using the input signal error detection auto-clear enable/disable setting. For details, refer
to the following.
Page 41 Clearing input signal errors
Page 41
Detection method
Input signal error
detection upper limit value
Input signal error
detection lower limit value
Analog input value
Time
Error
detection
Error
detection
Analog input value
Time
Error
detection
No error
detection
Input signal error
detection upper limit value
Input signal error
detection lower limit value
One of the following detection methods can be selected.
Detection methodDetection condition
0: DisableInput signal errors are not detected.
1: Upper and lower limit
detection
2: Lower limit detectionAn input signal error is detected when the
An input signal error is detected when the
analog input value is equal to or greater
than the input signal error detection upper
limit value, or when the analog input value
is equal to or smaller than the input signal
error detection lower limit value.
analog input value is equal to or smaller
than the input signal error detection lower
limit value.
1
3: Upper limit detectionAn input signal error is detected when the
4: Simple disconnection
detection
analog input value is equal to or greater
than the input signal error detection upper
limit value.
Simple disconnection detection is performed. For details, refer to the following.
Page 40 Simple disconnection detection
Analog input value
Error
detection
Input signal error
detection upper limit value
Input signal error
detection lower limit value
No error
detection
Time
1 FUNCTIONS
1.7 Input Signal Error Detection Function
39
Page 42
■Simple disconnection detection
Analog input value
Time
Error
detection
2mA or 0.5V
This function outputs an alarm when an analog input value is 0.5V or smaller or 2mA or smaller.
By combining this function with the extended mode in the input range setting, simple disconnection detection is enabled.
When an analog input value satisfies either of the following conditions, a disconnection occurs and 'Input signal error
detection flag' (Un\G40) turns on.
Input rangeDisconnection detection value
4 to 20mA (extended mode)Analog input value 2mA
1 to 5V (extended mode)Analog input value 0.5V
The settings for 'CH1 Input signal error detection lower limit set value' (Un\G529) and 'CH1 Input signal error detection upper
limit set value' (Un\G530) are ignored.
Notification
When an input signal error is detected, an error is notified as follows.
• Input signal error (1) is stored in the corresponding bit of 'Input signal error detection flag' (Un\G40).
• 'Input signal error detection signal' (XC) turns on.
• The ALM LED flashes.
In addition, an alarm code is stored in 'Latest alarm code' (Un\G2). Alarm codes are stored whenever the analog input
satisfies the condition for the input signal error detection.
For details on the alarm codes, refer to the following.
Page 112 List of Alarm Codes
Operation
On the channel where an error is detected, the last digital output value and digital operation value just before the error was
detected are stored.
When the analog input does not satisfy the condition of the input signal error detection, the A/D conversion resumes
regardless of the reset on Input signal error detection flag (Un\G40) and Input signal error detection signal (XC). (The ALM
LED remains flashing.)
• When an input signal error occurs, the digital output value and digital operation value are not updated.
• The A/D conversion continues on the channel where no Input signal error is detected.
• Whether an input signal error occurred is judged with the value when the first A/D conversion is completed.
Thus, the corresponding bit of 'A/D conversion completed flag' (Un\G42) turns on even when an input signal
error is detected.
Detection cycle
This function works at every sampling cycle.
40
1 FUNCTIONS
1.7 Input Signal Error Detection Function
Page 43
Clearing input signal errors
One of the following methods for clearing input signal errors can be selected by setting Input signal error detection auto-clear
enable/disable setting (Un\G302).
■When Input signal error detection auto-clear enable/disable setting is set to Enable (0)
After the analog input value returns within the setting range, the A/D converter module arranges the following status
automatically. After the analog input value returns within the setting range, turning on and off 'Error clear request' (YF) is not
required.
• 'Input signal error detection flag' (Un\G40) is cleared.
• 'Input signal error detection signal' (XC) turns off.
• The ALM LED turns off.
'Latest alarm code' (Un\G2) is not cleared.
After the analog input value returns within the setting range, turn on and off 'Error clear request' (YF) to clear
'Latest alarm code' (Un\G2).
1
1 FUNCTIONS
1.7 Input Signal Error Detection Function
41
Page 44
Ex.
The following figure shows the operation when an analog input value falls below 2.4mA and returns within the normal range
ON
ON
OFF
OFF
OFF
OFF
OFF
OFF
ON
ON
ON
Input signal error detection
upper limit value
Input signal error detection
lower limit value
(2.4mA)
Analog input value
Time
Error
detected
'CH2 Input signal error detection flag'
(Un\G40, b1)
'CH1 Input signal error detection flag'
(Un\G40, b0)
• 'CH1 Input signal error detection setting' (Un\G528): Upper and lower limit detection (1)
• Input signal error detection lower limit value: 2.4mA
■When Input signal error detection auto-clear enable/disable setting is set to Disable (1)
After the analog input value returns within the set range, turn on and off 'Error clear request' (YF).
The A/D converter module arranges the following status when an input signal error is cleared.
• 'Input signal error detection flag' (Un\G40) is cleared.
• 'Input signal error detection signal' (XC) turns off.
• The ALM LED turns off.
• 'Latest alarm code' (Un\G2) is cleared.
42
1 FUNCTIONS
1.7 Input Signal Error Detection Function
Page 45
Setting the input signal error detection upper or lower limit value
Input signal error detection upper limit value - Gain value of each range
Gain value of each range - Offset value of each range
× 1000
=
Input signal error detection
upper limit setting value
Lower limit value of each range - Input signal error detection lower limit value
Gain value of each range - Offset value of each range
× 1000=
Input signal error detection
lower limit setting value
■Input signal error detection upper limit value
Set the input signal error detection upper limit value by 1 (0.1%) based on the input signal error detection upper limit set value.
This value is calculated by adding "Analog input range width (Gain value - Offset value) Input signal error detection upper
limit set value (%)" to the gain value. Only a value which is equal to or greater than the gain value can be set.
To calculate the input signal error detection upper limit set value based on the input signal error detection upper limit value,
use the following formula.
■Input signal error detection lower limit value
Set the input signal error detection lower limit value by 1 (0.1%) based on the input signal error detection lower limit set value.
This value is calculated by subtracting "Analog input range width (Gain value - Offset value) Input signal error detection
lower limit set value (%)" from the lower limit value of each range. Only the value which is equal to or smaller than the lower
limit value of the range can be set.
To calculate the input signal error detection lower limit set value based on the input signal error detection lower limit value, use
the following formula.
The following table lists the lower limit value, offset value, and gain value for each range.
Input rangeLower limit valueOffset valueGain value
Voltage0 to 10V0V10V
0 to 5V0V5V
1 to 5V1V5V
1 to 5V (extended mode)1V5V
-10 to 10V-10V0V10V
User range settingAnalog input value equivalent to
the digital output value of -32000
Current0 to 20mA0mA20mA
4 to 20mA4mA20mA
4 to 20mA (extended mode)4mA20mA
User range settingAnalog input value equivalent to
the digital output value of -32000
Analog input value set as an
offset value
Analog input value set as an
offset value
Analog input value set as a gain
value
Analog input value set as a gain
value
1
When 'CH1 Input signal error detection setting' (Un\G528) is set to Upper and lower limit detection (1) and the
same value is set for 'CH1 Input signal error detection lower limit set value' (Un\G529) and 'CH1 Input signal
error detection upper limit set value' (Un\G530), the same operation as the one performed with the following
setting can be performed.
• Setting 'CH1 Input signal error detection extension/input signal error detection setting' (Un\G47) to Upper
limit value/lower limit value same (0) in the Q compatible mode
For details on the Q compatible mode, refer to the following.
Page 46 When the function is used in the Q compatible mode
1 FUNCTIONS
1.7 Input Signal Error Detection Function
43
Page 46
Setting procedure
[Calculation of lower limit value]
=
= 225 (22.5%)
Input signal error detection lower limit
setting value
× 1000
4.0 - 0.4
20.0 - 4.0
[Calculation of upper limit value]
=
= 75 (7.5%)
Input signal error detection upper limit
setting value
× 1000
21.2 - 20.0
20.0 - 4.0
1. Select a detection method in "Input signal error detection setting".
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter]
[Application setting] [Input signal error detection function]
2. Set values for "Input signal error detection lower limit setting value" and "Input signal error detection upper limit setting
value".
ItemSetting range
Input signal error detection lower limit setting value0.0 to 25.0 (%)
Input signal error detection upper limit setting value
3. Set "Input signal error detection auto-clear enable/disable setting" to "Enable" or "Disable".
In the channel where a value out of the range is set, an input signal error detection setting value range error
(error code: 1C1H) occurs.
Setting example
■Setting example of the input signal error detection
In the channel where the following values are set, an input error is detected when an analog input value exceeds 21.2mA or
falls below 0.4mA.
ItemSetting value
Input range4 to 20mA
'Input signal error detection auto-clear enable/disable setting' (Un\G302)Disable (1)
'CH1 Input signal error detection setting' (Un\G528)Upper and lower limit detection (1)
Assign the following values in a formula to determine the input signal error detection lower limit set value and input signal error
detection upper limit set value.
• Input signal error detection lower limit value: 0.4mA
• Input signal error detection upper limit value: 21.2mA
• Offset value: 4.0mA
• Gain value: 20.0mA
For details on the calculation formula, refer to the following.
Page 43 Setting the input signal error detection upper or lower limit value
Thus, set 'CH1 Input signal error detection lower limit set value' (Un\G529) to 225 (22.5%).
Thus, set 'CH1 Input signal error detection upper limit set value' (Un\G530) to 75 (7.5%).
44
1 FUNCTIONS
1.7 Input Signal Error Detection Function
Page 47
The following figure shows the operation of the input signal error detection.
21.2mA
20mA
4mA
1.2mA
3.6mA
16mA
0.4mA
Input signal error detection
upper limit value
Gain value
Lower limit value of input
range (offset value)
Input signal error detection
lower limit value
Error
detected
Error
detected
(7.5% of 16mA)
(22.5% of 16mA)
(Gain value - Offset value)
1
1 FUNCTIONS
1.7 Input Signal Error Detection Function
45
Page 48
When the function is used in the Q compatible mode
1.6mA
1.6mA
A
16mA
B
Input signal error detection
upper limit value
Gain value
Analog input value
Error
detected
Input signal error detection
lower limit value
Offset value
Time
Error
detected
(10.0% of 16mA)
(10.0% of 16mA)
(Gain value - Offset value)
When the input signal error detection function is used in the Q compatible mode, the operation is different from that in the R
mode. The following describes only the items that have differences in operation.
Detection condition
An input signal error is detected when the analog input value is equal to or greater than the input signal error detection upper
limit value, or when the analog input value is equal to or smaller than the input signal error detection lower limit value.
Detection method
Select a detection method in 'Input signal error detection extension/input signal error detection setting' (Un\G47).
Detection methodDescription
0: Upper limit value/
lower limit value same
The input signal error detection
upper limit value and input signal
error detection lower limit value
are calculated from the same input
signal error detection setting value.
Thus, the same range can be set
for A and B in the right figure.
Input signal error detection setting value: 100 (10%)
1: Upper limit value/
lower limit value
different
The input signal error detection
upper limit value and input signal
error detection lower limit value
are calculated from different input
signal error detection setting
values.
Thus, different ranges can be set
for A and B in the right figure.
Input signal error detection setting value for the input signal error detection upper limit value:
100 (10%)
Input signal error detection setting value for the input signal error detection lower limit value:
150 (15%)
Analog input value
Error
Input signal error detection
upper limit value
Gain value
Offset value
Input signal error detection
lower limit value
detected
Error
detected
1.6mA
A
(10.0% of 16mA)
16mA
(Gain value - Offset value)
2.4mA
B
(15.0% of 16mA)
Time
For details on the input signal error detection upper limit value and input signal error detection lower limit
value, refer to the following.
Page 185 CH1 Input signal error detection setting value/lower limit set value [Q compatible mode]
46
1 FUNCTIONS
1.7 Input Signal Error Detection Function
Page 49
Notification
When an input signal error is detected, an error is notified as follows.
• Input signal error (1) is stored in the corresponding bit of 'Input signal error detection flag' (Un\G49).
• 'Input signal error detection signal' (XC) turns on.
• The corresponding bit of 'A/D conversion completed flag' (Un\G10) turns off.
• The ALM LED flashes.
In addition, an alarm code is stored in 'Latest alarm code' (Un\G3750).
For details on the alarm codes, refer to the following.
Page 112 List of Alarm Codes
1
1 FUNCTIONS
1.7 Input Signal Error Detection Function
47
Page 50
Operation
On the channel where an error is detected, the last digital output value and digital operation value just before the error was
detected are stored. Also, the corresponding bit of A/D conversion completed flag (Un\G10) turns off.
When the analog input does not satisfy the condition of the input signal error detection, the A/D conversion resumes
regardless of the reset on Input signal error detection flag (Un\G49) and Input signal error detection signal (XC). (The ALM
LED remains flashing.)
Clearing input signal errors
One of the following methods for clearing input signal errors can be selected by setting Input signal error detection auto-clear
enable/disable setting (Un\G162).
■When Input signal error detection auto-clear enable/disable setting is set to Enable (0)
After the analog input value returns within the setting range, the A/D converter module arranges the following status
automatically. After the analog input value returns within the setting range, turning on and off 'Error clear request' (YF) is not
required.
• Input signal error detection flag (Un\G49) is cleared.
• Input signal error detection signal (XC) turns off.
• The ALM LED turns off.
Latest alarm code (Un\G3750) is not cleared.
After the analog input value returns within the setting range, turn on and off 'Error clear request' (YF) to clear
'Latest alarm code' (Un\G3750).
48
1 FUNCTIONS
1.7 Input Signal Error Detection Function
Page 51
Ex.
The following figure shows the operation when an analog input value falls below 2.4mA and returns within the normal range
ON
ON
OFF
OFF
OFF
OFF
OFF
OFF
OFF
ON
ONON
OFF
ONON
Input signal error detection
upper limit value
Input signal error detection
lower limit value
(2.4mA)
Analog input value
Time
Error
detected
CH2 Input signal error detection flag
(Un\G49, b1)
CH1 Input signal error detection flag
(Un\G49, b0)
• Input signal error detection extension/input signal error detection setting (Un\G47): Upper limit value/lower limit value same,
Enable (0000H)
• Input signal error detection lower limit value: 2.4mA
1
■When Input signal error detection auto-clear enable/disable setting is set to Disable (1)
After the analog input value returns within the set range, turn on and off Error clear request (YF).
The A/D converter module arranges the following status when an input signal error is cleared.
• Input signal error detection flag (Un\G49) is cleared.
• Input signal error detection signal (XC) turns off.
• The ALM LED turns off.
• Latest alarm code (Un\G3750) is cleared.
1 FUNCTIONS
1.7 Input Signal Error Detection Function
49
Page 52
Setting example
[Calculation of lower limit value]
=
= 200 (20.0%)
Input signal error detection setting value× 1000
4.0 - 0.8
20.0 - 4.0
[Calculation of upper limit value]
=
= 100 (10.0%)
Input signal error detection setting value× 1000
21.6 - 20.0
20.0 - 4.0
21.6mA
20mA
4mA
1.6mA
3.2mA
16mA
0.8mA
Input signal error detection
upper limit value
Gain value
Lower limit value of input
range (offset value)
Input signal error detection
lower limit value
Error
detected
Error
detected
(10.0% of 16mA)
(20.0% of 16mA)
(Gain value - Offset value)
■Setting example of the input signal error detection
In the channel where the following values are set, an input error is detected when an analog input value exceeds 21.6mA or
falls below 0.8mA.
ItemSetting value
ModeQ compatible mode
Input range4 to 20mA
Input signal error detection auto-clear enable/disable setting (Un\G162)Disable (1)
Input signal error detection extension/input signal error detection setting (Un\G47)Upper limit value/lower limit value different (1)
Assign the following values in a formula to determine the input signal error detection setting value from the input signal error
detection upper limit value and input signal error detection lower limit value.
• Input signal error detection upper limit value: 21.6mA
• Input signal error detection lower limit value: 0.8mA
• Offset value: 4.0mA
• Gain value: 20.0mA
For details on the calculation formula, refer to the following.
Page 43 Setting the input signal error detection upper or lower limit value
Thus, set 'CH1 Input signal error detection setting value/CH1 Input signal error detection lower limit set value' (Un\G142) to
the determined input signal error detection setting value (200 (20.0%)).
Thus, set 'CH1 Input signal error detection upper limit setting' (Un\G150) to the determined input signal error detection setting
value (100 (10.0%)).
The following figure shows the operation with the determined input signal error detection setting values.
50
1 FUNCTIONS
1.7 Input Signal Error Detection Function
Page 53
1.8Shift Function
Ex.
(1)
(2)
32000
31990
0
-10
5
Analog input voltage (V)
This function adds (shifts) a set conversion value shift amount to a digital output value and stores the result in the buffer
memory area. The digital operation value reflects the change in the conversion value shift amount on a realtime basis.
Therefore, fine adjustment can be easily performed when the system starts.
Operation
A set conversion value shift amount is added to the digital operation value. The digital operation value with shift addition is
stored in 'CH1 Digital operation value' (Un\G402). The conversion value shift amount is added in every sampling cycle for
sampling processing and is added in every averaging process cycle for averaging processing. After that, the added values are
stored in 'CH1 Digital operation value' (Un\G402). If a value is set to the conversion value shift amount, the conversion value
shift amount is added regardless of turning on and off 'Operating condition setting request' (Y9).
Setting procedure
Set a value for "Conversion value shift amount".
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter]
[Application setting] [Shift function]
ItemSetting range
Conversion value shift amount-32768 to 32767
Setting example
1
When the I/O characteristics is adjusted in a channel where the input range of 0 to 5V is set by the shift function
(1) 'CH1 Digital output value' (Un\G400)
+
'CH1 Conversion value shift amount' (Un\G472) "+10"
(2) 'CH1 Digital operation value' (Un\G402)
Voltage inputDigital output value
0-100
53199032000
*1 These values are also applied to the case of digital output values (32 bits).
*1
Digital operation value
1 FUNCTIONS
1.8 Shift Function
51
Page 54
Ex.
When the I/O characteristics is adjusted in a channel where the input range of -10 to 10V is set by the shift function
(2)
(1)
32767
32000
(52000)
0
-32000
-12000
1050-5-10
Analog input voltage (V)
(1) 'CH1 Digital output value' (Un\G400)
+
'CH1 Conversion value shift amount' (Un\G472)
"+20000"
(2) 'CH1 Digital operation value' (Un\G402)
Voltage inputDigital output value
-10-32000-12000
-5-160004000
0020000
51600032767
103200032767
*2
Digital operation value
*1
*1
*1 Because the value exceeds the range of -32768 to 32767, the value is fixed to 32767 (the upper limit value).
*2 These values are also applied to the case of digital output values (32 bits).
52
1 FUNCTIONS
1.8 Shift Function
Page 55
Ex.
When the following values are used for the A/D converter module with the input range of 0 to 5V
This function logs (records) digital output values or digital operation values. Data of 1000 points can be logged for each
channel. Logging data are stored in the buffer memory area. In addition, the data collection can be stopped by using the
status change of the data as a trigger. This function also helps the error analysis since the data before and after the
occurrence of an error is held.
Using function blocks (FBs) enables saving the data stored in the buffer memory as a CSV file.
Logging function
■Collecting logging data
Logging data is collected as follows.
• 1000 points of the latest digital output values or digital operation values can be always collected for each channel.
• The data can be collected at intervals of 10ms at a minimum and of 3600s at a maximum.
An address where the latest/oldest data is stored can be checked with the latest/head pointer.
(1) Head pointer
The address of the oldest data in logging data can be checked.
(2) Latest pointer
The address of the latest data in logging data can be checked.
1
Logging data are stored in the buffer memory area. When the number of stored data points is 1001 or greater, data is
sequentially overwritten from address 0 with new data.
■Stopping the logging operation
The logging data is refreshed at high speed during logging. Stop logging when the logging data needs to be referred without
paying attention to the refreshing cycle.
Logging can be stopped by the hold trigger.
• A hold trigger allows two options: Logging hold request or Level trigger.
• The number of data points to be collected after a hold trigger occurs can be set.
(1) Logging hold request
A hold trigger is generated from a program at any timing.
(2) Level trigger
A hold trigger is generated when a stored value in a buffer memory area is monitored and
the set condition is satisfied as follows.
Example: When the stored value exceeds or falls below the set value, a hold trigger is
generated.
Stored value of a buffer
memory area to be monitored
A trigger is
generated.
Trigger setting
value
(3) Post-trigger logging points
When the set points of data is collected after a hold trigger is generated, the logging
operation is stopped.
A trigger is
generated.
Time
1 FUNCTIONS
1.12 Logging Function
61
Page 64
■Saving logging data into a CSV file
ON
ONON
OFF
OFF
'CH1 Logging enable/disable setting'
(Un\G535)
'Operating condition setting request' (Y9)
'Operating condition setting completed
flag' (X9)
Disable
(1)
Enable (0)
Logging starts.
The data in 'CH1 Logging data' (Un\G10000 to Un\G10999) disappears when the module is powered off. However, the data
can be saved in a CSV file by using function blocks (FBs).
Operation of logging
■Starting logging data collection
Logging data collection starts when 'CH1 Logging enable/disable setting' (Un\G535) is set to Enable (0) and 'Operating
condition setting request' (Y9) is turned on and off.
The data in 'CH1 Digital output value' (Un\G400) or 'CH1 Digital operation value' (Un\G402) is stored in 'CH1 Logging data'
(Un\G10000 to Un\G10999) on the set logging cycle. The data in 'CH1 Digital output value (32 bits)' (Un\G410, Un\G411)
cannot be logged.
■Logging data
Logging data are stored in the following buffer memory areas.
When the number of stored data points is 10001 or greater, the data is overwritten with new data from the head of the storage
area of the corresponding channel.
Channel
CH1Un\G10000 to Un\G10999
CH2Un\G11000 to Un\G11999
CH3Un\G12000 to Un\G12999
CH4Un\G13000 to Un\G13999
CH5Un\G14000 to Un\G14999
CH6Un\G15000 to Un\G15999
CH7Un\G16000 to Un\G16999
CH8Un\G17000 to Un\G17999
CH9Un\G18000 to Un\G18999
CH10Un\G19000 to Un\G19999
CH11Un\G20000 to Un\G20999
CH12Un\G21000 to Un\G21999
CH13Un\G22000 to Un\G22999
CH14Un\G23000 to Un\G23999
CH15Un\G24000 to Un\G24999
CH16Un\G25000 to Un\G25999
*1
Storage area for logging data
*1 When the R60AD8-G is used, data is stored in CH1 to CH8.
If logging has been performed even once, all the logging data above are cleared to 0 at the timing when 'Operating condition
setting request' (Y9) is turned off and on.
Logging data setting
Select a data type to be collected with 'CH1 Logging data setting' (Un\G536).
The following values are stored in 'CH1 Logging cycle monitor value' (Un\G441, Un\G442).
AddressItemStored value
441CH1 Logging cycle monitor values6
442ms960
■When the logging function becomes disabled
The logging is not performed when even one of the following errors occurs after the logging function is enabled and 'Operating
condition setting request' (Y9) is turned on and off.
• Error code (192H to 195H): Setting errors of 'CH1 Time average/Count average/Moving average/Primary delay filter
constant setting' (Un\G502)
• Error code (1D0H to 1D6H): Setting errors of the logging function
• Error code (1D8H to 1D9H): Setting errors of the logging read function
When 'Operating condition setting request' (Y9) is turned on and off on the condition that the logging cycle
determined by 'CH1 Logging cycle setting value' (Un\G537) and 'CH1 Logging cycle unit setting' (Un\G538) is
shorter than the conversion cycle, an error occurs and logging does not start. A logging cycle setting disable
error (error code: 1D2H) is stored in 'Latest error code' (Un\G0) to turn on 'Error flag' (XF) and the ERR LED.
1 FUNCTIONS
1.12 Logging Function
63
Page 66
■Number of logging data
Valid data
Invalid data
(Data stored in these areas are not reliable.)
Address 0
Address 1
Address 2
Address 3
Address 4
Address 5
Address 998
Address 999
Address 0
Address 1
Address 2
Address 3
Address 4
Address 5
Address 998
Address 999
CH Number of logging data = 5
Valid data
CH Number of logging data = 1000
the latest
the oldest
the latest
the oldest
Address 0
Address 1
Address 2
Address 3
Address 4
Address 5
Address 998
Address 999
Address 0
Address 1
Address 2
Address 3
Address 4
Address 5
Address 998
Address 999
CH Head pointer
= 0
CH Latest pointer
= 4
CH Head pointer
= 5
CH Latest pointer
= 4
With 'CH1 Number of logging data' (Un\G436), the number of valid data points in 'CH1 Logging data' (Un\G10000 to
Un\G10999) can be checked.
When the number of collected data points is less than 1000When the number of collected data points is 1001 or greater
The number of logging data increases by one each time new data is stored.
When 'CH1 Logging data' (Un\G10000 to Un\G10999) becomes full (Number of logging data = 1000), the next data is stored
in the start address of 'CH1 Logging data' (Un\G10000 to Un\G10999), and the logging operation continues overwriting the
existing data. In this case, the number of logging data is fixed to 1000.
■Head pointer and latest pointer
The storage locations of the oldest data and the latest data in 'CH1 Logging data' (Un\G10000 to Un\G10999) can be checked
with the following buffer memory areas.
Buffer memory areaDescription
'CH1 Head pointer' (Un\G434)The buffer memory address of the oldest data in 'CH1 Logging data'
'CH1 Latest pointer' (Un\G435)The buffer memory address of the latest data in 'CH1 Logging data'
(Un\G10000 to Un\G10999) can be checked with this buffer memory area.
The offset value (0 to 999) counted from the start address of 'CH1 Logging
data' (Un\G10000 to Un\G10999) is stored.
(Un\G10000 to Un\G10999) can be checked with this buffer memory area.
The offset value (0 to 999) counted from the start address of 'CH1 Logging
data' (Un\G10000 to Un\G10999) is stored.
When the number of collected data points is less than 1000When the number of collected data points is 1001 or greater
'CH1 Head pointer' (Un\G434) does not change (fixed to 0) until 'CH1 Logging data' (Un\G10000 to Un\G10999) becomes full
after the logging start.
'CH1 Head pointer' (Un\G434) moves by one point when 'CH1 Logging data' (Un\G10000 to Un\G10999) becomes full and
overwriting the data starts from the start address.
64
1 FUNCTIONS
1.12 Logging Function
Page 67
■Checking logging data without stopping the logging operation
Logging data can be checked during the logging operation with 'CH1 Head pointer' (Un\G434), 'CH1 Latest pointer'
(Un\G435), and 'CH1 Number of logging data' (Un\G436).
To check logging data during logging operation, follow the precautions below because logging data may be refreshed while
data is being read out.
• Set the cycle to 'CH1 Logging cycle setting value' (Un\G537) so that data checking and reading surely complete before
logging data is refreshed. If the logging cycle is short, logging data may be refreshed during data checking and reading.
• After obtaining the logging data which needs to be checked, monitor the variation of 'CH1 Head pointer' (Un\G434) or 'CH1
Number of logging data' (Un\G436), and obtain logging data just after the stored value has changed.
• If the data refreshed and the data being checked do not synchronize due to the relationship between the logging cycle and
the scan time of the CPU module, adjust the logging cycle.
Stop the logging operation when the logging data needs to be checked without paying attention to the logging cycle.
(Page 66 Stopping the logging operation)
1
1 FUNCTIONS
1.12 Logging Function
65
Page 68
Stopping the logging operation
Ex.
ON
ON
OFF
OFF
OFF
ON
'CH1 Logging enable/disable
setting' (Un\G535)
'Operating condition setting
request' (Y9)
'Operating condition setting
completed flag' (X9)
Enable (0)
Hold trigger
Logging hold flag
The data corresponding to the
points set in 'CH1 Post-trigger
logging points' (Un\G539) is
collected.
CH Latest pointer = 4
CH Head pointer = 5
CH Trigger pointer = 350
the latest
the oldest
Address 0
Address 1
Address 2
Address 3
Address 4
Address 5
Address 998
Address 999
Address 349
Address 350
Address 351
Logging operation stops (holds) when the preset trigger condition is satisfied and the set points of the data are collected.
A trigger that is generated when the condition is satisfied is called a hold trigger.
To generate a hold trigger, the following two methods are available.
Page 69 Logging hold request
Page 70 Level trigger
When a hold trigger is detected during data collection, the logging operation stops after the points of the data set in 'CH1 Post-
trigger logging points' (Un\G539) are collected.
Post-trigger logging points
Set the number of data collected in the period from the detection of a hold trigger to logging operation stop to 'CH1 Post-
trigger logging points' (Un\G539).
Checking that the logging has stopped
Check that 'CH1 Logging hold flag' (Un\G409) is ON (1).
Checking data when a hold trigger has occurred
The storage location of the data when a hold trigger has occurred can be checked with 'CH1 Trigger pointer' (Un\G437).
The offset value counted from the start address of 'CH1 Logging data' (Un\G10000 to Un\G10999) is stored in 'CH1 Trigger
pointer' (Un\G437).
The value stored in 'CH1 Trigger pointer' (Un\G437) when the logging operation stops under the following conditions
It may take time until ON (1) is stored in 'CH1 Logging hold flag' (Un\G409) after 'CH1 Logging hold request' (Un\G471) is
changed from off to on.
To resume logging, check that ON (1) is stored in 'CH1 Logging hold flag' (Un\G409) and 'CH1 Logging hold request'
(Un\G471) is changed from on to off. After logging resumes, the value is stored from the head buffer memory area of 'CH1
Logging data' (Un\G10000 to Un\G10999).
In addition, OFF (0) is stored in 'CH1 Logging hold flag' (Un\G409).
1
Logging does not stop when 'CH1 Logging hold request' (Un\G471) is changed from on to off before ON (1) is stored in 'CH1
Logging hold flag' (Un\G409).
1 FUNCTIONS
1.12 Logging Function
67
Page 70
■Buffer memory area status when logging resumes
The following table shows the buffer memory area status when logging resumes.
Buffer memory areaValue status
'CH1 Head pointer' (Un\G434)Values are initialized.
'CH1 Latest pointer' (Un\G435)
'CH1 Number of logging data' (Un\G436)
'CH1 Trigger pointer' (Un\G437)
'CH1 Trigger generation time' (Un\G444 to Un\G448)
'CH1 Logging data' (Un\G10000 to Un\G10999)The values before logging resumes are not initialized.
After logging resumes, values are stored from the start address of 'CH1
Logging data' (Un\G10000 to Un\G10999). To refer to the logging data, check
which area has valid data with 'CH1 Number of logging data' (Un\G436).
68
1 FUNCTIONS
1.12 Logging Function
Page 71
Logging hold request
OFF(0)ON(1)
A hold trigger is generated.
'CH1 Logging hold request'
(Un\G471)
The data before the last 1000 points
are discarded.
'CH1 Post-trigger
logging points'
(Un\G539)
CH1 Logging data
(Un\G10000 to Un\G10999)
The logging is held.
'CH1 Number of logging data' (Un\G436) ≤ 1000 points
Controlled by the A/D converter module
A hold trigger is generated from a program at any timing.
Logging starts when ON (1) is set to 'CH1 Logging hold request' (Un\G471) and stops after a preset number of the data is
collected.
• The following delay time occurs until the A/D converter module receives a hold trigger after the value in
'CH1 Logging hold request' (Un\G471) is changed from OFF (0) to ON (1).
Trigger delay = Logging cycle (Cycle at which logging is actually performed) + Scan time of the CPU module
• When 'CH1 Logging hold request' (Un\G471) is changed from ON (1) to OFF (0) before 'CH1 Logging hold
flag' (Un\G409) turns to ON (1), the data set in 'CH1 Post-trigger logging points' (Un\G539) is not held after
logging, and logging resumes soon.
• If a value other than OFF (0) and ON (1) is set to 'CH1 Logging hold request' (Un\G471), an error occurs. A
logging hold request range error (error code: 1D7H) is stored in 'Latest error code' (Un\G0) to turn on
'Error flag' (XF) and the ERR LED.
1
Checking that the logging has stopped
Check that 'CH1 Logging hold flag' (Un\G409) is ON (1).
To refer to the logging data from the CPU module, hold (stop) the logging operation and check that ON (1) is
stored in 'CH1 Logging hold flag' (Un\G409).
1 FUNCTIONS
1.12 Logging Function
69
Page 72
Level trigger
Ex.
When a value in the monitored buffer memory area of the A/D converter module satisfies a preset condition, a hold trigger is
generated.
A level trigger is monitored on the refreshing cycle of the digital output value or the digital operation value.
Initial setting of a level trigger
■Setting a target to be monitored
As a condition to generate a hold trigger, set the buffer memory address to be monitored to 'CH1 Trigger data' (Un\G541).
ItemSetting range
CH1 Trigger data (Un\G541)0 to 9999
To monitor a device value of a module other than the A/D converter module such as a device of the CPU module, set as
follows.
• Set a value between 90 and 99 (Level data (Un\G90 to Un\G99)) to 'CH1 Trigger data' (Un\G541).
• Write a value of the monitored device to Level data (Un\G90 to Un\G99) by using the MOV instruction.
ItemSetting range
Level data (Un\G90 to Un\G99)-32768 to 32767
Application example of Level data (Un\G90 to Un\G99)
To monitor the data register D100 in the CPU module and operate the level trigger in CH1, create a program as follows.
1. Set 91 (buffer memory address of Level data 1) to 'CH1 Trigger data' (Un\G541) (when Level data 1 is used).
2. Store the storage data of D100 in 'Level data 1' (Un\G91) by the program continuously.
Specify an appropriate data such as 'CH1 Digital output value' (Un\G400), 'CH1 Digital operation value'
(Un\G402), or Level data (Un\G90 to Un\G99) to 'CH1 Trigger data' (Un\G541). When a setting area or a
system area is specified, the normal operation is not guaranteed.
70
1 FUNCTIONS
1.12 Logging Function
Page 73
■Setting the monitoring condition
Set the address of a buffer memory area to be monitored.Set a reference value to generate a trigger.
<
(Fall (2))
>
(Rise (1))
Set the condition.
The condition is
established.
CH Level trigger condition
setting
> or <
(Rise and fall (3))
CH Trigger setting value
-32768 to 32767
CH Trigger data
CH
Digital operation value
CH
Digital output value
Level data
A trigger is
generated.
Set a condition to generate a hold trigger in 'CH1 Level trigger condition setting' (Un\G540).
Setting valueDescription
Rise (1)
Fall (2)A hold trigger is generated under the condition
Rise and fall (3)A hold trigger is generated under the condition
Stored value of a buffer memory area to be monitored
Trigger setting
value
(a) A hold trigger is generated when the relation between the values
changes from "Stored value of a buffer memory area to be monitored
Trigger setting value" to "Stored value of a buffer memory area to be
monitored > Trigger setting value".
(b) A hold trigger is generated when the relation between the values
changes from "Stored value of a buffer memory area to be monitored
Trigger setting value" to "Stored value of a buffer memory area to be
monitored < Trigger setting value".
(a)(b)
Time
• Set a value where a hold trigger is generated to 'CH1 Trigger setting value' (Un\G542).
ItemSetting range
CH1 Trigger setting value (Un\G542)-32768 to 32767
A hold trigger is generated under the condition
(a).
(b).
(a) or (b).
1
The following figure shows the relation between setting items to be configured for the initial setting of a level
trigger.
To generate a hold trigger when a value in 'CH1 Digital output value' (Un\G400) is greater than 10000, set as
2. Set "Logging enable/disable setting" to "Enable".
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter]
[Application setting] [Logging function]
3. Set the target data to be logged in "Logging data setting". Set either of "Digital output value" or "Digital operation value"
for each channel.
4. Set the cycle to store the logging data to "Logging cycle setting value".
5. Select a unit of the logging cycle setting value in "Logging cycle unit setting".
6. Set a condition to generate a hold trigger in "Level trigger condition setting". To use 'CH1 Logging hold request'
(Un\G471), set "Disable". To use the level trigger, set either of "Level trigger (condition: Rise)", "Level trigger (condition:
Fall)", or "Level trigger (condition: Rise and fall)".
7. Set a number of the data points to be collected for the time period from the occurrence of a hold trigger to logging stop in
"Post-trigger logging points".
8. Set a buffer memory address to be monitored with a level trigger to "Trigger data".
1
9. Set whether to enable or disable the logging read function in "Read interrupt enable/disable setting"
10. Set a level where a level trigger operates for "Trigger setting value".
1 FUNCTIONS
1.12 Logging Function
73
Page 76
Logging read function
This function makes it possible to store more than 1000 points of logging data without stopping logging by transferring the
device data to the file register of the CPU module during logging. This function reduces the takt time in a test demanding high-
speed conversion.
Overview of the logging read function
After logging starts, an interrupt request is sent to the CPU module and an interrupt program is executed every time the preset
number of data to be read is logged.
The A/D converter module has 16 points of the interrupt factor (SI) corresponding to the logging reading of each channel.
For the setting of interrupt pointers, refer to the following.
Page 74 Setting interrupt pointers
Setting interrupt pointers
Assign the interrupt factors (SI) of the A/D converter module and interrupt pointers of the CPU module using the interrupt
pointer setting of the engineering tool.
The interrupt function must be set when the logging read function is used.
Starting the logging read function
To use the logging read function, set 'CH1 Loading interrupt enable/disable setting' (Un\G544) to Enable (0) and set a number
of logging points to generate an interrupt in 'CH1 Logging read points setting value' (Un\G545). This function starts when
'Operating condition setting request' (Y9) is turned on and off.
■The number of logging read points
Set a value whose integral multiple is 1000 in 'CH1 Logging read points setting value' (Un\G545). The setting range is from 1
to 1000.
When a value whose integral multiple is not 1000 is set, the number of the actual logging read points is forced to become a
maximum value whose integral multiple is 1000 within the set value. The value of the number of logging read points is stored
in 'CH1 Logging read points monitor value' (Un\G440).
Logging read points setting valueLogging read points monitor value
100100
9050
110100
650500
400250
Data checking method
■Current logging read pointer
• The head pointer read from 'CH1 Logging data' (Un\G10000 to Un\G10999) with the interrupt processing is stored in 'CH1
Current logging read pointer' (Un\G438).
• The default value of 'CH1 Current logging read pointer' (Un\G438) is -1.
• Every time the same number of data as the value stored in 'CH1 Logging read points monitor value' (Un\G440) is logged, a
value calculated by the following formula is stored in 'CH1 Current logging read pointer' (Un\G438).
CH1 Current logging read pointer = CH1 Latest pointer - CH1 Logging read points monitor value + 1
■Previous logging read pointer
• 'CH1 Current logging read pointer' (Un\G438) at the timing when the previous read pointer detection interrupt occurs is
stored in 'CH1 Previous logging read pointer' (Un\G439).
• The default value of 'CH1 Previous logging read pointer' (Un\G439) is -1.
• 'CH1 Previous logging read pointer' (Un\G439) is used to detect the overlap of the logging read pointer detection interrupt
processing.
74
1 FUNCTIONS
1.12 Logging Function
Page 77
Ex.
The values to be stored in each pointer at every detection interrupt when the logging read detection starts with 'CH1 Logging
Ex.
00100200
010 01
0100
(2)(1)(3)
1
Logging stopped
Storing
data
Storing
data
Storing
data
Storing
data
Storing
data
Storing
data
Storing
data
Normal control program
Interrupt
program
Interrupt
program
Interrupt
program
In response to a logging read interrupt,
the CPU module reads the logging data
corresponding to the set number of
logging read points from the logging
read start address.
'CH1 Current logging read pointer'
(Un\G438)
Logging status
'Interrupt factor detection flag [n]'
(Un\G4 to Un\G19)
'Interrupt factor reset request [n]'
(Un\G156 to Un\G171)
CPU module
(scan execution type program)
CPU module (interrupt program)
Normal control
program
Normal control
program
read points setting value' (Un\G545) being set to 100
Occurrence of
read pointer
detection
interrupts
Default value-1-1001st data
First time-109999100th data
Second time0100199199200th data
Third time100200299299300th data
10th time8009009999991000th data
11th time90009999100th data
12th time0100199199200th data
Previous logging
read pointer
Current logging
read pointer
Latest pointerRelative addressBuffer memory area
Operation
The logging read function starts by setting interrupt pointers and turning on and off 'Operating condition setting request' (Y9).
This function repeats its operation every time the same number of data as the logging read points monitor value is logged.
The following figure shows the operation when the logging read function is used under the following conditions.
Initialize 'CH1 Logging read points monitor value' (U0\G440) and the write position of the save destination file register.
Set the maximum number of stored save destination file registers.
Clear Interrupt factor mask [0].
1 FUNCTIONS
1.12 Logging Function
77
Page 80
(18)Store 'CH1 Current logging read pointer' (U0\G438) in the index register.
Store 'CH1 Logging read points monitor value' (U0\G440) in the register.
Store the write position of the save destination file register in the index register.
Store 'CH1 Logging data' (Un\G10000 to Un\G10999) for the logging read points monitor value in the save destination file register.
Add the points of the logging read points monitor value to the write position of the save destination file register and store the obtained value as the write
position for the next logging.
(45)Turn off Interrupt factor mask [0] when Interrupt factor detection flag turns on.
*1 Values stored when an error occurs at 12:34:56.789 on Saturday, January 31st, 2015.
The start address of Error history where the latest error is stored can be checked in 'Latest address of error history' (Un\G1).
The start address of Alarm history where the latest alarm is stored can be checked in 'Latest address of alarm history'
(Un\G3).
84
1 FUNCTIONS
1.14 Error History Function
*1
Page 87
Ex.
When the third error occurs:
Error history No.1
Error history No.2
Error history No.3
Error history No.16
(Empty)
(Empty)
New
Un\G3600
Un\G3610
Un\G3620
Un\G3750
1st error
2nd error
3rd error
'Latest address of error history'
(Un\G1): 3620
The third error is stored in Error history 3, and the value 3620 (start address of Error history 3) is stored to 'Latest address of
error history' (Un\G1).
1
1 FUNCTIONS
1.14 Error History Function
85
Page 88
Ex.
When the 17th error occurs:
Error history No.1
Error history No.2
Error history No.3
Error history No.16
New
Un\G3600
Un\G3610
Un\G3620
Un\G3750
1st error
2nd error
17th error
'Latest address of error history'
(Un\G1): 3600
3rd error
16th error
The 17th error is stored in Error history 1, and the value 3600 (start address of Error history 1) is stored to 'Latest address of
error history' (Un\G1).
• Once the error history storage area becomes full, subsequent error information will overwrite the existing
data, starting from Error history 1 (Un\G3600 to Un\G3609), and continues sequentially thereafter. The
overwritten history is deleted.
• The same processing is performed for Alarm history when an alarm occurs.
• The stored error history is cleared when the A/D converter module is powered off, or when the CPU module
is reset.
86
1 FUNCTIONS
1.14 Error History Function
Page 89
1.15Event History Function
This function collects generated errors, alarms or executed operations in the A/D converter module as event information in the
CPU module.
The CPU module collects the event information caused in the A/D converter module and keeps them in the data memory
inside of the CPU module or an SD memory card.
The event information collected by the CPU module can be displayed on an engineering tool to check the occurrence history
in a time series.
Event typeClassificationDescription
SystemErrorAn error detected by the self diagnostics in each module.
WarningA warning (alarm) detected in each module.
InformationThe operation by the normal detection of the system that is not classified as Error or Warning, or the operation
performed automatically by the system.
SecurityWarningOperation that is judged as an unauthorized access to each module.
InformationOperation that is hard to be judged as the success of unlocking passwords or an unauthorized access.
OperationWarningDeleting (data clear) operations that may change the action. (These operations are not judged as errors by the
self diagnostics.)
InformationOperations performed by users to change the system operation or configuration in the offset/gain setting.
Setting procedure
The event history function can be set from the event history setting window of the engineering tool. For the setting method,
refer to the following.
MELSEC iQ-R CPU Module User's Manual (Application)
1
Displaying event history
Access to the menu window of the engineering tool. For details on the operating procedure and how to view the contents,
refer to the following.
GX Works3 Operating Manual
List of event history data
The following table lists the events that would occur in the A/D converter module when the event type is set to "Operation"
Event
code
20010InformationOffset/gain setting executionIn the user range setting, offset/gain values has
20100InformationError clearError clear request has been issued.
Event classEvent nameEvent detailAdditional information
Total number of writes
been set.
1 FUNCTIONS
1.15 Event History Function
87
Page 90
1.16Backing up, Saving, and Restoring Offset/Gain
Values
The A/D converter module makes it possible to back up, save, and restore the offset/gain values of the user range setting.
• Back up: Creates a module-specific backup parameter and saves offset/gain values.
• Save: Saves the offset/gain information, registered in this module by making the offset/gain setting, in the CPU module.
• Restoration: Writes the information backed up and saved in the CPU module to this module.
In the event that the A/D converter module fails and needs to be replaced, the offset/gain values of the failed A/D converter
module can be restored onto the new A/D converter module.
However, if the offset/gain values are saved and restored, the accuracy after the restoration decreases by approximately three
times compared to that before the restoration. Reconfigure the offset/gain setting when required.
Only when the model where the offset/gain values are to be saved and the model where the offset/gain values are to be
restored are the same, the offset/gain values can be saved and restored.
Each procedure differs depending on whether a module-specific backup parameter is used or not.
When the module-specific backup parameter is used
Offset/gain values are automatically restored when the failed module is replaced with a new one using the online module
change.
For details on the online module change, refer to the following.
MELSEC iQ-R Online Module Change Manual
Details of the module-specific backup parameter
A module-specific backup parameter is a file created in an SD memory card or the data memory of the control CPU. The
contents of the parameter are the offset/gain value of the user range stored in the non-volatile memory of the A/D converter
module.
The file name of a module-specific backup parameter is determined as follows based on the start I/O number of the A/D
converter module.
UBPmmmnn.BPR
• mmm indicates a value calculated by dividing the module I/O No. by 10H (3 digits in hexadecimal).
• nn indicates a consecutive number of the module-specific backup parameters for each module and fixed to 00.
88
1 FUNCTIONS
1.16 Backing up, Saving, and Restoring Offset/Gain Values
Page 91
Creating and updating a module-specific backup parameter
A module-specific backup parameter is created or updated when the offset/gain values stored in the non-volatile memory of
the A/D converter module are updated.
Timing when backup data is created or updatedDescription
When the offset/gain setting is completed with "Offset/gain setting" of the
engineering tool
When 'User range write request' (YA) is turned on in the offset/gain setting
mode
When 'User range write request' (YA) is turned on in the normal modeWhen 'User range write request' (YA) is turned on in the normal mode, the
When the G(P).OGSTOR instruction is executed in the normal modeWhen the G(P).OGSTOR instruction is executed in the normal mode, the
When a new module is recognized after the online module changeWhen a new module is mounted and recognized after the online module
When no module-specific backup parameter exists in the data memory of the control CPU and a module-specific backup
parameter needs to be created with the current setting, change the mode of the A/D converter module to the offset/gain
setting mode and turn on 'User range write request' (YA). A module-specific backup parameter is created with the current
setting of the flash memory.
A module-specific backup parameter is created or updated when the offset/
gain setting is completed with "Offset/gain setting" of the engineering tool.
A module-specific backup parameter is created or updated when the offset/
gain values of the user range are changed in the offset/gain setting mode.
offset/gain values of the user range are restored based on the settings of the
buffer memory areas (Save data type, CH1 Factory default setting offset value
(L) to CH16 User range setting gain value (H)). At this timing, module-specific
backup parameters are updated.
offset/gain values of the user range are restored.
At this timing, module-specific backup parameters are updated.
change, the offset/gain values of the user range are restored. At this timing,
module-specific backup parameters are updated.
1
■Precautions
If the creation of a module-specific backup parameter fails because the data memory of the control CPU does not have
sufficient free space or the module-specific backup parameter is being used, a module-specific backup parameter creation
error (error code: 17E1H) occurs.
Reading of module-specific backup parameters
To read a module-specific backup parameter and restore offset/gain values, set "Auto restore of Offset/gain setting with the
module change" of the module parameter to "Enable" in advance.
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter]
[Application setting] [Online module change]
■Reading timing
Module-specific backup parameters are read when a new module is mounted and recognized after the online module change.
When the programmable controller is powered off and the module is replaced with a new one, module-specific backup
parameters are not read.
■Precautions
When the module-specific backup parameter for the target slot does not exist in an SD memory card or the data memory of
the control CPU, the subsequent restoration of the offset/gain values is not performed. If the offset/gain values cannot be
restored even though the module-specific backup parameter exists, a module-specific backup parameter restore error (error
code: 17E0H) occurs.
Restoration of the offset/gain values of the user range
When reading module-specific backup parameters are completed with no errors, the values are converted (restored) into the
offset/gain values of the user range for the new module, and stored in the non-volatile memory. At the same timing, the
module-specific backup parameter in the data memory of the control CPU is updated with the setting of the new module.
1 FUNCTIONS
1.16 Backing up, Saving, and Restoring Offset/Gain Values
89
Page 92
Restrictions on the module-specific backup parameter
Offset/gain values cannot be backed up or restored with a module-specific backup parameter in the following cases.
• When the control CPU is not the process CPU
• When the programmable controller is powered off and the A/D converter module is replaced with a new one
• When "Auto restore of Offset/gain setting with the module change" of the module parameter is set to "Disable"
In any of the cases above, back up or restore offset/gain values by the following method.
Page 91 When the module-specific backup parameter is not used
90
1 FUNCTIONS
1.16 Backing up, Saving, and Restoring Offset/Gain Values
Page 93
When the module-specific backup parameter is not used
Back up or restore offset/gain values by one of the following methods.
• Saving and restoring by dedicated instructions
• Saving and restoring by reading from and writing to the buffer memory
With the method above, offset/gain values can be restored to a new module, or the offset/gain values set in one module can
be applied to the other modules in the same system.
• To restore offset/gain values onto a new replaced module:
1. Save offset/gain values.
2. Power off the programmable controller, and replace the
A/D converter module with a new one.
1
3. Restore the offset/gain values.
1 FUNCTIONS
1.16 Backing up, Saving, and Restoring Offset/Gain Values
91
Page 94
• To apply the offset/gain values set in one module to the other modules in the same system:
Ex.
When the offset/gain values in module No.1 are applied to modules No.2 to No.4
1. Save the offset/gain values in module No.1.
2. Apply the offset/gain values to modules No.2 to No.4
Saving and restoring by dedicated instructions
Use the dedicated instruction G(P).OGLOAD to temporarily save the offset/gain values of the source A/D converter module to
the internal device of the CPU, then use G(P).OGSTOR to write the values to the destination A/D converter module.
Prevent the saved offset/gain setting data from being deleted, by one of the following methods before replacing the modules:
• Use latch settings for the internal device of the destination module.
• Save the data onto an SD memory card. (To write data: use the SP.FWRITE instruction. To read data: use the SP.FREAD
instruction.)
• Store the saved data.
For use of dedicated instructions, refer to the following.
MELSEC iQ-R Programming Manual (Module Dedicated Instructions)
92
1 FUNCTIONS
1.16 Backing up, Saving, and Restoring Offset/Gain Values
Page 95
Saving and restoring by reading from and writing to the buffer memory
Use Save data type setting, CH1 Factory default setting offset value (L) to CH16 User range setting gain value (H), and 'User
range write request' (YA) to read the offset/gain values from the source A/D converter module. Use the buffer memory again
to write the values to the destination A/D converter module.
The following describes the procedure for using the buffer memory.
■To restore offset/gain values onto a new replaced module:
When restoring offset/
gain values onto the
source A/D converter
module
When the power of
the module is off
When restoring offset/
gain values onto the
destination A/D
converter module
1. Set Save data type setting.
2. Turn on and off 'Operating condition setting request' (Y9).
3. Save the stored values of Save data type setting and CH1 Factory default setting offset value (L) to
CH16 User range setting gain value (H).
4. Replace the A/D converter module.
5. Write the data saved in Save data type setting and CH1 Factory default setting offset value (L) to
CH16 User range setting gain value (H).
6. Turn on 'User range write request' (YA).
7. Check that 'Offset/gain setting mode status flag' (XA) is on.
8. Turn off 'User range write request (YA)'.
9. Check whether the destination A/D converter module operates with the offset/gain values that are
restored.
1
When replacing modules, prevent the saved offset/gain setting data from being deleted, by one of the
following methods before powering off the module.
• Use latch settings for the internal device of the destination module.
• Save the data onto an SD memory card. (To write data: use the SP.FWRITE instruction. To read data: use
the SP.FREAD instruction.)
• Store the saved data.
■To apply the offset/gain values set in one module to the other modules in the same system:
When restoring offset/
gain values onto the
source A/D converter
module
When restoring offset/
gain values onto the
destination A/D
converter module
1. Set Save data type setting.
2. Turn on and off 'Operating condition setting request' (Y9).
3. Save the stored values of Save data type setting and CH1 Factory default setting offset value (L) to
CH16 User range setting gain value (H).
4. Write the data saved in Save data type setting and CH1 Factory default setting offset value (L) to
CH16 User range setting gain value (H).
5. Turn on 'User range write request' (YA).
6. Check that 'Offset/gain setting mode status flag' (XA) is on.
7. Turn off 'User range write request (YA)'.
8. Check whether the destination A/D converter module operates with the offset/gain values that are
restored.
1 FUNCTIONS
1.16 Backing up, Saving, and Restoring Offset/Gain Values
93
Page 96
Range reference table
The following describes the range reference tables used for saving and restoring offset/gain values.
■Factory default setting
The following describes the buffer memory addresses of the factory default setting.
R60AD8-G: CH1 Factory default setting offset value (L) (Un\G4004) to CH8 Factory default setting gain value (H) (Un\G4035)
R60AD16-G: CH1 Factory default setting offset value (L) (Un\G4004) to CH16 Factory default setting gain value (H)
(Un\G4067)
• For the R60AD8-G
Address (decimal)DescriptionSave data
CH1CH2CH3CH4CH5CH6CH7CH8
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
Factory default
setting offset
value
Factory default
setting gain
value
type
setting
Voltage
specification
Current
specification
Voltage
specification
Current
specification
*1 The reference values differ depending on the setting of Save data type setting (Un\G4002) (voltage or current).
• For the R60AD16-G
Address (decimal)DescriptionSave data
type
setting
CH1CH2CH3CH4CH5CH6CH7CH8Factory default
4004
4005
CH9CH10CH11CH12CH13CH14CH15CH16
4036
4037
CH1CH2CH3CH4CH5CH6CH7CH8Factory default
4006
4007
CH9CH10CH11CH12CH13CH14CH15CH16
4038
4039
4008
4009
4040
4041
4010
4011
4042
4043
4012
4013
4044
4045
4014
4015
4046
4047
4016
4017
4048
4049
4018
4019
4050
4051
4020
4021
4052
4053
4022
4023
4054
4055
4024
4025
4056
4057
4026
4027
4058
4059
4028
4029
4060
4061
4030
4031
4062
4063
4032
4033
4064
4065
4034
4035
4066
4067
setting offset
value
setting gain
value
Voltage
specification
Current
specification
Voltage
specification
Current
specification
Analog
value
*1
0V800000H
0mA800000H
10VC92492H
20mAA4D6CDH
Analog
value
*1
0V
0mA
10V
20mA
Reference value
(hexadecimal)
Reference value
(hexadecimal)
800000H
C92492H
A4D6CDH
*1 The reference values differ depending on the setting of Save data type setting (Un\G4002) (voltage or current).
■User range setting
The following describes the buffer memory addresses of the user range setting.
R60AD8-G: CH1 User range setting offset value (L) (Un\G4036) to CH8 User range setting gain value (H) (Un\G4067)
R60AD16-G: CH1 User range setting offset value (L) (Un\G4068) to CH16 User range setting gain value (H) (Un\G4131)
Offset/gain valueReference value (hexadecimal)
20mA
*1
*2
875E29H
A4D6CDH
Current4mA
*1 This value is stored in User range setting offset value by default of the R60AD8-G or R60ADI6-G.
*2 This value is stored in User range setting gain value by default of the R60AD8-G or R60ADI6-G.
1 FUNCTIONS
94
1.16 Backing up, Saving, and Restoring Offset/Gain Values
Page 97
1.17Q Compatible Mode Function
This function allows setting the buffer memory addresses of the A/D converter module same as the buffer memory addresses
of the MELSEC-Q series.
This compatibility makes it possible to reuse sequence programs that have exhibited high performance on the MELSEC-Q
series modules.
The following table lists the compatible modules of the MELSEC-Q series.
A/D converter module of the MELSEC iQ-R seriesCompatible A/D converter module
R60AD8-GQ68AD-G
The R60AD16-G does not support the Q compatible mode function.
Operation
Only the buffer memory assignment is changed in the Q compatible mode.
• The I/O signal assignment is the same as that of the R mode. Some signals have been changed. However, the signals that
change the module operation maintain the compatibility. Therefore, when a MELSEC-Q series sequence program is
diverted, a significant modification of the sequence program is not required. The following table shows a difference between
the R60AD8-G and Q68AD-G.
Device numberR60AD8-GQ68AD-G
X7Use prohibitedHigh resolution mode status flag
(ON: High resolution mode, OFF: Normal
resolution mode)
1
• When a MELSEC-Q series sequence program is diverted, check digital output values and the operation
timing and modify the sequence program if necessary because the specifications such as the resolution and
update timing are changed.
• When a MELSEC-Q series sequence program is diverted and an error code is set as the operating
condition or interlock condition, the program does not operate normally.
• When the Q compatible mode function is enabled, a program that uses FB or labels cannot be created.
When FB or labels is used, create a program in the R mode.
Setting procedure
1. When adding a new module, select the module whose module name has "(Q)" at the end.