High-speed Counter Function10-210.1 Overview of High-speed Counter Function10.1.1 Overview of High-speed Counter Function• This function allows the counting of input signals from external devices at high speed suchas 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 asthe SET/RET instructions. The instruction (F165) which enables the cam output up to 32points to be acquired according to the elapsed value.• Channels and inputs to be used are specified by system registers. The output when thevalues 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-word32-bit data.• The elapsed value area will be reset when the power supply turns off. It will be held whenswitching the mode from RUN to PROG.• The high-speed counter is a ring counter. When the counted value exceeds the maximumvalue, 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) areaSection RangeHigh-speedcounter control K–2,147,483,648 to K2,147,483,647