High-speed Counter Function
10.1 Overview of High-speed Counter Function
10.1.1 Overview of High-speed Counter Function
• This function allows the counting of input signals from external devices at high speed such
as a sensor and encoder.
• Exclusive instructions (F166 and F167) are provided for turning on or off arbitrary outputs
(Y0 to Y1F) in the interrupt processing when the elapsed value matches the target value.
The output turned ON/OFF by an instruction is used by presetting with an instruction such as
the SET/RET instructions. The instruction (F165) which enables the cam output up to 32
points to be acquired according to the elapsed value.
• Channels and inputs to be used are specified by system registers. The output when the
values match is specified by the operand of the instruction.
10.1.2 Counting Range and Elapsed Value (Current Value) Area
• The elapsed value of the high-speed counter is stored in a special data register as 2-word
32-bit data.
• The elapsed value area will be reset when the power supply turns off. It will be held when
switching the mode from RUN to PROG.
• The high-speed counter is a ring counter. When the counted value exceeds the maximum
value, it returns to the minimum value. When the counted value exceeds the minimum value,
it returns to the maximum value.
Counting range of elapsed value (current value) area
Section
High-speed
counter control
10-2
Range
K–2,147,483,648 to K2,147,483,647