Mitsubishi Electric RD62P2E, RD62D2, iQ-R, RD62P2 User Manual

Page 1
MELSEC iQ-R High-Speed Counter Module User's Manual (Application)
-RD62P2
-RD62P2E
-RD62D2
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.
2
Page 5
[Design Precautions]
WARNING
Especially, when a remote programmable controller is controlled by an external device, immediate action cannot be taken if a problem occurs in the programmable controller due to a communication failure. To prevent this, configure an interlock circuit in the program, and determine corrective actions to be taken between the external device and CPU module in case of a communication failure.
Do not write any data to the "system area" and "write-protect area" of the buffer memory in the module. Also, do not use any "use prohibited" signals as an output signal from the CPU module to each module. Doing so may cause malfunction of the programmable controller system. For the "system area", "write-protect area", and the "use prohibited" signals, refer to the user's manual for the module used.
If a communication cable is disconnected, the network may be unstable, resulting in a communication failure of multiple stations. Configure an interlock circuit in the program to ensure that the entire system will always operate safely even if communications fail. Failure to do so may result in an accident due to an incorrect output or malfunction.
To maintain the safety of the programmable controller system against unauthorized access from external devices via the network, take appropriate measures. To maintain the safety against unauthorized access via the Internet, take measures such as installing a firewall.
Outputs may remain on or off due to a failure of a transistor for external output. Configure an external circuit for monitoring output signals that could cause a serious accident.
[Design Precautions]
CAUTION
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 setting values in the buffer memory 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 can 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.
Do not install the control lines or communication cables together with the main circuit lines or power cables. Keep a distance of 150mm or more between them. Failure to do so may result in malfunction due to noise.
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.
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.
Do not install the control lines or communication cables together with the main circuit lines or power cables. Keep a distance of 150mm or more between them. Failure to do so may result in malfunction due to noise.
Ground the shield cable on the encoder side (relay box) with a ground resistance of 100 ohm or less. Failure to do so may cause 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.
[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.
6
Page 9
[Startup and Maintenance Precautions]
CAUTION
Startup and maintenance of a control panel must be performed by qualified maintenance personnel with knowledge of protection against electric shock. Lock the control panel so that only qualified maintenance personnel can operate it.
Before handling the module, touch a conducting object such as a grounded metal to discharge the static electricity from the human body. Failure to do so may cause the module to fail or malfunction.
[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.
7
Page 10

CONDITIONS OF USE FOR THE PRODUCT

(1) Mitsubishi programmable controller ("the PRODUCT") shall be used in conditions;
i) where any problem, fault or failure occurring in the PRODUCT, if any, shall not lead to any major or serious accident;
and
ii) where the backup and fail-safe function are systematically or automatically provided outside of the PRODUCT for the
case of any problem, fault or failure occurring in the PRODUCT.
(2) The PRODUCT has been designed and manufactured for the purpose of being used in general industries.
MITSUBISHI SHALL HAVE NO RESPONSIBILITY OR LIABILITY (INCLUDING, BUT NOT LIMITED TO ANY AND ALL
RESPONSIBILITY OR LIABILITY BASED ON CONTRACT, WARRANTY, TORT, PRODUCT LIABILITY) FOR ANY
INJURY OR DEATH TO PERSONS OR LOSS OR DAMAGE TO PROPERTY CAUSED BY the PRODUCT THAT ARE
OPERATED OR USED IN APPLICATION NOT INTENDED OR EXCLUDED BY INSTRUCTIONS, PRECAUTIONS, OR
WARNING CONTAINED IN MITSUBISHI'S USER, INSTRUCTION AND/OR SAFETY MANUALS, TECHNICAL
BULLETINS AND GUIDELINES FOR the PRODUCT.
("Prohibited Application")
Prohibited Applications include, but not limited to, the use of the PRODUCT in;
• Nuclear Power Plants and any other power plants operated by Power companies, and/or any other cases in which the
public could be affected if any problem or fault occurs in the PRODUCT.
• Railway companies or Public service purposes, and/or any other cases in which establishment of a special quality
assurance system is required by the Purchaser or End User.
• Aircraft or Aerospace, Medical applications, Train equipment, transport equipment such as Elevator and Escalator,
Incineration and Fuel devices, Vehicles, Manned transportation, Equipment for Recreation and Amusement, and
Safety devices, handling of Nuclear or Hazardous Materials or Chemicals, Mining and Drilling, and/or other
applications where there is a significant risk of injury to the public or property.
Notwithstanding the above restrictions, Mitsubishi may in its sole discretion, authorize use of the PRODUCT in one or
more of the Prohibited Applications, provided that the usage of the PRODUCT is limited only for the specific
applications agreed to by Mitsubishi and provided further that no special quality assurance or fail-safe, redundant or
other safety features which exceed the general specifications of the PRODUCTs are required. For details, please
contact the Mitsubishi representative in your region.

INTRODUCTION

Thank you for purchasing the Mitsubishi Electric MELSEC iQ-R series programmable controllers.
This manual describes the 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.
Relevant products
RD62P2, RD62P2E, RD62D2
8
Page 11
MEMO
9
Page 12

CONTENTS

SAFETY PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
CONDITIONS OF USE FOR THE PRODUCT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
INTRODUCTION. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
RELEVANT MANUALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
TERMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
CHAPTER 1 FUNCTIONS 13
1.1 Pulse Input Modes and Counting Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Types of pulse input modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
Setting a counting method. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Reading the present value. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
1.2 Selecting a Counter Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Linear counter function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
Ring counter function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
1.3 Coincidence Output Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
Coincidence detection interrupt function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
1.4 Preset Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
1.5 Counter Function Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
Count error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Count disable function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
Latch counter function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Sampling counter function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
Cycle pulse counter function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
1.6 Pulse Measurement Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34
1.7 PWM Output Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
CHAPTER 2 PARAMETER SETTINGS 39
2.1 Parameter Setting Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
2.2 Basic Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
2.3 Application Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
2.4 Interrupt Setting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42
2.5 Refresh Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Refresh processing time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
2.6 Preset Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46
CHAPTER 3 TROUBLESHOOTING 47
3.1 Procedure for Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47
3.2 Checking Module Status. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47
3.3 Troubleshooting by Symptom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48
When the count operation does not start. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
When the count operation is not normal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48
When the coincidence output function does not operate normally . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
When a coincidence detection interrupt does not occur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49
When the preset cannot be executed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49
When the pulse measurement does not start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
When the pulses are not measured correctly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50
When the PWM output is not correct. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50
When the inter-module synchronization function does not operate correctly . . . . . . . . . . . . . . . . . . . . . . . . . . .50
10
Page 13
Pulse waveform shaping method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51
APPENDICES 52
Appendix 1 Module Label . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Appendix 2 I/O Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54
List of I/O signals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Input signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Output signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57
Appendix 3 Buffer Memory Areas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60
List of buffer memory addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60
Details of buffer memory addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62
Appendix 4 Operation Examples of When the Remote Head Module Is Mounted . . . . . . . . . . . . . . . . . . . . . . . . . 69
System configuration example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69
Setting in the master station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .70
Setting in the intelligent device station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73
Checking the network status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Program examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77
Appendix 5 Added or Changed Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82
INDEX 84
CONTENTS
REVISIONS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86
WARRANTY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87
TRADEMARKS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88
11
Page 14

RELEVANT MANUALS

Manual name [manual number] Description Available form
MELSEC iQ-R High-Speed Counter Module User's Manual (Application) [SH-081241ENG] (this manual)
MELSEC iQ-R High-Speed Counter Module User's Manual (Startup) [SH-081239ENG]
Functions, parameter settings, troubleshooting, I/O signals, and buffer memory of the high-speed counter module
Performance specifications, procedures before operation, wiring, and operation examples of the high­speed counter module
Print book
e-Manual PDF
Print book
e-Manual PDF
e-Manual refers to the Mitsubishi FA electronic book manuals that can be browsed using a dedicated tool.
e-Manual has the following features:
• Required information can be cross-searched in multiple manuals.
• Other manuals can be accessed from the links in the manual.
• The hardware specifications of each part can be found from the product figures.
• Pages that users often browse can be bookmarked.
• Sample programs can be copied to an engineering tool.

TERMS

Unless otherwise specified, this manual uses the following terms.
Term Description
GX Works3 The product name of the software package for the MELSEC programmable controllers
Engineering tool Another term for GX Works3
Global label A label that is valid for all the program data when multiple program data are created in the project.
High-speed counter module The abbreviation for the MELSEC iQ-R series high-speed counter module
Buffer memory A memory in an intelligent module for storing data (such as setting values and monitored values)
Module label A label that represents one of memory areas (I/O signals and buffer memory areas) specific to
Remote head module The abbreviation for the RJ72GF15-T2 CC-Link IE Field Network remote head module
The global label has two types: 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.
to be transferred to the CPU module
each module in a given character string. For the module used, GX Works3 automatically generates this label, which can be used as a global label.
12
Page 15
1 FUNCTIONS
φA
φB and
CH1 Down
count command
(Y3)
φA
φB or
CH1 Down
count command
(Y3)
φA
φB
This chapter describes the functions for the high-speed counter module and the setting methods. For details on I/O signals
and buffer memory areas, refer to the following.
Page 55 Input signals
Page 57 Output signals
Page 62 Details of buffer memory addresses
This chapter describes the I/O numbers (X/Y), buffer memory addresses, and external I/O terminals for CH1.
To check the I/O numbers (X/Y) for CH2, refer to the following. Page 54 List of I/O signals
To check the buffer memory addresses for CH2, refer to the following. Page 60 List of buffer memory addresses
1.1 Pulse Input Modes and Counting Methods
This section describes the pulse input modes and the counting methods.

Types of pulse input modes

The following six pulse input modes are prepared: 1-phase pulse input (1 multiple/2 multiples), CW/CCW pulse input, and 2-
phase pulse input (1 multiple/2 multiples/4 multiples).
1
Pulse input modes and count timing
Pulse input mode Count timing
1-phase multiple of 1 For counting up Counts on the rising edge () of A.
count command
For counting down Counts on the falling edge () of A.
count command
1-phase multiple of 2 For counting up Counts on the rising edge () and the falling edge
For counting down Counts on the rising edge () and the falling edge
CW/CCW For counting up Counts on the rising edge () of A.
φB and
CH1 Down
(Y3)
φA
φB or
CH1 Down
(Y3)
φA
B and CH1 Down count command (Y3) are off.
B or CH1 Down count command (Y3) is on.
() of A.B and CH1 Down count command (Y3) are off.
() of A.B or CH1 Down count command (Y3) is on.
B is off.
For counting down A is off.
φA
φB
Counts on the rising edge () of B.

1.1 Pulse Input Modes and Counting Methods

1 FUNCTIONS

13
Page 16
Pulse input mode Count timing
φA
φB
φA
φB
φA
φB
φA
φB
φA
φB
2-phase multiple of 1 For counting up Counts on the rising edge () of A while B is off.
For counting down Counts on the falling edge () of A while B is off.
2-phase multiple of 2 For counting up Counts on the rising edge () of A while B is off.
For counting down Counts on the rising edge () of A while B is on.
2-phase multiple of 4 For counting up Counts on the rising edge () of A while B is off.
For counting down Counts on the rising edge () of A while B is on.
φA
φB
Counts on the falling edge () of A while B is on.
Counts on the falling edge () of A while B is off.
Counts on the falling edge () of A while B is on. Counts on the rising edge () of B while A is o n. Counts on the falling edge () of B while A is off.
Counts on the falling edge () of A while B is off. Counts on the rising edge () of B while A is off. Counts on the falling edge () of B while A is on .
For the 1-phase pulse input and counting up pulses, check that the B phase pulse input and CH1 Down count
command (Y3) are off before performing the A phase pulse input. If at least one of the B phase pulse input
and CH1 Down count command (Y3) is on, pulses are counted down in the A phase pulse input.
14
1 FUNCTIONS
1.1 Pulse Input Modes and Counting Methods
Page 17
1-phase pulse input
φA
φB
Pulse input
Encoder
High-speed counter module
φB or CH1 Down count command (Y3)
φA
φB
Count-up pulse input
Count-down pulse input
Encoder
Encoder
High-speed counter module
φA
φB
Phase A pulse input
Phase B pulse input
Encoder
High-speed counter module
The count method can be selected from 1 multiple and 2 multiples. The following figure shows the relationship between the A
phase pulse input and B phase pulse input or CH1 Down count command (Y3).
CW/CCW pulse input
Pulses can be counted up with the A phase pulse input and counted down with the B phase pulse input. The following figure
shows the relationship between the A phase pulse input and B phase pulse input.
1
2-phase pulse input
The count method can be selected from 1 multiple, 2 multiples, and 4 multiples. The phase difference between the A phase
pulse and B phase pulse determines whether the pulses are counted up or down. The following figure shows the relationship
between the A phase pulse input and B phase pulse input.
1 FUNCTIONS
1.1 Pulse Input Modes and Counting Methods
15
Page 18

Setting a counting method

Set a counting method in "Basic setting" For details on the setting method, refer to the following. Page 39 Basic Setting

Reading the present value

This section describes the details on the present value stored in the buffer memory and the count values selected from the
counter function selection, and their reading method.
When the refresh setting is used
By configuring the refresh setting, writing and reading data can be performed without creating a communication program for
the high-speed counter module. For details on the setting method, refer to the following. Page 43 Refresh Setting
When the refresh setting is not used
Storage location of the count value
The present value is always stored in CH1 Present value (Un\G2 to Un\G3) regardless of the counter function used.
When the latch counter function, sampling counter function, or cycle pulse counter function is performed, the counter function
selection count value is stored in the corresponding buffer memory addresses listed in the following table besides CH1
Present value (Un\G2 to Un\G3).
Description Present value Counter function selection count value
Buffer memory address
Latch count value
Un\G2 to Un\G3 Un\G12 to Un\G13 Un\G14 to Un\G15 Un\G16 to Un\G17 Un\G18 to Un\G19 Un\G24 to Un\G27
Sampling count value
Cycle pulse count previous value
Cycle pulse count current value
Cycle pulse count difference value
Stored data
The present value and the counter function selection count values are stored in the buffer memory in 32-bit signed binary.
However, only the cycle pulse count difference value is stored in the buffer memory in 64-bit signed binary. The values in the
buffer memory are automatically updated depending on the count operation.
16
1 FUNCTIONS
1.1 Pulse Input Modes and Counting Methods
Page 19
1.2 Selecting a Counter Type
+2147483647
-2147483648
Present counter value
Overflow
Overflow
Counting upCounting down
0
Select a counter type in "Counter type" of "Basic setting".
Setting method
1. Set "Counter operation mode" to "Pulse count mode".
2. Set "Counter type" to "Linear counter" or "Ring counter".
Navigation window [Parameter] [Module Information] Module model name [Module Parameter]  [Basic
setting]
Item Description Reference
Linear counter This function counts pulses between -2147483648 (lower limit value) and 2147483647
(upper limit value). If a count exceeds the range, the overflow is detected.
Ring counter This function counts pulses repeatedly between the values stored in CH1 Ring counter
lower limit value setting (Un\G20 to Un\G21) and CH1 Ring counter upper limit value setting (Un\G22 to Un\G23).

Linear counter function

