8-10
8.3 High-speed Counter Function
8.3.1 Overview of High-speed Counter Function
Instructions used and the contents of the controls
Type of control Instruction
Description
Reset/disabling of
counter
F0 Performs controls such as resetting the high-speed counter of
the specified channel or disabling the count.
Read/Write of
F1 Reads and writes the elapsed value of the high-speed counter.
Target value
match ON/OFF
control
F166 Turns on (F166 instruction) or off (F167 instruction) the specified
output when the elapsed value of the high-speed counter
reaches the target value. The output is used by presetting with
an instruction such as the SET/RET instruction.
F167
Cam control F165 Turns on or off a maximum of 31 points of internal relays
according to the elapsed value of the high-speed counter and the
Input pulse
measurement
F178 Measures the pulse number and cycle of the high-speed counter.
Setting the system register
In order to use the high-speed counter function, it is necessary to set system register numbers nos. 400
and 401.
8.3.2 Input Modes and Count
Incremental/decremental input mode