ST_CM_WatchUpperThresholds_InitPars
Function block-specific structure with initialization parameters, which are analyzed when the function block is initialized.
TYPE ST_CM_WatchUpperThresholds_InitPars EXTENDS ST_CM_Object_InitPars :
STRUCT
nChannels : UDINT := 10; (* Number of channels. *)
nSubChannels : UDINT := 0; (* Number of subchannels. *)
nMaxClasses : UDINT := 3; (* Number of configurable threshold classes. *)
bMemorize : BOOL :=TRUE; (* Flag if results are memorized. *)
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.nMaxClasses
is the maximum number of classes that are configured. This must be at least one.bMemorize
is a Boolean variable. If it isFALSE
, the function block recalculates the number of the highest category and the corresponding channel for each step. If the value isTRUE
, the result values are stored when a limit value is exceeded until the ResetData() method is executed or a channel reaches a higher category. The default value isTRUE.
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4022.25 | PC or CX (x86, x64) | Tc3_CM_Base |