ST_CM_MeanStressCorrection_InitPars
Function block-specific structure with initialization parameters, which are analyzed when the function block is initialized.
TYPE ST_CM_MeanStressCorrection_InitPars EXTENDS ST_CM_Object_InitPars :
STRUCT
eMeanStressCorrection : E_CM_MeanStressCorrection
:= E_CM_MeanStressCorrection.eCM_Goodman; (* Mean stress correction type, e.g. Goodman or Gerber correction. *)
nBins : UDINT := 1; (* Number of bins for the stress levels. *)
fBinWidth : LREAL := 1.0; (* Width of the stress bins. *)
nBinsMean : UDINT := 1; (* Number of bins for the mean levels. *)
fBinWidthMean : LREAL := 1.0; (* Width of the mean stress bins. *)
fUTS : LREAL := 700.0; (* Ultimate tensile strength of material. *)
nChannels : UDINT := 1; (* Number of channels. *)
END_STRUCT
END_TYPE
eMeanStressCorrection
defines the correction mode to be used. The correction according to Goodman and Gerber is available as well as the option not to make a correction.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.fBinWidth
defines the width of the bins for the stress level. The parameter must be chosen according to the dimension of the incoming counting matrix, i.e. in the case of correction of an output from the function block FB_CMA_RainflowCounting, the value(fMaxStress – fMinStress)/nBins
must be selected here.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.fBinWidthMean
defines the width of the bins for the mean values of the stress cycles. The parameter must be chosen according to the dimension of the incoming counting matrix, i.e. in the case of correction of an output from the function block FB_CMA_RainflowCounting, the value(fMaxMean – fMinMean)/nBinsMean
must be selected here.fUTS
defines the tensile strength of the monitored materialnChannels
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 |