Operation of the linear counter
• This function counts pulses between -2147483648 (lower limit value) and 2147483647 (upper limit value).
• The preset function and coincidence output function can be used with this function.
Page 17 Linear counter function
Page 18 Ring counter function
1
Overflow error
• When the counter type is the linear counter, an overflow error occurs if the value in CH1 Present value (Un\G2 to Un\G3)
• If an overflow error occurs, 1 is stored in CH1 Overflow detection (Un\G8) and the counting operation stops. The present
• The overflow error can be cleared by performing the preset function.
• When the preset function is performed, 0 is stored in CH1 Overflow detection (Un\G8) and the counting operation restarts.
falls below -2147483648 (lower limit value) at the subtraction or exceeds 2147483647 (upper limit value) at the addition.
value does not change from -2147483648 or 2147483647 even if pulses are input.
1 FUNCTIONS

1.2 Selecting a Counter Type

17
Page 20

Ring counter function

+2147483647
-2147483648
0
CH1
Ring counter upper limit (Un\G22 to Un\G23)
CH1
Ring counter lower limit (Un\G20 to Un\G21)
Present counter value
Counting up
Counting down
-2147483648
0
500
2000
2147483647
(2000)
500 501 1998 1999 0 1 2 498 499
Ring counter lower limit value
Present value
Ring counter upper limit value
Ring counter lower limit value
to to
Ring counter upper limit value
The ring counter upper limit value, 2000, is not stored in CH1 Present value (Un\G2 to Un\G3).
Present value
Counting range
Operation of the ring counter
This function repeatedly counts pulses between the values stored in CH1 Ring counter lower limit value setting (Un\G20 to
Un\G21) and CH1 Ring counter upper limit value setting (Un\G22 to Un\G23). When the ring counter function is selected, an
overflow error does not occur. The preset function and coincidence output function can be used with this function.
Count range of the ring counter
The count range is determined by the relationship between the ring counter lower limit value or ring counter upper limit value
and the value in CH1 Present value (Un\G2 to Un\G3) when CH1 Count enable command (Y4) is turned on or when the preset function is performed. Normally, the count range is Ring counter lower limit value Present value Ring counter upper
limit value.
When the count range is Ring counter lower limit value  Present value Ring counter upper
limit value (normally used)
• When pulses are counted up, the ring counter lower limit value is automatically stored in CH1 Present value (Un\G2 to
Un\G3) when the present value reaches the ring counter upper limit value.
• When pulses are counted down, even when the present value reaches the ring counter lower limit value, the ring counter
lower limit value is held as the lower limit, and the value of Ring counter upper limit value - 1 is stored in CH1 Present value
(Un\G2 to Un\G3) at the next count-down pulse input.
Both when pulses are counted up and when pulses are counted down, the ring counter upper limit value is not stored in CH1
Present value (Un\G2 to Un\G3). For example, when the count enable command is valid while the ring counter lower limit
value is 0, the ring counter upper limit value is 2000, and the present value is 500, the count range and the present value will
change as follows.
18
1 FUNCTIONS
1.2 Selecting a Counter Type
Page 21
When the count range is Present value < Ring counter lower limit value or Ring counter upper
-2147483648
0
2000
3000 3001 2001-2 -1 0 2002 29982147483647 -2147483648 2999
(2000)
3000
2147483647
Ring counter lower limit value
Present value
Ring counter upper limit value
Ring counter lower limit value
Ring counter upper limit valuePresent value
to toto
The ring counter upper limit value, 2000, is not stored in CH1 Present value (Un\G2 to Un\G3).
Counting range Counting range
limit value < Present value
• When pulses are counted up, even when the present value reaches the ring counter lower limit value, the ring counter
lower limit value is held as the lower limit, and the value of Ring counter upper limit value + 1 is stored in CH1 Present value
(Un\G2 to Un\G3) at the next count-up pulse input.
• When pulses are counted down, the ring counter lower limit value is automatically stored in CH1 Present value (Un\G2 to
Un\G3) when the present value reaches the ring counter upper limit value.
Both when pulses are counted up and when pulses are counted down, the ring counter upper limit value is not stored in CH1
Present value (Un\G2 to Un\G3). For example, when the count enable command is valid while the ring counter lower limit
value is 0, the ring counter upper limit value is 2000, and the present value is 3000, the count range and the present value will
change as follows.
1
When the count range is Ring counter lower limit value = Ring counter upper limit value
When this condition is established, a value that can be expressed in 32-bit signed binary (-2147483648 to 2147483647) will
be the count range, regardless or the present value.
• While CH1 Count enable command (Y4) is on, even if CH1 Ring counter lower limit value setting (Un\G20 to
Un\G21) and CH1 Ring counter upper limit value setting (Un\G22 to Un\G23) are changed, the high-speed
counter module does not operate with the changed value. Turn off CH1 Count enable command (Y4) before
changing the ring counter upper limit value or ring counter lower limit value.
• Turn off CH1 Count enable command (Y4) before changing the count range using the preset function.
1 FUNCTIONS
1.2 Selecting a Counter Type
19
Page 22
1.3 Coincidence Output Function
This function compares the present count value with the preset count value, and outputs a signal when they match.
Setting method
1. Set "Counter operation mode" to "Pulse count mode".
2. Set a count value for "Coincidence output point No.1 setting" or "Coincidence output point No.2 setting".
Navigation window [Parameter] [Module Information] Module model name [Module Parameter]  [Basic
setting]
Item Setting range
Coincidence output point No.1 -2147483648 to 2147483647
Coincidence output point No.2
Up to two coincidence outputs can be set for each channel.
When the external output of the coincidence signal is used, turn on CH1 Coincidence signal enable command (Y2)
beforehand.
Operation of the coincidence output
CH1 Count enable command (Y4)
CH1 Coincidence signal enable command (Y2)
Counter input pulse
CH1 Coincidence output point No.1 setting (Un\G4 to Un\G5)
CH1 Counter value smaller (point No.1) (X3)
CH1 Counter value coincident (point No.1) (X2)
Coincidence output point No.1 terminal (EQU1)
CH1 Coincidence signal No.1 reset command (Y0)
CH1 Counter value larger (point No.1) (X1)
ON
OFF
ON
OFF
H
L
0 100
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
(4)
(1)
(2)
(3)
(5)
(5)
(5)
(6) (7)
(8)
CH1 Present value (Un\G2 to Un\G3)
0 1 2 98 99 100 101 102 103
·
No. Description
(1) The comparison operation starts with the value set to CH1 Coincidence output point No.1 setting (Un\G4 to Un\G5).
(2) When CH1 Present value (Un\G2 to Un\G3) becomes less than CH1 Coincidence output point No.1 setting (Un\G4 to Un\G5), CH1 Counter
(3) When CH1 Coincidence signal No.1 reset command (Y0) is turned on, CH1 Counter value coincident (point No.1) (X2) and the coincidence
(4) If a coincidence output from the coincidence output point No.1 terminal (EQU1) is required, turn on CH1 Coincidence signal enable command
value smaller (point No.1) (X3) turns on.
output point No.1 terminal (EQU1) turns off.
(Y2).
1 FUNCTIONS
20

1.3 Coincidence Output Function

Page 23
No. Description
(5) When CH1 Present value (Un\G2 to Un\G3) equals to CH1 Coincidence output point No.1 setting (Un\G4 to Un\G5), CH1 Counter value
coincident (point No.1) (X2) and the coincidence output point No.1 terminal (EQU1) turn on. Also, CH1 Counter value smaller (point No.1) (X3) turns off.
(6) When CH1 Coincidence signal No.1 reset command (Y0) is turned on while the values match, CH1 Counter value coincident (point No.1) (X2)
and the coincidence output point No.1 terminal (EQU1) turn off.
(7) Even though CH1 Coincidence signal No.1 reset command (Y0) is turned off while the values match, CH1 Counter value coincident (point No.1)
(X2) and the coincidence output point No.1 terminal (EQU1) do not turn on.
(8) When CH1 Present value (Un\G2 to Un\G3) becomes greater than CH1 Coincidence output point No.1 setting (Un\G4 to Un\G5), CH1 Counter
value larger (point No.1) (X1) turns on.
1
1 FUNCTIONS
1.3 Coincidence Output Function
21
Page 24
Precautions for using the coincidence output function
When CH1 Coincidence signal enable command (Y2) is turned on before the count is started or while the coincidence output
point setting value and the current value match, the coincidence output is performed. To avoid this status, perform one of the
following operations before turning on CH1 Coincidence signal enable command (Y2).
Setting different values to the coincidence output point setting value and the current value
Set different values to the coincidence output point setting value and the current value by one of the following methods.
• Changing the coincidence output point setting value
• Changing the current value using the preset function
• Changing the current value by inputting a pulse
Turning off the counter value coincidence signal
Turn on and off CH1 Coincidence signal No.1 reset command (Y0).
• Since CH1 Present value (Un\G2 to Un\G3) and CH1 Coincidence output point No.1 (Un\G4 to Un\G5) are
0 after the CPU module is powered on or is reset, CH1 Counter value coincident (point No.1) (X2) turns on.
• When CH1 Coincidence signal enable command (Y2) is turned on while CH1 Counter value coincident
(point No.1) (X2) is on, the coincidence output is performed to outside the module. To avoid an incorrect
coincidence output, turn on and off CH1 Coincidence signal No.1 reset command (Y0) before turning on
CH1 Coincidence signal enable command (Y2), and turn off CH1 Counter value coincident (point No.1)
(X2).
Precautions for mounting a remote head module
When a high-speed counter module has been mounted with a remote head module, whether to hold or clear the Y signal at a
disconnection of own station can be set with “CPU error output mode setting” in the module parameter. According to this
setting, whether to continue counting and operate the coincidence output, or to stop counting and not to operate the
coincidence output can be specified.
Setting methods when the parameter is set with “CPU error output mode setting” are described as follows.
• Enable the station-based block data assurance for cyclic data in the sending side.
• To hold the PWM output at a disconnection, select “Hold” for “CPU error output mode setting” in the module parameter.
• To stop the PWM output at a disconnection, select “Clear” for “CPU error output mode setting” in the module parameter.
This setting is valid in module units. The parameter cannot be set in each channel.
22
1 FUNCTIONS
1.3 Coincidence Output Function
Page 25

Coincidence detection interrupt function

Interrupt program execution timing
I/O signals
Interrupt request
Interrupt request clear
Interrupt program
Internal processing of CPU module
CH1 Counter value coincident (point No.1) (X2) CH1 Counter value coincident (point No.2) (X6)
CH1 Coincidence signal No.1 reset command (Y0) CH1 Coincidence signal No.2 reset command (Y7)
Program in CPU module
This function outputs an interrupt request to the CPU module and starts an interrupt program when the present counter value
matches with the preset coincidence output point setting value.
For details on the interrupt program, refer to the following. MELSEC iQ-R CPU Module User's Manual (Application)
Interrupt factor
The high-speed counter module has interrupt factors of 4 points for each coincidence output point.
Interrupt factor
Turning on CH1 Counter value coincident (point No.1) (X2)
Turning on CH1 Counter value coincident (point No.2) (X6)
Turning on CH2 Counter value coincident (point No.1) (X9)
Turning on CH2 Counter value coincident (point No.2) (XD)
1
Setting interrupt pointers
Set interrupt pointers in the parameter settings. For details on the setting method, refer to the following. Page 42 Interrupt Setting
• A coincidence detection interrupt occurs on the rising edge of the counter value coincidence signal (When
the signal is turned off and on). Therefore, the next interrupt will not be requested unless the coincidence
signal is reset and the counter value coincidence signal is turned off.
1 FUNCTIONS
1.3 Coincidence Output Function
23
Page 26
1.4 Preset Function
ON OFF
ON OFF
101100676665210
1000
(1)
(2)
102 103 104 105
Counter input pulse
CH1 Count enable command (Y4)
CH1 Preset command (Y1)
CH1 Present value (Un\G2 to Un\G3)
CH1 Preset value (Un\G0 to Un\G1)
to
This function overwrites the present counter value with the set numerical value. The set value is referred to as a preset value.
This function can be used to start counting pulses from the preset value. The function can be performed using a program or
an external control signal.
Setting method
1. Set "Counter operation mode" to "Pulse count mode".
2. Set a preset value to "Preset value setting".
Navigation window [Parameter] [Module Information] Module model name [Module Parameter]  [Basic
setting]
Item Setting range
Preset value setting -2147483648 to 2147483647
Performing the preset function using a program
Perform the preset function by turning on CH1 Preset command (Y1) using a program.
No. Description
(1) Write a value into CH1 Preset value setting (Un\G0 to Un\G1) in 32-bit signed binary.
(2) On the rising edge (off and on) of CH1 Preset command (Y1), the value in CH1 Present value (Un\G2 to Un\G3) is replaced with the value in CH1
Preset value setting (Un\G0 to Un\G1). The preset function can be performed regardless of the on/off status of CH1 Count enable command (Y4).
24
1 FUNCTIONS

1.4 Preset Function

Page 27
Performing the preset function using an external control signal
ON OFF
ON OFF
ON OFF
ON OFF
1016665210 130 131 100 10110067
0 100
(1)
(2) (2)
(4)
(3)
toto
CH1 Count enable command (Y4)
CH1 Preset value (Un\G0 to Un\G1)
Preset command (preset input terminal)
CH1 External preset request detection (X4)
CH1 External preset detection reset command (Y5)
CH1 Present value (Un\G2 to Un\G3)
Counter input pulse
Perform the preset function by applying an ON voltage to the preset input terminal for external input.
1
No. Description
(1) Write a value into CH1 Preset value setting (Un\G0 to Un\G1) in 32-bit signed binary.
(2) On the rising edge (off and on) of the preset command (A voltage is applied to the preset input terminal), the value in CH1 Present value (Un\G2
(3) Even though a voltage is applied to the preset input terminal while CH1 External preset request detection (X4) is on, the value in CH1 Present
(4) CH1 External preset request detection (X4) is turned off by turning on CH1 External preset detection reset command (Y5).
to Un\G3) is replaced with the value in CH1 Preset value setting (Un\G0 to Un\G1). The preset function can be performed regardless of the on/off status of CH1 Count enable command (Y4).
value (Un\G2 to Un\G3) is not replaced with the preset value.
1 FUNCTIONS
1.4 Preset Function
25
Page 28
1.5 Counter Function Selection
The count disable function, latch counter function, sampling counter function, or cycle pulse counter function can be used by
selecting each item in the counter function selection setting of the "Counter function selection setting". The selected counter
function is performed by the counter function selection start command (when CH1 Counter function selection start command
(Y6) is turned on using a program or a voltage is applied to the function start input terminal).
Only one of the four counter functions can be selected from the counter function selection.
Setting method
1. Set "Counter operation mode" to "Pulse count mode".
2. Set the function to be used in "Counter function selection setting".
Navigation window [Parameter] [Module Information] Module model name [Module Parameter] [Application
setting]
Item Description Reference
Count disable function This function stops counting pulses while CH1 Count enable command
(Y4) is on.
Latch counter function This function latches the present counter value when Counter function
selection start command is input.
Sampling counter function This function counts pulses input during the specified sampling time (T)
and stores the count value in the buffer memory.
Cycle pulse counter function This function stores the current value, previous value, and difference
value of the counter in the buffer memory at every specified cycle time (T).
Page 28 Count disable function
Page 29 Latch counter function
Page 30 Sampling counter function
Page 31 Cycle pulse counter function
• Change the counter function while CH1 Counter function selection start command (Y6) is off.
• The selected counter function can be performed by turning on CH1 Counter function selection start
command (Y6) or applying a voltage to the function start input terminal. A signal that is input first takes
priority.
26
1 FUNCTIONS

