Function library
Function blocks
3.5.37 Free piece counter (FCNT)
3−192
l
EDSVS9332P−EXT DE 2.0
FCNT3-CLKUP
C1112/1
FCNT3-CLKDWN
C1112/2
C1114/1
C1114/2
FCNT3-LD-VAL
C1111/1
C1113/1
FCNT3-LOAD
C1112/3
C1114/3
FCNT3-OUT
FCNT3-EQUAL
C1111/2
C1113/2
FCNT3-CMP-VAL
C1110
CTRL
FCNT3
FCNT-Modus
Fig. 3−143 Free piece counter (FCNT3)
Signal
Source Note
Name Type DIS DIS format CFG List
FCNT3−CLKUP d C1114/1 bin C1112/1 2 LOW−HIGH edge = Increment counter by 1
FCNT3−CLKDWN d C1114/2 bin C1112/2 2 LOW−HIGH edge = Decrement counter by 1
FCNT3−LD−VAL a C1113/1 dec C1111/1 1 Start value
FCNT3−LOAD d C1114/3 bin C1112/3 2 HIGH = Accept start value
FCNT3−CMP−VAL a C1113/2 dec C1111/2 1 Comparison value
FCNT3−OUT a − − − − Count limited to "199.99% corresponds to "32767
FCNT3−EQUAL d − − − − HIGH = comparison value reached
Function
l C1100 = 1
– If | counter content | ³ | FCNT1−CMP−VAL | (comparison value), FCNT1−EQUAL is set = HIGH
for 1 ms. Afterwards the counter is reset to the starting value (FCNT1−LD−VAL).
) Note!
If the signal is to be available longer, e. g. for a query of the output via a PLC, you
can prolong the signal via the TRANS function block.
l C1100 = 2
– If | counter content | ³ | FCNT1−CMP−VAL | (comparison value), the counter is stopped.
– Via FCNT1−LOAD = HIGH, the counter is reset to the starting value (FCNT1−LD−VAL).
l C1100 = 3
– If | counter content| = | FCNT1−CMP−VAL | (comparison value), the counter is stopped.
– Via FCNT1−LOAD = HIGH, the counter is reset to the starting value (FCNT1−LD−VAL).
– FCNT1−OUT is limited to 32767 for counting upwards and to −32767 for counting
downwards.