High−speed Counter/Pulse Output/ PWM OutputFP09 − 99.3 High−speed Counter Function9.3 High−speed Counter Function9.3.1 Outline of High−speed Counter FunctionHigh−speed counter functionThe high−speed counter function counts the input signals, and when the count reachesthe target value, turns on and off the desired output.The high−speed counter function is able to count high−speed pulses of frequencies upto 10 kHz.To turn on an output when the target value is matched, use the target value match oninstruction (F166). To turn off an output, use the target value match off instruction(F167).Preset the output to be turned on and off with the SET/RET instruction.Setting the system registerIn order to use the high−speed counter function, it is necessary to set system registers400 and 401. For detailed information section ****9.3.2 Types of Input ModesIncremental input modeX0 onoff1 2 3 4 n−3 n−2 n−1 n0CountDecremental input modeX0 onoffn−1 n−2 n−3 n−4 3 2 1 0nCount