Mitsubishi Electric R60AD8-G, R60AD16-G User Manual

Page 1
MELSEC iQ-R Channel Isolated Analog-Digital Converter Module User's Manual (Application)
-R60AD8-G
-R60AD16-G
Page 2
Page 3

SAFETY PRECAUTIONS

WARNING
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.)
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.
Mode Description
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,
disabling the safety module is required.
10
Page 13

CONTENTS

SAFETY PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
CONDITIONS OF USE FOR THE PRODUCT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
INTRODUCTION. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
RELEVANT MANUALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
TERMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
PART 1 STANDARD MODE
CHAPTER 1 FUNCTIONS 18
1.1 Processing of Each Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
1.2 Range Switching Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
1.3 A/D Conversion Enable/Disable Setting Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
1.4 A/D Conversion Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
1.5 Scaling Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
1.6 Alert Output Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Process alarm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
Rate alarm. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
1.7 Input Signal Error Detection Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
When the function is used in the Q compatible mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
1.8 Shift Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
1.9 Digital Clipping Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
1.10 Difference Conversion Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
1.11 Maximum Value/Minimum Value Hold Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60
1.12 Logging Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61
Stopping the logging operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66
Logging hold request. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69
Level trigger. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Initial settings of the logging function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73
Logging read function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .74
Saving to a CSV file. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Displaying logging data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .80
1.13 Interrupt Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .81
1.14 Error History Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84
1.15 Event History Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87
1.16 Backing up, Saving, and Restoring Offset/Gain Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
When the module-specific backup parameter is used. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88
When the module-specific backup parameter is not used. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91
1.17 Q Compatible Mode Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95
CONTENTS
CHAPTER 2 PARAMETER SETTINGS 96
2.1 Basic Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
2.2 Application Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
2.3 Interrupt Setting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .98
2.4 Refresh Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Refresh processing time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
11
Page 14
CHAPTER 3 TROUBLESHOOTING 101
3.1 Troubleshooting with the LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
3.2 Checking the State of the Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
3.3 Troubleshooting by Symptom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104
When the A/D converter module does not start up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
When the RUN LED flashes or turns off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
When the ERR LED turns on. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104
When the ALM LED turns on or flashes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
When a digital output value cannot be read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
When the digital output value does not fall within the range of accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
3.4 List of Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108
3.5 List of Alarm Codes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
APPENDICES (STANDARD MODE) 113
Appendix 1 Module Label . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Appendix 2 I/O Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
List of I/O signals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Details of input signals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Details of output signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123
Appendix 3 Buffer Memory Areas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
List of buffer memory addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .125
Details of buffer memory addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .146
Appendix 4 Dedicated Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .205
Instruction list. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
Appendix 5 Operation Examples of When the Remote Head Module Is Mounted . . . . . . . . . . . . . . . . . . . . . . . . 206
System configuration example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
Setting in the master station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .207
Setting in the intelligent device station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
Checking the network status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
Program examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .214
Appendix 6 Disabling the Safety Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .217
Appendix 7 Added or Modified Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .218
12
PART 2 SIL2 MODE
CHAPTER 4 OVERVIEW 220
CHAPTER 5 PART NAMES 223
CHAPTER 6 SPECIFICATIONS 225
6.1 Performance Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
6.2 Function List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
CHAPTER 7 PROCEDURES BEFORE OPERATION 228
CHAPTER 8 SYSTEM CONFIGURATION 235
8.1 Redundant Master Station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
8.2 Redundant Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .238
8.3 Firmware Version for SIL2 Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .240
Page 15
8.4 Reference Product. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .240
CHAPTER 9 INSTALLATION AND WIRING 241
9.1 Wiring Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
Connector for external devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
9.2 External Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
Signal layout for the connector for external devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
Examples of external wiring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .243
Relay switching wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .247
Precautions for channel number and output signal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
CHAPTER 10 FUNCTIONS 249
10.1 SIL2 Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .250
10.2 Processing of Each Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .264
10.3 Range Switching Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .265
10.4 A/D Conversion Enable/Disable Setting Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
10.5 A/D Conversion Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .266
10.6 Scaling Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .269
10.7 Digital Clipping Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
10.8 SIL2 A/D Conversion Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .274
Double input discrepancy detection function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .281
A/D conversion circuit diagnostic function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .286
Input HOLD function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .289
10.9 Self-diagnostic Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
10.10 Error History Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .291
10.11 Event History Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .292
CONTENTS
CHAPTER 11 PARAMETER SETTINGS 294
11.1 Basic Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .294
11.2 Application Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .295
11.3 Refresh Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .296
CHAPTER 12 EXAMPLE OF OPERATION 297
CHAPTER 13 MAINTENANCE AND INSPECTION 303
CHAPTER 14 TROUBLESHOOTING 305
14.1 Troubleshooting with the LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
14.2 Checking the State of the Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306
14.3 Troubleshooting by Symptom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .308
When the R60AD8-G does not start up. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
When the RUN LED flashes or turns off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
When the ERR LED flashes or turns on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .308
When the S MODE LED flashes or turns off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
When the ALM LED flashes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310
When a module parameter error is displayed in the "Module Diagnostics" window . . . . . . . . . . . . . . . . . . . . .310
When a double input discrepancy detection error occurs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310
When an A/D conversion circuit diagnostic error occurs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
When it takes time for the SIL2 analog input system to start up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
When the safety device value is the OFF value (equivalent to 0V/0mA). . . . . . . . . . . . . . . . . . . . . . . . . . . . . .312
13
Page 16
When the safety device does not fall within the range of accuracy. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
When the module shuts down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
14.4 Troubleshooting While Proceeding Procedures Before Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
When the module parameter write to the remote head module fails. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
Troubleshooting on the "Safety Communication Setting" window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
Troubleshooting on the "Safety Module Operation" window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
14.5 Troubleshooting SIL2 Diagnostic FB Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .316
When the SIL2 diagnostic FB library is not registered as a product option. . . . . . . . . . . . . . . . . . . . . . . . . . . .316
When a program conversion error occurs in GX Works3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .316
When the execution status of the SIL2 diagnostic FB library is off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .316
Checking by status code of the SIL2 safety program FB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .316
Checking by error code of the SIL2 safety program FB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
14.6 List of Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .320
APPENDICES (SIL2 MODE) 323
Appendix 8 I/O Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .323
List of I/O signals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
Appendix 9 Buffer Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .324
List of buffer memory addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .324
Details of buffer memory area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
Appendix 10I/O Conversion Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
Appendix 11Accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .328
Appendix 12Calculation Method of Safety Response Time (Maximum Value) . . . . . . . . . . . . . . . . . . . . . . . . . . .329
Appendix 13Added or Modified Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .330
Appendix 14External Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
INDEX 332
REVISIONS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .334
WARRANTY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .335
TRADEMARKS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .338
14
Page 17

