Function library
Function blocks
9.2.33 Free piece counter (FCNT)
9-121
L
EDSVS9332S-D11 EN 3.0
9.2.33 Free piece counter (FCNT)
Purpose
Digital up/down counter
F C N T 1 - C L K U P
C 1 1 0 2 / 1
F C N T 1 - C L K D W N
C 1 1 0 2 / 2
C 1 1 0 4 / 1
C 1 1 0 4 / 2
F C N T 1 - L D - V A L
C 1 1 0 1 / 1
C 1 1 0 3 / 1
F C N T 1 - L O A D
C 1 1 0 2 / 3
C 1 1 0 4 / 3
F C N T 1 - O U T
F C N T 1 - E Q U A L
C 1 1 0 1 / 2
C 1 1 0 3 / 2
F C N T 1 - C M P - V A L
C 1 1 0 0
C T R L
F C N T 1
Fig. 9-82 Free piece counter (FCNT1)
Signal
Source Note
Name Type DIS DIS format CFG List
FCNT1-CLKUP d C1104/1 bin C1102/1 2 LOW-HIGH edge = counts up by 1
FCNT1-CLKDWN d C1104/2 bin C1102/2 2 LOW-HIGH edge = counts down by 1
FCNT1-LD-VAL a C1103/1 dec C1101/1 1 Starting value
FCNT1-LOAD d C1104/3 bin C1102/3 2 • HIGH = Accept start value
• The input has the highest priority
FCNT1-CMP-VAL a C1103/2 dec C1101/2 1 Comparison value
FCNT1-OUT a - - - - Counter limited to ±199.99 % (≙ ±32767)
FCNT1-EQUAL d - - - - HIGH = comparison value reached
Function
C1100 = 1
z For | counter | ≥ | FCNT1-CMP-VAL | (comparison value):
– For 1 ms FCNT1-EQUAL = HIGH
– Resets the counter to its start value (FCNT1-LD-VAL)
Note!
If the signal is to be set for a longer time, e.g. when the output is requested by a PLC, you can extend
the signal with the TRANS function block.
C1100 = 2
z For | counter | = | FCNT1-CMP-VAL | (comparison value):
– The counter stops
z FCNT1-LOAD = HIGH resets the counter to the start value (FCNT1-LD-VAL)