Description
VLV_CTL controls an analog cooling/heating valve. In a two-pipe air conditioning unit coil application, cold water passes through the cooling coil in summer to cool the space, and hot water passes through the heating coil in winter to heat the space. The valve generates a PID output based on the current temperature and setpoint. The function block set also has a low limit temperature protection function that requires the heating valve to be fully open for winter heat and freeze protection.
Of all the inputs, Fault Alarm is generated from a PID-adjustable primary sensor. The PID-calculated output is 0 % in the event of a Fault Alarm.
The set also has a manual override function: The output is "Valve Manual Setpoint" if "Valve Mode Select" is "0 - MAN (manual)" and the automatic logic value of the application if "Valve Mode Select" is "1 - AUTO".
Note: PID control of cooling in summer is direct-proportional and that of heating in winter is inverse-proportional.
Note: The total number of PID function blocks and standard libraries containing PIDs must be less than 35; otherwise, it may degrade the performance of the programmed application.
Function
"Valve Adjustment Control" is calculated based on PI control, ranging from "Minimum Output" to "Maximum Output" when "Fan Command" is "1" (0-OFF/1-ON) and "Sensor Fault Alarm" is "0" (0-OK/1-FLT).
"Valve Adjustment Control" is "Valve Manual Setpoint" when "Valve Mode Select" is "0" (0-MAN/1-AUTO).
"Valve Adjustment Control" is 0 % when "Fan Start/Stop" is "0" (0-OFF/1-ON) or "Sensor Fault Alarm" is "1" (0-OK/1-FLT).
"Valve Adjustment Control" is 100 % when heating valve is working and "Low Limit Temperature" is "1".
Note: PID control of cooling in summer is direct-proportional and that of heating in winter is inverse-proportional.
The output priority is: Low limit temperature protection > Manual mode > Sensor fault alarm > Winter/Summer selection in automatic mode > Normal PID calculation output.
Internal logic
Input
PIN | Data type | Unit | Default value | Value/range |
|---|---|---|---|---|
FAN_CMD | BOOL | - | 0 | 0-OFF / 1-ON |
WS_MOD | BOOL | - | 0 | 0-WINTER / 1-SUMMER |
FAULT | BOOL | - | 0 | 0-OK / 1-FLT |
LLT_ALM | BOOL | - | 0 | 0-OK / 1-FLT |
PV | FLOAT | - | 0 | 0...65535 |
SP | FLOAT | - | 0 | 0...65535 |
DZ | FLOAT | K | 1 | 0...65535 |
P | FLOAT | - | 10 | 0...65535 |
I | FLOAT | s | 120 | 0...65535 |
MIN | FLOAT | % | 0 | 0...100 % |
MAX | FLOAT | % | 100 | 0...100 % |
VLV_MOD | BOOL | - | 1 | 0-Manual / 1-AUTO |
VLV_MSP | FLOAT | % | 0 | 0...100 % |
Output
PIN | Data type | Unit | Default value | Value/range |
|---|---|---|---|---|
VLV_CTL | FLOAT | % | - | 0...100 % |
Example