RELEVANT MANUALS

Manual name [manual number] Description Available form
MELSEC iQ-R Channel Isolated Analog-Digital Converter Module User's Manual (Application) [SH-081487ENG] (this manual)
MELSEC iQ-R Channel Isolated Analog-Digital Converter Module User's Manual (Startup) [SH-081485ENG]
MELSEC iQ-R Programming Manual (Module Dedicated Instructions) [SH-081976ENG]
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 m Description
A/D converter module The abbreviation for the MELSEC iQ-R series channel isolated analog-digital converter module
Buffer memory A memory in an intelligent module for storing data (such as setting values and monitored values) to be transferred
to the CPU module
Engineering tool Another term for GX Works3
Factory default setting A 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 label A label that is valid for all the program data when multiple program data are created in the project. There are two
GX Works3 The product name of the software package for the MELSEC programmable controllers
Module Label A label that represents one of memory areas (I/O signals and buffer memory areas) specific to each module in a
Normal mode A mode used for normal A/D conversion.
Offset/gain setting mode A mode used for performing the offset/gain setting
Q compatible mode A mode in which the module operates with the buffer memory map converted to the equivalent one of the MELSEC
R mode A mode in which the module operates with the buffer memory map that has been newly laid out in the MELSEC iQ-
Remote head module The abbreviation for the RJ72GF15-T2 CC-Link IE Field Network remote head module
SIL2 mode A mode certified according to the safety requirements of IEC61508: 2010 SIL2 and IEC61511: 2015 SIL2
Standard mode A mode for using the A/D converter module in a normal system
User range An analog input range where any value can be set. This range can be set in the offset/gain setting.
Watchdog timer error An 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 1 STANDARD 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
1 FUNCTIONS
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 SignalsPage 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 CodesPage 112 List of Alarm Codes
18

1 FUNCTIONS

Page 21
1.1 Processing 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.2 Range 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 FunctionPage 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 setting Digital output value
4 to 20mA 0 to 32000
0 to 20mA
1 to 5V
0 to 5V
-10 to 10V -32000 to 32000
0 to 10V 0 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 settingPage 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.3 A/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
setting] [A/D conversion enable/disable setting function]
1
1 FUNCTIONS

1.3 A/D Conversion Enable/Disable Setting Function

