8-108.3 High-speed Counter Function8.3.1 Overview of High-speed Counter FunctionInstructions used and the contents of the controlsType of control InstructionnumberDescriptionReset/disabling ofcounterF0 Performs controls such as resetting the high-speed counter ofthe specified channel or disabling the count.Read/Write ofelapsed valueF1 Reads and writes the elapsed value of the high-speed counter.Target valuematch ON/OFFcontrolF166 Turns on (F166 instruction) or off (F167 instruction) the specifiedoutput when the elapsed value of the high-speed counterreaches the target value. The output is used by presetting withan instruction such as the SET/RET instruction.F167Cam control F165 Turns on or off a maximum of 31 points of internal relaysaccording to the elapsed value of the high-speed counter and thepredetermined table.Input pulsemeasurementF178 Measures the pulse number and cycle of the high-speed counter.Setting the system registerIn order to use the high-speed counter function, it is necessary to set system register numbers nos. 400and 401.8.3.2 Input Modes and CountIncremental input mode Decremental input modeTwo-phase input mode Incremental/decremental input modeDirection discrimination