ST_CM_MinersRule_InitPars
Function block-specific structure with initialization parameters, which are analyzed when the function block is initialized.
TYPE ST_CM_MinersRule_InitPars EXTENDS ST_CM_Object_InitPars :
STRUCT
nBins : UDINT := 64; (* Number of bins for the stress levels. *)
nBinsMean : UDINT := 64; (* Number of bins for the mean levels. *)
fDamage : LREAL := 0.0; (* Additional constant damage *)
nCycles : ULINT := 0; (* Initial number of cycles counted *)
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.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.fDamage
defines the constant damage from the beginning. The total damage is thus calculated from the sum offDamage
and the accumulated damage with respect to the configured Wöhler curve.nCycles
defines the initial value of the counted half-cycles at the beginning. The total number of cycles is calculated from the sum ofnCycles
and the current number of input data.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 |