Indicates that incorrect handling may cause hazardous conditions, resulting in
death or severe injury.
CAUTION
Indicates that incorrect handling may cause hazardous conditions, resulting in
minor or moderate injury or property damage.
(Read these precautions before using this product.)
Before using this product, please read this manual and the relevant manuals carefully and pay full attention to safety to handle
the product correctly.
The precautions given in this manual are concerned with this product only. For the safety precautions of the programmable
controller system, refer to the MELSEC iQ-R Module Configuration Manual.
In this manual, the safety precautions are classified into two levels: "WARNING" and "CAUTION".
Under some circumstances, failure to observe the precautions given under "CAUTION" may lead to serious
consequences.
Observe the precautions of both levels because they are important for personal and system safety.
Make sure that the end users read this manual and then keep the manual in a safe place for future reference.
1
Page 4
[Design Precautions]
WARNING
● Configure safety circuits external to the programmable controller to ensure that the entire system
operates safely even when a fault occurs in the external power supply or the programmable controller.
Failure to do so may result in an accident due to an incorrect output or malfunction.
(1) Emergency stop circuits, protection circuits, and protective interlock circuits for conflicting
operations (such as forward/reverse rotations or upper/lower limit positioning) must be configured
external to the programmable controller.
(2) When the programmable controller detects an abnormal condition, it stops the operation and all
outputs are:
• Turned off if the overcurrent or overvoltage protection of the power supply module is activated.
• Held or turned off according to the parameter setting if the self-diagnostic function of the CPU
module detects an error such as a watchdog timer error.
(3) All outputs may be turned on if an error occurs in a part, such as an I/O control part, where the
CPU module cannot detect any error. To ensure safety operation in such a case, provide a safety
mechanism or a fail-safe circuit external to the programmable controller. For a fail-safe circuit
example, refer to "General Safety Requirements" in the MELSEC iQ-R Module Configuration
Manual.
(4) Outputs may remain on or off due to a failure of a component such as a relay and transistor in an
output circuit. Configure an external circuit for monitoring output signals that could cause a
serious accident.
● In an output circuit, when a load current exceeding the rated current or an overcurrent caused by a
load short-circuit flows for a long time, it may cause smoke and fire. To prevent this, configure an
external safety circuit, such as a fuse.
● Configure a circuit so that the programmable controller is turned on first and then the external power
supply. If the external power supply is turned on first, an accident may occur due to an incorrect output
or malfunction.
● For the operating status of each station after a communication failure, refer to manuals relevant to the
network. Incorrect output or malfunction due to a communication failure may result in an accident.
● When connecting an external device with a CPU module or intelligent function module to modify data
of a running programmable controller, configure an interlock circuit in the program to ensure that the
entire system will always operate safely. For other forms of control (such as program modification,
parameter change, forced output, or operating status change) of a running programmable controller,
read the relevant manuals carefully and ensure that the operation is safe before proceeding. Improper
operation may damage machines or cause accidents.
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.
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 highspeed 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.
TermDescription
GX Works3The product name of the software package for the MELSEC programmable controllers
Engineering toolAnother term for GX Works3
Global labelA label that is valid for all the program data when multiple program data are created in the project.
High-speed counter moduleThe abbreviation for the MELSEC iQ-R series high-speed counter module
Buffer memoryA memory in an intelligent module for storing data (such as setting values and monitored values)
Module labelA label that represents one of memory areas (I/O signals and buffer memory areas) specific to
Remote head moduleThe 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
1FUNCTIONS
φ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.1Pulse 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-
1-phase multiple of 1For counting upCounts on the rising edge () of A.
count command
For counting downCounts on the falling edge () of A.
count command
1-phase multiple of 2For counting upCounts on the rising edge () and the falling edge
For counting downCounts on the rising edge () and the falling edge
CW/CCWFor counting upCounts 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 downA 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 modeCount timing
φA
φB
φA
φB
φA
φB
φA
φB
φA
φB
2-phase multiple of 1For counting upCounts on the rising edge () of A while B is off.
For counting downCounts on the falling edge () of A while B is off.
2-phase multiple of 2For counting upCounts on the rising edge () of A while B is off.
For counting downCounts on the rising edge () of A while B is on.
2-phase multiple of 4For counting upCounts on the rising edge () of A while B is off.
For counting downCounts 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).
DescriptionPresent valueCounter function selection count value
Buffer memory
address
Latch count
value
Un\G2 to Un\G3Un\G12 to Un\G13Un\G14 to Un\G15Un\G16 to Un\G17Un\G18 to Un\G19Un\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.2Selecting 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]
ItemDescriptionReference
Linear counterThis function counts pulses between -2147483648 (lower limit value) and 2147483647
(upper limit value). If a count exceeds the range, the overflow is detected.
Ring counterThis 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)
50050119981999012498499
Ring counter
lower limit value
Present value
Ring counter
upper limit value
Ring counter
lower limit value
toto
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
The ring counter upper limit
value, 2000, is not stored in CH1
Present value (Un\G2 to Un\G3).
Counting rangeCounting 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.3Coincidence 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]
ItemSetting 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
0100
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)
0129899100101102103
·
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.4Preset 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]
ItemSetting 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
1016665210130 131 100 10110067
0100
(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.5Counter 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]
ItemDescriptionReference
Count disable functionThis function stops counting pulses while CH1 Count enable command
(Y4) is on.
Latch counter functionThis function latches the present counter value when Counter function
selection start command is input.
Sampling counter functionThis function counts pulses input during the specified sampling time (T)
and stores the count value in the buffer memory.
Cycle pulse counter functionThis 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.
AFunction input response time setting [ms] (1ms maximum)
BPulse 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.
A1 scan time [ms]
BPulse 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:
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.6Pulse 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 targetSetting value in CH1 Pulse measurement section setting
(Un\G512)
ON width0
OFF width1
From the rising edge of the pulse to the rising edge of the next pulse2
From the falling edge of the pulse to the falling edge of the next pulse3
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.
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.7PWM 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 itemSetting 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.1s.
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.1s.
• 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.1s.
• 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)
12001000
600600
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: 1200PWM 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
2PARAMETER SETTINGS
This chapter describes the parameter settings of the high-speed counter module. Setting parameters here eliminates the
need to program them.
2.1Parameter Setting Procedure
1. Add the high-speed counter module to an engineering tool.
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.2Basic Setting
Set the parameters for the basic functions of the high-speed counter module.
2
ItemSetting rangeReference
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
ItemSetting rangeReference
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.3Application Setting
Set the parameters for the various functions of the high-speed counter module.
ItemSetting rangeReference
Counter function selection setting• 0: Count disable function (default value)
Sampling/cycle time setting1 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 setting0 to 2147483647 (default value: 2147483647)
PWM output ON time setting 10 to 2147483647 (default value: 0) 0.1sPage 67 CH1 PWM output ON time setting 1
PWM output ON time setting 20 to 2147483647 (default value: 0) 0.1sPage 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: RiseRise
•3: FallFall
0.1s
• 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.4Interrupt Setting
Set the interrupt function of the high-speed counter module.
ItemSetting rangeReference
Interrupt pointerI0 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.5Refresh 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.
ItemReference
Refresh at the set timingTransfer to the CPUPresent valuePage 62 CH1 Present value
Sampling/cycle counter flagPage 64 CH1 Sampling/cycle counter flag
Counter function update flagPage 66 CH1 Counter function update flag
Latch count valuePage 64 CH1 Latch count value
Sampling count valuePage 64 CH1 Sampling count value
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.6Preset 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]
ItemDescription
Change Preset ValueThe 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 RequestWhen 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
3TROUBLESHOOTING
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 signals
Page 60 List of buffer memory addresses
3.1Procedure 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.2Checking 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 causeWhere to check the error informationAction
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.3Troubleshooting by Symptom
When the count operation does not start
Check itemAction
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 itemAction
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 itemAction
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 itemAction
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 itemAction
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 itemAction
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 itemAction
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 itemAction
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 itemAction
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 1Module 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
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 typeDescription
stnBufferBlock0Used for pulse count mode.
stnPulseMeasuringUsed for pulse measurement mode.
stnPWMUsed for PWM output mode.
stnSynchronousRefreshArea0Used 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 formatDescription
u16-bit unsigned binary value
d32-bit signed binary value
udn32-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 eDescriptionAccess timingExample
Auto refreshWriting 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 accessWriting 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 refreshRD62_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 2I/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 signals
Page 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.
515 (203H)531 (213H)CH Measured pulse value update flag0Monitor
516 (204H)532 (214H)CH Measured pulse value (L)0Monitor
517 (205H)533 (215H)CH Measured pulse value (H)0Monitor
518 (206H)534 (216H)CH Synchronization measured pulse value (L)0Monitor
519 (207H)535 (217H)CH Synchronization measured pulse value (H)0Monitor
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 nameCH1CH2
CH Preset value setting0 to 132 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 nameCH1CH2
CH Present value2 to 334 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 nameCH1CH2
CH Coincidence output point No.1 setting4 to 536 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 nameCH1CH2
CH Coincidence output point No.2 setting6 to 738 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.
StatusStored value
No overflow detected0
Overflow detected1
■Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address nameCH1CH2
CH Overflow detection840
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 selectionSetting value
Count disable function0
Latch counter function1
Sampling counter function2
Cycle pulse counter function3
■Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address nameCH1CH2
CH Counter function selection setting941
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 settingTime unit
500kpps or less10 ms
1Mpps or more1 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 nameCH1CH2
CH Sampling/cycle time setting1042
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 statusStored value
Function stopped0
Function being executed1
■Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address nameCH1CH2
CH Sampling/cycle counter flag1143
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 nameCH1CH2
CH Latch count value12 to 1344 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 nameCH1CH2
CH Sampling count value14 to 1546 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 nameCH1CH2
CH Cycle pulse count previous value16 to 1748 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 nameCH1CH2
CH Cycle pulse count current value18 to 1950 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 nameCH1CH2
CH Ring counter lower limit value setting20 to 2152 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 nameCH1CH2
CH Ring counter upper limit value setting22 to 2354 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 nameCH1CH2
CH Cycle pulse count difference value24 to 2756 to 59
A
APPENDICES
Appendix 3 Buffer Memory Areas
65
Page 68
CH1 Counter function update flag
b15b3 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 selectionBuffer memory area
Latch counter functionCH1 Latch count value (Un\G12 to Un\G13)
Sampling counter functionCH1 Sampling count value (Un\G14 to Un\G15)
Cycle pulse counter functionCH1 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 nameCH1CH2
CH Counter function update flag2860
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.
BitStored statusStored value
b5The output status of the coincidence output point
No.1 terminal is stored.
b4The output status of the coincidence output point
No.2 terminal is stored.
b3The pulse input status to the phase A pulse input
terminal is stored.
b2The pulse input status to the phase B pulse input
terminal is stored.
b1The input status to the preset input terminal is
stored.
b0The 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 nameCH1CH2
CH Signal monitor2961
•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 nameCH1CH2
CH Synchronization latch count value30 to 3162 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.1s).
■Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address nameCH1CH2
CH PWM output cycle time setting256 to 257272 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 nameCH1CH2
CH PWM output cycle time setting258 to 259274 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 nameCH1CH2
CH PWM output cycle time setting260 to 261276 to 277
CH1 Pulse measurement section setting
Set the pulse measurement section of the pulse measurement function.
Pulse measurement section settingSetting value
ON width0
OFF width1
From the rising edge of the pulse to the rising edge of the next pulse2
From the falling edge of the pulse to the falling edge of the next pulse3
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 nameCH1CH2
CH Pulse measurement section setting512528
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 nameCH1CH2
CH Pulse under-measurement flag514530
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 nameCH1CH2
CH Measured pulse value update flag515531
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.1s).
■Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address nameCH1CH2
CH Measured pulse value516 to 517532 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.1s).
■Buffer memory address
The following shows the buffer memory address of this area.
Buffer memory address nameCH1CH2
CH Synchronization measured pulse value518 to 519534 to 535
68
APPENDICES
Appendix 3 Buffer Memory Areas
Page 71
Appendix 4Operation 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)
Counter Function SelectionSet the parameter according to the counter function used.
Sampling Time Setting/Period Time Setting• 1000 10ms
Function input response time setting4: Response time 0.1ms (default value)
Preset input response time setting4: Response time 0.1ms (default value)
Pulse Measuring Interval Setting2: Rise - Rise
PWM Output Interval Time Setting1500 0.1s
PWM Output On Time Setting 1500 0.1s
PWM Output On Time Setting 20 0.1s (default value)
CPU error output mode setting0: 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.
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.
ClassificationLabel nameDescriptionDevice
Module labelGF11_1.bSts_DataLinkErrorData link error status of own stationSB0049
GF11_1.bnSts_DataLinkError_Station[1]Data link status of each station (station
number 1)
Label to be definedDefine 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 5Added or Changed Functions
This section describes the functions added to or changed for the high-speed counter module.
*The manual number is given on the bottom left of the back cover.
Revision date*Manual numberDescription
June 2014SH(NA)-081241ENG-AFirst edition
January 2015SH(NA)-081241ENG-B■Added function
Online module change
■Added or modified parts
RELEVANT MANUALS, Appendix 4
May 2016SH(NA)-081241ENG-C■Added or modified parts
December 2018SH(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.
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...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.