21
Page 24
1.4 A/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.
Item Setting
Number of channels where the A/D conversion is enabled Four channels (CH1 to CH4)
Setting time 250ms
*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.
Item Setting
Number of channels where the A/D conversion is enabled Four channels (CH1 to CH4)
Set number of times Five 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.2 3840
3200
640
1280
1920
2560
63.2%
Analog input value Digital 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".
[Navigation window] [Parameter] [Module Information] Module name [Module Parameter] [Basic setting]
[A/D conversion method]
Averaging processing and primary delay filter
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".
Item Setting range
Time average 40 to 5000 (ms)
Count average 4 to 500 (times)
Moving average 2 to 200 (times)
Primary delay filter 1 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.5 Scaling 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".
Item Setting 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)
0 0 4000
1 6400 7200
2 12800 10400
3 19200 13600
4 25600 16800
5 32000 20000
*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 -32000 4000
-5 -16000 8000
0 0 12000
5 16000 16000
10 32000 20000
*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 value Digital operation value
16 bits 32 bits
0 -8000 -8000 0
1004000
2 8000 8000 8000
3 16000 16000 12000
4 24000 24000 16000
5 32000 32000 20000
5.5 32767
*1
36000 22000
*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 value Digital operation value
16 bits 32 bits
0 -8000 -8000 -32768
4 0 0 -32000
8 8000 8000 -16000
12 16000 16000 0
16 24000 24000 16000
20 32000 32000 32000
20.24 32480 32480 32767
22 32767
*2
36000 32767
*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.6 Alert 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".
Item Setting 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
CH1 CH2
(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: 1BH)
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
• A/D conversion-enabled channels: CH1 to CH3
• 'CH1 Rate alarm alert detection cycle setting' (Un\G522): 5 (times) The rate alarm alert detection cycle is 150ms. (10ms 3 (CH) 5 (times))
Digital output values are compared in 150ms intervals to check the change rate.
34
1 FUNCTIONS
1.6 Alert Output Function
Page 37
Judgment of rate alarm
Ex.
Value used for judgement at each Rate alarm alert detection cycle [digit] =
R
H
or R
L
× D
Max
1000
Upper limit value: × 32000 = 8000 (digit)
250
1000
Lower limit value: × 32000 = 1600 (digit)
50
1000
Change rate to be set (0.1%) =
*1
× 1000
Change amount of the voltage (current) to detect an alert (V(mA))
Gain voltage (current) (V(mA)) - Offset voltage (current) (V(mA))
A change rate is judged with 'CH1 Rate alarm upper limit value' (Un\G524) and 'CH1 Rate alarm lower limit value' (Un\G526)
converted to digital values per rate alarm alert detection cycle.
The following shows the conversion formula of judgment values used for the rate alarm detection.
Item Description
R
H
R
L
D
Max
Values after the decimal point are omitted.
The judgment value under the following conditions
• Input range: 4 to 20mA
• A/D conversion-enabled channel: CH1
• 'CH1 Averaging process specification' (Un\G501): Sampling processing (0)
• 'CH1 Rate alarm alert detection cycle setting' (Un\G522): 5 (times)
• 'CH1 Rate alarm upper limit value' (Un\G524): 250 (25.0%)
• 'CH1 Rate alarm lower limit value' (Un\G526): 50 (5.0%)
Rate alarm upper limit value (Unit: 0.1%)
Rate alarm lower limit value (Unit: 0.1%)
Maximum digital output value of the input range
• Other than extended mode: 32000
• Extended mode: 36000
1
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".
Item Setting range
Rate alarm alert detection cycle setting 1 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
Item Setting 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.7 Input 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 method Detection condition
0: Disable Input signal errors are not detected.
1: Upper and lower limit detection
2: Lower limit detection An 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 detection An 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 range Disconnection 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)
'Input signal error detection signal' (XC)
ALM LED
Normal input value
Error detected
Controlled by the A/D converter module
FlashingLights out Lights out
Controlled by the program
Detection range
Out of detection range
Included
CH1 analog input value
CH2 analog input value
'CH1 A/D conversion completed flag' (Un\G42, b0)
'CH2 A/D conversion completed flag' (Un\G42, b1)
under the following condition.
• 'Input signal error detection auto-clear enable/disable setting' (Un\G302): Enable (0)
• Input range: 4 to 20mA
• '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 range Lower limit value Offset value Gain value
Voltage 0 to 10V 0V 10V
0 to 5V 0V 5V
1 to 5V 1V 5V
1 to 5V (extended mode) 1V 5V
-10 to 10V -10V 0V 10V
User range setting Analog input value equivalent to
the digital output value of -32000
Current 0 to 20mA 0mA 20mA
4 to 20mA 4mA 20mA
4 to 20mA (extended mode) 4mA 20mA
User range setting Analog 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".
Item Setting range
Input signal error detection lower limit setting value 0.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.
Item Setting value
Input range 4 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 method Description
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
ON ON
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 signal (XC)
ALM LED
Normal input value
Error detected
Controlled by the A/D converter module
FlashingLights out Lights out
Controlled by the program
Detection range
Out of detection range
Included
CH1 analog input value
CH2 analog input value
CH1 A/D conversion completed flag (Un\G10, b0)
CH2 A/D conversion completed flag (Un\G10, b1)
under the following condition.
• Input signal error detection auto-clear enable/disable setting (Un\G162): Enable (0)
• Input range: 4 to 20mA
• 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.
Item Setting value
Mode Q compatible mode
Input range 4 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.8 Shift 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]
Item Setting 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 input Digital output value
0-100
5 31990 32000
*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 input Digital output value
-10 -32000 -12000
-5 -16000 4000
0 0 20000
5 16000 32767
10 32000 32767
*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
32000
14000
12000
2000
4000
0
5
0
(3)
(1)
(2)
Analog input voltage (V)
• 'CH1 Scaling enable/disable setting' (Un\G504): Enable (0)
• 'CH1 Scaling upper limit value' (Un\G506): 12000
• 'CH1 Scaling lower limit value' (Un\G508): 2000
• 'CH1 Conversion value shift amount' (Un\G472): 2000
(1) 'CH1 Digital output value' (Un\G400) Scaling 0 to 32000
2000 to 12000 (2) Value after scaling 'CH1 Conversion value shift amount' (Un\G472) "+2000"
(3) 'CH1 Digital operation value' (Un\G402)
1
Voltage input Digital output value
0 0 2000 4000
1 6400 4000 6000
2 12800 6000 8000
3 19200 8000 10000
4 25600 10000 12000
5 32000 12000 14000
*1 These values are also applied to the case of digital output values (32 bits).
*1
Value after scaling Digital operation value
When the shift function is used with the digital clipping function and scaling function, shift-and-add is
performed on the value obtained after digital clipping and scale conversion. Therefore, the range of the digital
operation value is determined as -32768 to 32767.
For a setting example of when the digital clipping function, scaling function, and shift function are used
together, refer to the following. Page 55 Setting example
1 FUNCTIONS
1.8 Shift Function
53
Page 56
1.9 Digital Clipping Function
This function fixes the digital operation value with the maximum digital output value and the minimum digital output value
when the corresponding current or voltage exceeds the input range.
List of output ranges
The following table lists the output ranges of the digital operation values when the digital clipping function is enabled with each
range.
Input range Output range of digital operation values
Digital clipping function is enabled Digital clipping function is disabled
4 to 20mA 0 to 32000 -768 to 32767
0 to 20mA
1 to 5V
0 to 5V
0 to 10V
-10 to 10V -32000 to 32000 -32768 to 32767
User range setting
4 to 20mA (extended mode) -8000 to 32767
1 to 5V (extended mode)
*1 Since the digital clipping function is effective with the value 36000 (22mA or 5.5V) in the extended mode, the output range is -8000 to
32767.
*1
-8768 to 32767
When the determined digital operation value is out of the range of -32768 to 32767, the digital clipping
function is performed to the following values.
• When the digital operation value is 32767 or greater: 32767
• When the digital operation value is -32768 or smaller: -32768
Setting procedure
Set "Digital clipping enable/disable setting" to "Enable".
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter]
[Application setting] [Digital clipping function]
54
1 FUNCTIONS

1.9 Digital Clipping Function

