Input Description

../_images/8fd27c32e389ddb70a33139000eba54e

SLOT

Data_Type Default_Value Range Unit
BYTE - - -

This input is used to select the slot (module number) of the DC541.

The slots are numbered consecutively from right to left. Slot 1 is the first slot on the left of the CPU.

CH (channel)

Data_Type Default_Value Range Unit
BYTE - 4-7 for the outputs C4-C7 -

Input CH is used to select the channel for the limit value monitoring. If an invalid value is specified at input CH or if the selected channel is not configured as Limit Channel 0 or if channel C0 is not configured as 32 bit counter, the function block is aborted with DONE = ERR = TRUE and an error is displayed.

EN_VISU (enable \ input in visualization)

Data_Type Default_Value Range Unit
BOOL - - -

If this input is TRUE, it is possible to control the function block inputs (except SLOT, CH and EN_VISU) via the integrated visualization of the function block. If input EN_VISU = FALSE, control via the visualization is disabled and the labelling of the corresponding control elements is displayed in gray. The actual values are always displayed.

EN (enable)

Data_Type Default_Value Range Unit
BOOL - - -

In order to enable pulse counting for input CH, input EN has to be continuously TRUE. The Function Block is not processed if input EN = FALSE.

When the function block is called for the first time, the inputs are checked for validity and plausibility and the corresponding device is checked for correct configuration in the operating mode “counting mode”. If this is not the case, processing is aborted.

SIGNAL

Data_Type Default_Value Range Unit
BOOL - - -

Using the input SIGNAL you can determine whether the corresponding output CH is switched to TRUE or FALSE.

Counter value of the 32 bit counter DC541_32BIT_CNT / ACT_CNT Output CH when SIGNAL = TRUE Output CH when SIGNAL = FALSE
ACT_CNT < LIM_MIN FALSE TRUE
LIM_MIN <= ACT_CNT <= LIM_MAX TRUE FALSE
ACT_CNT > LIM_MAX FALSE TRUE
  ../_images/88f71141e389de630a33139000eba54e ../_images/8fae173fe389de050a33139000eba54e

If SIGNAL is TRUE, the output CH is TRUE, if the counter value of the 32 bit counter is within the range given by the limit values LIM_MIN and LIM_MAX. If the counter value is out of this range, output CH is FALSE.

If SIGNAL is FALSE, the output CH is FALSE, if the counter value of the 32 bit counter is within the range given by the limit values LIM_MIN and LIM_MAX. If the counter value is out of this range, output CH is TRUE.

LIM_MAX (limit \ maximum)

Data_Type Default_Value Range Unit
DWORD - - -

LIM_MAX is used to set the upper limit value for the counter. LIM_MAX has to be higher than the lower limit value LIM_MIN. If LIM_MIN is higher than LIM_MAX, an error is displayed.

LIM_MIN (limit \ minimum)

Data_Type Default_Value Range Unit
DWORD - - -

LIM_MIN is used to set the lower limit value for the counter. The upper limit value LIM_MAX has to be higher than LIM_MIN. If LIM_MIN is higher than LIM_MAX, an error is displayed.