12
COUNTER FUNCTION
CHAPTER12 COUNTER FUNCTION
This chapter describes the counter function of the QD72P3C3.
12.1
Outline of Counter Function
12.1.1
There are four kinds of the pulse input methods: CW/CCW pulse input and 2-phase pulse
input (1, 2 or 4 multiples).
Select the pulse input method in the "pulse input mode" of the intelligent function module
switch on GX Developer. For setting details, refer to Section 5.6.
The following table shows the pulse input methods and count timing.
Pulse input
method
For addition
count
CW/CCW
For subtraction
count
For addition
count
1 multiple of 2
*2
phases
For subtraction
count
For addition
count
2 multiples of 2
*2
phases
For subtraction
count
For addition
count
4 multiples of 2
phases
For subtraction
count
Types of pulse input method
A
B
A
B
A
B
A
B
A
B
A
B
A
B
A
B
Count timing
Counts on the rising edge ( ) of A.
Counts on the rising edge ( ) of B.
When A is OFF, counts on the falling edge ( ) of B.
When B is OFF, counts on the falling edge ( ) of A.
When A is ON, counts on the rising edge ( ) of B.
When A is OFF, counts on the falling edge ( ) of B.
When B is ON, counts on the rising edge ( ) of A.
When B is OFF, counts on the falling edge ( ) of A.
When B is OFF, counts on the rising edge ( ) of A.
When B is ON, counts on the falling edge ( ) of A.
When A is ON, counts on the rising edge ( ) of B.
When A is OFF, counts on the falling edge ( ) of B.
When B is ON, counts on the rising edge ( ) of A.
When B is OFF, counts on the falling edge ( ) of A.
When A is OFF, counts on the rising edge ( ) of B.
When A is ON, counts on the falling edge ( ) of B.
12.1 Outline of Counter Function
12.1.1 Types of pulse input method
9
10
11
12
13
14
15
12
- 1