Page 57
Setting example
Ex.
(2)
(1)
(3)
(4)
32000
32767
14000
12000
2000
-768
4000
0
05
Analog input voltage (V)
When the following values are used for the A/D converter module with the input range of 0 to 5V
• 'CH1 Scaling enable/disable setting' (Un\G504): Enable (0)
• 'CH1 Scaling upper limit value' (Un\G506): 12000
• 'CH1 Scaling lower limit value' (Un\G508): 2000
• 'CH1 Conversion value shift amount' (Un\G472): 2000
• 'CH1 Digital clipping enable/disable setting' (Un\G510): Enable (0)
(1) 'CH1 Digital output value' (Un\G400) Digital clipping
-768 to 32767
0 to 32000 (2) Value after digital clipping Scaling 0 to 32000
2000 to 12000 (3) Value after scaling 'CH1 Conversion value shift amount' (Un\G472) "+2000"
4000 to 14000 (4) 'CH1 Digital operation value' (Un\G402)
1
Input voltage (V) Digital output value
-0.12 -768 4000
0 0 4000
1 6400 6000
2 12800 8000
3 19200 10000
4 25600 12000
5 32000 14000
5.096 32767 14000
*1
Digital operation value
*1 These values are also applied to the case of digital output values (32 bits).
When the digital clipping function is used with the scaling function, shift function, and difference conversion
function, scale conversion, shift-and-add, and difference conversion are performed on the value obtained after
digital clipping.
1 FUNCTIONS
1.9 Digital Clipping Function
55
Page 58
1.10 Difference Conversion Function
10000
7500
5000
2500
0
6000 7500 10000 10000 75007500
6000 0 2500 2500 75007500
0 7500
-2500
No request (0) No request (0)Trigger request (1)
Not converted (0)
Not converted (0)
Converting difference (1)
Time
'CH1 Digital operation value' (Un\G402)
CH1 Digital operation value before difference conversion
'CH1 Difference conversion reference value' (Un\G432)
'CH1 Difference conversion status flag' (Un\G408)
'CH1 Digital operation value' (Un\G402)
'CH1 Difference conversion trigger' (Un\G470)
Digital operation value
This function subtracts a difference conversion reference value from a digital operation value and stores the acquired value in
the buffer memory area.
The digital operation value at the start of this function is treated as 0 (reference value). Thereafter, values that increased or
decreased from the reference value are stored in the buffer memory.
Operation
The digital operation value at the start of the difference conversion (the data stored inside the A/D converter module before
the difference conversion starts) is determined as a difference conversion reference value. The value acquired by subtracting
the difference conversion reference value from the digital operation value is stored in 'CH1 Digital operation value' (Un\G402).
At the start of this function, the digital operation value is 0 (because the digital operation value and the difference conversion
reference value have the same value at the start).
• Digital operation value after difference conversion = Digital operation value - Difference conversion reference value
Starting the difference conversion
1. Change 'CH1 Difference conversion trigger' (Un\G470) from No request (0) to Trigger request (1).
The rise of No request (0) Trigger request (1) is detected as a trigger. When the trigger is detected, the digital operation
value at the start is output to the difference conversion reference value. The value acquired by subtracting the difference
conversion reference value from the digital operation value is stored in 'CH1 Digital operation value' (Un\G402). After the
value is stored, 'CH1 Difference conversion status flag' (Un\G408) turns to Converting difference (1).
Stopping the difference conversion
1. Change 'CH1 Difference conversion trigger' (Un\G470) from Trigger request (1) to No request (0).
The fall of Trigger request (1) No request (0) is detected as a trigger. When the trigger is detected, the difference conversion
stops, and 'CH1 Difference conversion status flag' (Un\G408) turns to Not converted (0). Thereafter, the digital operation value
is stored as it is in 'CH1 Digital operation value' (Un\G402).
56
1 FUNCTIONS

1.10 Difference Conversion Function

Page 59
Operations of when an input signal error occurs
4
2
2.2
0
0
ON
ON
OFF
OFF
No request (0) Trigger request (1)
Not converted (0) Converting difference (1)
Digital value corresponding to 2.2mA
Time
Analog input value (mA)
Input signal error is occurring.
'CH1 Difference conversion reference value' (Un\G432)
'CH1 Difference conversion status flag' (Un\G408)
'CH1 Difference conversion trigger' (Un\G470)
'Input signal error detection signal' (XC)
'Input signal error detection flag' (Un\G40)
Timing when an analog input value has returned into the set range
CH1 Analog input value
Included
Detection range
Out of detection range
When an input signal error occurs, even if 'CH1 Difference conversion trigger' (Un\G470) changes from No request (0) to
Trigger request (1), the difference conversion does not start. After the input signal error returns to the normal value, change
'CH1 Difference conversion trigger' (Un\G470) from No request (0) to Trigger request (1) again. If an input signal error occurs
in the status of Trigger request (1), the difference conversion starts at the timing when the input signal error returns to the
normal value, treating the digital operation value as the difference conversion reference value.
1
1 FUNCTIONS
1.10 Difference Conversion Function
57
Page 60
Operations of when 'Operating condition setting request' (Y9) is turned on and off
9950 1300010001 10100 10010 10510 12000 12100 13250 13310
10000 1300010000 10000 10000 10000 10000 10000 10000 13000
-50 01 100 10 510 2000 12100 13250 310
ON
ON
OFF
OFF
Trigger request (1) Trigger request (1)
No request (0)
Converting difference (1) Converting difference (1)
Not converted (0)
CH1 Digital operation value before difference conversion
'CH1 Difference conversion reference value' (Un\G432)
'CH1 Difference conversion status flag' (Un\G408)
'CH1 Digital operation value' (Un\G402)
'CH1 Difference conversion trigger' (Un\G470)
'Operating condition setting completed flag' (X9)
'Operating condition setting request' (Y9)
Updated
Not updated
• During the difference conversion, even when 'Operating condition setting request' (Y9) is turned on and off, the difference
conversion continues without updating the difference conversion reference value. To updating the difference conversion
reference value, restart the difference conversion by changing CH1 Difference conversion trigger (Un\G470) from Trigger
request (1) to No request (0), and Trigger request (1) again.
• CH1 Difference conversion trigger (Un\G470) does not become valid even when the trigger changes from No request (0) to
Trigger request (1) when 'Operating condition setting request' (Y9) is turned off and on. After turning on and off 'Operating
condition setting request' (Y9), change CH1 Difference conversion trigger (Un\G470) from No request (0) to Trigger request
(1) again.
58
1 FUNCTIONS
1.10 Difference Conversion Function
Page 61
Operations of CH1 Maximum value (Un\G404) and CH1 Minimum value (Un\G406)
9950 995010001 10000 10210 10510 12000 12100 13250 10100
0 100000 10000 10000 10000 10000 10000 10000 10000
9950 -5010001 0 210 510 2000 2100 3250 100
10001
325010001 10001 10001 10001 10001 2100 3250 3250
600
-50600 0 0
0
0
2100 2100 -50
ON
ON
OFF
OFF
No request (0) Trigger request (1)
Converting difference (1)Not converted (0)
CH1 Digital operation value before difference conversion
'CH1 Maximum value' (Un\G404)
'CH1 Minimum value' (Un\G406)
'CH1 Difference conversion reference value' (Un\G432)
'CH1 Difference conversion status flag' (Un\G408)
'CH1 Digital operation value' (Un\G402)
'CH1 Difference conversion trigger' (Un\G470)
'Maximum value/minimum value reset completed flag' (XD)
'Maximum value/minimum value reset request' (YD)
Maximum value/minimum value before starting difference conversion
Maximum value/minimum value after starting difference conversion
When the difference conversion starts, the maximum value and the minimum value of the values acquired by the difference
conversion are stored in 'CH1 Maximum value' (Un\G404) and 'CH1 Minimum value' (Un\G406). By turning on 'Maximum
value/minimum value reset request' (YD), the maximum value and the minimum value after the start of the difference
conversion can be checked.
When 'Maximum value/minimum value reset request' (YD) is not turned on, the maximum values and minimum values before
and after difference conversion are mixed.
1
Operation of when the averaging processing is set
If the difference conversion starts after the averaging processing is set, the digital operation value at the completion of the
averaging processing is determined as 'CH1 Difference conversion reference value' (Un\G432). 'CH1 Difference conversion
status flag' (Un\G408) turns to Converting difference (1).
• The difference conversion function can be started at any timing.
• When the difference conversion function is used with the digital clipping function, scaling function, and shift
function, each digital operation value is determined as a difference conversion reference value and used for
the difference conversion.
• Even though the digital clipping function, scaling function, and shift function are enabled during the
difference conversion, the value in 'CH1 Difference conversion reference value' (Un\G432) is not updated.
To update the value in 'CH1 Difference conversion reference value' (Un\G432), stop the difference
conversion and restart it again.
1 FUNCTIONS
1.10 Difference Conversion Function
59
Page 62
1.11 Maximum Value/Minimum Value Hold Function
This function stores the maximum and minimum values of digital operation values in the buffer memory area for each channel.
Time average and count average are processed on the averaging process cycle. The values of the sampling processing,
moving average, and primary delay filter are updated on the sampling cycle.
Resetting the maximum value and the minimum value
Turn on and off 'Maximum value/minimum value reset request' (YD) or 'Operating condition setting request' (Y9) to update the
maximum value and minimum value with the current value.
Turning on and off 'Maximum value/minimum value reset request' (YD) turns on 'Maximum value/minimum value reset
completed flag' (XD).
Values to be the maximum value and the minimum value
The maximum and minimum values of digital operation values are stored in the buffer memory.
When the digital clipping function, scaling function, shift function, or difference conversion function is used, the maximum
value and minimum value of each function are stored.
60
1 FUNCTIONS

