25 HIGH-SPEED INPUT/OUTPUT FUNCTION
25.1 High-speed Counter Function
237
25
■2 phase, 2 input counter [1 edge count]
Counting method of 2 phase, 2 input counter [1 edge count] is as follows.
■2 phase, 2 input counter [2 edge count]
Counting method of 2 phase, 2 input counter [2 edge count] is as follows.
■2 phase, 2 input counter [4 edge count]
Counting method of 2 phase, 2 input counter [4 edge count] is as follows.
Up/down counter Counter timing
At up-counting 1 count up when input A phase is ON and input B phase switches OFFON
At down-counting 1 count down when input A phase is ON and input B phase switches ONOFF
Up/down counter Counter timing
At up-counting 1 count up when input A phase is ON and input B phase switches OFFON
1 count up when input A phase is OFF and input B phase switches ONOFF
At down-counting 1 count down when input A phase is ON and input B phase switches ONOFF
1 count down when input A phase is OFF and input B phase switches OFFON
Up/down counter Counter timing
At up-counting 1 count up when input B phase is OFF and input A phase switches OFFON
1 count up when input A phase is ON and input B phase switches OFFON
1 count up when input B phase is ON and input A phase switches ONOFF
1 count up when input A phase is OFF and input B phase switches ONOFF
At down-counting 1 count down when input A phase is OFF and input B phase switches OFFON
1 count down when input B phase is ON and input A phase switches OFFON
1 count down when input A phase is ON and input B phase switches ONOFF
1 count down when input B phase is OFF and input A phase switches ONOFF
-1+1+1
Input B phase
Input A phase
At down-countingAt up-counting
-1
-1+1+1
Input B phase
Input A phase
-1
At down-countingAt up-counting
-1 -1-1+1+1 +1 +1
Input B phase
Input A phase
At down-countingAt up-counting
-1