140
9 CREATING A HARDWARE LOGIC
9.2 Multi Function Counter Block
■Pulse input modes and count timing
The following table shows the relationships between each pulse input mode and count timing.
"Pulse Input Mode" Count timing
1-phase multiple of 1 (1-Phase Multiple of 1+, 1-
Phase Multiple of 1-)
At up count The value is counted up at the rise (↑) of ΦA.
ΦB is Low.
At down count The value is counted down at the fall (↓) of ΦA.
ΦB is High.
1-phase multiple of 2 (1-Phase Multiple of 2+, 1-
Phase Multiple of 2-)
At up count The value is counted up at the rise (↑) and fall (↓) of
ΦA.
ΦB is Low.
At down count The value is counted down at the rise (↑) and fall (↓)
of ΦA.
ΦB is High.
CW/CCW (CW/CCW+, CW/CCW-) At up count The value is counted up at the rise (↑) of ΦA.
ΦB is Low.
At down count ΦA is Low.
The value is counted down at the rise (↑) of ΦB.
2-phase multiple of 1 (2-Phase Multiple of 1+, 2-
Phase Multiple of 1-)
At up count When ΦB is Low, the value is counted up at the rise
(↑) of ΦA.
At down count When ΦB is Low, the value is counted down at the
fall (↓) of ΦA.
2-phase multiple of 2 (2-Phase Multiple of 2+, 2-
Phase Multiple of 2-)
At up count When ΦB is Low, the value is counted up at the rise
(↑) of ΦA.
When ΦB is High, the value is counted up at the fall
(↓) of ΦA.
At down count When ΦB is High, the value is counted down at the
rise (↑) of ΦA.
When ΦB is Low, the value is counted down at the
fall (↓) of ΦA.
2-
phase multiple of 4 (2-Phase Multiple of 4+, 2-
Phase Multiple of 4-)
At up count When ΦB is Low, the value is counted up at the rise
(↑) of ΦA.
When ΦA is High, the value is counted up at the rise
(↑) of ΦB.
When ΦB is High, the value is counted up at the fall
(↓) of ΦA.
When ΦA is Low, the value is counted up at the fall
(↓) of ΦB.
At down count When ΦA is Low, the value is counted down at the
rise (↑) of ΦB.
When ΦB is High, the value is counted down at the
rise (↑) of ΦA.
When ΦA is High, the value is counted down at the
fall (↓) of ΦB.
When ΦB is Low, the value is counted down at the
fall (↓) of ΦA.
ΦA
ΦB
ΦA
ΦB
ΦA
ΦB