1.11 Maximum Value/Minimum Value Hold Function

Page 63
1.12 Logging Function
(1)
(2)
Digital output value
or
digital operation value
Logging
cycle
Address 0 Address 1 Address 2 Address 3 Address 4 Address 5
Address 998 Address 999
(3)
(2)
(1)
Hold trigger
Address 0 Address 1 Address 2 Address 3 Address 4 Address 5
Address 998
Address 999
Logging data are stored in buffer memory areas.
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
CH1 Un\G10000 to Un\G10999
CH2 Un\G11000 to Un\G11999
CH3 Un\G12000 to Un\G12999
CH4 Un\G13000 to Un\G13999
CH5 Un\G14000 to Un\G14999
CH6 Un\G15000 to Un\G15999
CH7 Un\G16000 to Un\G16999
CH8 Un\G17000 to Un\G17999
CH9 Un\G18000 to Un\G18999
CH10 Un\G19000 to Un\G19999
CH11 Un\G20000 to Un\G20999
CH12 Un\G21000 to Un\G21999
CH13 Un\G22000 to Un\G22999
CH14 Un\G23000 to Un\G23999
CH15 Un\G24000 to Un\G24999
CH16 Un\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).
• Digital output value (0)
• Digital operation value (1)
62
1 FUNCTIONS
1.12 Logging Function
Page 65
Logging cycle
Ex.
*1
Time set in Time average/Count average/
Moving average/Primary delay filter constant setting
Number of conversion enabled channels × Conversion speed
× Number of conversion enabled channels × Conversion speed
Logging cycle setting
Set the logging cycle with 'CH1 Logging cycle setting value' (Un\G537) and 'CH1 Logging cycle unit setting' (Un\G538).
The following table lists the setting range for each cycle.
Setting value of CH1 Logging cycle unit setting Setting range of CH1 Logging cycle setting value
ms (1) 10 to 32767
s (2) 1 to 3600
The logging cycle must be an integral multiple of the conversion cycle. Even if the setting is not an integral multiple, the actual
logging cycle is adjusted to the integral multiple of the conversion cycle within a limit of the set logging cycle.
The following table lists the conversion cycle for each A/D conversion method.
Conversion method Conversion cycle
Sampling processing Number of conversion enabled channels Conversion speed
Time average
Count average (The count set to CH1 Time average/Count average/Moving average/Primary delay filter constant setting (Un\G502)) (Number of
conversion enabled channels Conversion speed)
Moving average Number of conversion enabled channels Conversion speed
Primary delay filter Number of conversion enabled channels Conversion speed
*1 Values after the decimal point are omitted.
1
With the following settings, the conversion cycle is 80ms and the actual logging cycle is every 6960ms (integral multiple of
80ms).
• Conversion enabled channel: CH1 to CH8
• Conversion process specification: Sampling processing
• 'CH1 Logging cycle setting value' (Un\G537): 7000
• Logging cycle unit setting: ms
The following values are stored in 'CH1 Logging cycle monitor value' (Un\G441, Un\G442).
Address Item Stored value
441 CH1 Logging cycle monitor value s 6
442 ms 960
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 1000 When 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 area Description
'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 1000 When 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 requestPage 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
• 'CH1 Post-trigger logging points' (Un\G539): 655 points
• The data location where a hold trigger has occurred: 350th data
66
1 FUNCTIONS
1.12 Logging Function
Page 69
Checking the trigger generation time
Ex.
b15 b8 b7 b0
to to
First two digits of the year Last two digits of the year
Month Day
Hour Minute
Second Day of the week
Millisecond (higher-order digits) Millisecond (lower-order digits)
'CH1 Trigger generation time (First/Last two digits of the year)' (Un\G444)
'CH1 Trigger generation time (Month/Day)' (Un\G445)
'CH1 Trigger generation time (Hour/Minute)' (Un\G446)
'CH1 Trigger generation time (Second/Day of the week)' (Un\G447)
'CH1 Trigger generation time (Millisecond)' (Un\G448)
OFF(0) OFF(0)ON(1)
OFF(0) OFF(0)ON(1)
Logging Logging
Logging post-trigger data
Logging heldLogging status
Controlled by the A/D converter module
Controlled by the program
'CH1 Logging hold request' (Un\G471)
'CH1 Logging hold flag' (Un\G409)
OFF(0) OFF(0)ON(1)
OFF(0)
Logging LoggingLogging post-trigger data
Logging status
Controlled by the A/D converter module
Controlled by the program
The logging does not stop.
'CH1 Logging hold request' (Un\G471)
'CH1 Logging hold flag' (Un\G409)
The trigger generation time can be checked with 'CH1 Trigger generation time' (Un\G444 to Un\G448).
When 'CH1 Trigger generation time' (Un\G444 to Un\G448) is monitored
• First two digits of the year, last two digits of the year, month, day, hour, minute, second, and millisecond are all stored in the
BCD code.
• In the day of the week segment, one of the following values in the BCD code indicating the corresponding day is stored.
Sunday: 00H, Monday: 01H, Tuesday: 02H, Wednesday: 03H, Thursday: 04H, Friday: 05H, Saturday: 06H
Resuming the logging
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 area Value 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).
Item Setting 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.
Item Setting 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 value Description
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).
Item Setting 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
follows.
• 'CH1 Level trigger condition setting' (Un\G540): Rise (1)
• 'CH1 Trigger data' (Un\G541): 400
• 'CH1 Trigger setting value' (Un\G542): 10000
1 FUNCTIONS
1.12 Logging Function
71
Page 74
Operation of a level trigger
OFF(0) ON(1)
Established
'CH1 Logging hold request' (Un\G471)
Trigger condition established/unestablished
CH1 Logging data (Un\G10000 to Un\G10999)
Unestablished
The data before the last 1000 points are discarded.
A hold trigger is generated.
The logging is held.
'CH1 Post-trigger logging points' (Un\G539)
'CH1 Number of logging data' (Un\G436) ≤ 1000 points
Controlled by the A/D converter module
(1)
Stored value of a buffer memory area to be monitored
A trigger is generated.
Logging cycle
Conversion
cycle
Conversion
cycle
Time
Trigger setting value
Data are collected.
Data are collected.
To use a level trigger, set ON (1) to 'CH1 Logging hold request' (Un\G471) in advance. At the point where ON (1) has been set
to 'CH1 Logging hold request' (Un\G471), the module becomes the trigger condition wait status.
Data collection starts when the trigger condition has been satisfied, and stops when the set points of the data have been
collected.
A level trigger is detected on the refreshing cycle of the digital output value or the digital operation value.
Therefore, the data when a hold trigger is generated may not be stored in 'CH1 Logging data' (Un\G10000 to
Un\G10999) depending on the setting of the logging cycle. To store the data at the timing when a hold trigger
is generated in 'CH1 Logging data' (Un\G10000 to Un\G10999), arrange related settings so that the
conversion cycle of the monitoring target value (trigger data) and the logging cycle (actual logging cycle) have
the same time period.
(1) The data at the timing when a trigger is generated is not stored in the buffer memory area.
• 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).
Checking that the logging has stopped
Check that 'CH1 Logging hold flag' (Un\G409) is ON (1).
72
1 FUNCTIONS
1.12 Logging Function
Page 75
Initial settings of the logging function
The following describes the initial setting procedure to use the logging function.
Setting procedure
1. Set "A/D conversion enable/disable setting" to "A/D conversion enable".
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter] [Basic
setting] [A/D conversion enable/disable setting]
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 value Logging read points monitor value
100 100
90 50
110 100
650 500
400 250
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.
0 0 100 200
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 -1 0 0 1st data
First time -1 0 99 99 100th data
Second time 0 100 199 199 200th data
Third time 100 200 299 299 300th data
 
