Siemens SIMATIC PCS 7 Function Manual page 161

Process control system, advanced process functions apf
Hide thumbs Also See for SIMATIC PCS 7:
Table of Contents

Advertisement

using the FB_XXXPA block (CFC connection or a button in the faceplate). This is done using
either the L_CAL block input or the "Calculate" button in the faceplate. Whether or not this
option is available depends on the CALOP_EN enable bit at the block. CALOP_EN shows and
enables the button in the faceplate, and there is only a response to the L_REL input if
CALOP_EN = 1.
Individual parameters are only calculated with formats 0-5 (INTEGER and REAL).
When creating the corresponding attribute archive, you can enter a number in the NORM
column which is then assigned to a specified mathematical formula to be used to calculate
these parameters. For maximum flexibility, two C functions have been created in which you
can enter user-defined mathematical formulas.
The "FB_CalcValueByNormPM.fct" function used for automatic data record normalization and
the "FB_ReCalcValueByNormPM.fct" function used for recalculations contain the following
parameters, which can be used directly in the user-defined formulas:
iNormIndex
dNormParameter
fNormAmount
iParameter1
iParameter2
iParameter3
fParameter4
fParameter5
fParameter6
dRetValue
Cases 0 and 1 (NORM column in the "FB_PARAMATTRIB_XXX" archive or "iNormIndex"
parameter of the function) have the following default values:
FB_CalcValueByNormPM.fct
FB_CalcValueByNormPM.fct
FB_ReCalcValueByNormPM.fct
FB_ReCalcValueByNormPM.fct
Advanced Process Functions (APF)
Function Manual, 07/2016, A5E38719883-AA
Parameter
Corresponds to the entry in the "NORM" column of the "FB_PARAMAT‐
TRIB_XXX" user archive and is only used for differentiating between the math‐
ematical formula to be applied
Unchanged parameter value to be normalized or recalculated
Reference quantity from the corresponding data record / parameter set
User-defined parameter in 32-bit integer format
(FB_XXXPA block input "PARA_1")
User-defined parameter in 32-bit integer format
(FB_XXXPA block input "PARA_2")
User-defined parameter in 32-bit integer format
(FB_XXXPA block input "PARA_3")
User-defined parameter in real or float format
(FB_XXXPA block input "PARA_4")
User-defined parameter in real or float format
(FB_XXXPA block input "PARA_5")
Job setpoint
(FB_XXXPA block output "QSP")
Result or feedback value of the C function
Function
6.3 C functions for normalization/recalculation
Meaning
NORM
0
Parameter is applied unchanged, which means it
is not normalized
1
Parameter is normalized on a linear basis
0
Parameter is applied unchanged, which means it
is not recalculated
1
Parameter is applied unchanged, which means it
is not recalculated
Parameter management
Meaning
161

Advertisement

Table of Contents
loading

Table of Contents