α
2 Simple Application Controllers
Function Blocks 6
6 - 24
6.11
Counter Block
The function block counts input pulses and turns the Output ON when a preset limit is reached.
The counter counts up only to a maximum value of 32767 and increments on the rising pulse.
Normal inputs count to a maximum of 20Hz, however, with an extension module attached
inputs EI1 or EI2 can count to a maximum of 1KHz.
Table 6.12: Counter Function Block
Counter Operation
Setup of the Counter Function Block directly from the
α
2
Series Controller
1 ) Allocate the input pin to be used for the function block.
2 ) Press the “OK” key with the cursor in the function block. The function block edit screen is
displayed as shown
3 ) Press the “OK” Key and enter the counter function block settings using the “+, -, and ”
keys.
4 ) Press the “OK” Key and return to the function block edit screen.
Function
Set Item
Description
I
Input pin for one shot operation
C
Clear input pin resets the state of the output regardless of the input
given if reset has been given priority.
FB
The counter function block can be incremented to a maximum of
32767 counts.
Output
1) When the current incremental value reaches the set value of the
counter function block the status of the output is ON.
2) The clear signal will reset the value of the counter to 0
3) One incremental count is only registered if the input pin locates a
rising edge.
4) The following items are available for other function blocks:
a) Count
b) Current Count
0
0
0
N
C
O
I
C
P
Input pin I
Input pin C
Current value of
counter
ON
OFF
Output
ON
OFF
0
1
2
3
4
5
(=set value)
0
0
0
1
2
3
4
0
ON
OFF
B 0 0 1 : CN
S e t u p
F B
C h a n g e N o
D e l e t e
F B
B 0 0 1 : CN
C o u n t
N =
1
n =
0