10th time 800 900 999 999 1000th data
11th time 900 0 99 99 100th data
12th time 0 100 199 199 200th data
Previous logging read pointer
Current logging read pointer
Latest pointer Relative address Buffer 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.
• A/D conversion-enabled channel: CH1
• 'CH1 Logging read points setting value' (Un\G545): 100 points
1
(1) The timing that the first interrupt processing occurs
(2) The timing that the second interrupt processing occurs
(3) The timing that the third interrupt processing occurs
1 FUNCTIONS
1.12 Logging Function
75
Page 78
Setting procedure
Ex.
To use the logging read function, both the logging read function and the interrupt setting must be set.
1. Set "Condition target setting" to "Logging read".
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter] [Interrupt
setting]
2. Set "A/D conversion enable/disable setting" to "A/D conversion enable".
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter] [Basic
setting] [A/D conversion enable/disable setting]
3. Set "Logging enable/disable setting" to "Enable".
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter]
[Application setting] [Logging function]
4. Set the target data to be logged in "Logging data setting".
5. Set the cycle to store the logging data to "Logging cycle setting value".
6. Set "Read interrupt enable/disable setting" to "Enable".
7. Set the number of logging points that generate a read interrupt in "Logging read points setting value".
Setting example
When an interrupt program that is executed when the data of 'CH1 Logging read points monitor value' (U0\G440) is logged is
assigned to the interrupt pointer I50
• Label settings
Classification Label name Description Device
Module Label RCPU.stSM.bAfter_RUN1_Scan_ON ON for one scan after RUN SM402
R60ADG_1.unInterruptFactorMask_D[0].0 Interrupt factor mask U0\G124
R60ADG_1.unInterruptFactorDetectionFlag_D[0].0 Interrupt factor detection flag U0\G4
R60ADG_1.unInterruptFactorResetRequest_D[0].0 Interrupt factor reset request U0\G156
R60ADG_1.stnMonitor_D[0].wThisLoggingLoadPointer_D CH1 Current logging read pointer U0\G438
Labels to be defined
R60ADG_1.stnMonitor_D[0].uLoggingLoadPointsMonitorValue_D CH1 Logging read points monitor
value
Define global labels as shown below:
U0\G440
76
1 FUNCTIONS
1.12 Logging Function
Page 79
• Program Example
1
(0) Enable only the interrupt pointer I50.
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.
Turn on Interrupt factor reset request [0].
78
1 FUNCTIONS
1.12 Logging Function
Page 81
Saving to a CSV file
Ex.
AD©©.CSV
Object CH
First two digits of the start I/O number of the A/D converter module (expressed in four hexadecimal digits)
Consecutive numbers
*1
The logging data stored in the buffer memory areas can be saved to a CSV file by using function blocks (FBs). The save data
is sorted in a time series, where the logging data can be easily checked.
However, function blocks (FBs) can be executed only when the logging operation is stopped. During the logging operation, the
execution of function blocks (FBs) is disabled.
Saving a CSV file
To save a CSV file, an SD memory card is required.
CSV files are saved in an SD memory card installed in the CPU module. CSV files cannot be saved in the built-in memory of
the CPU module.
Saving procedure
1. Check that ON (1) is stored in 'CH1 Logging hold flag' (Un\G409).
2. Execute the function block (FB).
If the execution state of the function block (FB) is maintained, logging data can be saved in the CSV file every
time logging stops.
Data to be saved in a CSV file
The logging data stored in the buffer memory areas is saved.
For how to check the logging data, refer to the following. Page 66 Checking data when a hold trigger has occurred
1
CSV file name
CSV files saved with the function block (FB) are named as follows.
*1 The maximum number of the consecutive numbers can be set with the input label i_Max_Number (maximum number of saving files) of
the function block (FB).
The file name under the following condition is AD4516006.CSV.
• Start I/O number of the A/D converter module: 0450H
• Target channel: 16
• Saving to a CSV file: 6th time.
1 FUNCTIONS
1.12 Logging Function
79
Page 82
Displaying logging data
The CSV file output with the logging function can be displayed graphically by reading the file through GX LogViewer.
For how to display the logging data with GX LogViewer, refer to the following. GX LogViewer Version 1 Operating Manual
80
1 FUNCTIONS
1.12 Logging Function
Page 83
1.13 Interrupt Function
This function executes an interrupt program of the CPU module when an interrupt factor such as an input signal error or alert
output is detected.
For the A/D converter module, the maximum number of interrupt pointers available is 16 per module.
Operation
Detecting an interrupt factor
When an interrupt factor occurs, an interrupt request is sent to the CPU module at the same time as 'Interrupt factor detection
flag [n]' (Un\G4 to Un\G19) is turned to Interrupt factor (1).
How to reset an interrupt factor
When Reset request (1) is set to 'Interrupt factor reset request [n]' (Un\G156 to Un\G171) corresponding to the interrupt factor,
the specified interrupt factor is reset and 'Interrupt factor detection flag [n]' (Un\G4 to Un\G19) changes to No interrupt factor
(0).
Setting procedure
To use the interrupt function, set "Condition target setting", "Condition target channel setting", "Interrupt factor transaction
setting", and "Interrupt pointer" in the engineering tool. After completing the settings, write the project to enable the settings.
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter] [Interrupt
setting]
The following table shows the setting items on the interrupt setting window.
Item Description
Condition target setting Select a factor of the target for the interrupt detection.
Condition target channel setting Select a target channel when the condition target setting for the interrupt
detection is channel specification.
Interrupt factor transaction setting Set an interrupt request for when the same interrupt factor occurs during the
interrupt factor detection.
Interrupt pointer Specify the number of an interrupt pointer that is initiated at the detection of an
interrupt factor.
1
Condition target setting
Select a factor of the condition target setting for the interrupt detection.
For details on the factors to be detected, refer to the following. Page 153 Condition target setting [n]
Condition target channel setting
Select a target channel when the condition target setting for the interrupt detection is channel specification.
For details on the settings, refer to the following. Page 154 Condition target channel setting [n]
Interrupt factor transaction setting
Set an interrupt request for when the same interrupt factor occurs during the interrupt factor detection.
• With "Interrupt reissue requests (0)", if the same interrupt factor occurs during the interrupt factor detection, an interrupt
request is sent to the CPU module again.
• With "No interrupt reissue request (1)", if the same interrupt factor occurs during the interrupt factor detection, an interrupt
request is not sent to the CPU module.
Interrupt pointer
Specify the number of an interrupt pointer that is initiated at the detection of an interrupt factor. For details on the interrupt
pointers, refer to the following. MELSEC iQ-R CPU Module User's Manual (Application)
1 FUNCTIONS

