ST_CM_ArgSort_InitPars
Function block-specific structure with initialization parameters, which are analyzed when the function block is initialized.
TYPE ST_CM_ArgSort_InitPars EXTENDS ST_CM_Object_InitPars :
STRUCT
nInLength : UDINT := 256; (* Length of input data array. *)
bSortDownward : BOOL := FALSE; (* If true, sort in descending order (largest values first). *)
fScaleFactor : LREAL := 1.0; (* Scaling factor to transform index values, for example to frequency values. *)
nChannels : UDINT := 1; (* Number of channels. *)
END_STRUCT
END_TYPE
nInLength
is the length of the input array.bSortDownward
is a flag with which you can select whether the data are to be sorted in ascending or descending order. IfbSortDownward
is TRUE, then the largest values are placed at the front.fScaleFactor
can be used in order to directly display, for example, the amplitude with associated frequencies instead of the index position (fScaleFactor = 1).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 |