Function block Function block Task level
MW_
BEARB
PLC1_
BEARB
PLC_
BEARB
SFS_
BEARB
UINT_TO_REAL Conversion X X X X
UPPER_SETPOINT Upper Limit X — — —
X_OR XOR - Gate X X X X
ZERO_POINT Zero Supression X — — —
Device-Specific CFC Blocks
Table 4-1 ASWITCH – This block is used to switch between two REAL inputs (RMS values).
Name Type Description Default function
Input SWITCH BOOL Analog value selection FALSE
IN1 REAL Analog value 0.0
IN2 REAL Analog value 0.0
Output OUT REAL Selected analog value
Task levels: Recommendation: Into task levels PLC1_BEARB and PLC_BEARB, because these
levels are directly triggered.
Note: If you use this 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-2 With the CFC block MaxValSel, you can determine the greatest value from 5 input values
taking into account the hysteresis value 1 (HYSVAL1) and issue it via MAXVAL. For the
greatest input value, the respective output Y1 to Y5 is set to "1" taking into account the
hysteresis value 2 (HYSVAL2).
Name Typ Description Default function
Input HYSVAL1 REAL Hysteresis for determining MAXVAL 0.0
HYSVAL2 REAL Hysteresis for determining Y1 to Y5 0.0
VAL1 REAL Operand 1 0.0
VAL2 REAL Operand 2 0.0
VAL3 REAL Operand 3 0.0
VAL4 REAL Operand 4 0.0
VAL5 REAL Operand 5 0.0
Output MAXVAL REAL Max value from {0,VAL1,..,VAL5} 0
Y1 BOOL VAL1 = MAXVAL +/- HYSVAL2 0
Y2 BOOL VAL2 = MAXVAL +/- HYSVAL2 0
Y3 BOOL VAL3 = MAXVAL +/- HYSVAL2 0
Y4 BOOL VAL4 = MAXVAL +/- HYSVAL2 0
Y5 BOOL VAL5 = MAXVAL +/- HYSVAL2 0
Technical Data
4.22 User-defined Functions (CFC)
SIPROTEC Compact, 7SC80, Manual 565
E50417-G1140-C486-A8, Edition 07.2017