1.13 Interrupt Function

81
Page 84
• If 'Condition target setting [n]' (Un\G232 to Un\G247) is Disable (0), an interrupt request is not sent to the
CPU module.
• To reset the interrupt factor, set Reset request (1) until 'Interrupt factor detection flag [n]' (Un\G4 to Un\G19)
changes to No interrupt factor (0).
• Resetting interrupt factors is executed only when 'Interrupt factor reset request [n]' (Un\G156 to Un\G171)
changes from No reset request (0) to Reset request (1).
• Multiple interrupt pointers can also share the same setting of 'Condition target setting [n]' (Un\G232 to
Un\G247). When interrupts with the same settings occur in 'Condition target setting [n]' (Un\G232 to
Un\G247), the interrupt program is executed in order of the priority of the interrupt pointers. For the priority
of the interrupt pointers, refer to the following.
MELSEC iQ-R CPU Module User's Manual (Application)
• When All channels (0) is set for 'Condition target channel setting [n]' (Un\G264 to Un\G279) and an interrupt
detection target is set for each channel of 'Condition target setting [n]' (Un\G232 to Un\G247), the interrupt
requests that have the same interrupt factor are sent to the CPU module if alerts are issued in multiple
channels. In this case, the CPU module executes multiple interrupt programs and judges that the program
cannot be normally finished due to the scan monitoring function, and a CPU module error may occur. When
a CPU error occurs, refer to the following.
MELSEC iQ-R CPU Module User's Manual (Application)
82
1 FUNCTIONS
1.13 Interrupt Function
Page 85
Setting example
Ex.
If the interrupt program (I51) is executed when an error occurs in any channel
• Parameter setting
Set "Interrupt setting" of [Module Parameter] as follows.
No. Condition target setting Condition target channel
setting
2 Error flag All channels I51
• Label settings
Classification Label name Description Device
Module Label RCPU.stSM.bAlways_ON Always ON SM400
RCPU.stSM.bAfter_RUN1_Scan_ON ON for one scan after RUN SM402
R60ADG_1.unInterruptFactorMask_D[1].0 Interrupt factor mask U0\G125.0
R60ADG_1.unInterruptFactorResetRequest_D[1].0 Interrupt factor reset request U0\G157.0
Labels to be defined Define global labels as shown below:
Interrupt pointer
1
(0) Enable only the interrupt pointer I51.
(10) Turn on 'Interrupt factor reset request [1]' (U0\G157).
Performs the processing of when an error is detected.
1 FUNCTIONS
1.13 Interrupt Function
83
Page 86
1.14 Error History Function
Ex.
b15 b8 b7 b0
Error code
First two digits of the year Last two digits of the year
Month Day
Hour Minute
Second Day of the week
Millisecond (higher-order digits) Millisecond (lower-order digits)
Un\G3600
Un\G3604
Un\G3603
Un\G3602
Un\G3601
Un\G3605
Un\G3606
Un\G3609
to
to
System area
b15 b8 b7 b0
Alarm code
First two digits of the year Last two digits of the year
Month Day
Hour Minute
Second Day of the week
Millisecond (higher-order digits) Millisecond (lower-order digits)
Un\G3760
Un\G3764
Un\G3763
Un\G3762
Un\G3761
Un\G3765
Un\G3766
Un\G3769
to
to
System area
This function records errors and alarms that occurred in the A/D converter module to store them into the buffer memory area.
Up to 16 errors and alarms are stored.
Operation
When an error occurs, the error code and the error time are stored from Error history 1 (Un\G3600 to Un\G3609) in order.
When an alarm occurs, the alarm code and the alarm time are stored from Alarm history 1 (Un\G3760 to Un\G3769) in order.
• Detail of the error code assignment
• Detail of the alarm code assignment
Storing example of error history and alarm history
Item Storage contents Storage example
First two digits of the year/Last two digits of the year
Month/Day 131H
Hour/Minute 1234H
Second 56H
Day of the week One of the following values is stored in BCD code.
Millisecond (upper) Stored in BCD code. 7H
Millisecond (lower) 89H
Stored in BCD code. 2015H
6H Sunday: 0, Monday: 1, Tuesday: 2, Wednesday: 3 Thursday: 4, Friday: 5, Saturday: 6
*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.15 Event 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 type Classification Description
System Error An error detected by the self diagnostics in each module.
Warning A warning (alarm) detected in each module.
Information The operation by the normal detection of the system that is not classified as Error or Warning, or the operation
performed automatically by the system.
Security Warning Operation that is judged as an unauthorized access to each module.
Information Operation that is hard to be judged as the success of unlocking passwords or an unauthorized access.
Operation Warning Deleting (data clear) operations that may change the action. (These operations are not judged as errors by the
self diagnostics.)
Information Operations 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
20010 Information Offset/gain setting execution In the user range setting, offset/gain values has
20100 Information Error clear Error clear request has been issued.
Event class Event name Event detail Additional information
Total number of writes
been set.
1 FUNCTIONS