1.5 Counter Function Selection

Page 29

Count error

Count error (maximum)
=
A
1000
[s] × B
Count error (maximum)
=
A
1000
[s] × B
Count error (maximum)
=
B
1000000
× C
A
1000
[s] ×
A count error may occur when the selected counter function is performed using an external input (A voltage is applied to the
function start input terminal) or using a program (CH1 Counter function selection start command (Y6) is turned on). The
following describes how to calculate the count error.
Count error (max.) when an external input is used
Due to a delay in the input response time of the function start input terminal, the following error occurs.
A Function input response time setting [ms] (1ms maximum) B Pulse input speed [pps] (= Pulse input frequency [Hz]  Multiplication [count])
Count error (max.) when a program is used
Due to a delay in the scan time of the program (Delay of turning on CH1 Counter function selection start command (Y6)), the
following error occurs.
A 1 scan time [ms] B Pulse input speed [pps] (= Pulse input frequency [Hz]  Multiplication [count])
Count error (max.) on the sampling counter function or cycle pulse counter function
A sampling/cycle time error occurs due to an error in design (100ppm) when the sampling counter function or cycle pulse
counter function is performed. The count error is calculated as follows:
1
A Sampling/cycle time [ms]
B 100 [ppm] C Pulse input speed [pps] (= Pulse input frequency [Hz]  Multiplication [count])
1 FUNCTIONS
1.5 Counter Function Selection
27
Page 30

Count disable function

0
ON
OFF
(2) (7)(3)
ON
OFF
(1) (8)(6)
(9)
ON
OFF
(4) (5)
CH1 Count enable command (Y4)
CH1 Counter function selection start command (Y6)
Counter function selection start command (function start input)
CH1 Present value (Un\G2 to Un\G3)
Count stop
Count stop
Count stop
Count stop
Count value stored in CH1 Present value (Un\G2 to Un\G3)
Pulses actually input
This function stops counting pulses while CH1 Count enable command (Y4) is on. The following figure shows the relationship
among CH1 Count enable command (Y4), Counter function selection start command, and the present counter value.
No. Description
(1) The count operation starts when CH1 Count enable command (Y4) is turned on.
(2) The count operation stops when CH1 Counter function selection start command (Y6) is turned on.
(3) The count operation restarts when CH1 Counter function selection start command (Y6) is turned off.
(4) The count operation stops when Counter function selection start command (function start input) is turned on.
(5) The count operation restarts when Counter function selection start command (function start input) is turned off.
(6) The count operation stops when CH1 Count enable command (Y4) is turned off.
(7) The count operation stops regardless of the on/off status of CH1 Counter function selection start command (Y6) because CH1 Count enable
(8) Even though CH1 Count enable command (Y4) is turned on, the count operation remains stopped because CH1 Counter function selection start
(9) The count operation restarts when CH1 Counter function selection start command (Y6) is turned off.
command (Y4) is off.
command (Y6) is on.
28
1 FUNCTIONS
1.5 Counter Function Selection
Page 31

Latch counter function

ON
OFF
ON
OFF
ON
OFF
ON
OFF
150
100
50
0
150
100
50
0
0
50
100
130
0
50
100
130
(1) (2) (3) (4)
CH1 Count enable command (Y4)
CH1 Present value (Un\G2 to Un\G3)
CH1 Counter function selection start command (Y6) Counter function selection start command (function start input)
CH1 Latch count value (Un\G12 to Un\G13)
CH1 Counter function update flag (Un\G28)
0 write request to CH1 Counter function update flag (Un\G28) (controlled by the program)
This function latches the present counter value when Counter function selection start command is input. The following figure
shows the relationship among the present counter value, Counter function selection start command, and CH1 Latch count
value (Un\G12 to Un\G13).
The latch counter function can be performed regardless of the on/off status of CH1 Count enable command (Y4).
1
No. Description
(1) On the rising edge of CH1 Counter function selection start command (Y6) or Counter function selection start command (function start input), the
present counter value, 0 is stored in CH1 Latch count value (Un\G12 to Un\G13).
(2) On the rising edge of CH1 Counter function selection start command (Y6) or Counter function selection start command (function start input), the
present counter value, 50 is stored in CH1 Latch count value (Un\G12 to Un\G13).
(3) On the rising edge of CH1 Counter function selection start command (Y6) or Counter function selection start command (function start input), the
present counter value, 100 is stored in CH1 Latch count value (Un\G12 to Un\G13).
(4) On the rising edge of CH1 Counter function selection start command (Y6) or Counter function selection start command (function start input), the
present counter value, 130 is stored in CH1 Latch count value (Un\G12 to Un\G13).
1 FUNCTIONS
1.5 Counter Function Selection
29
Page 32

Sampling counter function

ON
OFF
ON
OFF
100
200
0
100
-100
0
1
200
0
TTT
(5)
(1)
(2)
(3)
(4)
ON
OFF
ON
OFF
CH1 Count enable command (Y4)
CH1 Present value (Un\G2 to Un\G3)
CH1 Counter function selection start command (Y6) Counter function selection start command (function start input)
CH1 Sampling count value (Un\G14 to Un\G15)
CH1 Sampling/cycle counter flag (Un\G11)
CH1 Counter function update flag (Un\G28)
0 write request to CH1 Counter function update flag (Un\G28) (controlled by the program)
This function counts pulses input during the specified sampling time (T) and stores the count value in the buffer memory. The
following figure shows the relationship among the signals and buffer memory areas used by the sampling counter function.
No. Description
(1) Input pulses are counted from 0 on the rising edge of CH1 Counter function selection start command (Y6) or Counter function selection start
(2) The count operation stops when the specified sampling time has elapsed.
(3) While the sampling counter function is performed, 1 is stored in CH1 Sampling/cycle counter flag (Un\G11).
(4) Even after the sampling counter function is performed, the value stored in CH1 Sampling count value (Un\G14 to Un\G15) is held.
(5) The sampling counter function can be performed regardless of the on/off status of CH1 Count enable command (Y4).
command (function start input).
Set the sampling time by writing the data within the range of 1 to 65535 to CH1 Sampling/cycle time setting
(Un\G10). The unit of time differs depending on the counting speed setting in CH1 Sampling/cycle time setting
30
1 FUNCTIONS
1.5 Counter Function Selection
(Un\G10). For details, refer to the following. Page 63 CH1 Sampling/cycle time setting
Page 33

Cycle pulse counter function

This function stores the current value, previous value, and difference value of the counter in the buffer memory at every
specified cycle time (T). The following figure shows the relationship among the signals and buffer memory areas used by the
cycle pulse counter function.
1
1 FUNCTIONS
1.5 Counter Function Selection
31
Page 34
ON
OFF
ON
OFF
1
0
200
100
0
200
100
0
200
100
0
200
100
-100
-200
0
TTTTT
(6)
(2)
200
(1)
0
(3) 20
(4)
100
(5) 80
(2)
200
(1)
(7)
0
(3)
20
(4)
100
(5) 80
(2)
200
(1)
0
(3)
-180
(4) 80
(5)
-20
(2)
0
(3)
200
(4) 20
(5)
100
ON
OFF
ON
OFF
CH1 Count enable command (Y4)
CH1 Present value (Un\G2 to Un\G3)
CH1 Counter function selection start command (Y6) Counter function selection start command (function start input)
CH1 Cycle pulse count current value (Un\G18 to Un\G19)
CH1 Cycle pulse count previous value (Un\G16 to Un\G17)
CH1 Sampling/cycle counter flag (Un\G11)
CH1 Cycle pulse count difference value (Un\G24 to Un\G27)
CH1 Counter function update flag (Un\G28)
0 write request to CH1 Counter function update flag (Un\G28) (controlled by the program)
32
1 FUNCTIONS
1.5 Counter Function Selection
Page 35
No. Description
(1) The present counter value, 0 is stored in CH1 Cycle pulse count current value (Un\G18 to Un\G19).
The difference value with the previous value, 0 is stored in CH1 Cycle pulse count difference value (Un\G24 to Un\G27).
(2) The present counter value, 200 is stored in CH1 Cycle pulse count current value (Un\G18 to Un\G19). The value 0, which has been stored in CH1
Cycle pulse count current value (Un\G18 to Un\G19), is stored in CH1 Cycle pulse count previous value (Un\G16 to Un\G17). The difference value with the previous value, 200 is stored in CH1 Cycle pulse count difference value (Un\G24 to Un\G27).
(3) The present counter value, 20 is stored in CH1 Cycle pulse count current value (Un\G18 to Un\G19). The value 200, which has been stored in
CH1 Cycle pulse count current value (Un\G18 to Un\G19), is stored in CH1 Cycle pulse count previous value (Un\G16 to Un\G17). The difference value with the previous value, -180 is stored in CH1 Cycle pulse count difference value (Un\G24 to Un\G27).
(4) The present counter value, 100 is stored in CH1 Cycle pulse count current value (Un\G18 to Un\G19). The value 20, which has been stored in
CH1 Cycle pulse count current value (Un\G18 to Un\G19), is stored in CH1 Cycle pulse count previous value (Un\G16 to Un\G17). The difference value with the previous value, 80 is stored in CH1 Cycle pulse count difference value (Un\G24 to Un\G27).
(5) The present counter value, 80 is stored in CH1 Cycle pulse count current value (Un\G18 to Un\G19). The value 100, which has been stored in
CH1 Cycle pulse count current value (Un\G18 to Un\G19), is stored in CH1 Cycle pulse count previous value (Un\G16 to Un\G17). The difference value with the previous value, -20 is stored in CH1 Cycle pulse count difference value (Un\G24 to Un\G27).
(6) The cycle pulse counter function is performed regardless of the on/off status of CH1 Count enable command (Y4).
(7) While the cycle pulse counter function is performed, 1 is stored in CH1 Sampling/cycle counter flag (Un\G11).
Set the cycle time by writing the data within the range of 1 to 65535 to CH1 Sampling/cycle time setting
(Un\G10). The unit of time differs depending on the counting speed setting in CH1 Sampling/cycle time setting
(Un\G10). For details, refer to the following. Page 63 CH1 Sampling/cycle time setting
1
Precautions for reading the previous value, current value, and difference value
Depending on the relation between the update timing of the previous value or current value in the module and the read timing
of the value using a program, the previous value and current value may match. When the previous value and current value
match, read the values again.
1 FUNCTIONS
1.5 Counter Function Selection
33
Page 36
1.6 Pulse Measurement Function
Function start input terminal
Pulses
High-speed counter module
Buffer memory
Analysis
CH1 Measured pulse value (Un\G516 to Un\G517)
On width
Off width
Rising edge to rising edge
Falling edge to falling edge
This mode measures the following times of the pulse input in the function start input terminal.
• ON width
•OFF width
• From the rising edge of the pulse to the rising edge of the next pulse
• From the falling edge of the pulse to the falling edge of the next pulse
When the next pulse is measured, the measured value is written over the previous value.
Setting method of the pulse measurement function
To use the pulse measurement function, select "Pulse measurement mode" for "Counter operation mode" in the parameter
settings.
Navigation window [Parameter] [Module Information] Module model name [Module Parameter]  [Basic
setting]
Terminals for the pulse measurement function
This function measures the pulse input in the function start input terminal.
Measurement target
Set the measurement target by storing a value in CH1 Pulse measurement section setting (Un\G512).
Measurement target Setting value in CH1 Pulse measurement section setting
(Un\G512)
ON width 0
OFF width 1
From the rising edge of the pulse to the rising edge of the next pulse 2
From the falling edge of the pulse to the falling edge of the next pulse 3
Starting and stopping methods of the pulse measurement
The start or stop of the pulse measurement is determined by CH1 Pulse measurement start command (pulse measurement)
(Y6). The pulse measurement starts at the rising edge of the signal and stops at the falling edge of the signal.
34
1 FUNCTIONS

1.6 Pulse Measurement Function

Page 37
Measurable range of the pulses
OFF
ON
OFF
ON
0
0
XXX YYY
ZZZ
(1) (5)
(2) (4) (6)
(3)
Operating (1H)
Not operating (0H)
Updated (1H)
Not updated (0H)
Request
No request
Function start input terminal
CH1 Pulse measurement start command (pulse measurement) (Y6)
CH1 Measured pulse value (Un\G516 to Un\G517)
CH1 Measured pulse value update flag (Un\G515)
0 write request to CH1 Measured pulse value update flag (Un\G515) (controlled by the program)
CH1 Pulse under-measurement flag (Un\G514)
The measured values of the pulses are stored in CH1 Measured pulse value (Un\G516 to Un\G517). The measurable range
of the pulses is between 2000 and 2147483647 (0.2ms to approx.214s).
Overflow error
• When the input pulses are beyond the measurable range, an overflow error will be detected.
• When an overflow error occurs, 1 is stored in CH1 Overflow detection (Un\G8).
• Clear the overflow error using the following restarting method.
Restarting method of the pulse measurement
To resume the measurement, input the pulses once again, or turn off and on CH1 Pulse measurement start command (pulse
measurement) (Y6).
Operation example of the pulse measurement function
The following figure shows an operation example of the pulse measurement function. Assume that a target for pulse
measurement is already set to the pulse ON width.
1
No. Description
(1) The following operations are performed when CH1 Pulse measurement start command (pulse measurement) (Y6) is turned off and on. Operating
(2) Updated (1H) is stored in CH1 Measured pulse value update flag (Un\G515) when a measured value is stored in CH1 Measured pulse value
(3) Not updated (0H) is written in CH1 Measured pulse value update flag (Un\G515).
(4) Even though Updated (1H) is stored in CH1 Measured pulse value update flag (Un\G515), CH1 Measured pulse value (Un\G516 to Un\G517) is
(5) When CH1 Pulse measurement start command (pulse measurement) (Y6) is turned on and off, operation stop (0H) is stored in CH1 Pulse under-
(6) If the measurement target (Pulse ON width in this example) has been input before Operating (1H) is stored in CH1 Pulse under-measurement
(1H) is stored in CH1 Pulse under-measurement flag (Un\G514).
• 0 is stored in CH1 Measured pulse value (Un\G516 to Un\G517).
(Un\G516 to Un\G517).
updated.
measurement flag (Un\G514) and the pulse measurement stops.
flag (Un\G514), the values in CH1 Measured pulse value (Un\G516 to Un\G517) are not updated even though the function start input terminal is turned on and off. Note that only the pulse input after Operating (1H) is stored in CH1 Pulse under-measurement flag (Un\G514) is the measurement target.
Do not use CH1 Measured pulse value update flag (Un\G515) when the values in CH1 Measured pulse value
(Un\G516 to Un\G517) are retrieved via the auto refresh target device. (When Updated (1H) is stored in CH1
Measured pulse value update flag (Un\G515) after the auto refresh is done, the updated values are not
reflected to the auto refresh target device and therefore, the values retrieved via the auto refresh target device
are the ones before the updating.)
1 FUNCTIONS
1.6 Pulse Measurement Function
35
Page 38
1.7 PWM Output Function
Pulse output
Pulse output
Buffer memory
PWM output function
Output signal
Coincidence output point No.1 terminal (EQU1)
Coincidence output point No.2 terminal (EQU2)
High-speed
counter module
CH1 PWM output cycle time setting (Un\G256 to Un\G257)
CH1 PWM output ON time setting 1 (Un\G258 to Un\G259)
CH1 PWM output ON time setting 2 (Un\G260 to Un\G261)
CH1 PWM output start command (PWM output) (Y6)
This function outputs the PWM waveform of up to 200kHz, 100ns as the minimum ON width (0.1s) from the PWM output
point No.1 terminal (EQU1) and PWM output point No.2 terminal (EQU2).
Setting method of the PWM output function
To use the pulse measurement function, select "PWM output mode" for "Counter operation mode" in the parameter settings.
Navigation window [Parameter] [Module Information] Module model name [Module Parameter]  [Basic
setting]
PWM output terminal
The PWM output waveform is output from the following terminals.
• PWM output point No.1 terminal (EQU1)
• PWM output point No.2 terminal (EQU2)
1 FUNCTIONS
36

