User Archives; Fb_Paramgroup; Fb_Paramattrib_Xxx - Siemens SIMATIC PCS 7 Function Manual

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

Advertisement

Parameter management

6.4 User archives

Example
The individual parameters to be normalized/recalculated with another formula can be adjusted
either with the APF Engineering Tool or in the "FB_PARAMSTTRIB_XXX" archive. A unique
number (>1) must be entered in the "NORM" column of the relevant individual parameters for
this purpose. This figure must then be added to the two C functions as a case. The basic
structure is already in place for cases 2 to 20. This always starts with "case NUMBER:" and
ends with "break;". You must make sure that the text "return dRetValue;" always appears at
the end of each case. This returns the result "dRetValue" which is ultimately transferred to the
AS.
Example for case 2:
case 2:
break;
In the example, the value is always halved regardless of the setpoint and of other parameters,
and the freely interconnectable value "iParameter1" (corresponds to block input PARA_1) is
added to the result.
With manual recalculation, the reference quantity is not used. When this function is used, the
corresponding recalculation function (FB_ReCalcValueByNorm.fct) is also implemented for
parameters which were not previously normalized (FB_CalcValueByNorm.fct) because there
was no reference quantity. Only the NORM column is therefore relevant for recalculation and
is applied accordingly. If a parameter is not to be changed in recalculation, the value must be
returned unchanged in the "case" corresponding to the figure (NORM column) in the
recalculation function.
6.4
User archives
6.4.1

FB_PARAMGROUP

The parameter set groups are defined in the "FB_PARAMGROUP" user archive. The archive
has the following structure:
REC_ID
NAME
DESCR
TXTLIB
6.4.2

FB_PARAMATTRIB_XXX

Up to 100 parameters and their properties are defined in the "FB_PARAMATTRIB_XXX" user
archives (XXX=number of the parameter set group). Each archive is assigned to a parameter
set group and numbered accordingly.
162
dRetValue = (dNormParameter / 2) + iParameter1;
return dRetValue;
Element
Internal ID of parameter set group
Name of parameter set group
Description of parameter set group
ID for multilingual management in the text
library
Description
Function Manual, 07/2016, A5E38719883-AA
Format
INTEGER 32
STRING[32]
STRING[128]
INTEGER 32
Advanced Process Functions (APF)

Advertisement

Table of Contents
loading

Table of Contents