ST_CM_Quantiles_InitPars
Function block-specific structure with initialization parameters, which are analyzed when the function block is initialized.
TYPE ST_CM_Quantiles_InitPars EXTENDS ST_CM_Object_InitPars :
STRUCT
nChannels : UDINT := 512; (* Number of channels. *)
nSubChannels : UDINT := 0; (* Number of subchannels. *)
fMinBinned : LREAL := -120; (* Minimum binned value. *)
fMaxBinned : LREAL := 100; (* Maximum binned value. *)
nBins : UDINT := 100; (* Number of bins. *)
nMaxQuantiles : UDINT := 10; (* Maximum number of quantiles. *)
END_STRUCT
END_TYPE
nChannels
defines the number of independent channels. This must be greater than zero.nSubChannels
defines the number of independent subchannels. This must be greater than or equal to zero.fMinBinned
is the lower limit value for which samples are counted in the regular histogram bins.fMaxBinned
is the upper limit value for which samples are counted in the regular histogram bins.fMaxBinned
must be greater thanfMinBinned.
nBins
is the number of histogram bins. It must be at least one. In many cases it makes sense to choose values between 10 and 20. The two special bins for values that lie belowfMinBinned
or abovefMaxBinned
are not included in this value.nMaxQuantiles
is the number of quantiles to be calculated for each channel. This must be an integer 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 |