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_TYPEnWindowLengthis 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,fMinandfMax. If the number of existing input values is less thannWindowLength, the calculation is carried out using the existing input values.Validationis an optional substructure that influences the function block outputsbValidMeasurment,bNewResult,tLastResultandfLastWeight.AutoTareis an optional substructure that influences the function block outputsfAutoTareOffsetandbNewAutoTareResult.

Further Information