ST_PMA_Protection_InitPars
Function block-specific structure with initialization parameters which are evaluated when the function block FB_PMA_Scaling is initialized.
Syntax
Definition:
TYPE ST_PMA_Scaling_InitPars :
STRUCT
nNumChannels : UDINT := 1; // Number of independent input channels
fSetpoint : LREAL := 230.0; // Setpoint of monitored value
fMinThreshold : LREAL := 0.9; // Min threshold. Min On: Setpoint * MinThreshold.
fMinThresholdHysteresis : LREAL := 0.01; // Hysteresis of min threshold. Min Off: Setpoint * (MinThreshold + MinThresholdHysteresis).
fMaxThreshold : LREAL := 1.1; // Max threshold. Max On: Setpoint * MaxThreshold.
fMaxThresholdHysteresis : LREAL := 0.01; // Hysteresis of max threshold. Max Off: Setpoint * (MaxThreshold - MaxThresholdHysteresis).
END_STRUCT
END_TYPEParameter
Name | Type | Parameter |
|---|---|---|
nNumChannels | UDINT | Number of independent input channels |
fSetpoint | LREAL | Setpoint of the input channels to be monitored |
fMinThreshold | LREAL | Minimum threshold value. |
fMinThresholdHysteresis | LREAL | Hysteresis of the minimum threshold value. |
fMaxThreshold | LREAL | Maximum threshold value. |
fMinThresholdHysteresis | LREAL | Hysteresis of the maximum threshold value. |
Requirements
Development environment | Target platform | PLC libraries to include |
|---|---|---|
TwinCAT v3.1.4024.0 | PC or CX (x86, x64) | Tc3_PowerMonitoring |