Principle of operation
Table 66: Inputs
Input
Description
Down
Data type: Boolean
A rising signal edge (0–1) at the
Down
input decreases the value of the
internal counter by “1” as long as 0 has not been reached.
1)
If the value falls below 0, the behavior depends on the
Underflow behav‐
iour
parameter.
Set to Reload value
Data type: Boolean
A rising signal edge (0–1) at the input sets the value of the internal
counter to the configured value of the Reload value parameter.
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 67: Outputs
Output
Description
Counter value
Data type: UINT16
Outputs the value of the internal counter (0 … 65,535).
Lower limit
Data type: Boolean
Is 1 as long as the counter = 0
Underflow
Data type: Boolean
See the
Underflow behaviour
parameters
Table 68: Parameter
Parameter
Description
Initialization value
The start value of the internal counter is set to the value of the
Maxi‐
mum value
parameter in the first logic cycle.
Underflow behaviour
This parameter controls the behavior of the function block when the
internal counter has reached the value 0 and then another counting
pulse occurs at the
Down
input.
•
No underflow function
All other rising signal edges at the
Down
input are ignored.
•
Underflow function
°
The
Underflow
output is 1 for the duration of a logic cycle.
°
The value of the internal counter is set to the
Maximum value
parameter.
Maximum value
1 … 65,535
Reload value
Corresponds to the
Maximum value
parameter.
7.6.2.3.8
Event counter (up and down) V1
Overview
The function block counts the number of rising signal edges at the
Up
and
Down
inputs.
CONFIGURATION
7
8024589/2020-11-10 | SICK
O P E R A T I N G I N S T R U C T I O N S | Flexi Compact
71
Subject to change without notice