1.15 Event History Function

87
Page 90
1.16 Backing 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 updated Description
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 mode When 'User range write request' (YA) is turned on in the normal mode, the
When the G(P).OGSTOR instruction is executed in the normal mode When the G(P).OGSTOR instruction is executed in the normal mode, the
When a new module is recognized after the online module change When 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) Description Save data
CH1 CH2 CH3 CH4 CH5 CH6 CH7 CH8
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) Description Save data
type setting
CH1 CH2 CH3 CH4 CH5 CH6 CH7 CH8 Factory default
4004 4005
CH9 CH10 CH11 CH12 CH13 CH14 CH15 CH16
4036 4037
CH1 CH2 CH3 CH4 CH5 CH6 CH7 CH8 Factory default
4006 4007
CH9 CH10 CH11 CH12 CH13 CH14 CH15 CH16
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
0V 800000H
0mA 800000H
10V C92492H
20mA A4D6CDH
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 value Reference value (hexadecimal)
20mA
*1
*2
875E29H
A4D6CDH
Current 4mA
*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.17 Q 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 series Compatible A/D converter module
R60AD8-G Q68AD-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 number R60AD8-G Q68AD-G
X7 Use prohibited High 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.
[Navigation window] [Parameter] [Module Information] Right-click [Add New Module]
2. Configure the same parameter setting as the one of when the R mode is used.
3. Restart the CPU module after the module parameter is written.
• During the module operation, the mode cannot be switched between the R mode and Q compatible mode.
• The project of the compatible A/D converter module created by GX Works2 can be read with the other
format read function of GX Works3. The read project keeps various settings of the compatible A/D converter
module as the settings of the A/D converter module of the MELSEC iQ-R series. The settings to be kept are
the switch setting, parameter setting, auto refresh setting, and I/O assignment setting.
1 FUNCTIONS

1.17 Q Compatible Mode Function

95
Page 98
2 PARAMETER SETTINGS
Set the parameters of each channel.
Setting parameters here eliminates the need to program them.
2.1 Basic Setting
Setting procedure
Open "Basic setting" of the engineering tool.
1. Start Module parameter.
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter] [Basic
setting]
2. Click the item to be changed to enter the setting value.
• Item where a value is selected from the pull-down list
Click [] button of the item to be set, and from the pull-down list that appears, select the value.
• Item where a value is entered into the text box
Double-click the item to be set to enter the numeric value.
96

2 PARAMETER SETTINGS

2.1 Basic Setting

Page 99
2.2 Application Setting
Setting procedure
Open "Application setting" of the engineering tool.
1. Start Module parameter.
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter]
[Application setting]
2
2. Click the item to be changed to enter the setting value.
• Item where a value is selected from the pull-down list
Click [] button of the item to be set, and from the pull-down list that appears, select the value.
• Item where a value is entered into the text box
Double-click the item to be set to enter the numeric value.
2 PARAMETER SETTINGS

2.2 Application Setting

97
Page 100
2.3 Interrupt Setting
Setting procedure
Open "Interrupt setting" of the engineering tool.
1. Start Module parameter.
[Navigation window] [Parameter] [Module Information] Module model name [Module Parameter] [Interrupt
setting]
2. Click the interrupt setting number (No.1 to 16) to be changed to enter the setting value.
• Item where a value is selected from the pull-down list
Click [] button of the item to be set, and from the pull-down list that appears, select the value.
• Item where a value is entered into the text box
Double-click the item to be set to enter the numeric value.
98
2 PARAMETER SETTINGS

2.3 Interrupt Setting

Loading...