7.6.2.3.6
Event counter (up) V1
Overview
The function block counts the number of rising signal edges at the
Up
input.
Principle of operation
Table 63: Inputs
Input
Description
Up
Data type: Boolean
A rising signal edge (0–1) at the
Up
input increases the value of the
internal counter by “1” as long as the maximum value has not been
reached.
1)
If the maximum value is exceeded, the behavior depends on the
Over‐
flow behaviour
parameter.
Reset to zero
Data type: Boolean
A rising signal edge (0–1) at the input sets the value of the internal
counter to 0.
1)
If, during the first logic cycle, the input is already 1, then function block does not evaluate this as a rising
signal edge.
Table 64: Outputs
Output
Description
Counter value
Data type: UINT16
Outputs the value of the internal counter (0 … 65,535).
Upper limit
Data type: Boolean
Is 1 as long as the counter = Maximum value
Overflow
Data type: Boolean
See the
Overflow behaviour
parameters
Table 65: Parameter
Parameter
Description
Initialization value
The start value of the internal counter is set to 0 in the first logic cycle.
Overflow behaviour
This parameter controls the behavior of the function block when the
internal counter has reached the maximum value and then another
counting pulse occurs at the
Up
input.
•
No overflow function
All other rising signal edges at the
Up
input are ignored.
•
Overflow function
°
The
Overflow
output is 1 for the duration of a logic cycle.
°
The value of the internal counter is set to 0.
Maximum value
1 … 65,535
7.6.2.3.7
Event counter (down) V1
Overview
The function block counts the number of rising signal edges at the
Down
input.
7
CONFIGURATION
70
O P E R A T I N G I N S T R U C T I O N S | Flexi Compact
8024589/2020-11-10 | SICK
Subject to change without notice