The function also provides status outputs UPCNT_STS and DNCNT_STS. The
UPCNT_STS is set to "True" when the CNT_VAL is greater than or equal to the setting
Counter load value
. DNCNT_STS is set to "True" when the CNT_VAL is zero.
The RESET input is used for resetting the function. When this input is set to "True"
or when
Reset counter
is set to "reset", the CNT_VAL is forced to zero.
3.17.15.4 Application
When UDFCNT is connected to a relay binary input, two settings of binary input
need to be checked to ensure the counter is working correctly.
•
Input # filter time
. All pulses that are shorter than the filter time are not
detected.
•
Binary input oscillation suppression threshold
. The binary input is blocked if the
number of valid state changes during one second is equal to or greater than the
set oscillation level value.
With the correct settings, UDFCNT can record correctly up to 20 pulses per second.
For example, to constantly record 20 pulses per second from slot X110 binary input
1, when the pulse length is 25 ms pulse high and 25 ms pulse low time, the following
settings are recommended.
•
Input 1 filter time
is set to “5...15 ms” via Configuration > I/O modules >
X110(BIO) > Input filtering
•
Input osc. level
is set to “45...50 events/s” via Configuration > I/O modules >
Common settings
•
Input osc. hyst
is set to “2 events/s” via Configuration > I/O modules > Common
settings
3.17.15.5 Signals
Table 202: UDFCNT Input signals
Name Type Default Description
UP_CNT BOOLEAN 0=False Input for up counting
DOWN_CNT BOOLEAN 0=False Input for down count-
ing
RESET BOOLEAN 0=False Reset input for coun-
ter
LOAD BOOLEAN 0=False Load input for coun-
ter
Table 203: UDFCNT Output signals
Name Type Description
UPCNT_STS BOOLEAN Status of the up counting
DNCNT_STS BOOLEAN Status of the down counting
3.17.15.6 Settings
Basic functions
1MRS757644 H
206 620 series
Technical Manual