1.7 PWM Output Function

Page 39
Setting method of the output waveform
CH1 PWM output ON time setting 1 (Un\G258 to Un\G259)
CH1 PWM output cycle time setting (Un\G256 to Un\G257)
CH1 PWM output ON time setting 2 (Un\G260 to Un\G261)
CH1 PWM output cycle time setting (Un\G256 to Un\G257)
Coincidence output point No.1
Coincidence output point No.2
Set the output waveform as follows. The setting values shown below can be changed during the output.
Setting item Setting details
CH1 PWM output cycle time setting (Un\G256 to Un\G257) Set the time of one cycle of the output pulse in the range of 0 to 2147483647.
Set the value in increments of 0.1s.
CH1 PWM output ON time setting 1 (Un\G258 to Un\G259) • Set the ON time of the output pulse from the PWM output point No.1
terminal (EQU1) in the range of 0 to 2147483647. Set the value in increments of 0.1s.
• When no pulse is output from the PWM output point No.1 terminal (EQU1), set 0.
CH1 PWM output ON time setting 2 (Un\G260 to Un\G261) • Set the ON time of the output pulse from the PWM output point No.2
terminal (EQU2) in the range of 0 to 2147483647. Set the value in increments of 0.1s.
• When no pulse is output from the PWM output point No.2 terminal (EQU2), set 0.
The PWM output starts in the OFF status. When PWM output cycle time - PWM output ON time passes, the PWM output is
turned on. The subtraction of PWM output cycle time - PWM output ON time is performed in the high-speed counter module.
When the result of the subtraction is 0, the PWM output is always on, and when the result of the subtraction is a negative
value, the PWM output is always off.
1
Setting condition
Set a value that satisfies all the following conditions. Otherwise, the PWM output is always off.
• PWM output cycle time setting > 0
• PWM output ON time setting > 0
• PWM output cycle time setting PWM output ON time setting (When this relation is =, the PWM output is always on.)
• When a value other than the setting range described above is set in each of CH1 PWM output cycle time
setting (Un\G256 to Un\G257), CH1 PWM output ON time setting 1 (Un\G258 to Un\G259), and CH1 PWM
output ON time setting 2 (Un\G260 to Un\G261), a normal pulse may not be output.
• By using the calculation formula of PWM output ON time = PWM output cycle time Duty ratio (%) 100,
the PWM output ON time can be calculated based on the duty ratio specified by users.
1 FUNCTIONS
1.7 PWM Output Function
37
Page 40
Operation example of the PWM output function
OFF
ON
OFF
ON
(1)
(2)
(3)
(4)
(5)
1200 1000
600 600
CH1 PWM output start command (PWM output) (Y6)
CH1 PWM output cycle time setting (Un\G256 to Un\G257)
CH1 PWM output ON time setting 1 (Un\G258 to Un\G259)
PWM output
PWM output ON time setting: 400
PWM output cycle time setting: 1200 PWM output cycle time setting: 1000
PWM output ON time setting: 600
PWM output OFF
The following figure shows an operation example of the PWM output function.
No. Description
(1) When CH1 PWM output start command (PWM output) (Y6) is turned off and on, the PWM output starts according to the following setting values.
• CH1 PWM output cycle time setting (Un\G256 to Un\G257)
• CH1 PWM output ON time setting 1 (Un\G258 to Un\G259)
• CH1 PWM output ON time setting 2 (Un\G260 to Un\G261)
(2) The PWM output is on while CH1 PWM output start command (PWM output) (Y6) is on.
(3) The following setting values can be changed while the PWM output is on.
• CH1 PWM output cycle time setting (Un\G256 to Un\G257)
• CH1 PWM output ON time setting 1 (Un\G258 to Un\G259)
• CH1 PWM output ON time setting 2 (Un\G260 to Un\G261)
(4) When the following setting values are changed, the changes are applied from the next output.
(5) When CH1 PWM output start command (PWM output) (Y6) is turned on and off while the PWM output is on, the PWM output stops. The PWM
• CH1 PWM output cycle time setting (Un\G256 to Un\G257)
• CH1 PWM output ON time setting 1 (Un\G258 to Un\G259)
• CH1 PWM output ON time setting 2 (Un\G260 to Un\G261)
output is off while CH1 PWM output start command (PWM output) (Y6) is off.
Precautions for mounting a remote head module
When a high-speed counter module has been mounted with a remote head module, whether to hold or clear the Y signal at a
disconnection of own station can be set with “CPU error output mode setting” in the module parameter. According to this
setting, whether to hold or clear the PWM output can be specified.
Setting methods when the parameter is set with “CPU error output mode setting” are described as follows.
• Enable the station-based block data assurance for cyclic data in the sending side.
• To hold the PWM output at a disconnection, select “Hold” for “CPU error output mode setting” in the module parameter.
• To stop the PWM output at a disconnection, select “Clear” for “CPU error output mode setting” in the module parameter.
This setting is valid in module units. The parameter cannot be set in each channel.
38
1 FUNCTIONS
1.7 PWM Output Function
The waveform output from the PWM output point No.1 terminal (EQU1) or PWM output point No.2 terminal
(EQU2) is affected by the output circuit or connected device of the high-speed counter module. Check the
waveform by using a device such as a synchroscope, and set the output waveform.
Page 41
2 PARAMETER SETTINGS
This chapter describes the parameter settings of the high-speed counter module. Setting parameters here eliminates the
need to program them.
2.1 Parameter Setting Procedure
1. Add the high-speed counter module to an engineering tool.
Navigation window [Parameter] [Module Information] Right-click [Add New Module]
2. The basic setting, application setting, interrupt setting, and refresh settings are included in the parameter setting. Select
one of the settings from the tree on the window shown below.
Navigation window [Parameter] [Module Information] Select the high-speed counter module [Module
Parameter]
3. Write the setting to the CPU module with an engineering tool.
[Online] [Write to PLC]
4. When the CPU module is reset or is powered off and on, the setting is reflected.

2.2 Basic Setting

Set the parameters for the basic functions of the high-speed counter module.
2
Item Setting range Reference
Pulse input mode
Counting speed setting
Counter type
*1
*1
*1
• 0: 1-phase multiple of 1 (default value)
• 1: 1-phase multiple of 2
• 2: CW/CCW
• 3: 2-phase multiple of 1
• 4: 2-phase multiple of 2
• 5: 2-phase multiple of 4
• 0: 10kpps (default value)
• 1: 100kpps
• 2: 200kpps
• 3: 500kpps (RD62D2 only)
• 4: 1Mpps (RD62D2 only)
• 5: 2Mpps (RD62D2 only)
• 6: 4Mpps (RD62D2 only)
• 7: 8Mpps (RD62D2 only)
• 0: Linear counter (default value)
• 1: Ring counter

2.1 Parameter Setting Procedure

2 PARAMETER SETTINGS

39
Page 42
Item Setting range Reference
Counter operation mode
Preset value setting -2147483648 to 2147483647 (default value: 0) Page 62 CH1 Preset value setting
Coincidence output point No.1 -2147483648 to 2147483647 (default value: 0) Page 62 CH1 Coincidence output point No.1
Coincidence output point No.2 -2147483648 to 2147483647 (default value: 0) Page 62 CH1 Coincidence output point No.2
Ring counter upper limit value setting -2147483648 to 2147483647 (default value: 0) Page 65 CH1 Ring counter upper limit value setting
Ring counter lower limit value setting -2147483648 to 2147483647 (default value: 0) Page 65 CH1 Ring counter lower limit value setting
*1
• 0: Pulse count mode (default value)
• 1: Pulse measurement mode
• 2: PWM output mode
setting
setting
*1 The item can be set only in the parameter setting. It cannot be changed from the program.
40
2 PARAMETER SETTINGS
2.2 Basic Setting
Page 43
2.3 Application Setting
Set the parameters for the various functions of the high-speed counter module.
Item Setting range Reference
Counter function selection setting • 0: Count disable function (default value)
Sampling/cycle time setting 1 to 65535 (default value: 0) 10ms
Function input response time setting
Preset input response time setting
Pulse measurement section setting • 0: ON width (default value)
PWM output cycle time setting 0 to 2147483647 (default value: 2147483647)
PWM output ON time setting 1 0 to 2147483647 (default value: 0) 0.1s Page 67 CH1 PWM output ON time setting 1
PWM output ON time setting 2 0 to 2147483647 (default value: 0) 0.1s Page 67 CH1 PWM output ON time setting 2
CPU error output mode setting
*1
*1
*1*2
• 1: Latch counter function
• 2: Sampling counter function
• 3: Cycle pulse counter function
*3
• 0: Response time 0ms
• 4: Response time 0.1ms (default value)
• 8: Response time 1ms
• 10: Response time 10ms
• 0: Response time 0ms
• 4: Response time 0.1ms (default value)
• 8: Response time 1ms
• 10: Response time 10ms
• 1: OFF width
• 2: RiseRise
•3: FallFall
0.1s
• 0: Clear (default value)
• 1: Hold
*1 The item can be set only in the parameter setting. It cannot be changed from the program. *2 The external output status (clear/hold) of the high-speed counter module for when a CPU stop error occurs can be set. *3 If a value larger than 1Mpps is set in "Counting speed setting" when the RD62D2 is used, the unit is changed from 10ms to 1ms.
Page 63 CH1 Counter function selection setting
Page 63 CH1 Sampling/cycle time setting
Page 67 CH1 Pulse measurement section setting
Page 67 CH1 PWM output cycle time setting
2
2 PARAMETER SETTINGS

2.3 Application Setting

41
Page 44
2.4 Interrupt Setting
Set the interrupt function of the high-speed counter module.
Item Setting range Reference
Interrupt pointer I0 to I15, I50 to I1023
*1 For details on the interrupt pointers that can be used, refer to the following.
MELSEC iQ-R CPU Module User's Manual (Application)
*1
Page 23 Coincidence detection interrupt function
42
2 PARAMETER SETTINGS

2.4 Interrupt Setting

Page 45
2.5 Refresh Setting
Ex.
Set the transfer destination of the settings in the buffer memory of the high-speed counter module such as module labels and
devices of the CPU module. By configuring the refresh setting, the reading from the program is not required.
Select one of the following transfer destinations in "Target".
• Module Label (Page 43 Module Label)
• Refresh Data Register (Page 43 Refresh data register (RD))
•Device (Page 43 Specified device)
Module Label
The settings of the buffer memory are transferred to the module label corresponding to each buffer memory area. When
"Present value" of the channel transferred to the module label is set to "Enable", all the items of the set channel are set to
"Enable".
Refresh data register (RD)
The settings of the buffer memory are transferred to the refresh data register (RD) of the CPU module. The transfer
destinations of all items are automatically set by setting the start device to "Top Device Name".
Specified device
The settings of the buffer memory are transferred to the specified device of the CPU module. The device X, Y, M, L, B, D, W,
R, ZR, and RD can be specified. When the bit device X, Y, M, L, or B is used, set a number that can be divided by 16 points
(example: X10, Y120, and M16). Also, the buffer memory data is stored in the devices for 16 points starting from the set
device number.
2
When X10 is set, the data is stored in X10 to X1F.
2 PARAMETER SETTINGS

2.5 Refresh Setting

43
Page 46
Setting item
The following items are provided in the refresh settings.
Item Reference
Refresh at the set timing Transfer to the CPU Present value Page 62 CH1 Present value
Sampling/cycle counter flag Page 64 CH1 Sampling/cycle counter flag
Counter function update flag Page 66 CH1 Counter function update flag
Latch count value Page 64 CH1 Latch count value
Sampling count value Page 64 CH1 Sampling count value
Cycle pulse count previous value Page 64 CH1 Cycle pulse count previous
Cycle pulse count current value Page 65 CH1 Cycle pulse count current
Cycle pulse count difference value (L) Page 65 CH1 Cycle pulse count difference
Cycle pulse count difference value (H)
Overflow detection Page 63 CH1 Overflow detection
Pulse under-measurement flag Page 68 CH1 Pulse under-measurement
Measured pulse value update flag Page 68 CH1 Measured pulse value
Measured pulse value Page 68 CH1 Measured pulse value
Signal monitor Page 66 CH1 Signal monitor
Refresh Timing Refresh Group Page 44 Refresh Timing
Refresh Group [n] (n: 1-64)
Refresh Timing (I/O)
Inter-module synchronous interrupt function
Refresh Timing (Synchronous Interrupt)
*1
Transfer to the CPU Synchronization latch count value
*1
Refresh Timing
Synchronization measured pulse value
Refresh Group Page 44 Refresh Timing
*1 For the high-speed counter module, the default setting cannot be changed.
value
value
value
flag
update flag
Refresh Timing
Set the refresh timing of the specified refresh destination.
Setting value Description
At the Execution Time of END Instruction The refresh is performed when the END instruction of the CPU module is
At the Execution Time of Specified Program The refresh is performed when the program specified in "Group [n]" is executed.
At the Execution Time of Synchronous Interrupt Program between Unit The refresh is performed when the interrupt program by the interrupt pointer is
2 PARAMETER SETTINGS
44
2.5 Refresh Setting
executed.
executed.
Page 47

Refresh processing time

A refresh processing time [s] is a constituent of the scan time of the CPU module. For details on the scan time, refer to the
following. MELSEC iQ-R CPU Module User's Manual (Application) The refresh processing time [s], which is taken for refresh, is given by:
• Refresh processing time [s] = Refresh read time (time for transferring refresh data to the CPU module)
The refresh read time varies depending on the settings of "Target".
With the inter-module synchronization function used, the refresh read time is also added to the execution time of an inter-
module synchronous interrupt program.
When "Target" is a module label or a refresh data register (RD)
The following table shows the refresh read time with an RCPU used.
Classification When using the refresh settings When using the inter-module synchronization
function
Set to CH1 only
Refresh read time 15.07s 15.07s18.63s15.63s 15.63s15.83s
When "Target" is a specified device
Calculate the refresh read time according to the number of items and the number of their transfer data (word) that are set to
be refreshed. For the calculation method, refer to the following. MELSEC iQ-R CPU Module User's Manual (Application)
Set to CH2 only
Set to CH1 and CH2
Set to CH1 only
Set to CH2 only
Set to CH1 and CH2
2
2 PARAMETER SETTINGS
2.5 Refresh Setting
45
Page 48
2.6 Preset Setting
Execute the preset from "Module Tool List" of the engineering tool.
Setting method
1. Select "iQ-R Series" from "Module Series Selection", and set "Preset".
2. Select the high-speed counter module to execute the preset in the "Module Selection (Preset)" window.
3. Execute the preset.
[Tool] [Module Tool List]
Item Description
Change Preset Value The preset value of the selected channel is changed. The changed preset value is reflected to the "Preset Value"
column.
Reflect the Preset Value to Current Value The value of "Preset Value" is reflected to "Current Value".
Accept External Preset Request When CH1 External preset request detection (X4) is on, the "External Preset Request" column becomes "Detected
The preset value changed with "Change Preset Value" returns to the preset value set in the parameter setting
or the one set using a program when the CPU module is reset or is powered off and on. When the preset
value change needs to be held, set the preset value in the parameter setting or using a program.
(Unacceptable)", and the preset function cannot be executed. When this button is clicked, CH1 External preset request detection (X4) turns off, and the preset function can be executed.
46
2 PARAMETER SETTINGS

