FPΣ
High-speed Counter and Pulse Output Functions
6-10
6.3 High-speed Counter Function
This section explains about the high-speed counter function of FP
Σ
.
6.3.1 Overview of High-speed Counter Function
High-speed counter function
The high-speed counter function counts the input signals, and when the count reaches
the target value, turns on and off the desired output.
To turn on an output when the target value is matched, use the target value match on
instructionF166 (HC1S). To turnoffan output, use the target valuematch offinstruction
F167 (HC1R).
Preset the output to be turned on and off with the SET/RET instruction.
Setting the system register
In order to use the high-speed counter function, it is necessary to set system register
Nos. 400 and 401.
6.3.2 Types of Input Modes
X0
on
off
1 2 3 4 n-3 n-2 n-1 n0
Count
Addition input mode
Figure 62: FPΣ High-speed counter function - addition input mode
X0
on
off
n-1 n-2 n-3 n-4 3 2 1 0n
Count
Subtraction input mode
Figure 63: FPΣ High-speed counter function - subtraction input mode