ST_WG_Weighing
Configuration structure for the function block FB_WG_Weighing.
TYPE ST_WG_Weighing :
STRUCT
nWindowLength : UDINT := 100; (* Size in samples of a sliding window and must be greater than zero. It specifies over how many values the function block outputs fWeight, fStd, fMin and fMax should be calculated. If the amount of existing input values is smaller than nWindowLength the calculation will be done with the already existing values. *)
Validation : ST_WG_Weighing_Validation;
AutoTare : ST_WG_Weighing_AutoTare;
END_STRUCT
END_TYPE
nWindowLength
is the number of samples used to form the moving average (often referred to as the window size). The parameter specifies how many values are to be used to calculate the function block outputsfWeight
,fStd
,fMin
andfMax
. If the number of existing input values is less thannWindowLength
, the calculation is carried out using the existing input values.Validation
is an optional substructure that influences the function block outputsbValidMeasurment
,bNewResult
,tLastResult
andfLastWeight
.AutoTare
is an optional substructure that influences the function block outputsfAutoTareOffset
andbNewAutoTareResult
.

Further Information