ST_CM_RainflowCounting_InitPars
Function block-specific structure with initialization parameters, which are analyzed when the function block is initialized.
TYPE ST_CM_RainflowCounting_InitPars EXTENDS ST_CM_Object_InitPars :
STRUCT
nBins : UDINT := 64; (* Number of bins for the stress levels. *)
fminStress : LREAL := -40.0; (* Lower limit of the stress bins. *)
fmaxStress : LREAL := 40.0; (* Upper limit of the stress bins. *)
nBinsMean : UDINT := 64; (* Number of bins for the mean levels. *)
fminMean : LREAL := -40.0; (* Lower limit of bins for mean stress values. *)
fmaxMean : LREAL := 40.0; (* Upper limit of bins for mean stress values. *)
nChannels : UDINT := 1; (* Number of channels. *)
END_STRUCT
END_TYPE
nBins
defines the number of bins for the stress level. The total number of bins isnBins + 2
; the value must be at least one. The first bin of each row contains the stress levels that are less than or equal to the defined minimum; analogously, all values greater than the defined maximum fall into the last bin of each row.fminStress
defines the lower limit of the stress level. All values that are less than or equal to this value are accumulated in a bin.fmaxStress
defines the upper limit of the stress level. Values that exceed the maximum are counted in the last bin.nBinsMean
defines the number of bins for the mean values. The value must be at least one. Two separate bins are added in the first/last column of the Halfcycle Count Matrix, where mean values are kept that are less than or equal to or, respectively, greater than the defined limits.fminMean
defines the lower limit of the mean values. All values that are less than or equal to this value are accumulated in a bin.fmaxMean
defines the upper limit of the mean values. Values that exceed the maximum are counted in the last bin.nChannels
defines the number of independent channels. This must be greater than zero.
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4022.25 | PC or CX (x86, x64) | Tc3_CM_Base |