2.6 Preset Setting

Page 49
3 TROUBLESHOOTING
This chapter describes errors that may occur while using the high-speed counter module, and those troubleshooting.
Throughout the chapter, the I/O numbers (X/Y) and buffer memory addresses are described on the basis of
the case of CH1.
To check them of CH2, refer to the following:
Page 54 List of I/O signalsPage 60 List of buffer memory addresses
3.1 Procedure for Troubleshooting
If a trouble occurs, try the following troubleshooting steps:
1. Check whether each module is mounted and wired correctly.
( MELSEC iQ-R Module Configuration Manual)
2. Check the LEDs of the power supply module and CPU module. ( User's Manual of each module)
3. Check the error cause and corrective action by the symptom to correct the error. ( Page 48 Troubleshooting by
Symptom)
3

3.2 Checking Module Status

An overflow error can be checked in CH1 Overflow detection (Un\G8).
Error information to be detected by the high-speed counter module
Description and cause Where to check the error information Action
Overflow error
• In linear counter, an up pulse has been counted from the present value 2147483647.
• In linear counter, a down pulse has been counted from the present value -2147483648.
Overflow detection flag CH1 Overflow detection (Un\G8) stores one of the following values:
• 0: No overflow
• 1: Overflow occurred
Execute a preset to clear the overflow error.

3 TROUBLESHOOTING

3.1 Procedure for Troubleshooting

47
Page 50
3.3 Troubleshooting by Symptom

When the count operation does not start

Check item Action
Check whether the CPU module indicates any error. If the CPU module indicates an error, refer to the troubleshooting in the
Apply a voltage directly to the pulse input terminals of A and B, and check that each LED of A and B turns on.
Check whether the external wiring of A and B is normal. Check the external wiring to correct the errors.
Check whether CH1 Count enable command (Y4) is on. Turn on CH1 Count enable command (Y4) using a program.
Check whether the pulse input method is the same as the pulse input mode of Basic setting.
Check whether the counter operation mode is set to pulse count mode. Set the counter operation mode to pulse count mode in Basic setting.
Check whether CH1 Counter function selection start command (Y6) is on, and a voltage is applied to the function start input terminals.
Check whether an overflow error occurs. Execute a preset to clear the overflow error.

When the count operation is not normal

following manual. MELSEC iQ-R CPU Module User's Manual (Application)
If the LEDs turn on, check the external wiring and wiring on the encoder side to correct the errors. If the LEDs do not turn on, a hardware failure is a likely cause. Please consult your local Mitsubishi representative.
Match the pulse input method to the pulse input mode of Basic setting.
If the count disable function is set by the counter function selection, turn off CH1 Counter function selection start command (Y6) and the function start input terminals.
For details, refer to the following. Page 47 Checking Module Status
Check item Action
Check whether the external wiring of A and B is normal. Check the external wiring to correct the errors.
Even in 1-phase input, connecting an ABCOM terminal to a pulse signal can result in an incorrect count. Reconnect the ABCOM terminal again to an external power supply (5V/12V/24V) or a GND terminal. ( MELSEC iQ-R High-Speed Counter Module User's Manual (Startup))
Check whether the maximum counting speed for input pulses falls within the range of the counting speed of Basic setting.
Check whether the waveform of pulses being inputted meets the performance specifications.
Check whether the count value data is processed as 32-bit signed binary data in the program.
Check whether the shielded twisted pair cables are used for pulse input wiring.
Check whether any noise comes from the grounded part of the high-speed counter module.
Check whether measures against noise are taken for the adjacent devices and inside the control panel.
Check whether the distance between the high voltage device and pulse input line is kept enough.
Check whether both CH1 and CH2 return the same count value after the same count is inputted.
Check whether the preset value is set so that the value is out of the count range of the ring counter (ring counter function only).
Correct the counting speed setting of Basic setting to accommodate the maximum counting speed for input pulses.
Observe and check the pulse waveform with a synchroscope. If the input pulse does not meet the performance specifications, input pulses which meet the performance specifications.
Correct the program to process the count value data in 32-bit signed binary.
Use the shielded twisted pair cables for pulse input wiring.
Separate the grounding cable of the high-speed counter module from the grounded part. If the high-speed counter module touches the grounded part, separate it.
Take noise reduction measures such as attaching a CR surge suppressor to the magnet switch.
Bundle the pulse input lines separately from other lines in piping and tubing, and keep a distance of 150mm or more between the pulse input lines and the power line even inside the control panel.
If these count values are different each other, a hardware failure is a likely cause. Please consult your local Mitsubishi representative.
Set the preset value so that the value falls within the count range of the ring counter.
48
3 TROUBLESHOOTING

3.3 Troubleshooting by Symptom

Page 51

When the coincidence output function does not operate normally

Check item Action
Check whether CH1 Coincidence signal No.1 reset command (Y0) and CH1 Coincidence signal No.2 reset command (Y7) turn on.
Check whether CH1 Coincidence output point No.1 setting (Un\G4, Un\G5) and CH1 Coincidence output point No.2 setting (Un\G6, Un\G7) are set so that the values are out of the count range of the ring counter (ring counter function only).
Check whether CH1 Coincidence signal enable command (Y2) is on. Turn on CH1 Coincidence signal enable command (Y2).
Check whether a voltage is applied to the power supply terminal for external coincidence output.
Check whether the external wiring of the coincidence output point No.1 terminal (EQU1) and coincidence output point No.2 terminal (EQU2) is normal.
Turn off CH1 Coincidence signal No.1 reset command (Y0) and CH1 Coincidence signal No.2 reset command (Y7).
Set CH1 Coincidence output point No.1 setting (Un\G4, Un\G5) and CH1 Coincidence output point No.2 setting (Un\G6, Un\G7) so that the values fall within the count range of the ring counter.
Apply a voltage to the power supply terminal for external coincidence output.
Check the external wiring to correct the errors.

When a coincidence detection interrupt does not occur

Check item Action
Check whether the intelligent function module interrupt pointer setting of the PC parameter is incorrect.
Check whether the program execution control instruction such as IMASK has been used incorrectly.
Check whether CH1 Counter value coincident (point No.1) (X2) and CH1 Counter value coincident (point No.2) (X6) still remain on.
Review and correct the intelligent function module interrupt pointer setting.
Review and correct the program.
Reset (off) CH1 Counter value coincident (point No.1) (X2) and CH1 Counter value coincident (point No.2) (X6) by using CH1 Coincidence signal No.1 reset command (Y0) and CH1 Coincidence signal No.2 reset command (Y7) with the point number matched.
3

When the preset cannot be executed

Check item Action
Check whether the CPU module indicates any error. If the CPU module indicates an error, refer to the troubleshooting in the
Check whether CH1 External preset request detection (X4) is on. Reset (off) CH1 External preset request detection (X4) by using CH1 External
Check whether the external wiring of the preset input terminal is normal. Check the external wiring to correct the errors.
following manual. MELSEC iQ-R CPU Module User's Manual (Application)
preset detection reset command (Y5).

When the pulse measurement does not start

Check item Action
Check whether the CPU module indicates any error. If the CPU module indicates an error, refer to the troubleshooting in the
Check whether the counter operation mode is set to pulse measurement mode.
Check whether CH1 Count enable command (Y4) is on. Turn on CH1 Count enable command (Y4) using a program.
Check whether the external wiring of the pulse measurement terminal is normal.
following manual. MELSEC iQ-R CPU Module User's Manual (Application)
Set the counter operation mode to pulse measurement mode in Basic setting.
Check the external wiring to correct the errors.
3 TROUBLESHOOTING
3.3 Troubleshooting by Symptom
49
Page 52

When the pulses are not measured correctly

Check item Action
Check whether the shielded twisted pair cables are used for pulse input wiring.
Check whether any noise comes from the grounded part of the high-speed counter module.
Check whether measures against noise are taken for the adjacent devices and inside the control panel.
Check whether the distance between the high voltage device and pulse input line is kept enough.
Check whether the section of the pulse to be measured is corresponding to the pulse measurement section setting
Check whether the program, if used for reading out the measured pulse value, reads out the value in unit of 2 words (32 bits).
Check whether the external wiring of the pulse measurement terminal is normal.
Use the shielded twisted pair cables for pulse input wiring.
Separate the grounding cable of the high-speed counter module from the grounded part. If the high-speed counter module touches the grounded part, separate it.
Take noise reduction measures such as attaching a CR surge suppressor to the magnet switch.
Bundle the pulse input lines separately from other lines in piping and tubing, and keep a distance of 150mm or more between the pulse input lines and the power line even inside the control panel.
Correct the pulse measurement section setting to suit the section of the pulse to be measured.
Read out it in unit of 2 words (32 bits).
Check the external wiring to correct the errors.

When the PWM output is not correct

Check item Action
Check whether the CPU module indicates any error. If the CPU module indicates an error, refer to the troubleshooting in the
Check whether the counter operation mode is set to PWM output mode. Set the counter operation mode to PWM output mode in Basic setting.
Check whether a voltage is applied to the power supply terminal for external output.
Check whether the external wiring of the PWM output point No.1 terminal (EQU1) and PWM output point No.2 terminal (EQU2) is normal.
Check whether anything other than a resistive load is connected to the PWM output point No.1 terminal (EQU1) and PWM output point No.2 terminal (EQU2).
Check whether the shielded twisted pair cables are used for PWM output wiring.
Check whether any noise comes from the grounded part of the high-speed counter module.
Check whether measures against noise are taken for the adjacent devices and inside the control panel.
Check whether the distance between the high voltage device and PWM output line is kept enough.
following manual. MELSEC iQ-R CPU Module User's Manual (Application)
Apply a voltage to the power supply terminal for external output.
Check the external wiring to correct the errors.
Connect a resistive load because the output waveform is highly distorted by connecting a load other than a resistive load.
Use the shielded twisted pair cables for PWM output wiring.
Separate the grounding cable of the high-speed counter module from the grounded part. If the high-speed counter module touches the grounded part, separate it.
Take noise reduction measures such as attaching a CR surge suppressor to the magnet switch.
Bundle the PWM output lines separately from other lines in piping and tubing, and keep a distance of 150mm or more between the PWM output lines and the power line even inside the control panel.

When the inter-module synchronization function does not operate correctly

Check item Action
Check whether the high-speed counter module is set as the synchronization target module in the system parameter setting of GX Works3.
Check that the CPU module is in the RUN status. If the CPU module is not in the RUN status, switch the status to RUN.
Check whether the inter-module synchronous interrupt program exists. If the inter-module synchronous interrupt program does not exist, add the
Check whether the EI instruction is executed. Execute the EI instruction.
3 TROUBLESHOOTING
50
3.3 Troubleshooting by Symptom
Check "Module Synchronous Status" on the system monitor of GX Works3. When "Module Synchronous Status" is displayed as "-", the high-speed counter module is not set as the synchronization target module. Set the high-speed counter module as the synchronization target module in the system parameter setting of GX Works3.
program.
Page 53

Pulse waveform shaping method

6.8kΩ 1/3W
6.8kΩ 1/3W
A20(A13)
B19(B12)
A18(A11)
24V
ABCOM
24V
RD62P2, RD62P2E
Phase A
Phase B
Shield
Shielded twisted pair cable
Shield
Shielded twisted pair cable
Apply a dummy resistance of several hundred ohms (/several watts) across the pulse input terminals (between 24V and ABCOM).
To shape pulse waveform effectively, increase the load current in cables by inserting a dummy resister of several hundreds
(/several W) between the pulse input terminals connected to a pulse generator. The greater the load current, the more
effective this method is.
The following figure shows an example of the connection of a dummy resistor at signal level 24VDC:
• Connecting a dummy resister at 24VDC
3
Shaping a pulse waveform is effective as a countermeasure against the following two cases.
Distance between the pulse generator and the high-speed counter module is long.
The waveform distortion is corrected and the pulse waveform becomes stable.
Waveform is distorted under a noise environment.
The pulse waveform becomes stable by shaping the waveform, which has an effect on external noise reduction.
The following example describes how to evaluate the resistance constant and rated-power of a dummy
resister. For example, if a load current of approximately 30mA is set, the resistance constant of a dummy
resistor is given by: R = V I = 24V 30mA = 800
and the voltage applied to a dummy resistor is given by: P = V I = 24V 30mA = 0.72W
Select a dummy resistor with the rated power of 2W, considering the design margin.
3 TROUBLESHOOTING
3.3 Troubleshooting by Symptom
51
Page 54

APPENDICES

Ex.

Appendix 1 Module Label

The functions of the high-speed counter module can be set by using module labels.
Module labels of I/O signals
The module label name of an I/O signal is defined with the following structure:
"Module name"_"Module number"."I/O signal"["(Channel)"].b"Label name" or
"Module name"_"Module number"."I/O signal"["(Channel)"].b"Label name"_D
RD62_1.stnInputSignal[0].bCoincidenceOutputPoint1CounterValueLarge_D
Module name
The character string of a module model name is given.
Module number
A number starting from 1 is added to identify modules that have the same module name.
I/O signal
The character string that represents an input or output signal is given (Input signal: stnInputSignal, Output signal:
stnOutputSignal). Note that RD62_(x).bReady does not include this string.
Channel
The channel number corresponding to a module label is given. If the object belongs to CH1, 0 is given. If the object belongs to
CH2, 1 is given.
Label name
The label identifier unique to a module is given.
_D
This string indicates that the module label is for the direct access input (DX) or direct access output (DY). A module label
without the string is for the input (X) or output (Y) of the refresh processing.
52
APPENDICES Appendix 1 Module Label
Page 55
Module labels of buffer memory areas
Ex.
The module label name of a buffer memory area is defined with the following structure:
"Module name"_"Module number"."Data type"["(Channel)"]."Data format""Label name" or
"Module name"_"Module number"."Data type"_D["(Channel)"]."Data format""Label name"_D
RD62_1.stnBufferBlock0_D[0].dPresetValueSetting_D
Module name
The character string of a module model name is given.
Module number
A number starting from 1 is added to identify modules that have the same module name.
Data type
The data type to sort a buffer memory area is given. Each data type is as follows:
Data type Description
stnBufferBlock0 Used for pulse count mode.
stnPulseMeasuring Used for pulse measurement mode.
stnPWM Used for PWM output mode.
stnSynchronousRefreshArea0 Used for the inter-module synchronization function.
Channel
The channel number corresponding to a module label is given. If the object belongs to CH1, 0 is given. If the object belongs to
CH2, 1 is given.
Data format
The string that represents the data size of a buffer memory area is given. Each data format is as follows:
Data format Description
u 16-bit unsigned binary value
d 32-bit signed binary value
udn 32-bit unsigned binary value
Label name
The label identifier unique to a module is given.
_D
This string indicates that the module label is for the direct access. A module label without the string is for the auto refresh. The
following shows the differences between the auto refresh and the direct access.
Typ e Description Access timing Example
Auto refresh Writing to and reading from the module label is reflected in the
high-speed counter module collectively at the auto refresh. The execution time of the program can be shortened. To use the auto refresh, select the module label for "Target" in "Refresh settings" of "Module Parameter".
Direct access Writing to and reading from the module label is reflected in the
high-speed counter module instantly. Although the execution time of the program is longer than the one at the auto refresh, the responsiveness is improved.
At the auto refresh RD62_1.stnBufferBlock0[0].dPr
At writing to or reading from the module label
esentValue
RD62_1.stnBufferBlock0_D[0].d PresentValue_D
A
APPENDICES
Appendix 1 Module Label
53
Page 56

Appendix 2 I/O Signals

List of I/O signals

The following table lists the I/O signals of the high-speed counter module.
For details on the I/O signals, refer to the following.
Page 55 Input signalsPage 57 Output signals
• The I/O numbers (X/Y) in this section apply when the start I/O number of the high-speed counter module is
set to 0.
• The use prohibited signals are used by the system and is not available for users. If any of those signals is
used (turned off and on) by users, the performance of the high-speed counter module is not guaranteed.
Input signal
Device No. Signal name
X0 Module ready
X1 CH1 Counter value larger (point No.1)
X2 CH1 Counter value coincident (point No.1)
X3 CH1 Counter value smaller (point No.1)
X4 CH1 External preset request detection
X5 CH1 Counter value larger (point No.2)
X6 CH1 Counter value coincident (point No.2)
X7 CH1 Counter value smaller (point No.2)
X8 CH2 Counter value larger (point No.1)
X9 CH2 Counter value coincident (point No.1)
XA CH2 Counter value smaller (point No.1)
XB CH2 External preset request detection
XC CH2 Counter value larger (point No.2)
XD CH2 Counter value coincident (point No.2)
XE CH2 Counter value smaller (point No.2)
XF Use prohibited
Output signal
Device No. Signal name
Y0 CH1 Coincidence signal No.1 reset command
Y1 CH1 Preset command
Y2 CH1 Coincidence signal enable command
Y3 CH1 Down count command
Y4 CH1 Count enable command
Y5 CH1 External preset detection reset command
Y6 CH1 Counter function selection start command/PWM output start command/Pulse measurement start command
Y7 CH1 Coincidence signal No.2 reset command
Y8 CH2 Coincidence signal No.1 reset command
Y9 CH2 Preset command
YA CH2 Coincidence signal enable command
YB CH2 Down count command
YC CH2 Count enable command
YD CH2 External preset detection reset command
YE CH2 Counter function selection start command/PWM output start command/Pulse measurement start command
YF CH2 Coincidence signal No.2 reset command
54
APPENDICES Appendix 2 I/O Signals
Page 57

Input signals

This section describes the details on the input signals from the high-speed counter module to the CPU module.
The I/O numbers (X/Y) in this section apply when the start I/O number of the high-speed counter module is set to 0.
This section describes the I/O numbers (X/Y), buffer memory addresses, and external I/O terminals for CH1.
To check the I/O numbers (X/Y) for CH2, refer to the following. Page 54 List of I/O signals
To check the buffer memory addresses for CH2, refer to the following. Page 60 List of buffer memory addresses
Module ready
• This signal turns on when the high-speed counter module is ready for counting operations after the CPU module is
powered on or is reset.
• Pulses are not counted while this signal is off.
Device number
The following table shows the device number of this input signal.
Signal name CH1 CH2
Module ready X0
CH1 Counter value larger (point No.1)
• This signal turns on when the value in CH1 Present value (Un\G2 to Un\G3) is larger than the one in CH1 Coincidence
output point No.1 setting (Un\G4 to Un\G5).
• This signal turns off when the value in CH1 Present value (Un\G2 to Un\G3) is equal to or smaller than the one in CH1
Coincidence output point No.1 setting (Un\G4 to Un\G5).
Device number
The following table shows the device number of this input signal.
Signal name CH1 CH2
CH Counter value larger (point No.1) X1 X8
CH1 Counter value coincident (point No.1)
• This signal turns on when the value in CH1 Present value (Un\G2 to Un\G3) is equal to the one in CH1 Coincidence output
point No.1 setting (Un\G4 to Un\G5) and the on state will be latched.
• This signal turns off when CH1 Coincidence signal No.1 reset command (Y0) is turned on. Even if the value in CH1 Present
value (Un\G2 to Un\G3) is kept to be equal to the one in CH1 Coincidence output point No.1 setting (Un\G4 to Un\G5), this
signal does not turn on. After once the value in CH1 Present value (Un\G2 to Un\G3) becomes not equal to the one in CH1
Coincidence output point No.1 setting (Un\G4 to Un\G5), this signal turns on when the value in CH1 Present value (Un\G2
to Un\G3) becomes equal to the one in CH1 Coincidence output point No.1 setting (Un\G4 to Un\G5) again.
Device number
The following table shows the device number of this input signal.
Signal name CH1 CH2
CH Counter value coincident (point No.1) X2 X9
A
APPENDICES
Appendix 2 I/O Signals
55
Page 58
CH1 Counter value smaller (point No.1)
• This signal turns on when the value in CH1 Present value (Un\G2 to Un\G3) is smaller than the one in CH1 Coincidence
output point No.1 setting (Un\G4 to Un\G5).
• This signal turns off when the value in CH1 Present value (Un\G2 to Un\G3) is equal to or larger than the one in CH1
Coincidence output point No.1 setting (Un\G4 to Un\G5).
Device number
The following table shows the device number of this input signal.
Signal name CH1 CH2
CH Counter value smaller (point No.1) X3 XA
CH1 External preset request detection
• This signal turns on by a preset command from an external input terminal and the on state will be latched.
• This signal turns off by CH1 External preset detection reset command (Y5).
Device number
The following table shows the device number of this input signal.
Signal name CH1 CH2
CH External preset request detection X4 XB
CH1 Counter value larger (point No.2)
• This signal turns on when the value in CH1 Present value (Un\G2 to Un\G3) is larger than the one in CH1 Coincidence
output point No.2 setting (Un\G6 to Un\G7).
• This signal turns off when the value in CH1 Present value (Un\G2 to Un\G3) is equal to or smaller than the one in CH1
Coincidence output point No.2 setting (Un\G6 to Un\G7).
Device number
The following table shows the device number of this input signal.
Signal name CH1 CH2
CH Counter value larger (point No.2) X5 XC
CH1 Counter value coincident (point No.2)
• This signal turns on when the value in CH1 Present value (Un\G2 to Un\G3) is equal to the one in CH1 Coincidence output
point No.2 setting (Un\G6 to Un\G7) and the on state will be latched.
• This signal turns off when CH1 Coincidence signal No.2 reset command (Y7) is turned on. Even if the value in CH1 Present
value (Un\G2 to Un\G3) is kept to be equal to the one in CH1 Coincidence output point No.2 setting (Un\G6 to Un\G7), this
signal does not turn on. After once the value in CH1 Present value (Un\G2 to Un\G3) becomes not equal to the one in CH1
Coincidence output point No.2 setting (Un\G6 to Un\G7), this signal turns on when the value in CH1 Present value (Un\G2
to Un\G3) becomes equal to the one in CH1 Coincidence output point No.2 setting (Un\G6 to Un\G7) again.
Device number
The following table shows the device number of this input signal.
Signal name CH1 CH2
CH Counter value coincident (point No.2) X6 XD
56
APPENDICES Appendix 2 I/O Signals
Page 59
CH1 Counter value smaller (point No.2)
• This signal turns on when the value in CH1 Present value (Un\G2 to Un\G3) is smaller than the one in CH1 Coincidence
output point No.2 setting (Un\G6 to Un\G7).
• This signal turns off when the value in CH1 Present value (Un\G2 to Un\G3) is equal to or larger than the one in CH1
Coincidence output point No.2 setting (Un\G6 to Un\G7).
Device number
The following table shows the device number of this input signal.
Signal name CH1 CH2
CH Counter value smaller (point No.2) X7 XE

Output signals

This section describes the details on the output signals from the high-speed counter module to the CPU module.
The I/O numbers (X/Y) in this section apply when the start I/O number of the high-speed counter module is set to 0.
This section describes the I/O numbers (X/Y), buffer memory addresses, and external input terminals for CH1.
To check the I/O numbers (X/Y) for CH2, refer to the following. Page 54 List of I/O signals
To check the buffer memory addresses for CH2, refer to the following. Page 60 List of buffer memory addresses
CH1 Coincidence signal No.1 reset command
This signal is turned on to reset CH1 Counter value coincident (point No.1) (X2).
Device number
The following table shows the device number of this output signal.
Signal name CH1 CH2
CH Coincidence signal No.1 reset command Y0 Y8
Operation timing
The command is valid as long as this signal is on.
CH1 Preset command
This signal is turned on to execute the preset function.
Device number
The following table shows the device number of this output signal.
Signal name CH1 CH2
CH Preset command Y1 Y9
Operation timing
The command is valid at the rising edge of this signal (turned off and on).
A
APPENDICES
Appendix 2 I/O Signals
57
Page 60
CH1 Coincidence signal enable command
This signal is turned on to output the statuses of CH1 Counter value coincident (point No.1) (X2) and CH1 Counter value
coincident (point No.2) (X6) to the external terminal.
Device number
The following table shows the device number of this output signal.
Signal name CH1 CH2
CH Coincidence signal enable command Y2 YA
Operation timing
The command is valid as long as this signal is on.
CH1 Down count command
• This signal is turned on to count down pulses in the 1-phase pulse input mode. (The command is invalid in the 2-phase
pulse input mode.)
• The module counts down pulses when the B phase pulse input or this signal is turned on.
• For counting up pulses, check that the B phase pulse input and this signal are off.
Device number
The following table shows the device number of this output signal.
Signal name CH1 CH2
CH Down count command Y3 YB
Operation timing
The command is valid as long as this signal is on.
CH1 Count enable command
• The status of Y4 in the pulse count mode is shown.
• This signal is turned on to count pulses.
Device number
The following table shows the device number of this output signal.
Signal name CH1 CH2
CH Count enable command Y4 YC
Operation timing
The command is valid as long as this signal is on.
CH1 External preset detection reset command
This signal is turned on to reset CH1 External preset request detection (X4).
Device number
The following table shows the device number of this output signal.
Signal name CH1 CH2
CH External preset detection reset command Y5 YD
Operation timing
The command is valid as long as this signal is on.
58
APPENDICES Appendix 2 I/O Signals
Page 61
CH1 Counter function selection start command
• The status of Y6 in the pulse count mode is shown.
• This signal is turned on to execute the counter function selection.
Device number
The following table shows the device number of this output signal.
Signal name CH1 CH2
CH Counter function selection start command Y6 YE
Operation timing
The operation timing differs depending on the function used.
Function Timing to become valid
Latch counter function At the rising edge of the signal (turned off and on)
Sampling counter function
Count disable function While the signal is on
Cycle pulse counter function
CH1 PWM output start command (PWM output)
• The status of Y6 in the PWM output mode is shown.
• This signal is turned on to execute the PWM output.
Device number
The following table shows the device number of this output signal.
Signal name CH1 CH2
CH PWM output start command (PWM output) Y6 YE
Operation timing
The command is valid as long as this signal is on.
CH1 Pulse measurement start command (pulse measurement)
• The status of Y6 in pulse measurement mode is shown.
• This signal is turned on to execute the pulse measurement.
Device number
The following table shows the device number of this output signal.
Signal name CH1 CH2
CH Pulse measurement start command (pulse measurement)
Y6 YE
Operation timing
The command is valid as long as this signal is on.
CH1 Coincidence signal No.2 reset command
This signal is turned on to reset CH1 Counter value coincident (point No.2) (X6).
Device number
The following table shows the device number of this output signal.
Signal name CH1 CH2
CH Coincidence signal No.2 reset command Y7 YF
A
Operation timing
The command is valid as long as this signal is on.
APPENDICES
Appendix 2 I/O Signals
59
Page 62

Appendix 3 Buffer Memory Areas

List of buffer memory addresses

The following table lists the buffer memory addresses of the high-speed counter module. For details on the buffer memory
addresses, refer to the following. Page 62 Details of buffer memory addresses
Do not write any data to the system area or the area whose data type is monitor in the buffer memory. Writing
any data in those areas may cause a malfunction.
Address
Name Default value Data type Auto refresh
Decimal (hexadecimal)
CH1 CH2
0 (0H) 32 (20H) CH Preset value setting (L) 0 Setting
1 (1H) 33 (21H) CH Preset value setting (H) 0 Setting
2 (2H) 34 (22H) CH Present value (L) 0 Monitor
3 (3H) 35 (23H) CH Present value (H) 0 Monitor
4 (4H) 36 (24H) CH Coincidence output point No.1 setting (L) 0 Setting
5 (5H) 37 (25H) CH Coincidence output point No.1 setting (H) 0 Setting
6 (6H) 38 (26H) CH Coincidence output point No.2 setting (L) 0 Setting
7 (7H) 39 (27H) CH Coincidence output point No.2 setting (H) 0 Setting
8 (8H) 40 (28H) CH Overflow detection 0 Monitor
9 (9H) 41 (29H) CH Counter function selection setting 0 Setting
10 (0AH) 42 (2AH) CH Sampling/cycle time setting 0 Setting
11 (0BH) 43 (2BH) CH Sampling/cycle counter flag 0 Monitor
12 (0CH) 44 (2CH) CH Latch count value (L) 0 Monitor
13 (0DH) 45 (2DH) CH Latch count value (H) 0 Monitor
14 (0EH) 46 (2EH) CH Sampling count value (L) 0 Monitor
15 (0FH) 47 (2FH) CH Sampling count value (H) 0 Monitor
16 (10H) 48 (30H) CH Cycle pulse count previous value (L) 0 Monitor
17 (11H) 49 (31H) CH Cycle pulse count previous value (H) 0 Monitor
18 (12H) 50 (32H) CH Cycle pulse count current value (L) 0 Monitor
19 (13H) 51 (33H) CH Cycle pulse count current value (H) 0 Monitor
20 (14H) 52 (34H) CH Ring counter lower limit value setting (L) 0 Setting
21 (15H) 53 (35H) CH Ring counter lower limit value setting (H) 0 Setting
22 (16H) 54 (36H) CH Ring counter upper limit value setting (L) 0 Setting
23 (17H) 55 (37H) CH Ring counter upper limit value setting (H) 0 Setting
24 (18H) 56 (38H) CH Cycle pulse count difference value (LL) 0 Monitor
25 (19H) 57 (39H) CH C
26 (1AH) 58 (3AH) CH Cycle pulse count difference value (HL) 0 Monitor
27 (1BH) 59 (3BH) CH Cycle pulse count difference value (HH) 0 Monitor
28 (1CH) 60 (3CH) CH Counter function update flag 0 Monitor
29 (1DH) 61 (3DH) CH Signal monitor Depends on external
30 (1EH) 62 (3EH) CH Synchronization latch count value (L) 0 Monitor
31 (1FH) 63 (3FH) CH Synchronization latch count value (H) 0 Monitor
64 to 255 (40H to FFH) System area 
256 (100H) 272 (110H) CH PWM output cycle time setting (L) FFFFH Control
257 (101H) 273 (111H) CH PWM output cycle time setting (H) 7FFFH Control
258 (102H) 274 (112H) CH PWM output ON time setting 1 (L) 0 Control
259 (103H) 275 (113H) CH PWM output ON time setting 1 (H) 0 Control
260 (104H) 276 (114H) CH PWM output ON time setting 2 (L) 0 Control
ycle pulse count difference value (LH) 0 Monitor
Monitor
signal status
60
APPENDICES Appendix 3 Buffer Memory Areas
Page 63
Address
Name Default value Data type Auto refresh
Decimal (hexadecimal)
CH1 CH2
261 (105H) 277 (115H) CH PWM output ON time setting 2 (H) 0 Control
262 to 271 (106H to 10FH)
288 to 511 (120H to 1FFH) System area 
512 (200H) 528 (210H) CH Pulse measurement section setting 0 Setting
513 (201H) 529 (211H) System area 
514 (202H) 530 (212H) CH Pulse under-measurement flag 0 Monitor
515 (203H) 531 (213H) CH Measured pulse value update flag 0 Monitor
516 (204H) 532 (214H) CH Measured pulse value (L) 0 Monitor
517 (205H) 533 (215H) CH Measured pulse value (H) 0 Monitor
518 (206H) 534 (216H) CH Synchronization measured pulse value (L) 0 Monitor
519 (207H) 535 (217H) CH Synchronization measured pulse value (H) 0 Monitor
520 to 527 (208H to 20FH)
278 to 287 (116H to 11FH)
536 to 544 (218H to 21FH)
System area 
System area 
A
APPENDICES
Appendix 3 Buffer Memory Areas
61
Page 64

Details of buffer memory addresses

This section describes the I/O numbers (X/Y), buffer memory addresses, and external I/O terminals for CH1.
To check the I/O numbers (X/Y) for CH2, refer to the following. Page 54 List of I/O signals
To check the buffer memory addresses for CH2, refer to the following. Page 60 List of buffer memory addresses
CH1 Preset value setting
• A preset value is stored in this area.
• The setting range is between -2147483648 and 2147483647 (32-bit signed binary value).
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Preset value setting 0 to 1 32 to 33
CH1 Present value
• The present counter value is stored in this area.
• The counting is reflected to this area without delay.
• The range of the stored value is between -2147483648 and 2147483647 (32-bit signed binary value).
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Present value 2 to 3 34 to 35
CH1 Coincidence output point No.1 setting
• The setting value of the coincidence output point No.1 for comparison with the present counter value is stored in this area.
• The setting range is between -2147483648 and 2147483647 (32-bit signed binary value).
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Coincidence output point No.1 setting 4 to 5 36 to 37
CH1 Coincidence output point No.2 setting
• The setting value of the coincidence output point No.2 for comparison with the present counter value is stored in this area.
• The setting range is between -2147483648 and 2147483647 (32-bit signed binary value).
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Coincidence output point No.2 setting 6 to 7 38 to 39
62
APPENDICES Appendix 3 Buffer Memory Areas
Page 65
CH1 Overflow detection
Ex.
• When the counter type is set to linear counter in the pulse count mode, or when the pulse measurement mode is set, the
overflow status of the counter is stored in this area.
• Either of the following values is stored based on the overflow status.
Status Stored value
No overflow detected 0
Overflow detected 1
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Overflow detection 8 40
CH1 Counter function selection setting
• A value to select the counter function is stored in this area.
• The following table shows the setting value for each function.
Counter function selection Setting value
Count disable function 0
Latch counter function 1
Sampling counter function 2
Cycle pulse counter function 3
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Counter function selection setting 9 41
CH1 Sampling/cycle time setting
A time value for the sampling counter function or cycle pulse counter function is stored in this area.
Setting range
• The setting range is between 1 and 65535 (16-bit unsigned binary value).
• The unit of time differs depending on the counting speed setting.
Counting speed setting Time unit
500kpps or less 10 ms
1Mpps or more 1 ms
When 500kpps is set in the counting speed setting and 420 is set in CH1 Sampling/cycle time setting (Un\G10), the function operates at 4200ms (420  10ms).
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Sampling/cycle time setting 10 42
A
APPENDICES
Appendix 3 Buffer Memory Areas
63
Page 66
CH1 Sampling/cycle counter flag
• When the sampling counter function or cycle pulse counter function is selected, the operating status of the selected
function is stored in this area.
• Either of the following values is stored based on the operating status of the function.
Operating status Stored value
Function stopped 0
Function being executed 1
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Sampling/cycle counter flag 11 43
CH1 Latch count value
• The latch count value is stored in this area during the execution of the latch counter function.
• The range of the stored value is between -2147483648 and 2147483647 (32-bit signed binary value).
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Latch count value 12 to 13 44 to 45
Although the storage addresses differ between the latch count value and cycle pulse count current value, the
stored values are always the same (updated simultaneously). Therefore, when the latch counter function or
cycle pulse counter function is executed, the latch count value and cycle pulse count current value do not hold
their previous values.
CH1 Sampling count value
• The sampling count value is stored in this area during the execution of the sampling counter function.
• The range of the stored value is between -2147483648 and 2147483647 (32-bit signed binary value).
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Sampling count value 14 to 15 46 to 47
CH1 Cycle pulse count previous value
• The cycle pulse count previous value is stored in this area during the execution of the cycle pulse counter function.
• The range of the stored value is between -2147483648 and 2147483647 (32-bit signed binary value).
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Cycle pulse count previous value 16 to 17 48 to 49
64
APPENDICES Appendix 3 Buffer Memory Areas
Page 67
CH1 Cycle pulse count current value
• The cycle pulse count current value is stored in this area during the execution of the cycle pulse counter function.
• The range of the stored value is between -2147483648 and 2147483647 (32-bit signed binary value).
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Cycle pulse count current value 18 to 19 50 to 51
Although the storage addresses differ between the latch count value and cycle pulse count current value, the
stored values are always the same (updated simultaneously). Therefore, when the latch counter function or
cycle pulse counter function is executed, the latch count value and cycle pulse count current value do not hold
their previous values.
CH1 Ring counter lower limit value setting
• When the counter type is set to ring counter, the lower limit value of the count range is stored in this area.
• The setting range is between -2147483648 and 2147483647 (32-bit signed binary value).
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Ring counter lower limit value setting 20 to 21 52 to 53
CH1 Ring counter upper limit value setting
• When the counter type is set to ring counter, the upper limit value of the count range is stored in this area.
• The setting range is between -2147483648 and 2147483647 (32-bit signed binary value).
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Ring counter upper limit value setting 22 to 23 54 to 55
CH1 Cycle pulse count difference value
• The difference value between the cycle pulse count previous value and cycle pulse count current value is stored in this area
during the execution of the cycle pulse counter function.
• The range of the stored value is between -8589934592 and 8589934591 (64-bit signed binary value).
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Cycle pulse count difference value 24 to 27 56 to 59
A
APPENDICES
Appendix 3 Buffer Memory Areas
65
Page 68
CH1 Counter function update flag
b15 b3 b2 b1 b0
0000000000
b4b5b6
Bit data from b15 to b6 are fixed to 0.
to
The value indicating whether the buffer memory areas for the selected counter function are updated or not is stored in this
area. When the buffer memory areas are updated, 1H is stored. When the buffer memory areas are not updated, 0H is stored.
Counter function selection Buffer memory area
Latch counter function CH1 Latch count value (Un\G12 to Un\G13)
Sampling counter function CH1 Sampling count value (Un\G14 to Un\G15)
Cycle pulse counter function CH1 Cycle pulse count previous value (Un\G16 to Un\G17)
CH1 Cycle pulse count current value (Un\G18 to Un\G19)
CH1 Cycle pulse count difference value (Un\G24 to Un\G27)
The buffer memory areas shown above are updated without resetting this area. To check the update status once again, reset
this area by the following resetting method.
Resetting method
Write 0H in this area using a program and reset this area.
When this area is used as an interlock, consider the scan time. Depending on the program used, immediately
after 0H is written by a program, either of the buffer memory areas shown above may be updated, and 1H
may be stored in this area.
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Counter function update flag 28 60
CH1 Signal monitor
The input statuses of the preset input terminal for the external input, function start input terminal, A phase input terminal, and
B phase input terminal, as well as the output statuses of the coincidence output point No.1 terminal and coincidence output
point No.2 terminal for the external output are stored.
Bit Stored status Stored value
b5 The output status of the coincidence output point
No.1 terminal is stored.
b4 The output status of the coincidence output point
No.2 terminal is stored.
b3 The pulse input status to the phase A pulse input
terminal is stored.
b2 The pulse input status to the phase B pulse input
terminal is stored.
b1 The input status to the preset input terminal is
stored.
b0 The input status to the function start input terminal
is stored.
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Signal monitor 29 61
•ON (1)
•OFF (0)
APPENDICES
66
Appendix 3 Buffer Memory Areas
Page 69
CH1 Synchronization latch count value
• The present counter value is latched by synchronizing with the fall of the synchronization signal during the execution of the
synchronization control function (during the inter-module synchronization control).
• In this area, the present counter value is latched only in the pulse count mode.
• The range of the stored value is between -2147483648 and 2147483647 (32-bit signed binary value).
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Synchronization latch count value 30 to 31 62 to 63
CH1 PWM output cycle time setting
• Set the time of one cycle for the PWM output.
• The setting range is between 0 and 2147483647 (in increments of 0.1s).
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH PWM output cycle time setting 256 to 257 272 to 273
CH1 PWM output ON time setting 1
• Set the ON time of the PWM output of the PWM output point No.1 terminal (EQU1).
• The setting range is between 0 and 2147483647 (in increments of 0.1s). In addition, set a value that is equal to or smaller
than the setting value in CH PWM output cycle time setting (Un\G256 to Un\G257, Un\G272 to Un\G273) in this area.
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH PWM output cycle time setting 258 to 259 274 to 275
CH1 PWM output ON time setting 2
• Set the ON time of the PWM output of the PWM output point No.2 terminal (EQU2).
• The setting range is between 0 and 2147483647 (in increments of 0.1s). In addition, set a value that is equal to or smaller
than the setting value in CH PWM output cycle time setting (Un\G256 to Un\G257, Un\G272 to Un\G273) in this area.
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH PWM output cycle time setting 260 to 261 276 to 277
CH1 Pulse measurement section setting
Set the pulse measurement section of the pulse measurement function.
Pulse measurement section setting Setting value
ON width 0
OFF width 1
From the rising edge of the pulse to the rising edge of the next pulse 2
From the falling edge of the pulse to the falling edge of the next pulse 3
A
APPENDICES
Appendix 3 Buffer Memory Areas
67
Page 70
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Pulse measurement section setting 512 528
CH1 Pulse under-measurement flag
• The value indicating whether the pulse is being measured in the pulse measurement function is stored in this area.
• When the pulse is being measured, 1H is stored. When the pulse is not being measured, 0H is stored.
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Pulse under-measurement flag 514 530
CH1 Measured pulse value update flag
• The update status of CH1 Measured pulse value (Un\G516 to Un\G517) is stored. When the buffer memory areas are
updated, 1H is stored. When the buffer memory areas are not updated, 0H is stored.
• The buffer memory areas shown above are updated without resetting this area. To check the update status once again,
reset this area by the following resetting method.
Resetting method
Write 0H in this area using a program and reset this area.
When this area is used as an interlock, consider the scan time. Depending on the program used, immediately
after 0H is written by a program, either of the buffer memory areas shown above may be updated, and 1H
may be stored in this area.
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Measured pulse value update flag 515 531
CH1 Measured pulse value
• The measured value of the ON width or OFF width of the pulse input to the function start input terminal is stored.
• The measurement range is between 2000 and 2147483647 (in increments of 0.1s).
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Measured pulse value 516 to 517 532 to 533
CH1 Synchronization measured pulse value
• The measured pulse value is latched by synchronizing with the rise of the synchronization signal during the execution of the
synchronization control function (during the inter-module synchronization control).
• In this area, the measured pulse value is latched only in the pulse measurement mode.
• The range of the stored value is between 2000 and 2147483647 (in increments of 0.1s).
Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address name CH1 CH2
CH Synchronization measured pulse value 518 to 519 534 to 535
68
APPENDICES Appendix 3 Buffer Memory Areas
Page 71
Appendix 4 Operation Examples of When the Remote
(1) (2)
Head Module Is Mounted
This section describes operation examples of when the remote head module is mounted.

System configuration example

The following system configuration is used to explain an example of operation.
(1) Master station (Network number 1, station number 0)
• Power supply module: R61P
• CPU module: R04CPU
• Master/local module: RJ71GF11-T2 (Start I/O number: 0000H to 001FH)
• Input module: RX41C4 (Start I/O number: 0020H to 003FH)
• Output module: RX10R2 (Start I/O number: 0040H to 004FH)
(2) Intelligent device station (Network number 1, station number 1)
• Power supply module: R61P
• Remote head module: RJ72GF15-T2
• High-speed counter module: RD62P2 (Start I/O number: 0000H to 000FH
*1 In the RX/RY setting of the master station, set 1000H to 100FH as the start I/O number of the high-speed counter module.
*1
)
A
APPENDICES

Appendix 4 Operation Examples of When the Remote Head Module Is Mounted

69
Page 72

Setting in the master station

Connect the engineering tool to the CPU module of the master station and set parameters.
1. Create the project with the following settings.
[Project] [New]
2. Configure the setting to use the module labels and add the module labels of the CPU module.
3. Add the master/local module with the following settings.
[Navigation window] [Parameter] [Module Information] Right-click [Add New Module]
70
APPENDICES Appendix 4 Operation Examples of When the Remote Head Module Is Mounted
Page 73
4. Configure the setting to use the module labels and add the module labels of the master/local module.
5. Set "Required Settings" of "Module Parameter" of the master/local module as shown below.
[Navigation window] [Parameter] [Module Information] [RJ71GF11-T2] [Module Parameter] [Required
Settings]
A
APPENDICES
Appendix 4 Operation Examples of When the Remote Head Module Is Mounted
71
Page 74
6. Set "Network Configuration Settings" of "Module Parameter" of the master/local module as shown below.
[Navigation window] [Parameter] [Module Information] [RJ71GF11-T2] [Module Parameter] [Basic Settings]
[Network Configuration Settings]
7. Set "Refresh Setting" of "Module Parameter" of the master/local module as shown below.
[Navigation window] [Parameter] [Module Information] [RJ71GF11-T2] [Module Parameter] [Basic Settings]
[Refresh Setting]
8. Write the set parameters to the CPU module on the master station. Then reset the CPU module or power off and on the
system.
[Online] [Write to PLC]
For parameters of the master/local module which are not described in this procedure, set default values. For
details on parameters of the master/local module, refer to the following. MELSEC iQ-R CC-Link IE Field Network User's Manual (Application)
72
APPENDICES Appendix 4 Operation Examples of When the Remote Head Module Is Mounted
Page 75

Setting in the intelligent device station

Connect the engineering tool to the remote head module of the intelligent device station and set parameters.
1. Create the project with the following settings.
[Project] [New]
2. Set "Network Required Setting" of "CPU Parameter" of the remote head module as shown below.
[Navigation window] [Parameter] [RJ72GF15-T2] [CPU Parameter] [Network Required Setting]
3. Add the high-speed counter module with the following settings.
[Navigation window] [Parameter] [Module Information] Right-click [Add New Module]
A
APPENDICES
Appendix 4 Operation Examples of When the Remote Head Module Is Mounted
73
Page 76
4. Configure the setting not to use the module labels.
5. Set "Basic setting" of "Module Parameter" of the high-speed counter module as shown below.
[Navigation window] [Parameter] [Module Information] [RD62P2] [Module Parameter] [Basic setting]
Setting item
Pulse input mode 3: 2-phase multiple of 1
Counting speed setting 2: 200kpps
Counter type Set the parameter according to the requirement of users.
Counter operation mode Set the parameter according to the mode used.
Preset Value Setting 2500
Coincidence output point No.1 1000
Ring Counter Upper Limit Value 5000
Ring Counter Lower Limit Value -5000
*1 Use CH1 only. For CH2, setting items are all default value. *2 Set the parameter only when the ring counter function is used.
*1
Setting value
*2
*2
74
APPENDICES Appendix 4 Operation Examples of When the Remote Head Module Is Mounted
Page 77
6. Set "Application setting" of "Module Parameter" of the high-speed counter module as shown below.
[Navigation window] [Parameter] [Module Information] [RD62P2] [Module Parameter] [Application setting]
Setting item
Counter Function Selection Set the parameter according to the counter function used.
Sampling Time Setting/Period Time Setting • 1000 10ms
Function input response time setting 4: Response time 0.1ms (default value)
Preset input response time setting 4: Response time 0.1ms (default value)
Pulse Measuring Interval Setting 2: Rise - Rise
PWM Output Interval Time Setting 1500 0.1s
PWM Output On Time Setting 1 500 0.1s
PWM Output On Time Setting 2 0 0.1s (default value)
CPU error output mode setting 0: Clear (default value)
*1
Setting value
•500  10ms
*4
*5
*2
*3
*5
*1 Use CH1 only. For CH2, setting items are all default value. *2 Set the parameter only when the sampling counter function is used. *3 Set the parameter only when the cycle pulse counter function is used. *4 Set the parameter only when the pulse measurement mode is used. *5 Set the parameter only when the PWM output mode is used.
A
APPENDICES
Appendix 4 Operation Examples of When the Remote Head Module Is Mounted
75
Page 78
7. Set "Refresh settings" of "Module Parameter" of the high-speed counter module as shown below.
[Navigation window] [Parameter] [Module Information] [RD62P2] [Module Parameter] [Refresh settings]
8. Write the set parameters to the remote head module on the intelligent device station. Then reset the remote head
module or power off and on the system.
[Online] [Write to PLC]
For parameters of the remote head module which are not described in this procedure, set default values. For
details on parameters of the remote head module, refer to the following.
MELSEC iQ-R CC-Link IE Field Network Remote Head Module User's Manual (Application)
76
APPENDICES Appendix 4 Operation Examples of When the Remote Head Module Is Mounted
Page 79

Checking the network status

After setting parameters to the master station and the intelligent device station, check whether data link is normally performed
between the master station and the intelligent device station. Check the network status using the CC-Link IE Field Network
diagnostics of the engineering tool.
For how to perform the CC-Link IE Field Network diagnostics from the master station, refer to the following. MELSEC iQ-R CC-Link IE Field Network User's Manual (Application)

Program examples

For the program examples, the module labels of the master/local module are used.
Write the programs to the CPU module on the master station.
Classification Label name Description Device
Module label GF11_1.bSts_DataLinkError Data link error status of own station SB0049
GF11_1.bnSts_DataLinkError_Station[1] Data link status of each station (station
number 1)
Label to be defined Define global labels as shown below:
Program example in pulse count mode
SW00B0.0
Program example in pulse measurement mode
Program example in PWM output mode
A
APPENDICES
Appendix 4 Operation Examples of When the Remote Head Module Is Mounted
77
Page 80
Common program
The following figure shows an example of the program to check the data link status of the remote head module (station
number 1).
(0) Checks the data link status of the remote head module (station number 1).
Add the MCR instruction shown below to the last of the program.
Program example in pulse count mode
Program example in pulse count mode
• To start the count operation
(32) Turns on 'CH1 Count enable command' (Y1004).
• To stop the count operation
(48) Turns off 'CH1 Count enable command' (Y1004).
• Setting to output the counter value coincidence signal
(64) Turns on 'CH1 Coincidence signal No.1 reset command' (Y1000) and 'CH1 Coincidence signal enable command' (Y1002).
(89) Turns off 'CH1 Coincidence signal No.1 reset command' (Y1000) and 'CH1 Coincidence signal enable command' (Y1002).
• Processing when the count values match
(99) Performs an external output when the count values match.
78
APPENDICES Appendix 4 Operation Examples of When the Remote Head Module Is Mounted
Page 81
• To perform the preset
(126) Turns on 'CH1 Preset command' (Y1001).
(148) Turns off 'CH1 Preset command' (Y1001).
Program example of the counter function selection
When using the functions listed below, use the following programs.
• To use the count disable function
(157) Starts and stops the count disable function
• To use the latch counter function
(159) Starts and stops the latch counter function
• To use the sampling counter function
(157) Starts and stops the latch counter function
• To use the cycle pulse counter function
(157) Starts and stops the cycle pulse counter function
Processing of the overflow detection
Create the program only when the linear counter is used.
A
(178) Turns on 'LED signal for overflow occurrence check' (Y41) when an overflow is detected.
Appendix 4 Operation Examples of When the Remote Head Module Is Mounted
APPENDICES
79
Page 82
Program example in pulse measurement mode
(32) Starts the pulse measurement.
(47) Stops the pulse measurement.
Program example in PWM output mode
(32) Starts and stops the PWM output.
(44) Turns on 'LED signal for PWM under-output check' (Y42) at a PWM output.
80
APPENDICES Appendix 4 Operation Examples of When the Remote Head Module Is Mounted
Page 83
MEMO
A
APPENDICES
Appendix 4 Operation Examples of When the Remote Head Module Is Mounted
81
Page 84

Appendix 5 Added or Changed Functions

This section describes the functions added to or changed for the high-speed counter module.
Added or changed contents Reference
Online module change MELSEC iQ-R Online Module Change Manual
82
APPENDICES Appendix 5 Added or Changed Functions
Page 85
MEMO
A
APPENDICES
Appendix 5 Added or Changed Functions
83
Page 86

INDEX

0 to 9
1-phase multiple of 1 . . . . . . . . . . . . . . . . . . . . . 13
1-phase multiple of 2 . . . . . . . . . . . . . . . . . . . . . 13
2-phase multiple of 1 . . . . . . . . . . . . . . . . . . . . . 14
2-phase multiple of 2 . . . . . . . . . . . . . . . . . . . . . 14
2-phase multiple of 4 . . . . . . . . . . . . . . . . . . . . . 14
A
Application setting . . . . . . . . . . . . . . . . . . . . . . . 41
B
Basic setting . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
C
CH1 Coincidence output point No.1 setting . . . . . 62
CH1 Coincidence output point No.2 setting . . . . . 62
CH1 Coincidence signal enable command. . . . . . 58
CH1 Coincidence signal No.1 reset command . . . 57 CH1 Coincidence signal No.2 reset command . . . 59
CH1 Count enable command . . . . . . . . . . . . . . . 58
CH1 Counter function selection setting . . . . . . . . 63
CH1 Counter function selection start command . . 59
CH1 Counter function update flag . . . . . . . . . . . . 66
CH1 Counter value coincident (point No.1) . . . . . 55
CH1 Counter value coincident (point No.2) . . . . . 56
CH1 Counter value larger (point No.1). . . . . . . . . 55
CH1 Counter value larger (point No.2). . . . . . . . . 56
CH1 Counter value smaller (point No.1) . . . . . . . 56
CH1 Counter value smaller (point No.2) . . . . . . . 57
CH1 Cycle pulse count current value. . . . . . . . . . 65
CH1 Cycle pulse count difference value . . . . . . . 65
CH1 Cycle pulse count previous value . . . . . . . . 64
CH1 Down count command . . . . . . . . . . . . . . . . 58
CH1 External preset detection reset command. . . 58
CH1 External preset request detection . . . . . . . . 56
CH1 Latch count value . . . . . . . . . . . . . . . . . . . 64
CH1 Measured pulse value . . . . . . . . . . . . . . . . 68
CH1 Measured pulse value update flag . . . . . . . . 68
CH1 Overflow detection. . . . . . . . . . . . . . . . . . . 63
CH1 Present value . . . . . . . . . . . . . . . . . . . . . . 62
CH1 Preset command . . . . . . . . . . . . . . . . . . . . 57
CH1 Preset value setting . . . . . . . . . . . . . . . . . . 62
CH1 Pulse measurement section setting . . . . . . . 67
CH1 Pulse measurement start command (pulse measurement)
CH1 Pulse under-measurement flag . . . . . . . . . . 68
CH1 PWM output cycle time setting . . . . . . . . . . 67
CH1 PWM output ON time setting 1 . . . . . . . . . . 67
CH1 PWM output ON time setting 2 . . . . . . . . . . 67
CH1 PWM output start command (PWM output). . 59
CH1 Ring counter lower limit value setting . . . . . . 65
CH1 Ring counter upper limit value setting . . . . . 65
CH1 Sampling count value. . . . . . . . . . . . . . . . . 64
CH1 Sampling/cycle counter flag . . . . . . . . . . . . 64
CH1 Sampling/cycle time setting. . . . . . . . . . . . . 63
CH1 Signal monitor. . . . . . . . . . . . . . . . . . . . . . 66
CH1 Synchronization latch count value . . . . . . . . 67
CH1 Synchronization measured pulse value . . . . 68
. . . . . . . . . . . . . . . . . . . . . 59
Coincidence detection interrupt function . . . . . . . . 23
Coincidence output function. . . . . . . . . . . . . . . . . 20
Count disable function. . . . . . . . . . . . . . . . . . . . . 28
Count error . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Counter function selection . . . . . . . . . . . . . . . . . . 26
Counter type . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
CW/CCW. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
Cycle pulse counter function . . . . . . . . . . . . . . . . 31
I
Interrupt setting . . . . . . . . . . . . . . . . . . . . . . . . . 42
L
Latch counter function. . . . . . . . . . . . . . . . . . . . . 29
Linear counter function . . . . . . . . . . . . . . . . . . . .17
M
Module label . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Module ready . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
O
Overflow error . . . . . . . . . . . . . . . . . . . . . . . . . . 17
P
Parameter settings . . . . . . . . . . . . . . . . . . . . . . . 39
Performing the preset function using a program . . .24 Performing the preset function using an external control signal
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Preset function . . . . . . . . . . . . . . . . . . . . . . . 24,46
Pulse measurement function . . . . . . . . . . . . . . . .34
PWM output function. . . . . . . . . . . . . . . . . . . . . .36
R
Reading the present value. . . . . . . . . . . . . . . . . .16
Refresh processing time . . . . . . . . . . . . . . . . . . . 45
Refresh setting. . . . . . . . . . . . . . . . . . . . . . . . . . 43
Ring counter function . . . . . . . . . . . . . . . . . . . . . 18
S
Sampling counter function . . . . . . . . . . . . . . . . . . 30
84
Page 87
MEMO
I
85
Page 88

REVISIONS

*The manual number is given on the bottom left of the back cover.
Revision date *Manual number Description
June 2014 SH(NA)-081241ENG-A First edition
January 2015 SH(NA)-081241ENG-B Added function
Online module change
Added or modified parts RELEVANT MANUALS, Appendix 4
May 2016 SH(NA)-081241ENG-C Added or modified parts
December 2018 SH(NA)-081241ENG-D Added or modified parts
Japanese manual number: SH-081240-D
This manual confers no industrial property rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.
2014 MITSUBISHI ELECTRIC CORPORATION
SAFETY PRECAUTIONS, RELEVANT MANUALS, TERMS, Section 1.3, 1.7, 2.3, 2.5, Appendix 4
SAFETY PRECAUTIONS, CONDITIONS OF USE FOR THE PRODUCT, INTRODUCTIO RELEVANT MANUALS, Section 2.5, Appendix 3
N,
86
Page 89

WARRANTY

Please confirm the following product warranty details before using this product.
1. Gratis Warranty Term and Gratis Warranty Range
If any faults or defects (hereinafter "Failure") found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term, the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company. However, if repairs are required onsite at domestic or overseas location, expenses to send an engineer will be solely at the customer's discretion. Mitsubishi shall not be held responsible for any re-commissioning, maintenance, or testing on-site that involves replacement of the failed module. [Gratis Warranty Term] The gratis warranty term of the product shall be for one year after the date of purchase or delivery to a designated place. Note that after manufacture and shipment from Mitsubishi, the maximum distribution period shall be six (6) months, and the longest gratis warranty term after manufacturing shall be eighteen (18) months. The gratis warranty term of repair parts shall not exceed the gratis warranty term before repairs. [Gratis Warranty Range]
(1) The range shall be limited to normal use within the usage state, usage methods and usage environment, etc., which
follow the conditions and precautions, etc., given in the instruction manual, user's manual and caution labels on the product.
(2) Even within the gratis warranty term, repairs shall be charged for in the following cases.
1. Failure occurring from inappropriate storage or handling, carelessness or negligence by the user. Failure caused by the user's hardware or software design.
2. Failure caused by unapproved modifications, etc., to the product by the user.
3. When the Mitsubishi product is assembled into a user's device, Failure that could have been avoided if functions or structures, judged as necessary in the legal safety measures the user's device is subject to or as necessary by industry standards, had been provided.
4. Failure that could have been avoided if consumable parts (battery, backlight, fuse, etc.) designated in the instruction manual had been correctly serviced or replaced.
5. Failure caused by external irresistible forces such as fires or abnormal voltages, and Failure caused by force majeure such as earthquakes, lightning, wind and water damage.
6. Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi.
7. Any other failure found not to be the responsibility of Mitsubishi or that admitted not to be so by the user.
2. Onerous repair term after discontinuation of production
(1) Mitsubishi shall accept onerous product repairs for seven (7) years after production of the product is discontinued.
Discontinuation of production shall be notified with Mitsubishi Technical Bulletins, etc.
(2) Product supply (including repair parts) is not available after production is discontinued.
3. Overseas service
Overseas, repairs shall be accepted by Mitsubishi's local overseas FA Center. Note that the repair conditions at each FA Center may differ.
4. Exclusion of loss in opportunity and secondary loss from warranty liability
Regardless of the gratis warranty term, Mitsubishi shall not be liable for compensation to:
(1) Damages caused by any cause found not to be the responsibility of Mitsubishi. (2) Loss in opportunity, lost profits incurred to the user by Failures of Mitsubishi products. (3) Special damages and secondary damages whether foreseeable or not, compensation for accidents, and
compensation for damages to products other than Mitsubishi products.
(4) Replacement by the user, maintenance of on-site equipment, start-up test run and other tasks.
5. Changes in product specifications
The specifications given in the catalogs, manuals or technical documents are subject to change without prior notice.
87
Page 90

TRADEMARKS

SH(NA)-081241ENG-D
The company names, system names and product names mentioned in this manual are either registered trademarks or
trademarks of their respective companies. In some cases, trademark symbols such as '' or '' are not specified in this manual.
88
Page 91
Page 92
SH(NA)-081241ENG-D(1812)MEE
Specifications subject to change without notice.
When exported from Japan, this manual does not require application to the Ministry of Economy, Trade and Industry for service transaction permission.
HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN NAGOYA WORKS : 1-14 , YADA-MINAMI 5-CHOME , HIGASHI-KU, NAGOYA , JAPAN
MODEL: RD62-U-OU-E MODEL CODE: 13JX14
Loading...