ST_CM_Normalization_InitPars
Function block-specific structure with initialization parameters, which are analyzed when the function block is initialized.
TYPE ST_CM_Normalization_InitPars EXTENDS ST_CM_Object_InitPars :
STRUCT
nChannels : UDINT := 1; (* Number of channels. *)
nSubChannels : UDINT := 0; (* Number of subchannels. *)
nInLength : UDINT := 256; (* Length of input data array. *)
fParameter_s : LREAL := 1.0; (* Parameter s for normalization. *)
nParameter_p : UDINT := 1; (* Parameter p for normalization. *)
nParameter_q : UDINT := 1; (* Parameter q for normalization. *)
nWorkingDimension : UDINT := 0; (* Dimension index of MultiArray for normalization. *)
bAbsoluteValues : BOOL := TRUE; (* Use absolute values in calculation. *)
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.nInLength
is the length of the input array.fParameter_s
defines the scaling factor of the normalization.fParameter_p
defines the exponent of the summands in the normalization.fParameter_q
defines the quotient of the outer exponent in the normalization.nWorkingDimension
specifies the null-based dimension of the input multiarray over which summation/normalization is performed.bAbsoluteValues
is a flag that can be used to select whether the individual values are added together in the amount.
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4022.25 | PC or CX (x86, x64) | Tc3_CM, Tc3_CM_Base |