Task levels: Recommendation: Into task levels PLC1_BEARB and PLC_BEARB, because
these levels are directly triggered.
Note: If you use thi block in the task levels MW_BEARB and SFS_BEARB, a
change of the SWITCH signal is only recognized if the signal lasts longer
than the processing cycle of the task level.
Behavior of inputs and outputs:
Table 4-3 COUNTACTIVE – This block calculates the number of active inputs. It is a generic block in which
you can specify a number of summands between 2 and 120.
Name Type Description Default function
Input X1 BOOL Input value FALSE
X2 to X120 BOOL Input value FALSE
Output Y UINT Number of “TRUE” input values 0
Task levels: Recommendation: Into task levels PLC1_BEARB and PLC_BEARB, because
these levels are directly triggered.
Note: If you use thi block in the task levels MW_BEARB and SFS_BEARB, a
change of the SWITCH signal is only recognized if the signal lasts longer
than the processing cycle of the task level.
Behavior of inputs and outputs:
Info: The COUNTACTIVE block is used to convert two Boolean inputs X1 and
X2 to INTEGER (FALSE=0, TRUE=1), and add them. The addition result is
available at output Y.
In the context menu of the block you can increase the number of inputs
to a maximum of 120:
General Limits
Description
Limit Comment
Maximum number of all CFC charts
considering all task levels
32 If the limit is exceeded, the device rejects the parameter
set with an error message, restores the last valid param-
eter set and restarts using that parameter set.
Maximum number of all CFC charts
considering one task level
16 When the limit is exceeded, an error message is output by
the device. Consequently, the device starts monitoring.
The red ERROR-LED lights up.
Maximum number of all CFC inputs
considering all charts
400 When the limit is exceeded, an error message is output by
the device. Consequently, the device starts monitoring.
The red ERROR-LED lights up.
Maximum number of reset-resistant
flipflops
D_FF_MEMO
350 When the limit is exceeded, an error message is output by
the device. Consequently, the device starts monitoring.
The red ERROR-LED lights up.
Technical Data
4.26 User-defined Functions (CFC)
506 SIPROTEC 4, 7SJ62/64, Manual
C53000-G1140-C207-8, Edition 08.2016