12.8 Counter Function Module
12.8.1 What Is the Counter Function Module?
12-52
12.8
Counter Function Module
12.8.1
What Is the Counter Function Module?
The application methods of the Counter Function Module are determined according to the set-
tings in fixed parameters and output registers. The Counter Function Module reports counter
status and the count in input registers
The following figure gives the flow of data in the Counter Function Module.
*
In this section, “fixed parameters” refers to the fixed parameters of the Counter Function Module, unless other-
wise specified.
The pulse counting method, pulse counting, coincidence detection/interrupt, and PI latching of
the Counter Function Module are described in detail below.
Pulse Counting Method
You can combine the settings of fixed parameter No. 03 (Pulse Counting Mode Selection) and
No. 02 (A/B Pulse Signal Polarity Selection) to select the counting methods as shown below.
Pulse Counting Method
Polarity
Increment (Forward)
Decrement (Reverse)
Signed with multiplier of 1*
Positive logic
Negative logic
Continued on next page.
CPU Function Module
5-V differential
interface
Pha
s
e-Z
5/12/24-V
voltage interface
U
s
ing the Counter
Function Module
Coincidence interrupt
Interrupt proce
ss
ing
s
ection
Virtual
s
hared memory
Input regi
s
ter
s
:
3
2 word
s
Output regi
s
ter
s
:
3
2 word
s
Information from the Counter
Function Module to the CPU
Pul
s
e input
I/O
Connector
(CN1
3
)
Coincidence detection output:
DO_00
Latch input: DI_01
Command
s
from the CPU
Function Module to the
Counter Function Module
Counter Function Module
Fixed Parameter
s
*
Other function
s
election
s
Pul
s
e Counting Method
Pul
s
e A/B
S
ignal Polarity
S
election
Latched data and
other data
Current count
Incremental pul
s
e
s
Operation
s
tatu
s
Coincidence detection
s
etting and other
s
etting
s
Count pre
s
et data
Operating mode
Pul
s
e input pr
oce
ss
ing
s
ection
Pul
s
e A
Pul
s
e B
LOW
HIGH
Pul
s
e B
Pul
s
e A
HIGH
Pul
s
e B
Pul
s
e A
LOW
Pul
s
e B
Pul
s
e A