Schneider Electric SoHVAC User Guide

SoHVAC EIO0000000663 05/2014 SoHVAC HVAC&R Function Library User Guide EIO0000000663.02 05/2014 www.schneider-electric.com The information provided in this documentation contains general descriptions and/or technical characteristics of the performance of the products contained herein. This documentation is not intended as a substitute for and is not to be used for determining suitability or reliability of these products for specific user applications. It is the duty of any such user or integrator to perform the appropriate and complete risk analysis, evaluation and testing of the products with respect to the relevant specific application or use thereof. Neither Schneider Electric nor any of its affiliates or subsidiaries shall be responsible or liable for misuse of the information contained herein. If you have any suggestions for improvements or amendments or have found errors in this publication, please notify us. No part of this document may be reproduced in any form or by any means, electronic or mechanical, including photocopying, without express written permission of Schneider Electric. All pertinent state, regional, and local safety regulations must be observed when installing and using this product. For reasons of safety and to help ensure compliance with documented system data, only the manufacturer should perform repairs to components. When devices are used for applications with technical safety requirements, the relevant instructions must be followed. Failure to use Schneider Electric software or approved software with our hardware products may result in injury, harm, or improper operating results. Failure to observe this information can result in injury or equipment damage. © 2014 Schneider Electric. All rights reserved. 2 EIO0000000663 05/2014 Table of Contents Safety Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . About the Book. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Part I HVAC&R System Requirements . . . . . . . . . . . . . . Chapter 1 System Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . System Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Part II HVAC&R Function Blocks . . . . . . . . . . . . . . . . . . . Chapter 2 AHU Temperature Control Strategy: AHUTempCntrlStrategy . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 Functional and Machine Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . Functional Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Hardware Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Software Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3 Function Block Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AHUTempCntrlStrategy Function Block . . . . . . . . . . . . . . . . . . . . . 2.4 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Input Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Output Pin Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.5 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 3 AHU Plant Mode Strategy: AHUPlantModeStrategy . . 3.1 Functional and Machine Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . Functional Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Hardware Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Software Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3 Function Block Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AHUPlantModeStrategy Function Block . . . . . . . . . . . . . . . . . . . . . 3.4 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Input Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Output Pin Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . EIO0000000663 05/2014 9 13 15 17 17 19 21 22 23 25 26 27 28 29 29 36 37 44 49 49 51 52 53 55 56 57 58 59 59 64 65 68 3 3.5 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 4 ATV Modbus Communication: ATV••ModbusCom / ATV••• ModbusCom . . . . . . . . . . . 4.1 Functional and Machine Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . Functional Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Hardware Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Software Architecture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3 Function Block Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ATV••/•••ModbusCom Function Block . . . . . . . . . . . . . . . . . . . . . . . 4.4 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Input Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Output Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.5 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 5 Compressor Management: CompMgmt . . . . . . . . . . . . 5.1 Functional and Machine Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . Functional Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Hardware Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Software Architecture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.3 Function Block Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CompMgmt Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.4 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Input Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Output Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.5 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 6 Fan Management: FanMgmt . . . . . . . . . . . . . . . . . . . . . 6.1 Functional and Machine Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . Functional Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.2 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Hardware Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Software Architecture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 71 71 73 74 75 76 77 78 79 80 80 82 83 85 88 88 89 90 91 93 94 95 96 97 97 102 103 107 111 111 113 114 115 117 118 119 120 EIO0000000663 05/2014 6.3 Function Block Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FanMgmt Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.4 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Input Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Output Pin Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.5 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 7 Floating High Pressure Control: FloatingHighPresCntrl . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 Functional and Machine Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . Functional Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.2 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Hardware Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Software Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.3 Function Block Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FloatingHighPresCntrl Function Block. . . . . . . . . . . . . . . . . . . . 7.4 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Input Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Output Pin Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.5 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 8 Floating Setpoint: FloatingSetpoint . . . . . . . . . . . . . . . 8.1 Functional and Machine Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . Functional Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.2 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Hardware Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Software Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.3 Function Block Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FloatingSetpoint Function Block . . . . . . . . . . . . . . . . . . . . . . . . . 8.4 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Input Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Output Pin Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.5 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . EIO0000000663 05/2014 122 122 131 132 137 140 140 141 142 143 145 146 147 148 149 149 154 155 159 162 162 163 164 164 165 166 167 168 168 172 173 175 177 177 5 Chapter 9 Water Temperature Deadband Control: WtrTempDbCntrl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.1 Functional and Machine Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . Functional Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Machine Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Hardware Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Software Architecture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.3 Function Block Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . WtrTempDbCntrl Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . Timing Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.4 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Input Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Output Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.5 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 10 Thermal Power Calculation: ThermalPowerCalculation . . . . . . . . . . . . . . . . . . . . . . . 10.1 Function Block Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ThermalPowerCalculation Function Block Description . . . . . . . . 10.2 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 11 Coefficient of Performance Calculation: COPCalculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.1 Functional Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . COPCalculation Function Block Description . . . . . . . . . . . . . . . . . . 11.2 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 12 Totalizer for Digital Input Pulses: Pulse2Counter. . . . 12.1 Functional Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pulse2Counter Function Block Description . . . . . . . . . . . . . . . . . . . 12.2 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 13 Transform Counted Values to Energy: Counter2Energy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.1 Functional Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Counter2Energy Function Block Description . . . . . . . . . . . . . . . . . . 6 179 180 181 182 183 184 185 186 187 190 195 196 198 200 200 201 202 202 204 204 207 208 208 209 209 211 212 212 214 214 217 218 218 EIO0000000663 05/2014 13.2 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 14 Energy Meter Data Trend: EnergyTrend. . . . . . . . . . . . 14.1 Functional Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . EnergyTrend Function Block Description . . . . . . . . . . . . . . . . . . . . . 14.2 Pin Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 15 Energy Meter Modbus Communication Module: EnergyMeterModbusCom . . . . . . . . . . . . . . . . . . . . . . . 15.1 Functional Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . EnergyMeterModbusCom Function Block Description . . . . . . . . . . . 15.2 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 16 Float to Long Converter: Float2Long . . . . . . . . . . . . . . 16.1 Functional Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Float2Long Function Block Description . . . . . . . . . . . . . . . . . . . . . . 16.2 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 17 PID Control Function Block: PIDAdvanced . . . . . . . . . 17.1 Functional Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PIDAdvanced Function Block Description . . . . . . . . . . . . . . . . . . . . . 17.2 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 18 Compressor Control for Screw Compressor with Slider Capacity: CompCntrl_Slider. . . . . . . . . . . . . . . . 18.1 Functional Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CompCntrl_Slider Function Block Description. . . . . . . . . . . . . . . . 18.2 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 19 Compressor Control for Generic On/Off Compressors: CompCntrl_OnOff . . . . . . . . . . . . . . . . . 19.1 Functional Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CompCntrl_OnOff Function Block Description. . . . . . . . . . . . . . . . . 19.2 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . EIO0000000663 05/2014 219 219 221 222 222 223 223 227 228 228 230 230 233 234 234 235 235 239 240 240 243 243 251 252 252 253 254 263 264 264 265 265 7 Chapter 20 Compressor Control for Variable Speed Compressors: CompCntrl_VS . . . . . . . . . . . . . . . . . . . 20.1 Functional Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CompCntrl_VS Function Block Description . . . . . . . . . . . . . . . . . . . . 20.2 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 21 Compressor Alarm Management: CompAlarmMgmt . 21.1 Functional Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CompAlarmMgmt Function Block Description . . . . . . . . . . . . . . . . . . . 21.2 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 22 PID Autotuning: PIDAutoTuning. . . . . . . . . . . . . . . . . . 22.1 Functional Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PIDAutoTuning Function Block Description . . . . . . . . . . . . . . . . . . . 22.2 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 269 270 270 272 273 281 282 282 283 284 299 300 300 303 303 313 317 EIO0000000663 05/2014 Safety Information Important Information NOTICE Read these instructions carefully, and look at the equipment to become familiar with the device before trying to install, operate, or maintain it. The following special messages may appear throughout this documentation or on the equipment to warn of potential hazards or to call attention to information that clarifies or simplifies a procedure. EIO0000000663 05/2014 9 PLEASE NOTE Electrical equipment should be installed, operated, serviced, and maintained only by qualified personnel. No responsibility is assumed by Schneider Electric for any consequences arising out of the use of this material. A qualified person is one who has skills and knowledge related to the construction and operation of electrical equipment and its installation, and has received safety training to recognize and avoid the hazards involved. BEFORE YOU BEGIN Do not use this product on machinery lacking effective point-of-operation guarding. Lack of effective point-of-operation guarding on a machine can result in serious injury to the operator of that machine. WARNING UNGUARDED EQUIPMENT Do not use this software and related automation equipment on equipment which does not have point-of-operation protection. Do not reach into machinery during operation. Failure to follow these instructions can result in death, serious injury, or equipment damage. This automation equipment and related software is used to control a variety of industrial processes. The type or model of automation equipment suitable for each application will vary depending on factors such as the control function required, degree of protection required, production methods, unusual conditions, government regulations, etc. In some applications, more than one processor may be required, as when backup redundancy is needed. Only you, the user, machine builder or system integrator can be aware of all the conditions and factors present during setup, operation, and maintenance of the machine and, therefore, can determine the automation equipment and the related safeties and interlocks which can be properly used. When selecting automation and control equipment and related software for a particular application, you should refer to the applicable local and national standards and regulations. The National Safety Council’s Accident Prevention Manual (nationally recognized in the United States of America) also provides much useful information. In some applications, such as packaging machinery, additional operator protection such as pointof-operation guarding must be provided. This is necessary if the operator’s hands and other parts of the body are free to enter the pinch points or other hazardous areas and serious injury can occur. Software products alone cannot protect an operator from injury. For this reason the software cannot be substituted for or take the place of point-of-operation protection. 10 EIO0000000663 05/2014 Ensure that appropriate safeties and mechanical/electrical interlocks related to point-of-operation protection have been installed and are operational before placing the equipment into service. All interlocks and safeties related to point-of-operation protection must be coordinated with the related automation equipment and software programming. NOTE: Coordination of safeties and mechanical/electrical interlocks for point-of-operation protection is outside the scope of the Function Block Library, System User Guide, or other implementation referenced in this documentation. START-UP AND TEST Before using electrical control and automation equipment for regular operation after installation, the system should be given a start-up test by qualified personnel to verify correct operation of the equipment. It is important that arrangements for such a check be made and that enough time is allowed to perform complete and satisfactory testing. CAUTION EQUIPMENT OPERATION HAZARD Verify that all installation and set up procedures have been completed. Before operational tests are performed, remove all blocks or other temporary holding means used for shipment from all component devices. Remove tools, meters, and debris from equipment. Failure to follow these instructions can result in injury or equipment damage. Follow all start-up tests recommended in the equipment documentation. Store all equipment documentation for future references. Software testing must be done in both simulated and real environments. Verify that the completed system is free from all short circuits and temporary grounds that are not installed according to local regulations (according to the National Electrical Code in the U.S.A, for instance). If high-potential voltage testing is necessary, follow recommendations in equipment documentation to prevent accidental equipment damage. Before energizing equipment: Remove tools, meters, and debris from equipment. Close the equipment enclosure door. Remove all temporary grounds from incoming power lines. Perform all start-up tests recommended by the manufacturer. EIO0000000663 05/2014 11 OPERATION AND ADJUSTMENTS The following precautions are from the NEMA Standards Publication ICS 7.1-1995 (English version prevails): Regardless of the care exercised in the design and manufacture of equipment or in the selection and ratings of components, there are hazards that can be encountered if such equipment is improperly operated. It is sometimes possible to misadjust the equipment and thus produce unsatisfactory or unsafe operation. Always use the manufacturer’s instructions as a guide for functional adjustments. Personnel who have access to these adjustments should be familiar with the equipment manufacturer’s instructions and the machinery used with the electrical equipment. Only those operational adjustments actually required by the operator should be accessible to the operator. Access to other controls should be restricted to prevent unauthorized changes in operating characteristics. 12 EIO0000000663 05/2014 About the Book At a Glance Document Scope This document describes the functions of the HVAC&R Function Library. Validity Note This document is valid for SoHVAC 3.0. Related Documents Title of Documentation Reference Number Modicon M168 Controller Hardware Guide EIO0000000533 (Eng) SoHVAC Software User Guide EIO0000000537 (Eng) SoHVAC Standard Library User Guide EIO0000000538 (Eng) You can download these technical publications and other technical information from our website at www.schneider-electric.com. Product Related Information WARNING LOSS OF CONTROL The designer of any control scheme must consider the potential failure modes of control paths and, for certain critical control functions, provide a means to achieve a safe state during and after a path failure. Examples of critical control functions are emergency stop and overtravel stop, power outage and restart. Separate or redundant control paths must be provided for critical control functions. System control paths may include communication links. Consideration must be given to the implications of unanticipated transmission delays or failures of the link. Observe all accident prevention regulations and local safety guidelines.1 Each implementation of this equipment must be individually and thoroughly tested for proper operation before being placed into service. Failure to follow these instructions can result in death, serious injury, or equipment damage. EIO0000000663 05/2014 13 1 For additional information, refer to NEMA ICS 1.1 (latest edition), "Safety Guidelines for the Application, Installation, and Maintenance of Solid State Control" and to NEMA ICS 7.1 (latest edition), "Safety Standards for Construction and Guide for Selection, Installation and Operation of Adjustable-Speed Drive Systems" or their equivalent governing your particular location. WARNING UNINTENDED EQUIPMENT OPERATION Only use software approved by Schneider Electric for use with this equipment. Update your application program every time you change the physical hardware configuration. Failure to follow these instructions can result in death, serious injury, or equipment damage. 14 EIO0000000663 05/2014 SoHVAC System Requirements EIO0000000663 05/2014 Part I HVAC&R System Requirements HVAC&R System Requirements EIO0000000663 05/2014 15 System Requirements 16 EIO0000000663 05/2014 SoHVAC System Requirements EIO0000000663 05/2014 Chapter 1 System Requirements System Requirements System Requirements Hardware Requirements The function blocks described in this document are compatible with the M168 S-type logic controller. Communication Interface Port Protocol Communicates between... Serial port 1 Modbus slave Modbus master devices like Magelis HMI display and M168 logic controller Serial port 2 Modbus master or slave Altivar VSD, TeSysU and M168 logic controller Expansion bus Proprietary protocol based on CAN M168 controller, I/O expansion boards, HMI display and various auxiliary boards User Interface The parameters can be supplied and modified using the built-in display or using remote display TM168GDB or TM168GDTS. EIO0000000663 05/2014 17 System Requirements 18 EIO0000000663 05/2014 SoHVAC HVAC&R Function Blocks EIO0000000663 05/2014 Part II HVAC&R Function Blocks HVAC&R Function Blocks What Is in This Part? This part contains the following chapters: Chapter Chapter Name Page 2 AHU Temperature Control Strategy: AHUTempCntrlStrategy 21 3 AHU Plant Mode Strategy: AHUPlantModeStrategy 51 4 ATV Modbus Communication: ATV••ModbusCom / ATV••• ModbusCom 73 5 Compressor Management: CompMgmt 89 6 Fan Management: FanMgmt 113 7 Floating High Pressure Control: FloatingHighPresCntrl 141 8 Floating Setpoint: FloatingSetpoint 163 9 Water Temperature Deadband Control: WtrTempDbCntrl 179 10 Thermal Power Calculation: ThermalPowerCalculation 201 11 Coefficient of Performance Calculation: COPCalculation 207 12 Totalizer for Digital Input Pulses: Pulse2Counter 211 13 Transform Counted Values to Energy: Counter2Energy 217 14 Energy Meter Data Trend: EnergyTrend 221 15 Energy Meter Modbus Communication Module: EnergyMeterModbusCom 227 16 Float to Long Converter: Float2Long 233 17 PID Control Function Block: PIDAdvanced 239 18 Compressor Control for Screw Compressor with Slider Capacity: CompCntrl_Slider 251 19 Compressor Control for Generic On/Off Compressors: CompCntrl_OnOff 263 20 Compressor Control for Variable Speed Compressors: CompCntrl_VS 269 21 Compressor Alarm Management: CompAlarmMgmt 281 22 PID Autotuning: PIDAutoTuning 299 EIO0000000663 05/2014 19 HVAC&R Function Blocks 20 EIO0000000663 05/2014 SoHVAC AHUTempCntrlStrategy EIO0000000663 05/2014 Chapter 2 AHU Temperature Control Strategy: AHUTempCntrlStrategy AHU Temperature Control Strategy: AHUTempCntrlStrategy What Is in This Chapter? This chapter contains the following sections: Section Topic Page 2.1 Functional and Machine Overview 22 2.2 Architecture 26 2.3 Function Block Description 29 2.4 Pin Description 36 2.5 Troubleshooting 49 EIO0000000663 05/2014 21 AHUTempCntrlStrategy Section 2.1 Functional and Machine Overview Functional and Machine Overview What Is in This Section? This section contains the following topics: Topic 22 Page Functional Overview 23 Machine Overview 25 EIO0000000663 05/2014 AHUTempCntrlStrategy Functional Overview Functional Description The AHUTempCntrlStrategy function block (Air Handling Unit Temperature Control Strategy) is a control strategy function block. This function block controls the discharge air temperature of an air handling unit by modulating: heating coils cooling coils dampers fans The function block AHUTempCntrlStrategy is used together with the function block AHUPlantModeStrategy. Why Use the AHUTempCntrlStrategy Function Block? The AHUTempCntrlStrategy function block is used for the following purposes: Purpose Reduce energy consumption Description Reduce energy consumption by means of: variable air flow economizer control summer compensation winter compensation Optimize operation increase control accuracy increase comfort levels Features of the AHUTempCntrlStrategy Function Block The AHUTempCntrlStrategy function block provides the following features: Constant DAT (Discharge Air Temperature) control Return Air Compensated DAT control Fan Mode: variable and constant volume Cooling Mode: Modulating cooling coil/DX-cooling control Damper Mode: damper position controls air flow Sequential control of output signals: more than one actuator in series is controlled (damper, heating coil, cooling coil, discharge air fan, return air fan) Winter compensation: increases discharge air temperature at low temperature Summer compensation: increases RAT (Return Air Temperature) setpoint at high outside temperature Economizer function Freeze avoidance and freeze recovery EIO0000000663 05/2014 23 AHUTempCntrlStrategy Protective Features The AHUTempCntrlStrategy function block provides the following protective features to help you avoid the potentials of certain sources of machine malfunction: 24 Protective Feature Description Input range validation Inputs and parameter ranges are validated to avoid out of range data from being accepted directly. Alarm/alert notification If an invalid value is entered, an alarm or an alert is generated: alarm: the machine is switched off alert: the machine keeps on operating, however with reduced performance Controlled parameter The configuration of these parameters can be changed, however the changes are effective only after the restart of the function block. Several parameters are controlled. Please refer to the section Parameter Description (see page 39). EIO0000000663 05/2014 AHUTempCntrlStrategy Machine Overview Machine View The following picture shows the interaction between the function block and the machine: AHUTempCntrlStrategy controls the discharge air temperature by sequencing fan speeds, heating coil, dampers and cooling coil. AHUPlantModeStrategy is connected to the AHUTempCntrlStrategy and controls the operation modes of the Air Handling Unit. EIO0000000663 05/2014 25 AHUTempCntrlStrategy Section 2.2 Architecture Architecture What Is in This Section? This section contains the following topics: Topic 26 Page Hardware Architecture 27 Software Architecture 28 EIO0000000663 05/2014 AHUTempCntrlStrategy Hardware Architecture Hardware Architecture Overview The figure below shows the hardware architecture of Air Handling Unit. 1 2 3 4 5 Main power supply M168 Controller M168 Graphic display Variable speed drive ATV••/••• Modbus Motor control EIO0000000663 05/2014 27 AHUTempCntrlStrategy Software Architecture Function Block Diagram The following function block diagram provides an overview of the software architecture: The block diagram shows on the left hand side the inputs, the Process Variables, on the right hand side the outputs, the Process Commands, as well as the function block AHUTempCntrlStrategy. The following table provides an overview of the functions of AHUTempCntrlStrategy: Function Description Setpoint calculates the DAT setpoint based on OAT, RAT, winter compensation and freeze avoidance function. PID provides a control output by calculating the deviation between the actual DAT and the DAT setpoint. used to sequence fan speed heating coil dampers cooling coils is Sequencer 28 modulates control signals for fan speed, heating coil, cooling coils and dampers depending on the PID output. EIO0000000663 05/2014 AHUTempCntrlStrategy Section 2.3 Function Block Description Function Block Description AHUTempCntrlStrategy Function Block Function Block Description The AHUTempCntrlStrategy function block is a control strategy function block that regulates the temperature by controlling cooling coils, heating coils, dampers and fans. AHUTempCntrlStrategy provides the following methods for temperature control: Constant DAT control RAT Compensated DAT control Sequential control of output signals Winter compensation of Discharge Air Temperature Summer compensation on Return Air Temperature Damper control and Fan Control Cooling mode: supports both chilled water cooling coils and direct expansion cooling (DX cooling) Economizer function Freeze avoidance and freeze avoidance recovery control NOTE: This function block is to be used together with the AHUTempCntrlStrategy function block. EIO0000000663 05/2014 29 AHUTempCntrlStrategy Constant DAT Control and Compensated DAT Control The following table provides an overview of Constant and Compensated DAT control: Mode Description Constant DAT Control Discharge Air Temperature is kept constant as set by input setpoint. ControlMode=0 uses the DAT sensor to provide PID-control on the DAT. uses the following parameters: ControlMode Pb Ti Td Compensated DAT Control room / exhaust air compensated Discharge Air Temperature control (master-slave control) ControlMode=1 requires the RAT sensor; in case the RAT sensor is not available or when the sensor is in alarm, control will change to Constant DAT Control provides the possibility of P-control on the compensated DAT setpoint and PID control on the DAT for this function, it is necessary to connect a RAT sensor to the function block uses the following parameters: ControlMode Pb_ReturnAirControl DischargeAirTempMin DischargeAirTempMax Pb Ti Td Both control modes sequence output signals for heating, for mixed air dampers, fans and for cooling. The following graphic shows the Compensated DAT control. The DAT setpoint varies between the minimum and maximum DAT setpoint, depending on the deviation on the RAT. 30 EIO0000000663 05/2014 AHUTempCntrlStrategy Sequential Control of Output Signals The sequencer controls more than one actuator in series. One actuator is controlled until the end of range before the next actuator is used. The PID control is diverted over multiple actuators. The user can define the order and the percentage of the PID control signal for each actuator. The sequencing of the output control signals is defined in the AHUTempCntrlStrategy function block for the actuators heater damper fan cooler The start and end points of each output signal can be configured for each air handling unit using the parameters from FanSeqStart1...FanSeqStop2. The following figure shows an example of sequencing Fans, Heating coil, Dampers, Cooling coil and Fans: P1 FanSeqStart1 P2 FanSeqStop1 P3 HeatingSeqStart P4 HeatingSeqStop P5 DamperSeqStart P6 DamperSeqStop P7 CoolingSeqStart P8 CoolingSeqStop P9 FanSeqStart2 P10 FanSeqStop2 EIO0000000663 05/2014 31 AHUTempCntrlStrategy Winter and Summer Compensation The following table provides an overview of winter and summer compensation: Mode Winter Compensation Description Winter compensation of Discharge Air Temperature: DAT setpoint increases at low outside temperature and hence increases the comfort level winter compensation is disabled if the OAT sensor is inoperable Summer Compensation 32 Summer compensation on Return Air Temperature RAT setpoint increases at high Outside Air Temperature results in higher room temperature and thus avoids climate shocks and reduces energy consumption is disabled if the OAT sensor is inoperable EIO0000000663 05/2014 AHUTempCntrlStrategy Damper Control and Fan Control The damper position and the fan speed control the air flow. NOTICE INOPERABLE AIR HANDLING UNIT Make sure that the open/close dampers are opened before starting fans. Make sure that the parameter damper actuator run time is set to the actuator run time of the device. Failure to follow these instructions can result in equipment damage. NOTE: A damper end switch indicates whether the dampers are fully opened. The AHUTempCntrlStrategy function block allows configuring the following types: Type Description Modulating dampers output varies between 0 - 100% DamperMode= 0 Economizer mode possible Open / Close dampers ON / OFF (output is 0 or 100%) DamperMode= 1 Fans start operating, when the dampers are fully open. DamperActuatorRuntime defines the time for the dampers to change from a close position to the open position. Damper status is checked before starting fans. An alarm is raised, when the dampers are not open within the damper actuator run time. Cooling Control The function block supports cooling using chilled water or a refrigerant (DX direct expansion valve control). EIO0000000663 05/2014 33 AHUTempCntrlStrategy Economizer Function The built-in economizer function reduces the energy consumption by closing the dampers in case of a high OAT by fully opening the dampers in case of heating mode To save energy, the modulating damper control can be reversed or set to a minimum position. If... Then... the Outside Air Temperature is higher than the modulating damper control is reversed: Return Air Temperature In cooling mode, the dampers are fully open. In heating mode the dampers are fully closed. the Outside Air Temperature exceeds the the modulating damper control is set to a minimum. value of EconomizerOutdoorAirTempMax, The economizer function of the dampers can be enabled or disabled by means of EconomizerMode. This function is disabled if the OAT or RAT sensors are inoperable. Freeze Avoidance Recovery Control NOTICE BROKEN COIL Make sure that a freeze stat is properly mounted on the hot water coil to prevent freezing. In case of a freeze stat alarm, switch off the fans, close the dampers, open the heating coil valve and start heating coil pump. Failure to follow these instructions can result in equipment damage. Freeze avoidance is activated when the outside air temperature is below the FreezeLimit for PlantModes 1–5. Freeze Recovery is activated after a Freeze Alarm for PlantMode 21. Freeze Recovery is applicable only for modulating dampers. This function is disabled for Open/Close damper. Following actions are executed when freeze avoidance is active with input PlantMode (21): Dampers and cooling valve are closed Fans are switched Off Output HeatingControlSignal is set to maximum value of 100% When freeze alarm is reset a start-up procedure executes for restarting the air-handling unit. In case of restarting a unit, the DAT setpoint is temporarily increased. FreezeRecoveryIncr immediately starts and slowly ramps down to its normal setpoint. 34 EIO0000000663 05/2014 AHUTempCntrlStrategy The following parameters are used in the freeze avoidance feature: FreezeLimit FreezeRecoveryIncr FreezeRecoveryDur Plant Mode The PlantMode signal from the function block AHUPlantModeStrategy indicates the operation mode for the air handling unit. Plant Mode supports following operation modes: Plant Mode Description 0 AHU Off 2 Night cycle 3 Night Purge 4 Occupied operation 5 Extended operation 11 AHU Off Delayed Mode 21 Freeze alarm 22 Fan alarm 23 Fire alarm EIO0000000663 05/2014 35 AHUTempCntrlStrategy Section 2.4 Pin Description Pin Description What Is in This Section? This section contains the following topics: Topic 36 Page Input Pin Description 37 Output Pin Description 44 EIO0000000663 05/2014 AHUTempCntrlStrategy Input Pin Description Pin Diagram The following graphic shows the pin diagram of AHUTempCntrlStrategy. EIO0000000663 05/2014 37 AHUTempCntrlStrategy Input Pin Description Input Data Type Range Scaling/Unit Description EnableIn CJ_BIT TRUE or FALSE N/A TRUE: Enables the function block. FALSE: Disables the function block. The outputs including the Alert and Alarm outputs are set to 0. DischargeAirTemp CJ_ANALOG N/A 0.1° C/° F Discharge air temperature. The alarm due to this input sets the following outputs to 0: HeatingControlSignal DamperControlSignal CoolingControlSignal FanControlSignal ReturnAirTemp CJ_ANALOG N/A 0.1° C/° F Return air temperature (optional). Refer also to the description for ReturnAirTemp below this table. OutdoorAirTemp CJ_ANALOG N/A 0.1° C/° F Outdoor air temperature. When this input indicates a missing or a short circuit sensor alarm, the function block disables the following functions: Summer compensation Winter compensation Economizer function Setp CJ_SHORT –32768...32767 0.1° C/° F Setpoint DamperEndswitch CJ_BIT TRUE or FALSE N/A Damper open TRUE: Damper open (default) FALSE: Damper close PlantMode CJ_BYTE 0...23 1 Refer Plant Mode (see page 35). ReturnAirTemp If this input is not connected, the function block does not generate an analog channel alarm and operates in the Constant DAT control regardless of the ControlMode input. The following functions are disabled if this input is not connected to the function block: Summer compensation Compensated DAT control Return air temperature sensor range checks Return air temperature short circuit alarm Return air temperature missing alarm Economizer mode 38 EIO0000000663 05/2014 AHUTempCntrlStrategy Parameter Description Parameters like FanSeqStart1, FanSeqStop1, HeatingSeqStart, HeatingSeqStop, DamperSeqStart, DamperSeqStop, CoolingSeqStart, CoolingSeqStop, FanSeqStart2, FanSeqStop2, DamperMode, EconomizerMode, CoolingMode, CoolingNbStages, FanMode, FreezeRecoveryIncr, FreezeRecoveryDur are controlled parameters. Controlled parameters can be changed, however the changes only become effective after a reset of the function block. Parameter Data Type Range Scaling/ Unit Description ControlMode CJ_BYTE 0 and 1 N/A Control mode 1 Return air temperature compensated DAT 0 Constant DAT Default: 0 Pb_ReturnAirControl CJ_WORD 1...500 0.1° C/° F Pb RAT control Default: 40 DischargeAirTempMin CJ_SHORT –580...3020 0.1° C/° F Minimum DAT Setpoint Default:160 DischargeAirTempMax CJ_SHORT –580...3020 0.1° C/° F Maximum DAT Setpoint Default: 260 HeatingLimit CJ_SHORT –580...3020 0.1° C/° F OAT limit heating closed Default: 200 CoolingLimit CJ_SHORT –580...3020 0.1° C/° F OAT limit cooling closed Default: 140 WinterCompOutsideAirTempMin CJ_SHORT –580...3020 0.1° C/° F Winter compensation OAT low Default: –100 WinterCompOutsideAirTempMax CJ_SHORT –580...3020 0.1° C/° F Winter compensation OAT high Default: 100 WinterCompOutsideAirTempOffset CJ_SHORT 0... 200 0.1° C/° F Winter compensation OAT offset Default: 40 SummerCompOutsideAirTempMin CJ_SHORT –580...3020 0.1° C/° F Summer compensation OAT low Default: 200 SummerCompOutsideAirTempMax CJ_SHORT –580...3020 0.1° C/° F Summer compensation OAT high Default: 300 SummerCompOutsideAirTempOffset CJ_SHORT 0... 200 0.1° C/° F Summer compensation OAT offset Default: 40 EIO0000000663 05/2014 39 AHUTempCntrlStrategy Parameter Data Type Range Scaling/ Unit Description Pb CJ_WORD 1... 500 0.1 Pb DAT control Default: 60 Ti CJ_WORD 0...3600 1sec Ti DAT control Default: 0 Td CJ_WORD 0...3600 1sec Td DAT control Default: 0 FanSeqStart1 CJ_WORD 0...1000 0.1% FCS startpoint 1 Default: 0 Controlled parameter. Changes only become effective after a reset of the function block. FanSeqStop1 CJ_WORD 0...1000 0.1% FCS endpoint 1 Default: 200 Controlled parameter. Changes only become effective after a reset of the function block. HeatingSeqStart CJ_WORD 0...1000 0.1% HCS startpoint Default: 200 Controlled parameter. Changes only become effective after a reset of the function block. HeatingSeqStop CJ_WORD 0...1000 0.1% HCS endpoint Default: 400 Controlled parameter. Changes only become effective after a reset of the function block. DamperSeqStart CJ_WORD 0...1000 0.1% DCS startpoint Default: 400 Controlled parameter. Changes only become effective after a reset of the function block. DamperSeqStop CJ_WORD 0...1000 0.1% DCS endpoint Default: 600 Controlled parameter. Changes only become effective after a reset of the function block. 40 EIO0000000663 05/2014 AHUTempCntrlStrategy Parameter Data Type Range Scaling/ Unit Description CoolingSeqStart CJ_WORD 0...1000 0.1% CCS startpoint Default: 600 Controlled parameter. Changes only become effective after a reset of the function block. CoolingSeqStop CJ_WORD 0...1000 0.1% CCS endpoint Default: 800 Controlled parameter. Changes only become effective after a reset of the function block. FanSeqStart2 CJ_WORD 0...1000 0.1% FCS startpoint 2 Default: 800 Controlled parameter. Changes only become effective after a reset of the function block. FanSeqStop2 CJ_WORD 0...1000 0.1% FCS endpoint 2 Default: 1000 Controlled parameter. Changes only become effective after a reset of the function block. DamperMode CJ_BYTE 0 and 1 N/A Mode dampers 1 Open-close 0 Modulating Default: 0 Controlled parameter. Changes only become effective after a reset of the function block. DamperActuatorRuntime CJ_WORD 0... 300 sec Damper runtime Minimum delay to start Default: 150 DamperMinPosition CJ_WORD 0...1000 0.1% Minimum damper position Default: 200 MinFanFrequency CJ_WORD 0...1000 0.1Hz Minimum frequency FCS Default: 200 MaxFanFrequency CJ_WORD 0... 2000 0.1Hz Maximum frequency FCS Default: 500 EIO0000000663 05/2014 41 AHUTempCntrlStrategy Parameter Data Type Range Scaling/ Unit Description EconomizerMode CJ_BIT TRUE or FALSE N/A Economizer mode TRUE On FALSE Off Default: TRUE Controlled parameter. Changes only become effective after a reset of the function block. EconomizerDiff CJ_SHORT 1...100 0.1° C/° F Economizer difference Default: 20 EconomizerOutdoorAirTempMax CJ_SHORT –580...3020 0.1° C/° F Maximum OAT economizer mode Default: 300 CoolingMode CJ_BYTE 0 and 1 N/A Cooling mode 1 DX 0 Modulating Default: 0 Controlled parameter. Changes only become effective after a reset of the function block. CoolingNbStages CJ_BYTE 0...8 N/A Cooling DX number of stages Default: 0 Controlled parameter. Changes only become effective after a reset of the function block. FanMode CJ_BYTE 0 and 1 N/A Fan mode 0 variable speed based on DAT 1 variable speed based on RAT 2 1 Stage Default: 0 Controlled parameter. Changes only become effective after a reset of the function block. FreezeLimit 42 CJ_SHORT –580... 3020 0.1° C/° F OAT limit frost protection Default: 60 EIO0000000663 05/2014 AHUTempCntrlStrategy Parameter Data Type Range Scaling/ Unit Description FreezeRecoveryIncr CJ_SHORT 0... 500 0.1° C/° F Freeze recovery DAT step increase Default: 100 Controlled parameter. Changes only become effective after a reset of the function block. FreezeRecoveryDur CJ_WORD 0...1200 sec Freeze recovery duration Default: 600 Controlled parameter. Changes only become effective after a reset of the function block. DischargeAirTempMaxLimit CJ_SHORT –580... 3020 0.1° C/° F DAT maximum temperature Default: 400 DischargeAirTempMinLimit CJ_SHORT –580... 3020 0.1° C/° F DAT minimum temperature Default: 120 ReturnAirTempMaxLimit CJ_SHORT –580... 3020 0.1° C/° F RAT maximum temperature Default: 400 ReturnAirTempMinLimit CJ_SHORT –580... 3020 0.1° C/° F RAT minimum temperature Default: 120 NOTE: A valid parameter input resets an alarm or alert automatically. A constant hysteresis of 10 is considered wherever the analog input channel is compared to a limit. EIO0000000663 05/2014 43 AHUTempCntrlStrategy Output Pin Description Output Pin Description Output Data Type Range Scaling/ Unit Description EnableOut CJ_BIT TRUE or FALSE N/A TRUE: Function block is enabled. FALSE: Function block is disabled. DischargeAirTempSetp CJ_SHORT –32768...32767 0.1° C/° F DAT setpoint HeatingControlSignal CJ_WORD 0...1000 0.1% Heating coil signal DamperControlSignal CJ_WORD 0...1000 0.1% Damper control signal CoolingControlSignal CJ_WORD 0...1000 0.1% FanControlSignal CJ_WORD MinFanFrequency to 0.1Hz MaxFanFrequency Fan control signal Alert CJ_BIT TRUE or FALSE N/A Alert AlertID CJ_WORD 0...255 N/A Alert ID (see page 45) Alarm CJ_BIT TRUE or FALSE N/A Alarm AlarmID CJ_WORD 0...7 N/A Alarm ID (see page 48) Output Data Type Range Scaling/ Unit Description PIDOutput CJ_WORD 0...1000 N/A PID output Version[2] Array of N/A 2 CJ_BYTE N/A Version information of the function block Version[0] - Function block version Version[1] - Function block revision Cooling coil signal Parameter Description 44 EIO0000000663 05/2014 AHUTempCntrlStrategy Alert ID Description The AlertID output represents a value between 0 and 255, whereby each bit represents an alert. The bits and their description are described in the following table: Alert Bit Alert Cause Effect 0 Invalid parameter range. An alert is generated, when one of the following parameters is out of range. (Pb_ReturnAirControl < 1 or Pb_ReturnAirControl > 500) (DischargeAirTempMin < –580 or DischargeAirTempMin > 3020) (DischargeAirTempMax < –580 or DischargeAirTempMax > 3020) (HeatingLimit < –580 or HeatingLimit > 3020) (CoolingLimit < –580 or CoolingLimit > 3020) (WinterCompOutsideAirTempMin < –580 or WinterCompOutsideAirTempMin >3020) (WinterCompOutsideAirTempMax < –580 or WinterCompOutsideAirTempMax > 3020) (WinterCompOutsideAirTempOffset < 0 or WinterCompOutsideAirTempOffset > 200) (SummerCompOutsideAirTempMin < –580 or SummerCompOutsideAirTempMin > 3020) (SummerCompOutsideAirTempMax < –580 or SummerCompOutsideAirTempMax > 3020) (SummerCompOutsideAirTempOffset < 0 or SummerCompOutsideAirTempOffset > 200) (Pb < 1 or Pb > 500) (Ti < 0 or Ti > 3600) (Td < 0 or Td > 3600) (FanSeqStart1 < 0 or FanSeqStart1 > 1000) (FanSeqStop1 < 0 or FanSeqStop1 > 1000) (HeatingSeqStart < 0 or HeatingSeqStart > 1000) (HeatingSeqStop < 0 or HeatingSeqStop > 1000) (DamperSeqStart < 0 or DamperSeqStart > 1000) (DamperSeqStop < 0 or DamperSeqStop > 1000) (CoolingSeqStart < 0 or CoolingSeqStart > 1000) (CoolingSeqStop < 0 or CoolingSeqStop > 1000) (FanSeqStart2 < 0 or FanSeqStart2 > 1000) Function block operates, however with limited performance. EIO0000000663 05/2014 45 AHUTempCntrlStrategy Alert Bit Alert Cause 0 (FanSeqStop2 < 0 or FanSeqStop2 > 1000) (FanSeqStart1 ≥ FanSeqStop1) (HeatingSeqStart ≥ HeatingSeqStop) (DamperSeqStart ≥ DamperSeqStop) (CoolingSeqStart ≥ CoolingSeqStop) (FanSeqStart2 ≥ FanSeqStop2) (DamperActuatorRuntime < 0 or DamperActuatorRuntime > 300) (DamperMinPosition < 0 or DamperMinPosition > 1000) (MinFanFrequency < 0 or MinFanFrequency > 1000) (MaxFanFrequency < 0 or MaxFanFrequency > 1000) (EconomizerDiff < 1 or EconomizerDiff > 100) (EconomizerOutdoorAirTempMax < –580 or EconomizerOutdoorAirTempMax > 3020) (CoolingNbStages < 0 or CoolingNbStages > 8) (FreezeLimit < –580 or FreezeLimit > 3020) (FreezeRecoveryIncr < 0 or FreezeRecoveryIncr > 500) (FreezeRecoveryDur < 0 or FreezeRecoveryDur > 1200) (DischargeAirTempMaxLimit < –580 or DischargeAirTempMaxLimit > 3020) (DischargeAirTempMinLimit < –580 or DischargeAirTempMinLimit > 3020) (ReturnAirTempMaxLimit < –580 or ReturnAirTempMaxLimit > 3020) (ReturnAirTempMinLimit < –580 or ReturnAirTempMinLimit > 3020) (DischargeAirTempMin > DischargeAirTempMax (WinterCompOutsideAirTempMin > WinterCompOutsideAirTempMax (SummerCompOutsideAirTempMin > SummerCompOutsideAirTempMax (DischargeAirTempMinLimit > DischargeAirTempMaxLimit (ReturnAirTempMinLimit > ReturnAirTempMaxLimit) (MinFanFrequency > MaxFanFrequency) 46 Effect EIO0000000663 05/2014 AHUTempCntrlStrategy Alert Bit Alert Cause 1 Alert due to analog input channel for return air temperature ReturnAirTemp. Function block This alert is generated if the return air temperature sensor is not connected or operates. short-circuited. Temperature control changes to constant DAT control RAT compensated DAT control is disabled Summer compensation is disabled Default value is initialized to this input to differentiate between a disconnected sensor and an actual sensor detected error. 2 Alert due to analog input channel for outdoor air temperature OutdoorAirTemp. Function block 3 Alert when discharge air temperature exceeds maximum limit. If DischargeAirTemp > DischargeAirTempMaxLimit, then this bit is TRUE, Hysteresis = 10. Alert for limited performance 4 Alert when discharge air temperature is below minimum limit. If DischargeAirTemp < DischargeAirTempMinLimit, then this bit is TRUE, Hysteresis = 10. Alert for limited performance 5 Alert when return air temperature exceeds maximum limit. If ReturnAirTemp > ReturnAirTempMaxLimit, then this bit is TRUE, Hysteresis = 10. Alert for limited performance 6 Alert when return air temperature is below minimum limit. If ReturnAirTemp < ReturnAirTempMinLimit, then this bit is TRUE, Hysteresis = 10. Alert for limited performance 7 Alert due to improper DX cooling configuration. If CoolingNbStages is set as 0 and DX stage mode is selected, this bit is TRUE. Alert for limited performance EIO0000000663 05/2014 Effect operates, however with limited performance. Following functions are disabled: Summer compensation Winter compensation Economizer 47 AHUTempCntrlStrategy Alert Bit Alert Cause Effect 8 Present changes are The change of a controlled parameter is not active. Changing a controlled parameter requires a machine restart. The controlled configuration parameter not active. Function block uses the setting is effective only after restart of the function block. previously set values. AlarmID Description The AlarmID output represents a value between 0 and 7, whereby each bit represents a detected alarm. The bits and their description are described in the following table: Alarm Bit Alarm Cause Effect 0 Invalid parameter value An alarm is generated when one of the following parameters is out of range: (ControlMode < 0 or ControlMode > 1) (DamperMode < 0 or DamperMode > 1) (CoolingMode < 0 or CoolingMode > 1) (FanMode < 0 or FanMode > 2) Function block is disabled and the outputs are set to 0. 1 Alarm due to discharge air temperature analog input DischargeAirTemp. This alarm is generated when discharge air temperature sensor is short-circuited or disconnected. Function block is disabled and the outputs are set to 0. 2 Dampers are not opened within damper actuator runtime Function block is disabled and the outputs are set to 0. 48 EIO0000000663 05/2014 AHUTempCntrlStrategy Section 2.5 Troubleshooting Troubleshooting Troubleshooting Troubleshooting Alarm / Alert Problem Solution AlarmID.0 TRUE Invalid parameter value Check the parameters against their ranges. AlarmID.1 TRUE Discharge air temperature sensor is short-circuited or disconnected Check if the discharge air temperature sensor is connected to the controller. AlarmID.2 TRUE Dampers are not opened within the actuator runtime Check the damper end switch and the actuator run time. AlertID.0 TRUE Invalid parameter value Check the parameters against their ranges. AlertID.1 TRUE Return air temperature sensor is shortcircuited or disconnected Check if the sensor is connected to the controller. AlertID.2 TRUE Outdoor air temperature sensor is shortcircuited or disconnected AlertID.3 TRUE Discharge air temperature exceeds maximum limit. AlertID.4 TRUE Discharge air temperature is below the minimum limit. AlertID.5 TRUE Return air temperature exceeds maximum limit. Check, if the cooling valve is open. Check air flow and cold water production. AlertID.6 TRUE Return air temperature is below the minimum limit. Check, if the heater valve is open. Check air flow and hot water production. AlertID.7 TRUE Improper configuration of DX cooling Check, if the value of parameter CoolingNbStages is greater than 0 AlertID.8 TRUE Configuration parameters are changed which requires the function block to restart Disable the function block and enable the function block again Heating valve is closed Outside air temperature > HeatingLimit Increase parameter HeatingLimit Cooling valve is closed Outside air temperature < CoolingLimit Decrease parameter CoolingLimit Check, if the heater valve is closed and cooling value is open. Check the cold water production. Fans are not started Dampers must open before the fan starts Open the dampers first in case of Open/Close Damper control Start the fan after expiration of the damper actuator run time EIO0000000663 05/2014 49 AHUTempCntrlStrategy Alarm / Alert Problem Solution The outputs remain at 0 Function block is disabled Enable the function block Check the PlantMode Dampers are at minimum position Economizer function is active Set the outside air temperature > EconomizerOutdoorAirTempMax Dampers are working in reverse direction. Economizer function is active Set the outside air temperature > ReturnAirTemp Winter compensation is active Discharge air temperature setpoint is high Check outside air temperature and winter compensation parameters Freeze recovery/avoidance is active Discharge air temperature setpoint is high Check parameters for freeze recovery/avoidance 50 EIO0000000663 05/2014 SoHVAC AHUPlantModeStrategy EIO0000000663 05/2014 Chapter 3 AHU Plant Mode Strategy: AHUPlantModeStrategy AHU Plant Mode Strategy: AHUPlantModeStrategy What Is in This Chapter? This chapter contains the following sections: Section Topic Page 3.1 Functional and Machine Overview 52 3.2 Architecture 56 3.3 Function Block Description 59 3.4 Pin Description 64 3.5 Troubleshooting 71 EIO0000000663 05/2014 51 AHUPlantModeStrategy Section 3.1 Functional and Machine Overview Functional and Machine Overview What Is in This Section? This section contains the following topics: Topic 52 Page Functional Overview 53 Machine Overview 55 EIO0000000663 05/2014 AHUPlantModeStrategy Functional Overview Functional Description The AHUPlantModeStrategy function block is a control strategy function block and defines the operation mode of the air handling unit. This function block is used in conjunction with the other air handling unit function block AHUTempCntrlStrategy. Why Use the AHUPlantModeStrategy Function Block? The AHUPlantModeStrategy function block is used for the following purposes: Purpose Description Improve comfort conditions improve the comfort of occupants by means of scheduled operation. Reduce energy consumption reduce energy consumption by means of the operating modes: night cycle night purge Handle alarm situations freeze alarm fan alarm fire alarm Features of the AHUPlantModeStrategy Function Block The AHUPlantModeStrategy function block provides the following features: cools down the building with cool outdoor air during summer periods (when building is unoccupied) the AHUPlantModeStrategy function block optimizes the AHU operation when the building is occupied, at night times and in alarm situations (freeze and fan alarms) helps reduce cooling energy helps maintain consistent machine operation supports the following operating modes: Night Cycle - The room temperature reduces (during heating season) or increases (during cooling season) to reduce energy consumption during unoccupied periods. Night Purge - The cool outside air is used to cool down the building during the night. Power up initialization delay: the Plant mode will be initialized with 0. It can change the value from 0 into the values 2, 3, 4 or 5 only once the InitializationDelay period has elapsed. This feature can be disabled by entering the value 0 for the parameter InitializationDelay. The AHU is switched off after a delay. This feature can be disabled by entering the value 0 for the parameter AHUOffDelay. EIO0000000663 05/2014 53 AHUPlantModeStrategy Protective Features The AHUPlantModeStrategy function block provides the following protective features to help you avoid the potentials of certain sources of machine malfunction: 54 Protective Feature Description Input range validation Inputs and parameter ranges are validated to avoid out of range data from being accepted directly. Alarm/alert notification If an invalid value is entered, an alarm or an alert is generated: alarm: the machine is switched off alert: the machine keeps on operating, however with reduced performance Controlled parameter Parameters like NightpurgeTimeStart, NightpurgeTimeStop are controlled. The configuration of these parameters can be changed, however the changes are effective only after the restart of the function block. EIO0000000663 05/2014 AHUPlantModeStrategy Machine Overview Machine View The following picture shows the interaction between the function block and the machine: AHUTempCntrlStrategy controls the discharge air temperature by sequencing fan speeds, heating coil, dampers and cooling coil. AHUPlantModeStrategy is connected to the AHUTempCntrlStrategy and controls the operation modes of the Air Handling Unit. EIO0000000663 05/2014 55 AHUPlantModeStrategy Section 3.2 Architecture Architecture What Is in This Section? This section contains the following topics: Topic 56 Page Hardware Architecture 57 Software Architecture 58 EIO0000000663 05/2014 AHUPlantModeStrategy Hardware Architecture Hardware Architecture Overview The figure below shows the hardware architecture of Air Handling Unit. 1 2 3 4 5 Main power supply M168 Controller M168 Graphic display Variable speed drive ATV••/••• Modbus Motor control EIO0000000663 05/2014 57 AHUPlantModeStrategy Software Architecture Function Block Diagram The following function block diagram gives you an overview of the software architecture: The block diagram shows on the left hand side the inputs, the Process Variables, on the right hand side the outputs, the Process Commands, as well as the function block AHUPlantModeStrategy: The following table gives you an overview of the functions of AHUPlantModeStrategy 58 Function Description Decision Matrix Sets plant modes depending on input and parameters. EIO0000000663 05/2014 AHUPlantModeStrategy Section 3.3 Function Block Description Function Block Description AHUPlantModeStrategy Function Block Function Block Description The AHUPlantModeStrategy function block sets following operation modes of an air handling unit (AHU): AHU Off Mode Night Cycle Mode Night Purge Mode Occupied Operation Mode Extended Operation Mode AHU Off Delayed Freeze Alarm Mode Fan Alarm Mode Fire Alarm Mode Plant Mode The plant mode signal is a coded signal representing the operation mode for an air handling unit. AHUPlantModeStrategy supports the following plant modes: Value Plant Mode 0 AHU Off 2 Night Cycle 3 Night Purge 4 Occupied operation 5 Extended operation 11 AHU Off Delayed 21 Freeze alarm 22 Fan alarm 23 Fire alarm EIO0000000663 05/2014 59 AHUPlantModeStrategy NOTE: If more than one plant mode condition is satisfied, the plant mode with the higher value takes priority and other plant modes are discarded. If the room temperature sensor (RoomTemp) is not connected, the modes Night Cycle and Night Purge are disabled. If the outdoor air temperature sensor (OutdoorAirTemp) is not connected, the Night Purge mode is disabled. Night Cycle Mode The Night Cycle mode maintains a lower room temperature during heating season and higher room temperature during cooling season. This mode is selected when the room temperature input RoomTemp exceeds the maximum limit RoomTempMaxLimit and reduces below the minimum limit RoomTempMinLimit when it is connected. The functionality of Night Cycle mode with hysteresis is shown in the timing diagram below: NOTE: The other plant mode conditions in the timing diagram are assumed as not active. 60 EIO0000000663 05/2014 AHUPlantModeStrategy Night Purge Mode The Night Purge Mode reduces morning cool down energy requirements by using cool outside air to purge and pre-cool the building. Night Purge is active if the following conditions are satisfied: If the current date and time is within the range of Start and Stop time of Night Purge mode. If RoomTemp ≥ NightpurgeRoomTempMin with fixed hysteresis of 1.0° C The functionality of hysteresis in this condition is shown below: If OutdoorAirTemp ≥ NightpurgeOutdoorAirTempMin with fixed hysteresis of 1.0° C The functionality of hysteresis in this condition is shown below: EIO0000000663 05/2014 61 AHUPlantModeStrategy If actual difference between RoomTemp and OutdoorAirTemp ≥ NightpurgeOutdoorAirTempDiff. The functionality of hysteresis in this condition is shown below: The parameter NightpurgeDays is used to enable the Night Purge Mode based on the current day input from RealTimeClock. Each bit in the parameter represents one day as shown in the table below. If real time clock is not connected, Night Purge Mode is deactivated. The night purge function is enabled only when the input RealTimeClock is connected to the real time clock of the controller. NightPurgeDays Bit Day 0 Sunday 1 Monday 2 Tuesday 3 Wednesday 4 Thursday 5 Friday 6 Saturday 7 Not used Occupied Operation Mode The Occupied Operation mode is the standard mode during scheduled occupancy. The occupancy is signaled through the input Schedule. Extended Operation Mode The Extended Operation mode is activated when the input ExtendedOper is TRUE. This mode is used during the extended occupancy due to overtime. 62 EIO0000000663 05/2014 AHUPlantModeStrategy AHU Off Delayed Mode AHU Off Delayed mode is required when the air handling unit is equipped with electrical heater or with humidifiers. In that case the temperature and humidification process is switched off, but the fans stays in operation to cool down electrical heating coils or remove excessive humidity from the ducts. Switching Off of the operation of the AHU is delayed by the period given by the parameter AHUOffDelay. This delay can be disabled by entering the value 0 for the parameter AHUOffDelay. In case of an alarm, the AHU is switched off immediately. Freeze Alarm Mode The Freeze Alarm Mode activates when the input FreezeStatAlarm is TRUE. When this mode is TRUE, following operations are activated and executed by AHUTempCntrlStrategy: Dampers are closed Heating is set to 100% Cooling is disabled Fans are switched off Fan Alarm Mode The Fan Alarm Mode is activated when the input FanAlarm is TRUE. When this mode is TRUE, following operations are activated and executed by other AHU function blocks: Temperature controller is switched Off Dampers are closed Heating and cooling is disabled Fans are switched Off Fire Alarm Mode The Fire Alarm Mode is activated when the input FireAlarm is TRUE. When this mode is TRUE, following operations are activated and executed by other AHU function blocks: Temperature controller is switched Off Dampers are closed Heating and cooling is disabled Fans are switched off EIO0000000663 05/2014 63 AHUPlantModeStrategy Section 3.4 Pin Description Pin Description What Is in This Section? This section contains the following topics: Topic 64 Page Input Pin Description 65 Output Pin Description 68 EIO0000000663 05/2014 AHUPlantModeStrategy Input Pin Description Pin Diagram The following picture shows the pin diagram of AHUPlantModeStrategy: Input Pin Description Input Data Type Range Scaling / Unit Description EnableIn CJ_BIT TRUE or FALSE N/A TRUE: Enables the function block. FALSE: Disables the function block. FreezeStatAlarm CJ_BIT TRUE or FALSE N/A Freeze Alarm FanAlarm CJ_BIT TRUE or FALSE N/A Fan Alarm FireAlarm CJ_BIT TRUE or FALSE N/A Fire Alarm ExtendedOper CJ_BIT TRUE or FALSE N/A Extended Operation Schedule CJ_BIT TRUE or FALSE N/A Schedule (Digital) EIO0000000663 05/2014 65 AHUPlantModeStrategy Input Data Type Range Scaling / Unit Description RoomTemp CJ_ANALOG N/A 0.1° C / ° F Room Temperature If the RoomTemp input is not connected, following functions are disabled: Night Purge Night Cycle Room temperature sensor range checks Room temperature short circuit alarm Room temperature missing alarm OutdoorAirTemp CJ_ANALOG N/A 0.1° C / ° F Outdoor Air Temperature Night Purge Mode is deactivated if the input OutdoorAirTemp is not connected. This is an optional input RealTimeClock CJ_DATETIME N/A N/A Real Time Clock (RTC) input from the PLC. This input must be connected to the standard Hardware RTC. Night Purge Mode is deactivated if the input RealTimeClock is not connected. Default value: 1/1/2000,12:00 AM This is an optional input. This is an optional input Parameter Description The parameters NightpurgeTimeStart and NightpurgeTimeStop are controlled parameters. Controlled parameters can be changed, however the changes only become effective after a reset of the function block. Parameter Data Type Range Scaling / Unit Description AHUOFFDelay CJ_WORD 0...600 sec AHU is switched off after a delay. The feature can be disabled by entering 0 for this parameter. InitializationDelay CJ_WORD 0...600 sec After a power failure or a download, the Plant Mode is initialized with 0. Once the InitializationDelay has elapsed, the value can change from 0 to 2, 3, 4 or 5. The feature can be disabled by entering 0 for this parameter. 66 EIO0000000663 05/2014 AHUPlantModeStrategy Parameter Data Type Range Scaling / Unit Description NightpurgeOutdoorAirTempMin CJ_SHORT –580...3020 0.1° C / ° F Night Purge minimum outdoor air temperature Default: 100 NightpurgeRoomTempMin CJ_SHORT –580...3020 0.1° C / ° F Night Purge minimum room temperature Default: 180 NightpurgeOutdoorAirTempDiff CJ_SHORT 0...500 0.1° C / ° F Night Purge difference between room temperature and outdoor air temperature Default: 40 NightpurgeOutdoorAirTempHys CJ_SHORT 0...500 0.1° C / ° F Night Purge hysteresis outdoor air temperature Default: 20 NightpurgeRoomTempHys CJ_SHORT 0...500 0.1° C / ° F Night Purge hysteresis room temperature Default: 20 NightpurgeTimeStart CJ_WORD 0...2359 N/A Night Purge start time Default: 200 NightpurgeTimeStop CJ_WORD 0...2359 N/A Night Purge stop time Default: 600 NightpurgeDays CJ_BYTE 0...255 N/A Night Purge days. Refer Night Purge-Plant mode (see page 61). Default: 127 NightcycleRoomTempMin CJ_SHORT –580...3020 0.1° C / ° F Night Cycle minimum room temperature Default: 100 NightcycleRoomTempMax CJ_SHORT –580...3020 0.1° C / ° F Night Cycle maximum room temperature Default: 300 NightcycleRoomTempHys CJ_SHORT 0...500 0.1° C / ° F Night Cycle hysteresis room temperature Default: 20 RoomTempMaxLimit CJ_SHORT –580...3020 0.1° C / ° F Maximum room temperature Default: 400 RoomTempMinLimit CJ_SHORT –580...3020 0.1° C / ° F Minimum room temperature Default: 120 EIO0000000663 05/2014 67 AHUPlantModeStrategy Output Pin Description Output Pin Description Output Data Type Range Scaling / Unit Description EnableOut CJ_BOOL TRUE or FALSE N/A TRUE: Function block is enabled. FALSE: Function block is disabled. PlantMode CJ_BYTE 0...23 N/A Plant Mode (see page 59) Alert CJ_BOOL TRUE or FALSE N/A Alert Bit AlertID CJ_WORD 0...1023 N/A Alert ID Alarm CJ_BOOL TRUE or FALSE N/A Alarm Bit For future use AlarmID CJ_WORD N/A N/A Alarm ID For future use Parameter Description Output Data Type Range Scaling/ Unit Description PIDOutput CJ_WORD 0...1000 N/A PID output Version[2] Array of 2 CJ_BYTE N/A N/A Version information of the function block Version[0] - Function block version Version[1] - Function block revision 68 EIO0000000663 05/2014 AHUPlantModeStrategy AlertID Description The AlertID output represents a value between 0 and 1023, whereby each bit represents an alert. The bits and their description are described in the following table: Alert Bit Alert Cause 0 Machine operates with less efficiency. Invalid parameter range. An alert is generated if any of the following parameters is out of range. (AHUOffDelay > 600) (InitializationDelay > 600) (NightpurgeOutdoorAirTempMin < –580 or NightpurgeOutdoorAirTempMin > 3020) (NightpurgeRoomTempMin < –580 or NightpurgeRoomTempMin > 3020) (NightpurgeOutdoorAirTempDiff < 0 or NightpurgeOutdoorAirTempDiff > 500) (NightpurgeOutdoorAirTempHys < 0 or NightpurgeOutdoorAirTempHys > 500) (NightpurgeTimeStart < 0 or NightpurgeTimeStart > 2359) (NightpurgeTimeStop < 0 or NightpurgeTimeStop > 2359) (NightpurgeTimeStart = NightpurgeTimeStop) (NightpurgeRoomTempHys < 0 or NightpurgeRoomTempHys > 500) (NightcycleRoomTempMin < –580 or NightcycleRoomTempMin > 3020) (NightcycleRoomTempMax < –580 or NightcycleRoomTempMax > 3020) (NightcycleRoomTempHys < 0 or NightcycleRoomTempHys > 500) (RoomTempMaxLimit < –580 or RoomTempMaxLimit > 3020) (RoomTempMinLimit < –580 or RoomTempMinLimit > 3020) If NightpurgeTimeStart or NightpurgeTimeStop values are not suitable to time format 00:00 (hours 00...23 and minutes 00...59). 1 Alert due to detected analog input channel error for Night Cycle and Night Purge Mode are deactivated. Room Temperature RoomTemp 2 Alert due to detected analog input channel error for Night Purge Mode is deactivated. Outdoor Air Temperature OutdoorAirTemp 3 Room temperature ≥ Maximum room temperature Alert to adjust the room temperature. 4 Room temperature ≤Minimum room temperature Alert to adjust the room temperature. EIO0000000663 05/2014 Effect 69 AHUPlantModeStrategy Alert Bit Alert Cause Effect 5 Freeze alarm Dampers are closed. Heaters are set to 100%. Cooling is disabled. Fans are switched Off. 6 Fan alarm Dampers are closed. Temperature control is switched off. Heating and cooling is disabled. Fans are switched off. 7 Fire alarm Dampers are closed Temperature control is switched off. Heating and cooling is disabled Fans are switched off. 8 Real time clock is not connected Night Purge Mode is deactivated. 9 A controlled parameter has been changed, which requires a machine restart. The new configuration parameter is effective after restart of the function block. Alert due to a parameter change that has not been made effective yet. 70 EIO0000000663 05/2014 AHUPlantModeStrategy Section 3.5 Troubleshooting Troubleshooting Troubleshooting Troubleshooting Alarm / Alert Problem Solution AlertID.0 TRUE Incorrect parameter value or configuration Check the parameters against their recommended ranges. AlertID.1 TRUE Room temperature input sensor is disconnected or short-circuited. Check if the room temperature sensor is connected to the controller and working properly. AlertID.2 TRUE Room temperature input sensor is disconnected or short-circuited. Check if the outdoor air temperature sensor is connected to the controller. AlertID.3 TRUE Room Temperature (RMT) input sensor value exceeds maximum RMT. Check the actual room temperature. AlertID.4 TRUE Room temperature value exceeds the Check the actual room temperature. maximum set value or is below the minimum Check cooling coil. value due to: Check fans. inoperable RMT sensor detected error in configuration parameter AHU calculated error value of DAT to high inoperable cooling function AlertID.5 TRUE AHU or its components are inoperable. AlertID.6 TRUE Fan is not operating. Check motor protection of fans. Check the dampers. Reset the fans. AlertID.7 TRUE Fire alarm input activated Validate that the input is in the correct Check and open the dampers. Reset the heater temperature. Set and enable the cooler. Switch on fans. state. Intervention required by the operator. AlertID.8 TRUE Real time clock is not operating. Check the real time clock connection. AlertID.9 TRUE Controlled parameters are changed. Restart the function block. EIO0000000663 05/2014 71 AHUPlantModeStrategy 72 EIO0000000663 05/2014 SoHVAC ATV••ModbusCom / ATV•••ModbusCom EIO0000000663 05/2014 Chapter 4 ATV Modbus Communication: ATV••ModbusCom / ATV••• ModbusCom ATV Modbus Communication: ATV••ModbusCom / ATV••• ModbusCom What Is in This Chapter? This chapter contains the following sections: Section Topic Page 4.1 Functional and Machine Overview 74 4.2 Architecture 77 4.3 Function Block Description 80 4.4 Pin Description 82 4.5 Troubleshooting 88 EIO0000000663 05/2014 73 ATV••ModbusCom / ATV•••ModbusCom Section 4.1 Functional and Machine Overview Functional and Machine Overview What Is in This Section? This section contains the following topics: Topic 74 Page Functional Overview 75 Machine Overview 76 EIO0000000663 05/2014 ATV••ModbusCom / ATV•••ModbusCom Functional Overview Functional Description The ATV••/•••ModbusCom function block manages the communication between the controller and the ATV••/••• drive through Modbus serial line communication protocol. The function block supports the following ATV drives: ATV12, ATV21, ATV212, ATV31, ATV312, ATV61 and ATV71. Why Use the ATV••/•••ModbusCom Function Block? The ATV••/•••ModbusCom function block is used to manage the following ATV••/••• drive functionality: Control of Start and Stop operation Control of frequency Monitoring the connection Features of the ATV••/•••ModbusCom Function Block The ATV••/•••ModbusCom function block facilitates the following features: reads and monitors the ATV drive status writes the ATV command generates an alarm in case of a detected communication error reports the detected ATV••/••• drive failure and alarms Protective Features The ATV••/•••ModbusCom function block provides the following protective features to help you avoid the potentials of certain sources of machine malfunction: Protective Feature Description Input range validation Input ranges are validated to avoid out of range data from being accepted directly. Alarm-/alert notification If an invalid value is entered, an alarm or an alert is generated: alarm: the machine is switched off alert: the machine keeps on operating, however with reduced performance Controlled parameter The input parameters DeviceNr and TimeOut are controlled. The values of these parameters can be changed, however the changes are effective only after the restart of the function block. EIO0000000663 05/2014 75 ATV••ModbusCom / ATV•••ModbusCom Machine Overview Machine View The following picture shows an example of the interaction between the function block and the machine. The ATV••/•••ModbusCom function blocks are general purpose function blocks and can be used for various machine equipment like fans, compressors and pumps. ATV21ModbusCom In this example, the function block manages the communication between the controller and the ATV drive through Modbus communication protocol. FanMgmt The function block controls the optimum number of fans and the frequency depending on the required air flow in the machine. FanMgmt manages the switch On/Off of fans. 76 EIO0000000663 05/2014 ATV••ModbusCom / ATV•••ModbusCom Section 4.2 Architecture Architecture What Is in This Section? This section contains the following topics: Topic Page Hardware Architecture 78 Software Architecture 79 EIO0000000663 05/2014 77 ATV••ModbusCom / ATV•••ModbusCom Hardware Architecture Hardware Architecture Overview The ATV••/•••ModbusCom can be used in various HVAC&R machines to control equipment like fans, pumps and compressors. The figure below shows the architecture of the Air Cooled Chiller: 1 2 3 4 5 6 78 Main power supply M168 Controller M168 Graphic display Variable speed drive ATV••/••• Modbus Soft starters Motor Control EIO0000000663 05/2014 ATV••ModbusCom / ATV•••ModbusCom Software Architecture Function Block Diagram The following function block diagram gives you an overview of the software architecture: The block diagram shows on the left hand side the inputs, the Process Variables,on the right hand side the outputs, the Process Commands, as well as the function block ATV••/•••ModbusCom. The following table gives you an overview of the functions of ATV••/•••ModbusCom: Function Description ATV Drive Control checks the ATV drive status Initialization During initialization, the function block reads the minimum and maximum drive frequency. If the requested frequency is not within the frequency limits, an alarm is generated. Modbus Semaphore Manager helps to ensure that the instances have equal rights to send Modbus messages Modbus Queue Manager supports Modbus communication The Modbus Queue has a fixed size of 10 messages. Monitor Modbus Comm helps to ensure a stable communication with the ATV drive EIO0000000663 05/2014 79 ATV••ModbusCom / ATV•••ModbusCom Section 4.3 Function Block Description Function Block Description ATV••/•••ModbusCom Function Block Function Block Description The ATV••/•••ModbusCom function block is used for the communication between the controller and the ATV drive through the Modbus serial connection. The ATV••/•••ModbusCom function block initializes the drive to Start or to Stop. It also checks the Modbus communication. ATV Drive Operation The ATV••/•••ModbusCom function block manages the ATV drive as follows: Initialize the drive Start the drive Stop the drive Check the Modbus communication 80 EIO0000000663 05/2014 ATV••ModbusCom / ATV•••ModbusCom ATV Error Management The ATV drive detected errors and alarms are indicated by the output alarm. The output Alarm is set to TRUE, when the Modbus device is not responding, which means that there is currently no Modbus device communication. The output AlarmID indicates which alarm occurs. The output AlertID indicates which alert occurs. WARNING LOSS OF CONTROL The designer of any control scheme must consider the potential failure modes of control paths and, for certain critical control functions, provide a means to achieve a safe state during and after a path failure. Examples of critical control functions are emergency stop and overtravel stop, power outage and restart. Separate or redundant control paths must be provided for critical control functions. System control paths may include communication links. Consideration must be given to the implications of unanticipated transmission delays or failures of the link. Observe all accident prevention regulations and local safety guidelines.1 Each implementation of this equipment must be individually and thoroughly tested for proper operation before being placed into service. Failure to follow these instructions can result in death, serious injury, or equipment damage. 1 For additional information, refer to NEMA ICS 1.1 (latest edition), "Safety Guidelines for the Application, Installation, and Maintenance of Solid State Control" and to NEMA ICS 7.1 (latest edition), "Safety Standards for Construction and Guide for Selection, Installation and Operation of Adjustable-Speed Drive Systems" or their equivalent governing your particular location. EIO0000000663 05/2014 81 ATV••ModbusCom / ATV•••ModbusCom Section 4.4 Pin Description Pin Description What Is in This Section? This section contains the following topics: Topic 82 Page Input Pin Description 83 Output Pin Description 85 EIO0000000663 05/2014 ATV••ModbusCom / ATV•••ModbusCom Input Pin Description Pin Diagram The following picture shows the pin diagram of ATV••/•••ModbusCom: Input Pin Description Input Data Type Range Scaling/Unit Description xEn CJ_BIT TRUE or FALSE N/A Enables the function block xCommand CJ_BIT TRUE or FALSE N/A Start / stop drive wFreqSetp CJ_WORD 0...65535 0.1 Hz Drive frequency byDeviceNr CJ_BYTE 0…247 N/A Modbus device address wTimeOut CJ_WORD 0...100 for ATV21, ATV212 1...30 for ATV12, ATV61 and ATV71 1...10 for ATV31, ATV312 sec Modbus device time out xDirection CJ_BIT TRUE or FALSE N/A FALSE: forward direction TRUE: reverse direction xReset CJ_BIT TRUE or FALSE N/A Reset drive detected alarm NOTE: Alarms are automatically reset when the input xReset is constant TRUE. NOTE: The inputs byDeviceNr and wTimeOut are controlled parameters. Controlled parameters can be changed, however the changes only become effective after re-enable of the function block. EIO0000000663 05/2014 83 ATV••ModbusCom / ATV•••ModbusCom NOTE: A change of the xDirection input will not have an effect when the drive is in RUN mode. For example, if the drive is in RUN mode and the initial value of xDirection was FALSE (forward direction), changing the value of the input to TRUE (reverse direction) will not have an immediate effect; the drive will continue to command a forward direction. The drive must first be stopped and restarted before the input change is recognized and for the change of direction to take effect. You must carefully manage the module’s Modbus network addresses because each device on the network requires a unique address. Having multiple devices with the same address can cause unpredictable operation of your network and associated equipment. CAUTION LOSS OF COMMUNICATION Each device on the Modbus network must have a unique number. Failure to follow these instructions can result in injury or equipment damage. 84 EIO0000000663 05/2014 ATV••ModbusCom / ATV•••ModbusCom Output Pin Description Output Pin Description Output Data Type Range Scaling/Unit Description wActFreq CJ_WORD 0...65535 0.1 Hz Actual frequency drive byState CJ_BYTE 0...5 N/A State of drive wAlertID CJ_WORD 0...65535 N/A Alert identifier wAlarmID CJ_WORD 0...65535 N/A Alarm identifier NOTE: The ATV drive detected errors and alarms are indicated by the outputs wAlertID and wAlarmID. byState Description The output byState represents a value between 0 and 5, whereby each number represents a state of the ATV drive. The following table describes the values and their description: Value Description 0 Drive initializing 1 Drive stops 2 Drive starting 3 Drive runs 4 Drive stopping 5 Drive in alarm EIO0000000663 05/2014 85 ATV••ModbusCom / ATV•••ModbusCom AlertID Description The AlertID output represents a value between 0 and 7, whereby each bit represents an alert. The bits and their description are described in the following table: Alert Bit Alert Cause Effect 0 The controlled parameter byDeviceNr is changed. Changing a controlled parameter requires a machine restart. The controlled configuration parameter setting is effective only after a restart of the function block. Present changes are not active. The function block uses the previously 1 The controlled parameter wTimeOut is changed. Changing a controlled parameter requires a machine restart. The controlled configuration parameter setting is effective only after a restart of the function block. 2 Frequency is out of range. Frequency is above maximum frequency of the ATV drive. 3 Frequency is out of range. Frequency is below minimum frequency of the ATV drive. 4-15 not used 86 set values. The frequency input is ignored and not communicated to ATV drive. N/A EIO0000000663 05/2014 ATV••ModbusCom / ATV•••ModbusCom AlarmID Description The AlarmID output represents a value between 0 and 7, whereby each bit represents a detected alarm. The bits and their description are described in the following table: Alarm Bit Alarm Cause Effect 0 Invalid range input byDeviceNr The function block is disabled. 1 Invalid range input wTimeOut 2 A communication error has been detected. Communication to ATV drive is not possible. FB will try to automatically recover communication. 3 Reserved N/A 4 An error caused by motor over current has been detected. The motor is stopped. The function block is disabled. 5 An error caused by motor short circuit has been detected. 6 An error caused by motor overload has been detected. 7 An error caused by motor phase loss has been detected. 8 An error caused by mains over voltage has been detected. 9 An error caused by motor input phase loss has been detected. 10 to 15 Not used EIO0000000663 05/2014 N/A 87 ATV••ModbusCom / ATV•••ModbusCom Section 4.5 Troubleshooting Troubleshooting Troubleshooting Troubleshooting Alarm / Alert Problem Solution wAlertID.0 A controlled parameter has been changed. Enable the function block again. wAlertID.1 The frequency is out of range. The frequency is above maximum frequency ATV drive 1. Check the minimum and maximum frequency set in the ATV drive. 2. After changing the ATV drive parameters, disable and enable the function block. 3. Check the application program parameters for maximum frequency settings. wAlertID.2 1. Check the minimum and maximum The frequency is out of range. The frequency set in the ATV drive. frequency is below minimum frequency ATV 2. After changing the ATV drive parameters, drive disable and enable the function block. 3. Check the application program parameters for maximum frequency settings. wAlarmID.0 Invalid parameter value (byDeviceNr) Check the parameters against their ranges. wAlarmID.1 Invalid parameter value (wTimeOut) Check the parameters against their ranges. wAlarmID.2 A communication time out error has been detected. No communication to the Modbus device 1. Check the wiring and addressing externally. 2. Disable and enable the function block. wAlarmID.4 A motor over current error has been detected. Check the motor. wAlarmID.5 A motor short circuit current error has been detected. wAlarmID.6 A motor overload error has been detected. wAlarmID.7 A motor phase loss error has been detected. wAlarmID.8 A mains over voltage error has been detected. wAlarmID.9 A motor input phase loss error has been detected. NOTE: AlarmID.3 is no longer supported. 88 EIO0000000663 05/2014 SoHVAC CompMgmt EIO0000000663 05/2014 Chapter 5 Compressor Management: CompMgmt Compressor Management: CompMgmt What Is in This Chapter? This chapter contains the following sections: Section Topic Page 5.1 Functional and Machine Overview 90 5.2 Architecture 94 5.3 Function Block Description 97 5.4 Pin Description 102 5.5 Troubleshooting 111 EIO0000000663 05/2014 89 CompMgmt Section 5.1 Functional and Machine Overview Functional and Machine Overview What Is in This Section? This section contains the following topics: Topic 90 Page Functional Overview 91 Machine Overview 93 EIO0000000663 05/2014 CompMgmt Functional Overview Functional Description The CompMgmt (Compressor Management) function block controls together with the function block WtrTempDbCntrl (Water Temperature Deadband Control) the chilled water temperature in an HVAC&R system. In a refrigeration machine, compressors need to be managed in a way to help prevent their failures and balance machine lifetime. The CompMgmt function block controls up to 4 compressors and aims to manage the optimum functionality of compressors. For this purpose, CompMgmt provides features for compressor failure management and to optimize operation. Why Use the CompMgmt Function Block? The CompMgmt function block is used for the following purposes: Purpose Description Runtime optimization increase the control accuracy balance operating hours avoid frequent ON/OFF switching of compressors Failure management switch off a compressor in case of a detected failure and switch on another Features of the CompMgmt Function Block The CompMgmt function block provides the following features: supports 1 to 4 compressors switches on and off the number of compressors required to control the chilled water temperature, calculated by the function block WtrTempDbCntrl. balances compressor operating hours by using one of the 3 methods: FIFO Runtime LIFO prevents frequent switching of a compressor by On/Off time management compressor changeover management in case of a detected compressor failure compressor maintenance notification: CompMgmt calculates the compressor operating hours and provides information when maintenance is required. EIO0000000663 05/2014 91 CompMgmt Protective Features The CompMgmt function block provides the following protective features to help you avoid the potentials of certain sources of machine malfunction: Protective Feature Description Input range validation Inputs and parameter ranges are validated to avoid out of range data from being accepted directly. Alarm-/alert notification If an invalid value is entered, an alarm or an alert is generated: alarm: the machine is switched off alert: the machine keeps on operating, however with reduced performance Controlled parameter 92 Parameters like CompMode, CompMaxNb and CompSeq are controlled. The configuration of these parameters can be changed, however the changes are effective only after the restart of the function block. EIO0000000663 05/2014 CompMgmt Machine Overview Machine View The following picture shows the interaction between the function block and the machine: WtrTempDbCntrl This function block controls the chilled water temperature, calculates the required number of compresssors and sends a request to the CompMgmt fuction block. CompMgmt This function block controls up to 4 compressors and manages the switch On/Off of compressors. EIO0000000663 05/2014 93 CompMgmt Section 5.2 Architecture Architecture What Is in This Section? This section contains the following topics: Topic 94 Page Hardware Architecture 95 Software Architecture 96 EIO0000000663 05/2014 CompMgmt Hardware Architecture Hardware Architecture Overview The figure below shows the hardware architecture of the Air Cooled Chiller: 1 2 3 4 5 6 Main power supply M168 Controller M168 Graphic display Variable speed drive ATV••/••• Modbus Soft starters Motor Control EIO0000000663 05/2014 95 CompMgmt Software Architecture Function Block Diagram The following function block diagram provides an overview of the software architecture: The block diagram shows on the left hand side the inputs, the Process Variables,on the right hand side the outputs, the Process Commands, as well as the function block CompMgmt. The following table gives you an overview of the functions of CompMgmt: Function Description ON/OFF Decision evaluates the number of requested compressors in regard of the number of compressors actually running Availability Check Sequencing determines, which compressor is switched ON/OFF next based on three methods: FIFO Runtime LIFO Operation Hours Counter checks the availability for the configured number of compressors evaluates compressor alarms evaluates compressor minimum ON/OFF time evaluates compressor operation hours for switching ON counts the accumulated runtime of the compressors for: switch ON/OFF decisions for checking maintenance intervals ON/OFF Timer manages 3 compressor timers: CompMinOnTime CompMinOffTime CompMinCycleTime Selection selects the compressor to be switched on next, based on Compressor Sequencing and Availability. considers the minimum time CompMinStartsDelay between the starts of two compressors 96 EIO0000000663 05/2014 CompMgmt Section 5.3 Function Block Description Function Block Description CompMgmt Function Block Function Block Description The CompMgmt function block controls up to 4 compressors. Operating hours are balanced using various methods. The CompMgmt failure management function automatically commands a new compressor when an operating compressor has a failure. The following methods for compressor management are provided: Compressor Sequence Control Compressor Failure Management Compressor ON/OFF Timing Control Compressor Selection Timing Control Compressor Operation Hours Compressor Maintenance Notification Compressor Sequence Control The purpose of the Compressor Sequence Control is to balance the number of operating hours and starts/stops between the compressors. Compressor Sequence Control helps to ensure an even usage of the compressors and hence helps to protect the compressors and optimizes power consumption. Compressors are controlled based on the following sequences: Sequence as per CompMode Description FIFO = First In First Out The compressor with lowest operating hours is switched on first. The first compressor which is switched on is also the first to be switched off. Advantage: operation time is limited. Runtime The compressor with lowest operating hours is the first compressor to be switched on. The compressor with highest operating hours is the first compressor to be switched off. Advantage: best balanced operation hours LIFO = Last In First Out The parameter CompSeq[4] determines this sequence. The first compressor to be switched on is the first one in the sequence. The first compressor to be switched off is the last one that has been switched on. Advantage: priority of compressor usage can be set. EIO0000000663 05/2014 97 CompMgmt Compressor Failure Management The compressor which is detected as non-operating will be switched off. The next available compressor in the start sequence will be switched on. The non-operating compressor can not be started until the detected failure is rectified. Compressor On/Off Timing Each compressor provides 3 timers which influence the compressor command ON/OFF behavior. They are active when the machine is shortly switched off: 98 Timer Description CompMinOnTime Compressor Minimum ON-Timer: This represents the minimum ON time of the compressor. Once the compressor has been started, it remains on until the set time has elapsed. The timing diagram shows the minimum compressor ON time: CompMinOffTime Compressor Minimum OFF-Timer: This represents the minimum OFF time of the compressor. The compressor will not be restarted, until the selected minimum time has elapsed since the last shutdown. The following timing diagram shows the minimum compressor OFF time, based on the assumption that CompMinOnTime is 0: EIO0000000663 05/2014 CompMgmt Timer Description CompMinCycleTime Compressor Minimum Cycle Timer: This is the minimum time that must elapse between two consecutive starts of the same compressor. It is used to limit the number of starts per hour. If, for example, the maximum number of starts per hour is 10, set a value of 360 seconds in order to achieve that the limit is observed. The following timing diagram shows the cycle time of the same compressor, based on the assumption that CompMinOnTime and CompMinOffTime are 0. EIO0000000663 05/2014 99 CompMgmt Compressor Selection Timing Control Timer Description CompMinStartsDelay Compressor Minimum Starts Delay: This is the minimum time that must elapse between the starts of two different compressors. During this time no other compressor can be started again. The following timing diagram shows the minimum time of different compressors: Compressor Operation Hours The compressor operation hours are calculated for each compressor and influence the switch ON/OFF behavior of the compressor. The total accumulated operation hours for each compressor are displayed for each compressor by the output CompOperHours[4]. If a compressor is to be replaced, you can reset the compressor operation hours to 0 by setting the input CompOperHoursRst[4] to 1. CompOperHoursRst[4] is reset on the rising edge. Compressor Maintenance Notification You can set a value for the maintenance interval for the compressors. An alert informs you, when the interval time has elapsed, that means when the compressor operating hours reach the set number of maintenance interval hours: CompOperHours[n] ≥ CompMaintInterval After maintenance has been performed, the alert can be reset by means of the parameter CompMaintAlertRst[4] and the maintenance interval is restarted. 100 EIO0000000663 05/2014 CompMgmt Pump-down with delay On machines with power above a certain limit and where there is a substantial amount of refrigerant, the pump-down procedure is necessary to partially empty the evaporator of excess refrigerant. Therefore, the solenoid valve situated upstream from the related evaporator is controlled in such a way that the compressor remains ON for the time interval Compressor SwitchOFF delay in pump-down (PumpDwnDelay). At compressor start-up, the solenoid valve is opened at the precise same instant. Pump-down with minimum pressure limit In case a low pressure transducer (EvapPress) is available, the pump-down function can monitor the evaporator pressure and keep the compressor ON until the evaporator pressure drops below the Pump -down minimum pressure (PumpDwnMinPress). NOTE: In case of a compressor alarm, the pump down function will be ignored and the compressor will be switched OFF. NOTE: The functions Pump-down with delay (PumpDwnDelay) and Pump-down with minimum pressure limit (PumpDwnMinPress), can be combined. The compressor is stopped when the first condition to stop the compressor is reached. EIO0000000663 05/2014 101 CompMgmt Section 5.4 Pin Description Pin Description What Is in This Section? This section contains the following topics: Topic 102 Page Input Pin Description 103 Output Pin Description 107 EIO0000000663 05/2014 CompMgmt Input Pin Description Pin Diagram The following picture shows the pin diagram of CompMgmt: EIO0000000663 05/2014 103 CompMgmt Input Pin Description Input Data Type Range Scaling/Unit Description EnableIn CJ_BIT TRUE or FALSE N/A TRUE: Enables the function block. FALSE: Disables the function block. Please see also the description below this table. EvapPress CJ_ANALOG N/A CompReqNb CJ_BYTE 0...4 N/A Requested number of compressors to be controlled. The range varies based on the value of CompMaxNb parameter. Comp01Alarm CJ_BIT TRUE or FALSE N/A Compressor 1 alarm TRUE: Alarm is active FALSE: Alarm is not active Comp02Alarm CJ_BIT TRUE or FALSE N/A Compressor 2 alarm TRUE: Alarm is active FALSE: Alarm is not active Comp03Alarm CJ_BIT TRUE or FALSE N/A Compressor 3 alarm TRUE: Alarm active. FALSE: Alarm is not active. Comp04Alarm CJ_BIT TRUE or FALSE N/A Compressor 4 alarm TRUE: Alarm active. FALSE: Alarm is not active. HighPressAlarm CJ_BIT TRUE or FALSE N/A Condensing pressure alarm TRUE: Alarm active. FALSE: Alarm is not active. 0.01 Bar/0.1 PSI Evaporator refrigerant gauge pressure High Pressure Alarm is a safety device and indicates an alarm when the pressure exceeds a maximum limit. DANGER REFRIGERANT POISONING OR FREEZER BURNS Stop the compressor operation in case of a high pressure alarm. Interlock the high pressure alarm switch with the compressors using contactors in the electrical cabinet. Failure to follow these instructions will result in death or serious injury. 104 EIO0000000663 05/2014 CompMgmt EnableIn If the input EnableIn is FALSE: The compressor commands Comp01Command to Comp04Command are set to FALSE. Alarm, Alert, AlarmID and AlertID are reset to 0. NOTE: Each input pin must be connected to a physical input or a software variable in the application program. Parameter Description The parameters CompMaxNb and CompMode are controlled parameters. Controlled parameters can be changed, however the changes only become effective after a reset of the function block. Parameter Data Type Range Scaling / Unit Description CompMaxNb CJ_BYTE 1...4 N/A Maximum number of compressors to be switched on. Default: 2 CompMode CJ_BYTE 0...2 N/A Compressor control sequence mode 0 FIFO 1 Runtime 2 LIFO CompSeq[4] Array [4]of CJ_BYTE 1...4 N/A Compressor 1 to 4 start sequence (priority in sequencing mode LIFO). Default: CompSeq[0] = 1 CompSeq[1] = 2 CompSeq[2] = 3 CompSeq[3] = 4 The array index 0...3 corresponds to the respective compressor 1...4. Default: 0 If the same priority is set for more than one compressor, the compressor with the lowest index has priority. Example: CompSeq[0] = 3 CompSeq[1] = 2 CompSeq[2] = 2 CompSeq[3] = 4 The compressor start sequence is here as follows: Comp02, Comp03, Comp01 and Comp04. CompMinOnTime CJ_WORD 0...3600 1sec Minimum time the compressor must be ON. Default: 400 CompMinOffTime CJ_WORD 0...3600 1sec Minimum time the compressor must be OFF. Default: 400 EIO0000000663 05/2014 105 CompMgmt Parameter Data Type Range Scaling / Unit Description CompMinCycleTime CJ_WORD 0...3600 1sec Minimum time that must elapse between two consecutive starts of the same compressor. Default: 600 CompMinStartsDelay CJ_WORD 0...3600 1sec Minimum time between start of 2 different compressors. Default: 600 CompMaintInterval CJ_WORD 0...65000 1Hr Compressor maintenance alert hours. Default: 5000 0 = Alert disabled CompOperHoursRst[4] Array [4]of CJ_BIT TRUE or FALSE N/A Reset operation hours of compressor 1 to 4. The reset occurs at the rising edge. CompMaintAlertRst[4] Array [4]of CJ_BIT TRUE or FALSE N/A Reset maintenance alert of compressor 1 to 4. The reset occurs at the rising edge. 0.01 Bar/ 0.1 PSI Pump down minimum pressure sec Pump down delay PumpDwnMinPress CJ_SHORT 0...32737 PumpDwnDelay CJ_WORD 0...65535 CompOperHoursRst[0] to CompOperHoursRst[3] The rising edge of CompOperHoursRst[n] resets the parameter CompOperHours[n] to 0 and an alert related to CompOperHours[n] is reset to FALSE. The array index 0...3 corresponds to their respective compressor 1...4. CompMaintAlertRst[0] to CompMaintAlertRst[3] Rising edge of CompMaintAlertRst[0...3] resets the respective Comp01...04 maintenance alert. The array index 0...3 corresponds to their respective compressor 1...4. 106 EIO0000000663 05/2014 CompMgmt Output Pin Description Output Pin Description Output Data Type Range Scaling/ Unit Description EnableOut CJ_BIT TRUE or FALSE N/A TRUE: Function block is enabled FALSE: Function block is disabled CompActNb CJ_BYTE 0...4 N/A Number of compressors actually running CompActPerc CJ_WORD 0...1000 0,1% Percentage of compressors running CompActPerc = (CompActNb x 1000) / CompMaxNb Comp01Command CJ_BIT TRUE or FALSE N/A Compressor 1 ON command Comp02Command CJ_BIT TRUE or FALSE N/A Compressor 2 ON command Comp03Command CJ_BIT TRUE or FALSE N/A Compressor 3 ON command Comp04Command CJ_BIT TRUE or FALSE N/A Compressor 4 ON command CmdSolenoidValve CJ_BIT TRUE or FALSE N/A Cooling Medium Solenoid Valve Helps to ensure, the cooling medium does not get into the compressor. CompMaxNbAvail CJ_BYTE 0...4 N/A The maximum number of compressors available. Alert CJ_BIT TRUE or FALSE N/A TRUE: Alert FALSE: No alert AlertID CJ_WORD 0...2047 N/A TRUE: Alert FALSE: No alert Default: 0 AlertID provides an alert code. Please see also the table below. Alarm CJ_BIT TRUE or FALSE N/A TRUE: Alarm FALSE: No alarm AlarmID CJ_WORD 0...3 N/A If this input is not equal to 0, the compressor commands Comp01Command...Comp04Command are set to FALSE. If this input is equal to 0, no alarm is detected. EIO0000000663 05/2014 107 CompMgmt Parameter Output Pin Description Parameter Data Type Range Scaling/ Unit Description CompOperHours[4] Array [4] of CJ_DWORD 0...71,582,788 1Hr Total operating hours of compressor 1 to 4 Array index 0...3 corresponds to respective compressor 1 to 4. Version[2] Array [2] of CJ_BYTE N/A N/A Version information of function block Version[0] - Function block version Version[1] - Function block revision CompMinOnTimeStatus CJ_BIT TRUE or FALSE N/A TRUE: Compressor Minimum ONTimer is running FALSE: Compressor Minimum ONTimer has elapsed CompMinOffTimeStatus CJ_BIT TRUE or FALSE N/A TRUE: Compressor Minimum OFFTimer is running FALSE: Compressor Minimum OFFTimer has elapsed CompMinCycleTimeStatus CJ_BIT TRUE or FALSE N/A TRUE: Compressor Minimum Cycle Timer is running FALSE: Compressor Minimum CycleTimer has elapsed CompStartDelayStatus CJ_BIT TRUE or FALSE N/A TRUE: Compressor Start Delay Timer is running FALSE: Compressor Start Delay Timer has elapsed 108 EIO0000000663 05/2014 CompMgmt Alert ID Description The AlertID output represents a value between 0 and 2047, whereby each bit represents an alert. The bits and their description are described in the following table: Alert Bit Alert Cause 0 Function block operates, however with Improper parameter value or configuration. This alert is generated when one of the following conditions limited performance. is TRUE: CompReqNb > 4 CompMinOnTime > 3600 CompMinOffTime > 3600 CompMinCycleTime > 3600 CompMinStartsDelay > 3600 CompMaintInterval > 65000 1 Compressor01 alarm input is active 2 Compressor02 alarm input is active 3 Compressor03 alarm input is active 4 Compressor04 alarm input is active 5 Alert for compressor maintenance. Compressor01maintenance alert is active. For alert generation logic refer to Compressor Maintenance (see page 100). 6 Compressor02maintenance alert is active. For alert generation logic refer to Compressor Maintenance (see page 100). 7 Compressor03maintenance alert is active. For alert generation logic refer to Compressor Maintenance (see page 100). 8 Compressor04maintenance alert is active. For alert generation logic refer to Compressor Maintenance (see page 100). 9 The request for compressors exceeds the maximum number of compressors. (CompReqNb > CompMaxNb) is TRUE. Alert that number of compressors cannot be incremented to match the number of requested compressors. 10 The change of a controlled parameter is not active. Changing a controlled parameter requires a machine restart. The controlled configuration parameter setting is effective only after restart of the function block. Present changes are not active. Function block uses the previously set values. 11...15 Not used N/A EIO0000000663 05/2014 Effect Compressor does not operate. 109 CompMgmt Alarm ID Description The AlarmID output represents a value between 0 and 3, whereby each bit represents a detected alarm. The bits and their description are described in the following table: Alarm Bit Alarm Cause Effect 0 Invalid parameter configuration. If one of the following parameters is TRUE: CompMaxNb < 1 or CompMaxNb > 4 CompMode > 2 CompSeq[0] < 1 or CompSeq[0] > 4 CompSeq[1] < 1 or CompSeq[1] > 4 CompSeq[2] < 1 or CompSeq[2] > 4 CompSeq[3] < 1 or CompSeq[3] > 4 Function block is disabled. 1 The compressor alarm inputs are active. The compressors are not operating. 2...15 Not used N/A 110 EIO0000000663 05/2014 CompMgmt Section 5.5 Troubleshooting Troubleshooting Troubleshooting Troubleshooting Alarm / Alert Problem Solution AlarmID.0 TRUE Invalid parameter value 1. Check the parameter ranges. 2. Set the values within the defined ranges. AlarmID.1 AlertID.1 AlertID.2 AlertID.3 AlertID.4 One compressor is not operating. The compressors are not operating. Check OEM machine manual. Also check the following points: Enable function block. Check compressor alarm inputs. Wait until the time of still active timers has elapsed. Check the number of compressors set in CompMaxNb. TRUE TRUE TRUE TRUE TRUE Reset the compressor alarm inputs when the problem has been solved. AlertID.0 TRUE Invalid parameter value Check the parameters ranges. AlertID.5 AlertID.6 AlertID.7 AlertID.8 Alert for maintenance of compressor. Maintain the compressor and then reset. AlertID.9 TRUE Different setting for CompMaxNb Check the number of compressors set in CompMaxNb. The setting must be conform with the setting of the function block WtrTempCntrl. AlertID.10 TRUE Controlled parameters are changed Restart the function block. TRUE TRUE TRUE TRUE EIO0000000663 05/2014 111 CompMgmt 112 EIO0000000663 05/2014 SoHVAC FanMgmt EIO0000000663 05/2014 Chapter 6 Fan Management: FanMgmt Fan Management: FanMgmt What Is in This Chapter? This chapter contains the following sections: Section Topic Page 6.1 Functional and Machine Overview 114 6.2 Architecture 118 6.3 Function Block Description 122 6.4 Pin Description 131 6.5 Troubleshooting 140 EIO0000000663 05/2014 113 FanMgmt Section 6.1 Functional and Machine Overview Functional and Machine Overview What Is in This Section? This section contains the following topics: Topic 114 Page Functional Overview 115 Machine Overview 117 EIO0000000663 05/2014 FanMgmt Functional Overview Functional Description The FanMgmt (Fan Management) function block manages together with the function block FloatingHighPresCntrl (Floating Pressure High Control) the chilled water temperature in an HVAC&R system. The FanMgmt function block controls up to 12 fans and aims to manage the optimum number of fans and their required frequency depending on the required air flow in the machine. For this purpose, FanMgmt provides features for switching management and to optimize operation. Why Use the FanMgmt Function Block? The FanMgmt function block is used for the following purposes: Purpose Description Runtime optimization increase the control accuracy balance operation hours avoid frequent ON/OFF switching of fans Failure management switch off a fan in case of a detected failure and switch on another Features of the FanMgmt Function Block The FanMgmt function block manages the following functions of the fan: supports the management of 1 to 12 fans switches on and off the number of fans required (calculated by FloatingHighPresCntrl FB) to control the chilled water temperature balances fan operation hours by using one of the following two methods: FIFO Runtime controls the On/Off sequence of condenser fans fan switching management in case of a detected fan failure calculates the required fan speed by using one of the following two methods: Automatic mode Manual mode fan maintenance notification: FanMgmt calculates the fan operation hours and notifies when maintenance is required. EIO0000000663 05/2014 115 FanMgmt Protective Features The FanMgmt function block provides the following protective features to help you avoid the potentials of certain sources of machine malfunction: Protective Feature Description Input range validation Inputs and parameter ranges are validated to avoid out of range data from being accepted directly. Alarm-/alert notification If you enter an invalid value, an alarm or an alert is generated: alarm: the machine is switched off alert: the machine keeps on operating, however with reduced performance Controlled parameter 116 Parameters like FanMode, FanMaxNb and FanSeq are controlled. The configuration of these parameters can be changed, however the changes are effective only after the restart of the function block. EIO0000000663 05/2014 FanMgmt Machine Overview Machine View The following picture shows the interaction between the function block and the machine: FloatingHighPresCntrl This function block gives out 2 signals, FanReqNb and FanControlSignal FanMgmt This function block controls the optimum number of fans and the frequency depending on the required air flow in the machine. FanMgmt manages the switch On/Off of fans. EIO0000000663 05/2014 117 FanMgmt Section 6.2 Architecture Architecture What Is in This Section? This section contains the following topics: Topic 118 Page Hardware Architecture 119 Software Architecture 120 EIO0000000663 05/2014 FanMgmt Hardware Architecture Hardware Architecture Overview The figure below shows the hardware architecture of the Air Cooled Chiller. 1 2 3 4 5 6 Main power supply M168 Controller M168 Graphic display Variable speed drive ATV••/••• Modbus Soft starters Motor Control EIO0000000663 05/2014 119 FanMgmt Software Architecture Function Block Diagram The following function block diagram gives you an overview of the software architecture: The block diagram shows on the left hand side the inputs, the Process Variables,on the right hand side the outputs, the Process Commands, as well as the function block FanMgmt The following table gives you an overview of the functions of FanMgmt: 120 Function Description ON/OFF Decision evaluates the number of requested fans in regard of the number of fans actually running Availability Check Sequencing determines which fan is switched ON/OFF next based on two methods: FIFO Runtime Operation Hours Counter counts the accumulated runtime of the fans for: switch ON/OFF decisions for checking maintenance intervals checks the availability for the configured number of fans evaluates fan alarms evaluates fan minimum ON/OFF time evaluates fan operation hours for switching ON EIO0000000663 05/2014 FanMgmt Function Description Increment/Decrement Timer controls the fan increment/decrement sequence by means of the following parameters: FanDelayCmd FanDelayFreq FanDelayIncr FanDelayDecr Selection determines the fan to be switched on next, based on the ON/OFF Timer and Operation Hours Counter Frequency Calculation calculates the frequency for currently operating fans based on: Mode: Automatic or Manual Fan minimum/maximum frequency EIO0000000663 05/2014 121 FanMgmt Section 6.3 Function Block Description Function Block Description FanMgmt Function Block Function Block Description The FanMgmt function block controls up to 12 fans. The FanMgmt function block manages runtime balancing, detected failure switch over and minimum On/Off cycle time of fans. This function block works in combination with the FloatingHighPresCntrl function block to control the cold source condensation temperature. The following methods for fan management are provided: Fan Sequence Control Fan Failure Management Fan Operation Hours Control Fan Maintenance Notification Fan Frequency Calculation Fan Increment / Decrement Timer Fan Sequence Control The purpose of the Fan Sequence Control is to balance the number of operation hours and starts/stops between the fans. Fan Sequence Control helps to ensure an even usage of the fans and hence helps to protect the fans and optimizes power consumption. Fans are controlled based on the following sequences: Sequence Description FIFO = First In First Out The fan with lowest operating hours is switched on first. The first fan which is switched on is also the first to be switched off. Advantage: operation time is limited. Runtime The fan with lowest operating hours is the first fan to be switched on. The fan with highest operating hours is the first fan to be switched off. Advantage: best balanced operation hours Fan Failure Management The fan which is detected as non-operating will be switched off. The next available fan in the start sequence will be switched on. The non-operating fan can not be started until the detected failure is rectified. 122 EIO0000000663 05/2014 FanMgmt Fan Operation Hours Control The fan operation hours are calculated for each fan and influence the switch ON/OFF behavior of the fan. The total accumulated operation hours for each fan are displayed for each fan by the output FanOperHours[12]. If a fan is to be replaced, you can reset the fan operation hours to 0 by setting the input FanOperHoursRst[12] to 1. FanOperHoursRst[12] is reset at the rising edge. Fan Maintenance Notification You can set a value for the maintenance interval for the fans. An alert informs you, when the interval time has elapsed, that means when the fan operation hours reach the set number of maintenance interval hours: After maintenance has been performed, the alert can be reset by means of the parameter FanMaintAlertRst[4] and the maintenance interval is restarted. EIO0000000663 05/2014 123 FanMgmt Fan Frequency Calculation The fan frequency calculation is controlled by 4 modes specified in the FanFreqMode parameter. Manual mode Automatic mode Advanced control - manual frequency saturation mode Advanced control - auto frequency saturation mode The following table provides an overview of the different modes: Mode Description Manual The fan speed signal is selected from the frequency specified in FanManualFreq[n] and the number of fans in operation. When the fans are in operation, FanControlSignal is set as fan speed signal and limiting between FanFreqMin and FanFreqMax values. If LowNoiseOper is TRUE, FanFreqMax reduces by a value specified in parameter LowNoiseFreqReduction. Auto The fan speed is calculated based on the number of fans in operation using the following formula: When all fans are in operation, FanControlSignal is set as fan speed signal after limiting between FanFreqMin and FanFreqMax values. If FanFreqMin < 50, then 50 is considered as FanFreqMin. If LowNoiseOper = TRUE, FanFreqMax is reduced by a value specified in the parameter LowNoiseFreqReduction. Advanced control Manual frequency saturation The maximum fan speed signal is calculated from the frequency specified Advanced control - Auto frequency saturation The input FanControlSignal is set as fan speed signal after limiting in the parameter FanManualFreq[n] and the number of fans in operation. The input FanControlSignal is set as fan speed signal and limited between FanFreqMin and FanManualFreq[n]. When all fans are in operation, FanControlSignal is set as fan speed signal and limited between FanFreqMin and FanFreqMax values. If LowNoiseOper = TRUE, FanFreqMax is reduced by a value specified in the parameter LowNoiseFreqReduction. between FanFreqMin and frequency f. When all fans are in operation, FanControlSignal is set as fan speed signal after limiting between FanFreqMin and FanFreqMax values. If FanFreqMin < 50, then 50 is considered as FanFreqMin. If LowNoiseOper = TRUE, FanFreqMax is reduced by a value specified in the parameter LowNoiseFreqReduction. For more detailed information, please also refer to the examples on the following pages. 124 EIO0000000663 05/2014 FanMgmt Manual Mode The figure below shows an example for the fan frequency calculation in manual mode. The minimum and maximum frequency is set to 20 Hz and 50 Hz: EIO0000000663 05/2014 125 FanMgmt Auto Mode The figure below shows an example for the fan frequency calculation in auto mode. The minimum and maximum frequency is set to 20 Hz and 50 Hz: 126 EIO0000000663 05/2014 FanMgmt Advanced Control - Manual Frequency Saturation Mode The figure below shows an example for the manual fan frequency calculation in saturation mode. The minimum and maximum frequency is set to 20 Hz and 50 Hz: EIO0000000663 05/2014 127 FanMgmt Advanced Control - Auto Frequency Saturation Mode The figure below shows an example for the auto mode fan frequency calculation in saturation mode. The minimum and maximum frequency is set to 20 Hz and 50 Hz: Fan Increment / Decrement Timer The FanMgmt function block controls the fan increment sequence by the delay time set in the input parameters: FanDelayCmd FanDelayFreq FanDelayIncr The FanMgmt function block differs the increment and the decrement sequence: 128 Sequence Description Increment Sequence When the number of fans is incremented, the fan speed is reduced to the minimum frequency for a short duration before the next fan is requested to start. Decrement Sequence When the number of fans is decremented, the fan speed is reduced to the minimum frequency for a short duration before the next fan is requested to stop EIO0000000663 05/2014 FanMgmt Fan Increment Sequence The timing diagram below describes the incrementing sequence of the FanMgmt function block: If... Then... the number of required fans is set from 0 to 1 the frequency FanFreq is set to the minimum frequency Fan01Command is switched On after the time delay FanDelayCmd FanFreq is set to the new fan frequency after the time delay FanDelayFreq The next fan can be switched On only after the FanDelayIncr timer is complete the number of required fans is set from 1 to 2 the frequency FanFreq is set to the minimum frequency Fan02Command is switched On after the time delay FanDelayCmd FanFreq is set to the new fan frequency after the time delay FanDelayFreq EIO0000000663 05/2014 129 FanMgmt Fan Decrement Sequence This timing diagram shows the decrement sequence of the FanMgmt function block: If... Then... the number of required fans is set from 2 to 1 the frequency FanFreq is set to the minimum frequency Fan02Command is switched Off after the time delay FanDelayCmd FanFreq is set to the new fan frequency after the time delay FanDelayFreq The next fan can be switched Off only after the FanDelayIncr timer is complete the number of required fans is the frequency FanFreq is set to the minimum frequency set from 1 to 0 Fan01Command is switched Off after the time delay FanDelayCmd FanFreq is set to the new fan frequency after the time delay FanDelayFreq 130 EIO0000000663 05/2014 FanMgmt Section 6.4 Pin Description Pin Description What Is in This Section? This section contains the following topics: Topic Page Input Pin Description 132 Output Pin Description 137 EIO0000000663 05/2014 131 FanMgmt Input Pin Description Pin Diagram The following picture shows the pin diagram of FanMgmt: 132 EIO0000000663 05/2014 FanMgmt Input Pin Description Input Data Type Range Scaling / Unit Description EnableIn CJ_BIT TRUE or FALSE N/A TRUE: Enables the function block FALSE: Disables the function block FanControlSignal CJ_WORD 0...32767 0.1 Hz Input signal for fan control FanReqNb CJ_BYTE 1...12 N/A Actual requested number of fans to be controlled Fan01Alarm CJ_BIT TRUE or FALSE N/A TRUE: Fan1 alarm is active FALSE: Fan1 alarm is not active Fan02Alarm CJ_BIT TRUE or FALSE N/A TRUE: Fan2 alarm is active FALSE: Fan2 alarm is not active Fan03Alarm CJ_BIT TRUE or FALSE N/A TRUE: Fan3 alarm is active FALSE: Fan3 alarm is not active Fan04Alarm CJ_BIT TRUE or FALSE N/A TRUE: Fan4 alarm is active FALSE: Fan4 alarm is not active Fan05Alarm CJ_BIT TRUE or FALSE N/A TRUE: Fan5 alarm is active FALSE: Fan5 alarm is not active Fan06Alarm CJ_BIT TRUE or FALSE N/A TRUE: Fan6alarm is active FALSE: Fan6 alarm is not active Fan07Alarm CJ_BIT TRUE or FALSE N/A TRUE: Fan7 alarm is active FALSE: Fan7 alarm is not active Fan08Alarm CJ_BIT TRUE or FALSE N/A TRUE: Fan8 alarm is active FALSE: Fan8 alarm is not active Fan09Alarm CJ_BIT TRUE or FALSE N/A TRUE: Fan9 alarm is active FALSE: Fan9 alarm is not active Fan10Alarm CJ_BIT TRUE or FALSE N/A TRUE: Fan10 alarm is active FALSE: Fan10 alarm is not active Fan11Alarm CJ_BIT TRUE or FALSE N/A TRUE: Fan11 alarm is active FALSE: Fan11 alarm is not active Fan12Alarm CJ_BIT TRUE or FALSE N/A TRUE: Fan12 alarm is active FALSE: Fan12 alarm is not active LowNoiseOper CJ_BIT TRUE or FALSE N/A TRUE: Low noise operation activates FALSE: Low noise operation deactivates EIO0000000663 05/2014 133 FanMgmt Parameter Description The parameters FanMaxNb , FanMode and FanFreqMode are controlled parameters. Controlled parameters can be changed, however the changes only become effective after a reset of the function block. Input Data Type Range Scaling / Unit Description FanMaxNb CJ_BYTE 1...12 N/A Maximum number of fans to be controlled Default: 6 FanMode CJ_BYTE 0...1 N/A Fan On/Off sequence mode 0 FIFO 1 Runtime Default: 0 FanFreqMin CJ_WORD 0...1000 0.1 Hz VSD minimum frequency Default: 200 FanFreqMax CJ_WORD 0...1000 0.1 Hz VSD maximum frequency Default: 500 FanFreqMode CJ_BYTE 0...3 N/A VSD frequency (fan speed) calculation mode 0 Manual mode 1 Auto mode 2 Advanced control manual saturation mode 3 Advanced control auto saturation mode FanManualFreq[12] Array [12] of CJ_WORD 0...1000 0.1 Hz Fan manual frequency FanSaturationFreqPerc CJ_WORD 0...1000 0.1% VSD saturation frequency level percentage Default: 100 LowNoiseFreqReduction CJ_WORD 0...1000 0.1 Hz VSD low noise operation frequency reduction Default: 100 FanDelayIncr CJ_WORD 3...3600 1 sec Delay in incrementing the running number of fans Default: 400 FanDelayDecr CJ_WORD 3...3600 1 sec Delay in decrementing the running number of fans Default: 400 FanDelayCmd CJ_WORD 1...60 1 sec Delay between fan increment/decrement and fan command Default: 15 Default: 1 134 EIO0000000663 05/2014 FanMgmt Input Data Type Range Scaling / Unit Description FanDelayFreq CJ_WORD 1...60 1 sec Delay between fan command On/Off and setting new frequency Default: 5 FanMaintInterval CJ_WORD 0...65000 1 Hrs Fan maintenance alert hours. Default: 5000 0 = alert disabled FanOperHoursRst[12] Array [12] of CJ_BIT TRUE or FALSE N/A Reset for Fan1...12 operation hours Resets at rising edge FanMaintAlertRst[12] Array [12] of CJ_BIT TRUE or FALSE N/A Reset for Fan1...12 maintenance alert Resets at rising edge FanOperHoursRst[12] The rising edge of FanOperHoursRst[n] resets FanOperHours[n] to 0 and the alert related to FanOperHours[n] is reset to FALSE. The array index 0 corresponds to fan 1 and index 1 corresponds to fan 2 and accordingly for the other fans. FanMaintAlertRst[12] The rising edge of FanMaintAlertRst[n] resets fan [n+1] maintenance alert. The array index 0 corresponds to fan 1 and index 1 corresponds to fan 2 and accordingly for the other fans. EIO0000000663 05/2014 135 FanMgmt FanManualFreq[12] Array Index Number Range Scaling / Unit Description 0 0...1000 0.1 Hz Fan manual frequency when 1 fan is running Default: 440 1 0...1000 0.1 Hz Fan manual frequency when 2 fans are running Default: 330 2 0...1000 0.1 Hz Fan manual frequency when 3 fans are running Default: 293 3 0...1000 0.1 Hz Fan manual frequency when 4 fans are running Default: 275 4 0...1000 0.1 Hz Fan manual frequency when 5 fans are running Default: 264 5 0...1000 0.1 Hz Fan manual frequency when 6 fans are running Default: 257 6 0...1000 0.1 Hz Fan manual frequency when 7 fans are running Default: 251 7 0...1000 0.1 Hz Fan manual frequency when 8 fans are running Default: 248 8 0...1000 0.1 Hz Fan manual frequency when 9 fans are running Default: 244 9 0...1000 0.1 Hz Fan manual frequency when 10 fans are running Default: 242 10 0...1000 0.1 Hz Fan manual frequency when 11 fans are running Default: 240 11 0...1000 0.1 Hz Fan manual frequency when 12 fans are running Default: 238 136 EIO0000000663 05/2014 FanMgmt Output Pin Description Output Pin Description Output Data Type Range EnableOut CJ_BIT TRUE or FALSE N/A TRUE: Function block is enabled FALSE: Function block is disabled FanFreq CJ_WORD 0...1000 Fan speed signal to VSD Default: 0 FanActNb CJ_BYTE 0...12 N/A Number of fans actually running FanActPerc CJ_WORD 0...1000 0.1% Percentage of fans running Fan01Command CJ_BIT TRUE or FALSE N/A Fan1 command Fan02Command CJ_BIT TRUE or FALSE N/A Fan2 command Fan03Command CJ_BIT TRUE or FALSE N/A Fan3 command Fan04Command CJ_BIT TRUE or FALSE N/A Fan4 command Fan05Command CJ_BIT TRUE or FALSE N/A Fan5 command Fan06Command CJ_BIT TRUE or FALSE N/A Fan6 command Fan07Command CJ_BIT TRUE or FALSE N/A Fan7 command Fan08Command CJ_BIT TRUE or FALSE N/A Fan8 command Fan09Command CJ_BIT TRUE or FALSE N/A Fan9 command Fan10Command CJ_BIT TRUE or FALSE N/A Fan10 command Fan11Command CJ_BIT TRUE or FALSE N/A Fan11 command Fan12Command CJ_BIT TRUE or FALSE N/A Fan12 command Alert CJ_BIT TRUE or FALSE N/A TRUE: Alert FALSE: No alert AlertID CJ_WORD 0...65535 Alert ID (see page 138) Default: 0 Alarm CJ_BIT TRUE or FALSE N/A TRUE: Alarm FALSE: No alarm AlarmID CJ_WORD 0...3 Alarm ID (see page 139) EIO0000000663 05/2014 Scaling/Unit 0.1 Hz N/A N/A Description 137 FanMgmt Parameter Output Pin Description Output Data Type Range Scaling/Unit Description MaintAlertID CJ_WORD 0...65535 N/A Fan1...12 maintenance alert status MaintAlertID.0 ...MaintAlertID.11 corresponds to respective fans 1...12. FanOperHours[12] Array [12] of CJ_DWORD 0...71582788 1 Hr Fan1...12 total operating hours Array index 0...12 corresponds to respective fans 1...12. Version[2] Array [12] of CJ_BYTE N/A N/A Version information of function block Version[0] - Function block version Version[1] - Function block revision Alert ID Description The AlertID output represents a value between 0 and 65535, whereby each bit represents an alert. The bits and their description are described in the following table: Alert Bit Alert Description Result 0 Parameter value is not set within the range specified in input description table. This alert is generated when any of the following conditions are TRUE: FanControlSignal > 32767 FanReqNb > 12 FanFreqMin < 50 FanFreqMax < 51 FanFreqMax > 1000 FanSaturationFreqPerc > 1000 LowNoiseFreqReduction > 1000 FanDelayIncr > 3600 FanDelayDecr > 3600 FanDelayCmd > 60 FanDelayFreq > 60 FanMaintInterval > 65000 FanDelayIncr ≤FanDelayCmd + FanDelayFreq FanDelayDecr ≤FanDelayCmd + FanDelayFreq Function is in operation with limited performance 1 Fan1 alarm input is active Fan1 is switched on, but does not start. 2 Fan2 alarm input is active Fan2 is switched on, but does not start. 3 Fan3 alarm input is active Fan3 is switched on, but does not start. 4 Fan4 alarm input is active Fan4 is switched on, but does not start. 138 EIO0000000663 05/2014 FanMgmt Alert Bit Alert Description Result 5 Fan5 alarm input is active Fan5 is switched on, but does not start. 6 Fan6 alarm input is active Fan6 is switched on, but does not start. 7 Fan7 alarm input is active Fan7 is switched on, but does not start 8 Fan8 alarm input is active Fan8 is switched on, but does not start. 9 Fan9 alarm input is active Fan9 is switched on, but does not start. 10 Fan10 alarm input is active Fan10 is switched on, but does not start. 11 Fan11 alarm input is active Fan11 is switched on, but does not start. 12 Fan12 alarm input is active Fan12 is switched on, but does not start. 13 Fan1 or 2 or 3...12 maintenance alert is active. Alert for required maintenance FanOperHours [0] or [1...11] ≥ FanMaintInterval) is TRUE. 14 More fans than the maximum number of fans are requested. (FanReqNb > FanMaxNb) is TRUE. The requested number of fans can not switch on. 15 A controlled parameter has been changed, which requires a machine restart. The new configuration parameter is effective only after restart of the function block. Present changes are not active. Function block uses the previously set values. Alarm ID Description The AlarmID output represents a value between 0 and 3, whereby each bit represents a detected alarm. The bits and their description are described in the following table: Alarm Bit Alarm Description Result 0 Parameter value setting is not within the range specified in the input description table. This alarm is generated when one of the following conditions is TRUE: FanMaxNb < 1 or FanMaxNb > 12 FanMode > 1 FanFreqMode > 3 FanManualFreq [0] or [1] or [2...11] > FanFreqMax FanDelayCmd < 1 FanDelayFreq > 1 FanFreqMax < FanFreqMin FanManualFreq [0] or [1] or [2...11] < FanFreqMin Function block is disabled. 1 The fan alarms Fan01Alarm...Fan12Alarm are active. The fans are not operating. 2...5 Not used N/A EIO0000000663 05/2014 139 FanMgmt Section 6.5 Troubleshooting Troubleshooting Troubleshooting Troubleshooting Alarm/Alert Problem Solution AlarmID.0 TRUE Invalid parameter value 1. Check the parameters ranges. 2. Set the values within the defined ranges. AlarmID.1 TRUE The fans 1...12 are not operating. Reset the fan alarm inputs. AlertID.0 TRUE Invalid parameter value Check the parameters against their ranges. AlertID.1 TRUE AlertID.2 TRUE AlertID.3 TRUE AlertID.4 TRUE AlertID.5 TRUE AlertID.6 TRUE AlertID.7 TRUE AlertID.8 TRUE AlertID.9 TRUE AlertID.10 TRUE AlertID.11 TRUE AlertID.12 TRUE One of the fans 1...12 is not operating. Check OEM machine manual. Also check the following points: Enable function block. Check fan alarm inputs. Wait until the time of still active timers has elapsed. Check the number of fans set in FanMaxNb. AlertID.13 TRUE Alert for maintenance task Maintain the fan and then reset. AlertID.14 TRUE Different setting for FanMaxNb Check the number of fans set in FanMaxNb. The setting must be conform with the setting of the function block FloatingHighPresCntrl. AlertID.15 TRUE Controlled parameters are changed Restart the function block. 140 Reset the fan alarm inputs when the problem has been solved. EIO0000000663 05/2014 SoHVAC FloatingHighPresCntrl EIO0000000663 05/2014 Chapter 7 Floating High Pressure Control: FloatingHighPresCntrl Floating High Pressure Control: FloatingHighPresCntrl What Is in This Chapter? This chapter contains the following sections: Section Topic Page 7.1 Functional and Machine Overview 142 7.2 Architecture 146 7.3 Function Block Description 149 7.4 Pin Description 154 7.5 Troubleshooting 162 EIO0000000663 05/2014 141 FloatingHighPresCntrl Section 7.1 Functional and Machine Overview Functional and Machine Overview What Is in This Section? This section contains the following topics: Topic 142 Page Functional Overview 143 Machine Overview 145 EIO0000000663 05/2014 FloatingHighPresCntrl Functional Overview Functional Description High variations of the refrigerant pressure can result in a high energy consumption of the condensing fans and compressors. The FloatingHighPresCntrl (Floating High Pressure Control) function block controls the condensing pressure by modulating air volume through the condenser. The air volume is controlled by the number and the speed of the condenser fans. Why Use the FloatingHighPresCntrl Function Block? The FloatingHighPresCntrl function block is used for the following purposes: Purpose Description High pressure control maintain a constant high pressure avoid high pressure alarms feature that helps to protect the compressor in case of a detected failure Features of the FloatingHighPresCntrl Function Block The FloatingHighPresCntrl function block provides the following features: sets the floating condensing temperature based on outdoor air temperature supports standard refrigerant types R404A, R22, R410A, R407C, R134 supports user defined refrigerant type supports temperature units ° C and ° F supports pressure units Bar and PSI provides high pressure alarm monitoring handles sensor alarms supports PID control and deadband control supports initial VSD ramp EIO0000000663 05/2014 143 FloatingHighPresCntrl Protective Features The FloatingHighPresCntrl function block provides the following protective features to help you avoid the potentials of certain sources of machine malfunction: Protective Feature Description Input range validation Inputs and parameter ranges are validated to avoid out of range data from being accepted directly. Alarm-/alert notification If you enter an invalid value, an alarm or an alert is generated: alarm: the machine is switched off alert: the machine keeps on operating, however with reduced performance In case of a high pressure alarm or when the high pressure sensor is disconnected or short-circuited, the fans will be started with maximum frequency. Controlled parameter 144 Parameters like UnitType, RefrType, RefrConstantB1... RefrConstantB5 and FanMaxNb are controlled. The configuration of these parameters can be changed, however the changes are effective only after the restart of the function block. EIO0000000663 05/2014 FloatingHighPresCntrl Machine Overview Machine View The following picture shows the interaction between the function block and the machine: FloatingHighPresCntrl This function block monitors the internal pressure of the refrigerant (using a high pressure sensor) and the external outdoor air temperature and operates the fan motors in association with the FanMgmt function block. FanMgmt This function block controls the optimum number of fans and the frequency depending on the required air flow in the machine. FanMgmt manages the switch On/Off of fans. EIO0000000663 05/2014 145 FloatingHighPresCntrl Section 7.2 Architecture Architecture What Is in This Section? This section contains the following topics: Topic 146 Page Hardware Architecture 147 Software Architecture 148 EIO0000000663 05/2014 FloatingHighPresCntrl Hardware Architecture Hardware Architecture Overview The figure below shows the hardware architecture for the FloatingHighPresCntrl function block associated with Air Cooled Chiller. 1 2 3 4 5 6 Main power supply M168 Controller M168 Graphic display Variable speed drive ATV••/••• Modbus Soft starters Motor Control EIO0000000663 05/2014 147 FloatingHighPresCntrl Software Architecture Function Block Diagram The following function block diagram provides an overview of the software architecture: The block diagram shows on the left hand side the inputs, the Process Variables,on the right hand side the outputs, the Process Commands, as well as the function block FloatingHighPresCntrl. The following table provides an overview of the functions of FloatingHighPresCntrl: Function Description Setpoint Calculation calculates and limits the setpoint between the input parameters CondensingTempMin and CondensingTempMax based on 3 modes: Fixed setpoint Floating setpoint External setpoint Temperature Calculation uses high refrigerant pressure measurement to calculate the condensing temperature CondensingRefrTempCalc on the basis of the refrigerant properties Fan Calculation calculates the number of fans required for cooling by incrementing and decrementing deadband is used to prevent oscillation ON/OFF Delays are used in order to allow reaction times and help to protect the fans Frequency Calculation 148 calculates the frequency for currently operating fans based on: Mode : Automatic or Manual Fan minimum/maximum frequency EIO0000000663 05/2014 FloatingHighPresCntrl Section 7.3 Function Block Description Function Block Description FloatingHighPresCntrl Function Block Function Block Description The FloatingHighPresCntrl function block calculates the number of fans and the variable fan speed frequency required to control the high pressure refrigerant. The condensing refrigerant pressure setpoint can be calculated by means of 3 different algorithms. The condensing refrigerant temperature is calculated based on the refrigerant type and the measured refrigerant pressure. If... Then... FloatingHighPresCntrl is used with the function block FanMgmt it is possible to start and stop individual fans. the fans operate with the same frequency. FloatingHighPresCntrl is used without the function block FanMgmt the fans operate with the same frequency. FloatingHighPresCntrl provides the following methods for calculation and monitoring: Refrigerant Setpoint Calculation Refrigerant Temperature Calculation Custom Refrigerant Frequency Calculation Fan Number Calculation Failure Management EIO0000000663 05/2014 149 FloatingHighPresCntrl High Pressure Refrigerant Temperature Setpoint Calculation The FloatingHighPresCntrl function block calculates the high pressure refrigerant temperature setpoint by means of 3 algorithms: Fixed Floating External The algorithm type is selected by means of the parameter CondensingRefrControlMode. The following table provides an overview of the 3 setpoints: Setpoint Description Fixed CondensingRefrControlMode = 0 The fixed condensing refrigerant temperature setpoint is calculated on the basis of the actual outdoor air temperature and a fixed offset (CondensingTempOffset) The condensing refrigerant temperature setpoint is limited between CondensingTempMin and CondensingTempMax Setpoint = OutdoorAirTemperature + Fixed Offset 150 EIO0000000663 05/2014 FloatingHighPresCntrl Setpoint Description Floating CondensingRefrControlMode = 1 The floating condensing refrigerant temperature setpoint is calculated on the basis of the actual outdoor air temperature, where CondensingTempMin is related to OutdoorAirTempMin and CondensingTempMax is related to OutdoorAirTempMax. The condensing refrigerant temperature setpoint is limited between CondensingTempMin and CondensingTempMax Setpoint = OutdoorAirTemperature + Floating Offset External CondensingRefrControlMode = 2 The external setpoint (CondensingRefrTempSetp) is constant and is provided by the input CondensingRefrPressSetp. The condensing refrigerant temperature setpoint is limited between CondensingTempMin and CondensingTempMax. Setpoint = External Signal CondensingRefrTempCalc = CondensingRefrPressSetp EIO0000000663 05/2014 151 FloatingHighPresCntrl Refrigerant Temperature Calculation The CondensingRefrTempSetp is calculated based on the high pressure sensor and the selected refrigerant using the following formula: T = B1 + B2 * log10(P) + B3 * (log10(P))2 + B4 * (log10(P))3 + B5 * (log10(P))4 P Pressure in [Bar a] T Temperature in Celsius B1, B2, B3, B4 and B5 are constants that depend on the refrigerant type given in the table below: R22 R134A R404A R407C R410A RefrConstB1 –41.10425869 –26.37946503 –45.74988525 –36.95702568 –51.60743016 RefrConstB2 48.89832922 50.13044937 47.41656370 46.68436482 44.99525658 RefrConstB3 11.99963375 12.16844634 11.91636989 11.62881244 10.54782301 RefrConstB4 3.105357382 2.999009085 3.61190183 3.071138961 3.180095913 RefrConstB5 0.5586195324 0.4918984867 0.1771736352 –0.009987598837 0.1939419122 Pressure range 0.1 to 49 Bar 0.02 to 32 Bar 0.2 to 37 Bar 0.1 to 45 Bar 0.2 to 48 Bar Precision < 0.1° C < 0.1° C < 0.1° C < 0.1° C < 0.1° C The temperature calculation depends on the measuring unit of pressure. The input pin Unit Type is used to select between SI units (° C/Bar) or US units (° F/PSI). Unit Description SI units Input CondensingRefrPress is set in Bar Output CondensingRefrTempCalc is calculated in ° C Output CondensingRefrTempSetp is calculated in ° C US units In case of US units: Input CondensingRefrPress is set in PSI Output CondensingRefrTempCalc is calculated in ° F Output CondensingRefrTempSetp is calculated in ° F Custom Refrigerant The FloatingHighPresCntrl function block supports the use of custom refrigerant. For this purpose set RefrType to Custom=6 The refrigerant constants are provided by the parameters RefrConstant1 to RefrConstant5. 152 EIO0000000663 05/2014 FloatingHighPresCntrl Frequency Calculation The FloatingHighPresCntrl function block supports 2 modes of frequency calculation: Mode Description Auto In auto mode the fan frequency calculation is based on the internal PID controller Manual In manual mode the frequency is based on the parameter ManualFreq. NOTE: If FloatingHighPresCntrl is used with the function block FanMgmt, the manual operation must set in Fan Management Control. Fan Number Calculation The FloatingHighPresCntrl function block calculates the number of fans required for cooling by incrementing and decrementing. The number of fans is limited between 0 and the maximum number of fans. Mode Description Increment The number of fans is incremented by 1 if the condensing temperature is greater than the condensing temperature setpoint + deadband / 2. The timer delay for switching On the next fan starts and during this time delay no additional fans are switched On. Decrement The number of fans is decremented by 1 if the condensing temperature is less than condensing temperature setpoint – deadband / 2. The timer delay for switching Off the next fan starts and during this time delay no additional fans are switched Off. Failure Management An alarm informs you when condensing refrigerant pressure and outdoor air temperature sensor inputs are missing or short-circuited. In case of an CondensingPressAlarm, the fan number and the fan frequency are set to maximum. The output AlarmID indicates which alarm occurs. The output AlertID indicates which alert occurs. EIO0000000663 05/2014 153 FloatingHighPresCntrl Section 7.4 Pin Description Pin Description What Is in This Section? This section contains the following topics: Topic 154 Page Input Pin Description 155 Output Pin Description 159 EIO0000000663 05/2014 FloatingHighPresCntrl Input Pin Description Pin Diagram The following picture shows the pin diagram of FloatingHighPresCntrl: Input Pin Description Input Data Type Range Scaling/Unit Description EnableIn CJ_BIT TRUE or FALSE N/A TRUE: Enables the function block. FALSE: Disables the function block. CondensingRefrPress CJ_ANALOG N/A 0.01 Bar 0.1 PSI Condensing refrigerant pressure OutdoorAirTemp CJ_ANALOG N/A 0.1° C/° F Outdoor air temperature CondensingRefrTempSetp CJ_SHORT N/A 0.1° C/° F Condensing refrigerant temperature setpoint CondensingPressAlarm CJ_BIT TRUE or FALSE N/A Condensing pressure alarm High Pressure Alarm is a safety device and indicates an alarm when the pressure exceeds a maximum limit. EIO0000000663 05/2014 155 FloatingHighPresCntrl DANGER REFRIGERANT POISONING OR FREEZER BURNS Stop the compressor operation in case of a high pressure alarm. Interlock the high pressure alarm switch with the compressors using contactors in the electrical cabinet. Failure to follow these instructions will result in death or serious injury. Parameter Description The parameters UnitType, RefrType, RefrConstantB1, RefrConstantB2, RefrConstantB3, RefrConstantB4, RefrConstantB5 and FanMaxNb are controlled parameters. Controlled parameters can be changed, however the changes only become effective after a reset of the function block. Input Data Type Range Scaling/Unit Description CondensingTempOffset CJ_SHORT 0...140 0.1° C/° F Condensing temperature offset Default: 100 OutdoorAirTempMin CJ_SHORT –580...3020 0.1° C/° F Minimum outdoor air temperature Default: 150 OutdoorAirTempMax CJ_SHORT –580...3020 0.1° C/° F Maximum outdoor air temperature Default: 300 CondensingTempMin CJ_SHORT –580...3020 0.1° C/° F Minimum condensing temperature Default: 300 CondensingTempMax CJ_SHORT –580...3020 0.1° C/° F Maximum condensing temperature Default: 500 RefrType CJ_BYTE 1...6 N/A Refrigerant type 1 R404A 2 R22 3 R410A 4 R407C 5 R134A 6 Custom Pb CJ_WORD 1...500 0.1 Pb fan control Ti CJ_WORD 0...3600 1 sec Ti fan control Td CJ_WORD 0...3600 1 sec Td fan control Default: 1 156 EIO0000000663 05/2014 FloatingHighPresCntrl Input Data Type Range Scaling/Unit Description Deadband CJ_WORD 0...500 0.1 Deadband condensing temperature Default: 20 DelayNextFanOn CJ_WORD 0...3600 sec Delay next fan On Default: 600 DelayNextFanOff CJ_WORD 0...3600 sec Delay next fan Off Default: 600 CondensingRefrControlMode CJ_BYTE 0...2 1 Condensing refrigerant pressure control type 0 Fixed 1 Floating 2 External setpoint FanMaxNb CJ_BYTE 0...12 1 Maximum number of fans Default: 6 FanFreqMin CJ_WORD 0...1000 0.1 Hz VSD minimum frequency Default: 200 FanFreqMax CJ_WORD 0...1000 0.1 Hz VSD maximum frequency Default: 500 AccelerationRampMax CJ_SHORT 0.1...100 0.1 Hz/sec Ramp time from start to target frequency Default: 20 ManualMode CJ_BIT TRUE or FALSE N/A TRUE: Frequency calculation manual mode FALSE: Frequency calculation auto mode Default: FALSE ManualFreq CJ_WORD 0...1000 0.1 Hz Frequency in manual mode RefrConstantB1 CJ_LONG –2,147,483,648 ...2,147,483,647 0.001 Custom refrigerant constant B1 RefrConstantB2 CJ_LONG –2,147,483,648 ...2,147,483,647 0.001 Custom refrigerant constant B2 RefrConstantB3 CJ_LONG –2,147,483,648 ...2,147,483,647 0.001 Custom refrigerant constant B3 RefrConstantB4 CJ_LONG –2,147,483,648 ...2,147,483,647 0.001 Custom refrigerant constant B4 RefrConstantB5 CJ_LONG –2,147,483,648 ...2,147,483,647 0.001 Custom refrigerant constant B5 EIO0000000663 05/2014 157 FloatingHighPresCntrl Input Data Type Range Scaling/Unit Description CondensingRefrPressMaxLimit CJ_SHORT 0...14500 0.01 Bar 0.1 PSI Condensing refrigerant pressure maximum alarm limit Default: 2000 CondensingRefrPressMinLimit CJ_SHORT 0...14500 0.01 Bar 0.1 PSI Condensing refrigerant pressure minimum alarm limit Default: 700 UnitType CJ_BIT TRUE or FALSE N/A Unit selection bit TRUE: ° F/PSI FALSE: ° C/Bar 158 EIO0000000663 05/2014 FloatingHighPresCntrl Output Pin Description Output Pin Description Output Data Type Range Scaling/ Unit Description EnableOut CJ_BIT TRUE or FALSE N/A TRUE: Function block is enabled FALSE: Function block is disabled FanFreq CJ_WORD FanFreqMin to 0.1 Hz FanFreqMax VSD fan speed signal FanReqNb CJ_BYTE 0 to FanMaxNb N/A Number of fans CondensingRefrTempCalc CJ_SHORT N/A 0.1° C/° F Calculated condensing refrigerant temperature CondensingRefrTempSetp CJ_SHORT N/A 0.1° C/° F Calculated condensing refrigerant temperature setpoint Alert CJ_BIT TRUE or FALSE N/A TRUE: Alert FALSE: No alert AlertID CJ_WORD 0...15 N/A Alert Id (see page 160) Alarm CJ_BIT TRUE or FALSE N/A TRUE: Alarm FALSE: No alarm AlarmID CJ_WORD 0...15 N/A Alarm Id (see page 161) Output Data Type Range Scaling/ Unit Description PIDOutput CJ_WORD 0...1000 N/A PID output Version[2] Array of 2 CJ_BYTE N/A N/A Version information of the function block Version[0] - Function block version Version[1] - Function block revision Parameter Description EIO0000000663 05/2014 159 FloatingHighPresCntrl AlertID Description The AlertID output represents a value between 0 and 15, whereby each bit represents an alert. The bits and their description are described in the following table: Alert Bit Alert Cause Effect 0 Invalid parameter (CondensingTempOffset < 0 or CondensingTempOffset > 140) (OutdoorAirTempMin < –580 or OutdoorAirTempMin > 3020) (OutdoorAirTempMax < –580 or OutdoorAirTempMax > 3020) (CondensingTempMin < –580 or CondensingTempMin > 3020) (CondensingTempMax < –580 or CondensingTempMax > 3020) (Pb < 1 or Pb > 500) (Ti < 0 or Ti > 3600) (Td < 0 or Td > 3600) (Deadband < 0 or Deadband > 500) (DelayNextFanOn < 30 or DelayNextFanOn > 3600) (DelayNextFanOff < 30 or DelayNextFanOff > 3600) (FanFreqMin < 0 or FanFreqMin > 1000) (FanFreqMax < 0 or FanFreqMax > 1000) (AccelerationRampMax < 0 or AccelerationRampMax > 1000) (CondensingRefrPressMaxLimit < 0 or CondensingRefrPressMaxLimit > 14500) (CondensingRefrPressMinLimit < 0 or CondensingRefrPressMinLimit > 14500) Function block operates at limited performance 1 High pressure refrigerant > HPR maximum pressure (CondensingRefrPress > CondensingRefrPressMaxLimit) Control mode stays in normal condition. 2 High pressure refrigerant < HPR minimum pressure (CondensingRefrPress < CondensingRefrPressMinLimit) Control mode stays in normal condition. 3 The change of a controlled parameter is not active. Changing a controlled parameter requires a machine restart. The controlled configuration parameter setting is effective only after restart of the function block. Control mode stays in normal condition, but changes only take effect after restart. 4 to 15 Not used N/A 160 EIO0000000663 05/2014 FloatingHighPresCntrl Alarm ID Description The AlarmID output represents a value between 0 and 15, whereby each bit represents a detected alarm. The bits and their description are described in the following table: Alarm Bit Alarm Cause 0 Function block is Invalid parameter range (OutdoorAirTempMin ≥ OutdoorAirTempMax) or (CondensingTempMin disabled. ≥ CondensingTempMax) (RefrType < 1 or RefrType > 6) (CondensingRefrControlMode < 0 or CondensingRefrControlMode > 2) (FanMaxNb < 0 or FanMaxNb > 12) (FanFreqMax < FanFreqMin) 1 Alarm due to analog input channel used for condensing refrigerant pressure (CondensingRefrPress) Number of fans and fan frequency turns to maximum level. 2 Alarm due to analog input channel used for outdoor air temperature (OutdoorAirTemp) All fans are started with maximum frequency 3 Alarm due to condensing pressure (CondensingPressAlarm) All fans are started with maximum frequency 4 to 15 Not used N/A EIO0000000663 05/2014 Effect 161 FloatingHighPresCntrl Section 7.5 Troubleshooting Troubleshooting Troubleshooting Troubleshooting Alarm/Alert Problem Solution AlertID.0 TRUE Invalid parameter values 1. Check the parameter values against their ranges. 2. Set the values within the defined ranges. AlertID.1 TRUE High pressure refrigerant temperature sensor exceeds the maximum limit. Check the values of CondensingRefrPress and CondensingRefrPressMaxLimit. AlertID.2 TRUE Check the values of High pressure refrigerant temperature sensor falls below the CondensingRefrPress and CondensingRefrPressMinLimit. minimum limit. AlertID.3 TRUE Latched parameter values are changed Restart the function block. AlarmID.0 TRUE Invalid parameter values 1. Check the parameter values against their ranges. 2. Set the values within the defined ranges. AlarmID.1 TRUE Alarm due to the analog input channel used for high pressure refrigerant Check if the CondensingRefrPress sensor is connected to the controller and working properly. AlarmID.2 TRUE Outdoor air temperature sensor is short-circuited or disconnected Check if the outdoor temperature sensor is connected to the controller and working properly. AlarmID.3 TRUE High pressure alarm (CondensingPressAlarm) 1. Set the number of fans and fan frequency to the defined level. 2. Check the high pressure refrigerant temperature. 162 EIO0000000663 05/2014 SoHVAC FloatingSetpoint EIO0000000663 05/2014 Chapter 8 Floating Setpoint: FloatingSetpoint Floating Setpoint: FloatingSetpoint What Is in This Chapter? This chapter contains the following sections: Section Topic Page 8.1 Functional and Machine Overview 164 8.2 Architecture 165 8.3 Function Block Description 168 8.4 Pin Description 172 8.5 Troubleshooting 177 EIO0000000663 05/2014 163 FloatingSetpoint Section 8.1 Functional and Machine Overview Functional and Machine Overview Functional Overview Functional Description The FloatingSetpoint function block is a general purpose function block to generate linear scaled output using a linear conversion function. Y-Y1=m(X-X1) FloatingSetpoint is a generic function block that is independent of machines and their hardware architecture. Why Use the FloatingSetpoint Function Block? The FloatingSetpoint function block allows to apply a different offset for every input value. The two main reasons for using the FloatingSetpoint function block are: The FloatingSetpoint function block is used to convert the analog input signal into a normalized output. The FloatingSetpoint function block is used to convert the data values from one engineering unit to other engineering units where there is a linear relation between the engineering units. Features of the FloatingSetpoint Function Block The FloatingSetpoint function block provides the following features: limits the output between parameters by means of the parameter LimitOutput. enables a reverse action for sensors that are reverse working by means of the parameter DirectReverse linear conversion Protective Features The FloatingSetpoint function block provides the following protective features to help you avoid the potentials of certain sources of machine malfunction: 164 Protective Feature Description Input range validation Inputs and parameter ranges are validated to avoid out of range data from being accepted directly. Alarm/alert notification If you enter an invalid value, an alarm or an alert is generated: alarm: the machine is switched off alert: the machine keeps on operating, however with reduced performance EIO0000000663 05/2014 FloatingSetpoint Section 8.2 Architecture Architecture What Is in This Section? This section contains the following topics: Topic Page Hardware Architecture 166 Software Architecture 167 EIO0000000663 05/2014 165 FloatingSetpoint Hardware Architecture Hardware Architecture FloatingSetpoint is a generic function block that is independent of machines and their hardware structure. 166 EIO0000000663 05/2014 FloatingSetpoint Software Architecture Function Block Diagram The following function block diagram gives you an overview of the software architecture: The block diagram shows on the left hand side the inputs, the Process Variables,on the right hand side the outputs, the Process Commands, as well as the function block FloatingSetpoint. The following table gives you an overview of the functions of FloatingSetpoint: Function Description Scaling Generates linear scaled output by means of linear equations. Limit Sets limit values, that allow to limit the output. Direct/Reverse Output Reverses the output Y. EIO0000000663 05/2014 167 FloatingSetpoint Section 8.3 Function Block Description Function Block Description FloatingSetpoint Function Block Function Block Description The FloatingSetpoint function block generates linear scaled output Y for the given analog input X. LimitOutput The output Y can be limited between the parameters Y1 and Y2. To enable this function, set the parameter LimitOutput to TRUE. If the parameter LimitOutput is set to FALSE, the output is not limited. In this case the output Y is a direct function of the input X. LimitOutput enabled (TRUE) and DirectReverse disabled (FALSE) 168 EIO0000000663 05/2014 FloatingSetpoint LimitOutput disabled (FALSE) and DirectReverse disabled (FALSE) EIO0000000663 05/2014 169 FloatingSetpoint DirectReverse Some sensor devices are reverse working. An increase in pressure decreases the current. If the parameter DirectReverse is set to TRUE, reverse action is enabled. In this case the output Y is a reverse scaled output of the input X. When DirectReverse is TRUE, the output Y is calculated using the formula: Y – Y2 = m(X - X1), where m = (Y2 – Y1) / (X2 – X1). If the parameter DirectReverse is set to FALSE, the function block operates in direct mode. In this case the output Y is directly scaled output of X. When DirectReverse is FALSE, the output Y is calculated using the formula: Y – Y1 = m(X X1), where m = (Y2 – Y1) / (X2 – X1). LimitOutput enabled (TRUE) and DirectReverse enabled (TRUE) 170 EIO0000000663 05/2014 FloatingSetpoint LimitOutput enabled (FALSE) and DirectReverse disabled (TRUE) EIO0000000663 05/2014 171 FloatingSetpoint Section 8.4 Pin Description Pin Description What Is in This Section? This section contains the following topics: Topic 172 Page Input Pin Description 173 Output Pin Description 175 EIO0000000663 05/2014 FloatingSetpoint Input Pin Description Pin Diagram The following picture shows the pin diagram of FloatingSetpoint: Input Pin Description Input Data Type Range Scaling/Unit Description EnableIn CJ_BIT TRUE or FALSE N/A TRUE: Enables the function block and scaling. FALSE: Disables the function block and Y = X. X CJ_ANALOG N/A 0.1 Analog input to be scaled. EIO0000000663 05/2014 173 FloatingSetpoint Parameter Description Parameter Data Type Range Scaling/Unit Description X1 CJ_SHORT –32768...32767 0.1 Limit X1 value Default: 200 X2 CJ_SHORT –32768...32767 0.1 Limit X2 value Default: 300 Y1 CJ_SHORT –32768...32767 0.1 Limit Y1 value Default: 400 Y2 CJ_SHORT –32768...32767 0.1 Limit Y2 value Default: 500 LimitOutput CJ_BIT TRUE or FALSE N/A TRUE: Output Limiting enabled FALSE: Output Limiting disabled Default: FALSE DirectReverse CJ_BIT TRUE or FALSE N/A TRUE: Reverse Output FALSE: Direct Output Default: FALSE 174 EIO0000000663 05/2014 FloatingSetpoint Output Pin Description Output Pin Description Output Data Type Range Scaling/Unit Description EnableOut CJ_BIT TRUE or FALSE N/A TRUE: Function block is enabled. FALSE: Function block is disabled. Y CJ_SHORT –32768...32767 0.1 Scaled output This output is equal to X if the function block is disabled. Alert CJ_BIT TRUE or FALSE N/A TRUE: Function block alert AlertID CJ_WORD 0...1 N/A Alert ID: Refer to the table below. Alarm CJ_BIT TRUE or FALSE N/A TRUE: Function block alarm AlarmID CJ_WORD 0...2 N/A Alarm ID: Refer to the table below. Data Type Range Scaling/Unit Description PIDOutput CJ_WORD 0...1000 N/A PID output Version[2] Array of 2 CJ_BYTE N/A N/A Version information of the function block Version[0] - Function block version Version[1] - Function block revision Parameter Description Output AlertID Description The AlertID output represents a value between 0 and 1, whereby each bit represents an alert. The bits and their description are described in the following table: Alert Bit Alert Cause Effect 0 Calculated output for given values of X, X1, X2, Y1 and Y2 is out of range, hence previous output is retained. Previous in range value of the output is retained, which indicates (Internal Y > 32767) or (Internal Y < –32768) 1...15 Not used N/A EIO0000000663 05/2014 175 FloatingSetpoint AlarmID Description The AlarmID output represents a value between 0 and 2, whereby each bit represents a detected alarm. The bits and their description are described in the following table: Alarm Bit Alarm Cause Effect 0 X1 == X2 Output is set to 0 1 Alarm due to analog input X, that is X.Error <> 0 X analog input sensor is short circuited or disconnected and output is set to 0. 2...15 Not used N/A NOTE: A valid parameter input resets the alarm automatically. 176 EIO0000000663 05/2014 FloatingSetpoint Section 8.5 Troubleshooting Troubleshooting Troubleshooting Troubleshooting Alarm/Alert Problem Solution AlarmID.0 TRUE Invalid parameter configuration. Slope of the linear function can not be calculated. Parameter X1 and X2 have identical values. Check and correct parameter values of X1 and X2, and make sure they have different values. AlarmID.1 TRUE Analog channel error Check the connected sensor for short circuit, broken or disconnected cable. Output Y = 0 Alarm: TRUE Check AlarmID Output Y value does not change Alarm.1 = TRUE Output out of range. Check values of parameter range. Output = Input Scaling is not done Function block is disabled. Restart the function block. EIO0000000663 05/2014 177 FloatingSetpoint 178 EIO0000000663 05/2014 SoHVAC WtrTempDbCntrl EIO0000000663 05/2014 Chapter 9 Water Temperature Deadband Control: WtrTempDbCntrl Water Temperature Deadband Control: WtrTempDbCntrl What Is in This Chapter? This chapter contains the following sections: Section Topic Page 9.1 Functional and Machine Overview 180 9.2 Architecture 183 9.3 Function Block Description 186 9.4 Pin Description 195 9.5 Troubleshooting 200 EIO0000000663 05/2014 179 WtrTempDbCntrl Section 9.1 Functional and Machine Overview Functional and Machine Overview What Is in This Section? This section contains the following topics: Topic 180 Page Functional Overview 181 Machine Overview 182 EIO0000000663 05/2014 WtrTempDbCntrl Functional Overview Functional Description The WtrTempDbCntrl function block calculates the number of compressors required to control the chilled water temperature. The WtrTempDbCntrl aims to ensure a correct and constant chilled water temperature. To regulate the water temperature, this function block controls the compressors, associated with the CompMgmt function block. Why Use the WtrTempDbCntrl Function Block? The WtrTempDbCntrl function block is used for the following purposes: Purpose Description Water temperature control maintain a constant chilled water temperature calculate the required number of compressors Features of the WtrTempDbCntrl Function Block The WtrTempDbCntrl function block provides the following features: controls the chilled water temperature by switching the compressors on and off supports cooling and heating mode by reducing /increasing the number of compressors supports 1 or 2 refrigeration circuits For a detailed description of the above features, please also refer to the chapter Function Block Description. (see page 187) Protective Features The WtrTempDbCntrl function block provides the following protective features to help you avoid the potentials of certain sources of machine malfunction: Protective Feature Description Input range validation Inputs and parameter ranges are validated to establish stable operation. Alarm-/alert notification If an invalid value is entered, an alarm or an alert is generated: alarm: the machine is switched off alert: the machine keeps on operating, however with reduced performance If the chilled water sensor is short-circuited or disconnected, WtrTempDbCntrl raises an alarm setting the number of compressors to 0. EIO0000000663 05/2014 181 WtrTempDbCntrl Machine Overview Machine View The following picture shows the interaction between the function block and the machine: WtrTempDbCntrl This function block controls the chilled water temperature, calculates the required number of compresssors and sends a request to the CompMgmt function block. CompMgmt This function block controls up to 4 compressors and manages the switch On/Off of compressors. 182 EIO0000000663 05/2014 WtrTempDbCntrl Section 9.2 Architecture Architecture What Is in This Section? This section contains the following topics: Topic Page Hardware Architecture 184 Software Architecture 185 EIO0000000663 05/2014 183 WtrTempDbCntrl Hardware Architecture Hardware Architecture Overview The figure below shows the hardware architecture for the WtrTempDbCntrl function block associated with Air Cooled Chiller. 1 2 3 4 5 6 184 Main power supply M168 Controller M168 Graphic display Variable speed drive ATV••/••• Modbus Soft starters Motor Control EIO0000000663 05/2014 WtrTempDbCntrl Software Architecture Function Block Diagram The following function block diagram provides an overview of the software architecture: The block diagram shows on the left hand side the inputs, the Process Variables, on the right hand side the outputs, the Process Commands, as well as the function block WtrTempDbCntrl. The following table provides an overview of the functions of WtrTempDbCntrl: Function Description PID (Proportional Integral Derivative) aims to get PID output at desired value: short-term with minimal overshoot stable Compressor Calculation determines the required number of compressors Compressor calculation is based on: PID output On/Off Delay time Deadband Mode On/Off Delay On Delay helps to prevent further increase for the set time. Off Delay helps to prevent further decrease for the set time. Deadband Deadband is a signal range without any actions occurring. The purpose is to: help prevent oscillation help prevent repeated On/Off cycles EIO0000000663 05/2014 185 WtrTempDbCntrl Section 9.3 Function Block Description Function Block Description What Is in This Section? This section contains the following topics: Topic 186 Page WtrTempDbCntrl Function Block 187 Timing Diagram 190 EIO0000000663 05/2014 WtrTempDbCntrl WtrTempDbCntrl Function Block Function Block Description The WtrTempDbCntrl function block controls the chilled water temperature by controlling the number of compressors, activating or deactivating them according to the desired temperature. In cooling mode, an increased number of compressors will decrease the chilled water temperature. In heating mode, an increased number of compressors will increase the chilled water temperature. The output number of compressors is limited between 0 and the value defined by the parameter for the number of compressors CompMaxNb. The function block WtrTempDbCntrl provides the following features: Cooling and Heating mode PID Control Timer Delay Failure Management Cooling and Heating Mode The heating-cooling mode is changed by the input CoolingHeatingMode. The changes are applied when the function block is restarted which means a rising edge of EnableIn. The following table gives you an overview of the cooling and heating mode: Mode Description Cooling mode The number of compressors is incremented when the chilled water temperature is above chilled water temperature set point + Pb/2 and PID control signal is 0%. The number of compressors is decremented when the chilled water temperature is below chilled water temperature set point –Pb/2 and PID control signal is 100%. Heating mode The number of compressors is decremented when the chilled water temperature is above chilled water temperature set point + Pb/2 and PID control signal is 0%. The number of compressors is incremented when the chilled water temperature is below chilled water temperature set point - Pb/2 and PID control signal is 100%. If the deadband is set to 0, the control is purely PID control. EIO0000000663 05/2014 187 WtrTempDbCntrl The figure below shows the relation between PID control and deadband for cooling mode: PID Control The intention of PID Control is to maintain an output at a desired value. The output of PID Control is normalized to the linear portion of the proportional band. Example: Valve fully closed = 0% Valve fully open = 100% When the PID output is 100% or 0%, the Compressor Calculation increases or decreases the number of compressors. The following types relating to PID and Deadband control are possible: 188 Type Description Purely Deadband control The parameter deadband must be set equal or higher than the parameter Pb. The switch on and off conditions of compressors depend on the chilled water temperature being inside or outside the deadband range. Combination PID + Deadband control The parameter deadband is set between 0 and the value of parameter Pb. The switch on and off conditions of compressors depend on the chilled water temperature being outside the deadband range and fulfilling the requirement of PID control. This type of control is very useful when a relative large proportional band is required for stable control and compressors are not allowed to switch on and off when the chilled water temperature deviation is very small, for example. within +/- 2K from control setpoint. EIO0000000663 05/2014 WtrTempDbCntrl Timer Delay The timer delay parameter DelayNextCompOn starts when the number of compressors is incremented. The following table provides an overview of the timers: Timer Description DelayNextCompOn The timer delay next compressor On is started when the number of compressors is incremented. No other compressor can be switched on when the timer delay next compressor On is active. DelayNextCompOff The timer delay next compressors Off is started when the number of compressors is decremented. No other compressor can be switched off when the timer delay next compressor Off is active. Failure Management The function block raises an alarm when the sensor input ChilledWaterTemp indicates a missing or short-circuited sensor. The function block can not operate without this sensor. In this alarm situation all compressors are switched off. The function block checks that the sensor input value is within the set limits. When the set limits are exceeded, an alert is generated: ChilledWaterTemp > ChilledWaterTempMaxLimit alarm, Hysteresis = 10 (fixed value) ChilledWaterTemp < ChilledWaterTempMinLimit alarm, Hysteresis = 10 (fixed value) In this alert situation the control module remains in normal operation. The output AlarmID and AlertID indicates the alarm or alert, whenever an alarm or alert occurs. EIO0000000663 05/2014 189 WtrTempDbCntrl Timing Diagram WtrTempDbCntrl Function Block in Heating Mode The timing diagram below shows the heating mode of WtrTempDbCntrl function block: The following table explains the steps of the above graphic: 190 Step Description 1 Machine is started and ChilledWaterTemp is outside the control band (ChilledWaterTempSetp +/- Pb/2). The number of requested compressors is incremented. 2 The DelayNextCompOn timer is started when the number of compressors is incremented. No additional compressors will be started as long as the timer is active. 3 After expiration of the DelayNextCompOn timer, the ChilledWaterTemp is monitored. As the ChilledWaterTemp is outside the control band (ChilledWaterTempSetp +/- Pb/2), the number of requested compressors is incremented. 4 The DelayNextCompOn timer is started when the number of compressors is incremented. No additional compressors will be started as long as the timer is active. 5 After expiration of the DelayNextCompOn timer, the ChilledWaterTemp is monitored. As the ChilledWaterTemp is now inside the control band (ChilledWaterTempSetp +/- Pb/2), the number of requested compressors is not changed. 6 The ChilledWaterTemp is outside the control band (ChilledWaterTempSetp +/- Pb/2). The number of requested compressors is decremented. 7 The DelayNextCompOff timer is started when the number of compressors is decremented. No additional compressors will be started as long as the timer is active. 8 After expiration of the DelayNextCompOff timer, the ChilledWaterTemp is monitored. As the ChilledWaterTemp is now inside the control band (ChilledWaterTempSetp +/- Pb/2), the number of requested compressors is not changed. EIO0000000663 05/2014 WtrTempDbCntrl WtrTempDbCntrl Function Block in Cooling Mode The timing diagram below shows the cooling mode of WtrTempDbCntrl function block: The following table explains the step of the above graphic: Step Description 1 Machine is started and ChilledWaterTemp is outside the control band (ChilledWaterTempSetp +/- Pb/2). The number of requested compressors is incremented. 2 The DelayNextCompOn timer is started when the number of compressors is incremented. No additional compressors will be started as long as the timer is active. 3 After expiration of the DelayNextCompOn timer, the ChilledWaterTemp is monitored. As the ChilledWaterTemp is outside the control band (ChilledWaterTempSetp +/- Pb/2), the number of requested compressors is incremented. 4 The DelayNextCompOn timer is started when the number of compressors is incremented. No additional compressors will be started as long as the timer is active. 5 After expiration of the DelayNextCompOn timer, the ChilledWaterTemp is monitored. As the ChilledWaterTemp is now inside the control band (ChilledWaterTempSetp +/- Pb/2), the number of requested compressors is not changed. 6 The ChilledWaterTemp is outside the control band (ChilledWaterTempSetp +/- Pb/2). The number of requested compressors is decremented. 7 The DelayNextCompOff timer is started when the number of compressors is decremented. No additional compressors will be started as long as the timer is active. 8 After expiration of the DelayNextCompOff timer, the ChilledWaterTemp is monitored. As the ChilledWaterTemp is now inside the control band (ChilledWaterTempSetp +/- Pb/2), the number of requested compressors is not changed. EIO0000000663 05/2014 191 WtrTempDbCntrl DelayNextCompOn The following timing diagram below shows DelayNextCompOn: The following table explains the steps of the above graphic: Step Description 1 The DelayNextCompOn timer is started when the number of compressors is incremented. No additional compressors will be started as long as the timer is active. 2 After expiration of the DelayNextCompOn timer, compressors can be switched on depending on the chilled water temperature and PID control conditions. DelayNextCompOff The following timing diagram shows DelayNextCompOff: The following table explains the steps of the above graphic: 192 Step Description 1 The DelayNextCompOff timer is started when the number of compressors is incremented. No additional compressors will be stopped as long as the timer is active. 2 After expiration of the DelayNextCompOff timer, compressors can be switched off depending on the chilled water temperature and PID control conditions. EIO0000000663 05/2014 WtrTempDbCntrl Dual Circuit Balancing The following table shows an overview of Dual Circuit Balancing: Parameter Input / Output Operation RefrCircSel (Parameter Input) - CJ_BYTE RefrCircSel = 0 Operation with single refrigerant circuit, number of compressor required will be at ComReqNbCkt1 output. RefrCircSel = 1 Operation with dual refrigerant circuit 1 having priority. In sequence mode: the compressors in circuit 1 will be ON, and then compressors in circuits 2 will be ON. In balance mode for 1 compressor request: compressor from circuit 1 will be ON, and for 2 compressor requests 1 compressor from circuit 2 will be ON. The same cycle is applicable when the compressor request decrements. RefrCircSel = 2 Operation with dual refrigerant circuit, with circuit 2 having priority. In sequence mode: the compressors in circuit 1 and in circuit 2 will be ON. In balance mode for 1 compressor request, compressor from circuit 2 will be ON and for 2 compressor requests, 1 compressor from circuit 1 will be ON (accordingly: for 3 compressor requests, another compressor from circuit 2 will be ON. The same cycle is applicable when the compressor request decrements. RefrCircMode (Parameter Input) - CJ_BIT EIO0000000663 05/2014 TRUE: sequence mode The compressors in one circuit (circuit selection according to RefrCircSel) will be ON, and then the compressors in the other circuit will be ON. This is applicable, when RefrCircSel is equal to 1 or 2. FALSE: balance mode In balance mode, 1 compressor in one circuit (circuit selection will be set according to RefrCircSel will be ON, and then 1 compressor in the other circuit will be ON. Then again, 1 compressor in the first circuit will be ON. This is applicable, when RefrCircSel is equal to 1 or 2. 193 WtrTempDbCntrl Parameter Input / Output Operation CompReqNbCkt1 (Output) - CJ_BYTE Number of compressor request in circuit 1. NOTE: When the single refrigerant circuit is used (RefrCircSel = 0), then this output will be used for the requested number of compressors. CompReqNbCkt2 (Output) - CJ_BYTE Number of compressor request in circuit 2. NOTE: When the single refrigerant circuit is used (RefrCircSel = 0), then this output will be 0. 194 EIO0000000663 05/2014 WtrTempDbCntrl Section 9.4 Pin Description Pin Description What Is in This Section? This section contains the following topics: Topic Page Input Pin Description 196 Output Pin Description 198 EIO0000000663 05/2014 195 WtrTempDbCntrl Input Pin Description Pin Diagram The following picture shows the pin diagram of WtrTempDbCntrl: Input Pin Description Input Data Type Range Scaling / Unit Description EnableIn CJ_BIT TRUE or FALSE N/A TRUE: Enables the function block. FALSE: Disables the function block. ChilledWaterTemp CJ_ANALOG N/A 0.1° C/° F Chilled water temperature ChilledWaterTempSetp CJ_SHORT –32768...32767 0.1° C/° F Chilled water temperature setpoint CoolingHeatingMode CJ_BIT TRUE or FALSE N/A Cooling and heating mode (see page 187) TRUE: Heating mode FALSE: Cooling mode Default: FALSE CompAvailNbCirc1 CJ_BYTE 0...255 N/A Number of available compressors in refrigerant circuit 1. This input can be connected to output CompMaxNbAvail of CompMgmt 196 EIO0000000663 05/2014 WtrTempDbCntrl Input Data Type Range Scaling / Unit Description CompAvailNbCirc2 CJ_BYTE 0...255 N/A Number of available compressors in refrigerant circuit 2. This input can be connected to output CompMaxNbAvail of CompMgmt Parameter Description Parameter Data Type Range Scaling / Unit Description Pb CJ_WORD 10 to 500 0.1 Proportional gain Pb for compressor control Default: 60 Ti CJ_WORD 0...3600 1 sec Integral gain Ti for compressor control Default: 0 Td CJ_WORD 0...3600 1 sec Derivative gain Td for compressor control Default: 0 Deadband CJ_SHORT 0 to 500 0.1 Deadband chilled water temperature Default: 40 DelayNextCompOn CJ_WORD 30...1200 1 sec Delay next compressor On (see page 189) Default: 600 DelayNextCompOff CJ_WORD 30...1200 1 sec Delay next compressor Off (see page 189) Default: 600 ChilledWaterTempMaxLimit CJ_SHORT –580...3020 0.1° C/° F Maximum chilled water temperature Default: 160 ChilledWaterTempMinLimit CJ_SHORT –580...3020 0.1° C/° F Minimum chilled water temperature Default: 20 RefrCircSel CJ_BYTE 0...2 N/A 0 = Single refrigerant circuit 1 = Dual refrigerant circuit, priority on circuit 1 2 = Dual refrigerant circuit, priority on circuit 2 RefrCircMode CJ_BIT TRUE or FALSE N/A Mode selection for dual refrigerant circuits TRUE: Sequential mode FALSE: Balanced mode EIO0000000663 05/2014 197 WtrTempDbCntrl Output Pin Description Output Pin Description Output Data Type Range Scaling / Unit Description EnableOut CJ_BIT TRUE or FALSE N/A CompReqNbCirc1 CJ_BYTE 0...CompAvailNbCirc1 N/A Requested number of compressors in circle 1 CompReqNbCirc2 CJ_BYTE 0...CompAvailNbCirc2 N/A Requested number of compressors in circle 2 Alert CJ_BIT TRUE or FALSE N/A Alert bit AlertID CJ_WORD 0...15 N/A Alert ID (see page 199) Alarm CJ_BIT TRUE or FALSE N/A Alarm bit AlarmID CJ_WORD 0... 3 N/A Alarm ID (see page 199) TRUE: Function block is enabled FALSE: Function block is disabled Parameter Description Output Data Type Range Scaling/Unit Description PIDOutput CJ_WORD 0...1000 N/A PID output Version[2] Array of 2 CJ_BYTE N/A N/A Version information of the function block Version[0] - Function block version Version[1] - Function block revision 198 EIO0000000663 05/2014 WtrTempDbCntrl AlertID Description The AlertID output represents a value between 0 and 15, whereby each bit represents an alert. The bits and their description are described in the following table: Alert Bit Alert Cause Effect 0 The conditions for invalid parameter range are as follows: 1. If ChilledWaterTempMaxLimit < ChilledWaterTempMinLimit 2. If any of the following input parameters are beyond the range Pb < 10 or Pb > 500 Ti < 0 or Ti > 3600 Td < 0 or Td > 3600 Deadband < 0 or Td > 500 DelayNextCompOn < 30 or DelayNextCompOn > 1200 DelayNextCompOff < 30 or DelayNextCompOff > 1200 ChilledWaterTempMaxLimit < –580 or ChilledWaterTempMaxLimit > 3020 ChilledWaterTempMinLimit < –580 or ChilledWaterTempMinLimit > 3020 Function block operates, however with limited performance. 1 Chilled water temperature ChilledWaterTemp > Maximum chilled water temperature ChilledWaterTempMaxLimit with constant hysteresis of 10 Compressor does not operate. 2 Chilled water temperature ChilledWaterTemp < Minimum chilled water temperature ChilledWaterTempMinLimit with constant hysteresis of 10 3 A controlled parameter has been changed, which requires a machine restart. The new configuration parameter is effective only after the restart of function block. Present changes are not active. Function block uses the previously set values. AlarmID Description The AlarmID output represents a value between 0 and 3, whereby each bit represents a detected alarm. The bits and their description are described in the following table: Alarm Bit Alarm Cause Effect 0 Any of the following input parameter is beyond the range: (CompMaxNb < 1 or CompMaxNb > 4) Function block is disabled. 1 ChilledWaterTemp sensor is short-circuited or disconnected. Control is not possible. The compressors are switched off. EIO0000000663 05/2014 199 WtrTempDbCntrl Section 9.5 Troubleshooting Troubleshooting Troubleshooting Troubleshooting Alarm/Alert Problem Solution AlarmID.0 TRUE Invalid parameter configuration 1. Check the parameters against their ranges. 2. Set the values within their defined ranges. AlarmID.1 TRUE Chilled water temperature sensor is short-circuited or disconnected. Check, if the chilled water temperature sensor is connected to the controller. AlertID.0 TRUE Invalid parameter ranges 1. Check the parameters against their ranges. 2. Set the values within their defined ranges. 3. Check the delay time parameter and chilled water temperature ranges. 4. Reset the compressors. AlertID.1 TRUE Chilled water temperature sensor exceeds the maximum limit. AlertID.2 TRUE Chilled water temperature sensor falls below the minimum limit. 1. Check, if compressors are operating. 2. Check correct mounting of temperature sensor. 3. Check temperature limits. 200 EIO0000000663 05/2014 SoHVAC Thermal Power Calculation EIO0000000663 05/2014 Chapter 10 Thermal Power Calculation: ThermalPowerCalculation Thermal Power Calculation: ThermalPowerCalculation What Is in This Chapter? This chapter contains the following sections: Section Topic Page 10.1 Function Block Description 202 10.2 Pin Description 204 EIO0000000663 05/2014 201 Thermal Power Calculation Section 10.1 Function Block Description Function Block Description ThermalPowerCalculation Function Block Description Function Block Description The ThermalPowerCalculation function block calculates the thermal power and the thermal energy produced. The calculation of the thermal power of a hydraulic system is based on the mass flow rate, the heat capacity of the medium, and the temperature difference before and after heat dissipation. The ThermalPowerCalculation function block may be used with the COPcalculation function block (see page 207) to determine the machine efficiency, or may be used independently. Why Use the ThermalPowerCalculation Function Block? The ThermalPowerCalculation function block: simplifies programming. reduces engineering and commissioning time. 202 EIO0000000663 05/2014 Thermal Power Calculation Features of the ThermalPowerCalculation Function Block The ThermalPowerCalculation function block provides the following features: provides the instant thermal power and the total thermal energy. allows you to measure total thermal energy over a used-defined period. can work with metering devices providing either mass flow or volume flow information. provides thermal energy information in the right format to be used on the COPcalculation function block (see page 207). The thermal power is calculated based on the following formula: For meters providing a volume flow, the mass flow is calculated according to: Protective Features The function block provides the following protective feature to help avoid certain sources of machine malfunction: Protective Feature Description Input range validation Inputs and parameter ranges are validated to help prevent out of range data from being accepted directly. EIO0000000663 05/2014 203 Thermal Power Calculation Section 10.2 Pin Description Pin Description Pin Description Pin Diagram The following picture shows the pin diagram of the ThermalPowerCalculation function block: Input Pin Description Input Data Type Range Scaling / Unit Description xReset CJ_BIT TRUE or FALSE N/A Reset shInputTemp CJ_SHORT –32768...32767 0.1° C (K) Input temperature shOutputTemp CJ_SHORT –32768...32767 0.1° C (K) Output temperature wFlow CJ_WORD 0... 65535 0.1 kg/s Mass flow wHeatCap CJ_WORD 0... 65535 0.1 kJ / (kg * K) Heat capacity of the medium wDensity CJ_WORD 0... 65535 0.1 Density correction value (see the values in the table for wDensity below). Default: 1.0 NOTE: A rising edge on the xReset input resets the energy calculation to 0. 204 EIO0000000663 05/2014 Thermal Power Calculation Output Pin Description Output Data Type Range Scaling / Unit Description dwThermalPower CJ_DWORD 0...4294967295 0.001 kW Actual thermal power dwThermalEnergy CJ_DWORD 0...4294967295 0.001 kWh Accumulated thermal energy wDensity Depending on the flow type, the correction value is taken from the input wDensity. The table shows the correction on the example of water and brine: Flow Unit wDensity Water (4° C) wDensity Brine (0° C / 25%) Mass kg/s 1 1.05 Volume l/s 1 kg/l Volume m Volume m3/h 3/s 1000 1.05 kg/l kg/m3 1000/3600 kg/m3 1050 kg/m3 1050/3600 kg/m3 Water (4° C): c = 4.205 kJ / (kg * K), p = 1 kg/l Brine (0° C / 25%): c = 3.700 kJ / (kg * K), p = 1.05 kg/l EIO0000000663 05/2014 205 Thermal Power Calculation 206 EIO0000000663 05/2014 SoHVAC COPCalculation EIO0000000663 05/2014 Chapter 11 Coefficient of Performance Calculation: COPCalculation Coefficient of Performance Calculation: COPCalculation What Is in This Chapter? This chapter contains the following sections: Section Topic Page 11.1 Functional Overview 208 11.2 Pin Description 209 EIO0000000663 05/2014 207 COPCalculation Section 11.1 Functional Overview Functional Overview COPCalculation Function Block Description Function Block Description The coefficient of performance (COP) indicates the efficiency of heating and cooling machines. The higher the COP, the more efficient the machine operates. The COP is defined by the ratio heat dissipation and electrical power intake. The COPCalculation function block calculates the COP based on the following formula: COP = thermal power (kW) / electrical power (kW) Why Use the COPCalculation Function Block? The COPCalculation function block: simplifies programming. reduces engineering and commissioning time. provides proper functionality verified on real installations. Features of the COPCalculation Function Block The COPCalculation function block provides the following features: implements methods to calculate the instant machine COP. provides a short-term COP indicating the average COP over a duration of 5 min. calculates the average COP for a user-defined duration (seasonal COP). provides an input to reset all accumulated COP values and indicates the date of the last reset. Protective Features The function block provides the following protective feature to help avoid certain sources of machine malfunction: 208 Protective Feature Description Input range validation Inputs and parameter ranges are validated to help prevent out of range data from being accepted directly. EIO0000000663 05/2014 COPCalculation Section 11.2 Pin Description Pin Description Pin Description Pin Diagram The following picture shows the pin diagram of the COPCalculation function block: Input Pin Description Input Data Type Range Scaling / Unit Description xReset CJ_BIT TRUE or FALSE N/A Reset input to restart long-term COP calculation. dwElecPower CJ_DWORD 0...4294967295 0.001 kW Electrical power dwCoolingPower CJ_DWORD 0...4294967295 0.001 kW Thermal power dwElecEnergy CJ_DWORD 0...4294967295 0.001 kWh Electrical energy dwCoolingEnergy CJ_DWORD 0...4294967295 0.001 kWh Thermal energy dtRTCin CJ_DATETIME N/A N/A System date and time EIO0000000663 05/2014 209 COPCalculation Output Pin Description Output Data Type Range Scaling / Unit Description wLongTermCOP CJ_WORD 0...65535 0.01 Long-term COP (user-defined) wShortTermCOP CJ_WORD 0...65535 0.01 Short-term COP (sliding window of 5 min) wInstantCOP CJ_WORD 0...65535 0.01 Instant COP dtCOPLastReset CJ_DATETIME N/A N/A Date and time of last reset wLongTermCOP The output wLongTermCOP provides the average COP for a user-defined duration. The long-term COP calculation is started with a rising edge on the xReset input. Before performing the reset to start a new measurement period, archive the wLongTermCOP value by storing it to a separate variable. 210 EIO0000000663 05/2014 SoHVAC Pulse2Counter EIO0000000663 05/2014 Chapter 12 Totalizer for Digital Input Pulses: Pulse2Counter Totalizer for Digital Input Pulses: Pulse2Counter What Is in This Chapter? This chapter contains the following sections: Section Topic Page 12.1 Functional Overview 212 12.2 Pin Description 214 EIO0000000663 05/2014 211 Pulse2Counter Section 12.1 Functional Overview Functional Overview Pulse2Counter Function Block Description Function Block Description The function block Pulse2Counter counts the pulses provided by an energy meter. With the Counter2Energy (see page 218) the counted values are converted to active power and energy. NOTE: The function block Pulse2Counter must be used on M168 controllers that do not provide fast counter inputs. Why Use the Pulse2Counter Function Block? The Pulse2Counter function block: simplifies programming. reduces engineering and commissioning time. Features of the Pulse2Counter Function Block The Pulse2Counter provides the following features: accumulates the number of pulses of a digital input. is used to process meter information provided by pulses. provides an input to reset the counter value and indicates the date of the last reset. Energy Meter As part of the energy management, energy data from the energy meter can be read by an M168 controller via pulse or Modbus communication. 212 Energy meter with pulse communication The M168 controller reads the energy data via a pulse communication using the AFBs Pulse2Counter and Counter2Energy (see page 218). Energy meter with Modbus communication The M168 controller reads the energy data via a Modbus communication using the AFB EnergyMeterModbusCom (see page 228). EIO0000000663 05/2014 Pulse2Counter Protective Features The function block provides the following protective feature to help avoid certain sources of machine malfunction: Protective Feature Description Input range validation Inputs and parameter ranges are validated to help prevent out of range data from being accepted directly. EIO0000000663 05/2014 213 Pulse2Counter Section 12.2 Pin Description Pin Description Pin Description Pin Diagram The following picture shows the pin diagram of the Pulse2Counter function block: Input Pin Description Input Data Type Range Scaling / Unit Description xEn CJ_BIT TRUE or FALSE N/A Enables function block/ counting xPulse CJ_BIT TRUE or FALSE N/A Input pulses from energy meter xReset CJ_BIT TRUE or FALSE N/A Resets the accumulated pulse value. NOTE: The rising edge of the input xReset resets the internal values to zero. Output Pin Description Output Data Type Range Scaling / Unit Description dwPulseCnt CJ_DWORD 0…4294967295 N/A Number of accumulated pulses dtDateTimeReset CJ_DATETIME N/A N/A Date and time when the last reset has been performed. wAlarmID CJ_WORD 0...65535 N/A Alarm identification 214 EIO0000000663 05/2014 Pulse2Counter AlarmID Description The AlarmID output represents a value from 0 to 65535, whereby each bit represents a detected alarm. The table contains the bits and their description: Alarm Bit Alarm Cause Effect 0 The pulse duration is too short. A reliable pulse count is not possible. NOTE: This alarm is generated when the frequency of the input is higher than 2 Hz or the time between 2 ON states of the pulse input is less than 500 ms. 1 Overflow alarm The pulse count register has reached the maximum limit value. The pulse count is not continued. dwPulseCnt value is retained. 2-15 N/A N/A Troubleshooting The AlarmID output represents a value from 0 to 65535, whereby each bit represents a detected alarm. The table contains the bits and their description: Alarm Problem Solution wAlarmID.0 The pulse duration is too short. Check and increase the pulse width provided by an energy meter. wAlarmID.1 Overflow alarm Reset the function block by a rising edge on the xReset input. EIO0000000663 05/2014 215 Pulse2Counter 216 EIO0000000663 05/2014 SoHVAC Counter2Energy EIO0000000663 05/2014 Chapter 13 Transform Counted Values to Energy: Counter2Energy Transform Counted Values to Energy: Counter2Energy What Is in This Chapter? This chapter contains the following sections: Section Topic Page 13.1 Functional Overview 218 13.2 Pin Description 219 EIO0000000663 05/2014 217 Counter2Energy Section 13.1 Functional Overview Functional Overview Counter2Energy Function Block Description Function Block Description The function block Counter2Energy transforms a numeric value to energy information. The Counter2Energy function block may be used used with the Pulse2Counter function block (see page 212) to provide energy information based on pulses received by a meter, or may be used independently. Why Use the Counter2Energy Function Block? The function block Counter2Energy: simplifies programming. reduces engineering and commissioning time. Features of the Counter2Energy Function Block The function block Counter2Energy provides the following features: converts pulses to energy information according to user-defined scaling definitions. calculates the active power based on the frequency the input value increases. provides active energy information of the counter value from the function block Pulse2Counter (see page 212) or a fast counter input on the M168. Protective Features The function block provides the following protective feature to help avoid certain sources of machine malfunction: 218 Protective Feature Description Input range validation Inputs and parameter ranges are validated to help prevent out of range data from being accepted directly. EIO0000000663 05/2014 Counter2Energy Section 13.2 Pin Description Pin Description Pin Description Pin Diagram The following picture shows the pin diagram of the Counter2Energy function block: Input Pin Description Input Data Type Range Scaling / Unit Description xEn CJ_BIT TRUE or FALSE N/A Enables the function block and metering. dwPulseCnt CJ_DWORD 0…4294967295 1 pulse Pulse count value from Counter2Energy or fast counter input. wPulseConstant CJ_WORD 1...1000 1 pulse / kWh Number of pulses per kWh provided by the meter. wPulseConstant The pulses are transformed to energy information according to: dwTotalActiveEnergy = (dwPulseCnt / wPulseConstant) If... Then... wPulseConstant is configured as 1 pulse and the number of pulses counted is 100 the output dwTotalActiveEnergy is 100 kWh. wPulseConstant is configured as 10 pulses the output dwTotalActiveEnergy is10 kWh. and the number of pulses counted is 100 EIO0000000663 05/2014 219 Counter2Energy Output Pin Description Output Data Type Range Scaling / Unit Description lTotalActivePower CJ_LONG -2147483648 ...2147483647 0.001 kW Active power 0…4294967295 0.001 kWh dwTotalActiveEnergy CJ_DWORD NOTE: The value is zero when dwPulseCnt is zero. Total active energy NOTE: The dwTotalActiveEnergy value reaches the maximum limit after 10.8 years, assuming one pulse every 500 ms for 1 Wh consumption. In this case, the parameter is set to 0, and the function block continues to operate. wAlarmID CJ_WORD 0...65535 N/A Alarm identification AlarmID Description The AlarmID output represents a value from 0 to 65535, whereby each bit represents a detected alarm. The table contains the bits and their description: Alarm Bit Alarm Cause Effect 0 Invalid configuration of wPulseConstant. The value is less than 1 or greater than 1000. The function block stops calculating. The dwTotalActiveEnergy value is retained. 1 Overflow alarm The total active energy value has reached the maximum limit. The energy accumulation restarts from zero. 2-15 N/A N/A Alarm Problem Solution wAlarmID.0 The value is less than 1 or greater than 1000. Check and configure the wPulseConstant value between 1 to 1000. wAlarmID.1 Overflow alarm The energy accumulation restarts from zero automatically. Troubleshooting 220 EIO0000000663 05/2014 SoHVAC EnergyTrend EIO0000000663 05/2014 Chapter 14 Energy Meter Data Trend: EnergyTrend Energy Meter Data Trend: EnergyTrend What Is in This Chapter? This chapter contains the following sections: Section Topic Page 14.1 Functional Overview 222 14.2 Pin Diagram 223 EIO0000000663 05/2014 221 EnergyTrend Section 14.1 Functional Overview Functional Overview EnergyTrend Function Block Description Function Block Description The function block EnergyTrend is provided for applications that require energy monitoring where the detailed energy consumption is needed for user-defined periods. It stores actual and historical energy information on a daily, weekly, monthly, yearly, user-defined base. It may be used with the function block Counter2Energy (see page 218) or with the function block EnergyMeterModbusCom (see page 218), or it may be used independently. Why Use the EnergyTrend Function Block? The function block EnergyTrend: simplifies programming. reduces engineering and commissioning time. Features of the EnergyTrend Function Block The function block EnergyTrend provides the following features: stores the total energy consumption per day, week, month, and year. stores the total energy consumption for a user-defined period. stores all total energy consumption values of the previous measurement period. Protective Features The function block provides the following protective feature to help avoid certain sources of machine malfunction: 222 Protective Feature Description Input range validation Inputs and parameter ranges are validated to help prevent out of range data from being accepted directly. EIO0000000663 05/2014 EnergyTrend Section 14.2 Pin Diagram Pin Diagram Pin Description Pin Diagram The following picture shows the pin diagram of the EnergyTrend function block: EIO0000000663 05/2014 223 EnergyTrend Input Pin Description Input Data Type Range Scaling / Unit Description xEn CJ_BIT TRUE or FALSE N/A Enables the function block. dwTotalActiveEnergy CJ_DWORD 0…4294967295 0.001 kWh Accumulated energy xConsumReset CJ_BIT TRUE or FALSE N/A Trigger to store the current value of dwConsumReset into dwConsumPrevReset, followed by setting dwConsumReset to 0. NOTE: The reset is performed on a rising edge. xReset CJ_BIT TRUE or FALSE N/A Used to reset the alarm. NOTE: The alarm is reset at the rising edge. Output Pin Description Output Data Type Range Scaling / Unit Description dwConsumDayPrev CJ_DWORD 0…4294967295 0.001 kWh Total active energy consumed the previous day. dwConsumDay CJ_DWORD 0…4294967295 0.001 kWh Total active energy consumed today. dwConsumWeekPrev CJ_DWORD 0…4294967295 0.001 kWh Total active energy consumed the previous week. dwConsumWeek CJ_DWORD 0…4294967295 0.001 kWh Total active energy consumed this week. dwConsumMonthPrev CJ_DWORD 0…4294967295 0.001 kWh Total active energy consumed the last month. dwConsumMonth CJ_DWORD 0…4294967295 0.001 kWh Total active energy consumed this month. dwConsumMonthly[12] Array[0..11] CJ_DWORD 0…4294967295 0.001 kWh Total active energy consumed the last months (January to December). dwConsumYearPrev CJ_DWORD 0…4294967295 0.001 kWh Total active energy consumed the last year. dwConsumYear CJ_DWORD 0…4294967295 0.001 kWh Total active energy consumed this year. 224 EIO0000000663 05/2014 EnergyTrend Output Data Type Range Scaling / Unit Description dwConsumPrevReset CJ_DWORD 0...4294967295 0.001 kWh User-defined measurement period. Total active energy consumed between the last 2 xConsumReset. dwConsumReset CJ_DWORD 0...4294967295 0.001 kWh User-defined measurement period. Total active energy consumed since the last xConsumReset. dtDateTimeReset CJ_DATETIME N/A N/A User-defined measurement period. Date and time of the last xConsumReset performed. wAlarmID CJ_WORD 0...65535 N/A Alarms NOTE: dwConsumMonthly[0] – January consumption,....dwConsumMonthly[11] – December consumption. NOTE: Calculations are based on the M168 internal clock. Make sure that the clock is configured properly. Week data reflect consumption from Sunday 00:00 AM to Saturday 11:59 PM. Month data reflect consumption from first day 00:00 AM to last day 11:59 PM. AlarmID Description The AlarmID output represents a value from 0 to 65535, whereby each bit represents a detected alarm. The table contains the bits and their description: Alarm Bit Alarm Cause Effect 0 The value of dwTotalActiveEnergy is decreasing. The function block stops calculating. All total active energy values are retained. 1-15 N/A N/A NOTE: Reset the alarm bit 0 with the input pin xReset. After resetting the alarm the outputs are updated with new calculated values. Troubleshooting Alarm Problem Solution wAlarmID.0 The value of dwTotalActiveEnergy is decreasing. Check the source connected to the input dwTotalActiveEnergy to provide decreasing energy values. EIO0000000663 05/2014 225 EnergyTrend 226 EIO0000000663 05/2014 SoHVAC EnergyMeterModbusCom EIO0000000663 05/2014 Chapter 15 Energy Meter Modbus Communication Module: EnergyMeterModbusCom Energy Meter Modbus Communication Module: EnergyMeterModbusCom What Is in This Chapter? This chapter contains the following sections: Section Topic Page 15.1 Functional Overview 228 15.2 Pin Description 230 EIO0000000663 05/2014 227 EnergyMeterModbusCom Section 15.1 Functional Overview Functional Overview EnergyMeterModbusCom Function Block Description Function Block Description The EnergyMeterModbusCom function block manages the Modbus communication between the M168 controller and a power meter device of the iEM3••• series. The M168 controller acts as a Modbus master device. The function block EnergyMeterModbusCom supports the energy meters (see page 212) iEM3150, iEM3155, iEM3250, iEM3255 and PM3250. Hardware Structure The following picture shows the M168 controller communication interfaces. Why Use the EnergyMeterModbusCom Function Block? The function block EnergyMeterModbusCom: simplifies programming. reduces engineering and commissioning time. 228 EIO0000000663 05/2014 EnergyMeterModbusCom Features of the EnergyMeterModbusCom Function Block The function block EnergyMeterModbusCom provides the following features: manages the communication between the M168 and an iEM3••• energy meter. reads the energy information according to the user-defined time interval. provides the following energy information: Total active energy Active power and power factor Average current Average phase and line voltage Frequency Protective Features The function block provides the following protective feature to help avoid certain sources of machine malfunction: Protective Feature Description Input range validation Inputs and parameter ranges are validated to help prevent out of range data from being accepted directly. EIO0000000663 05/2014 229 EnergyMeterModbusCom Section 15.2 Pin Description Pin Description Pin Description Pin Diagram The following picture shows the pin diagram of the EnergyMeterModbusCom function block: Input Pin Description Input Data Type Range Scaling / Unit Description xEn CJ_BIT TRUE or FALSE N/A Enables the function block. byDeviceNr CJ_BYTE 1...247 N/A Modbus SL address assigned to the energy meter. NOTE: The Modbus SL address assigned to the meter must be unique in the network. wReadTimer CJ_WORD 0...65535 1 sec Interval to read energy information from the meter. Default value: 10 sec wTimeOut CJ_WORD 0...65535 1 sec Interval by that the communication status to the meter is checked. Default value: 10 sec 230 EIO0000000663 05/2014 EnergyMeterModbusCom wTimeOut The time defined with wTimeout represents the minimum interval the communication status of the meter is verified. This function becomes active if the wReadTimer value is greater that the wTimeout. Output Pin Description Output Data Type Range Scaling / Unit Description byState CJ_BYTE 0…2 N/A Function block status: 0 - idle 1 - reading 2 - alarm shPowerFactor CJ_SHORT -32768…32767 0.01 Total power factor wAvgCurrent CJ_WORD 0…65535 0.1 A Average current wAvgPhaseVoltage CJ_WORD 0…65535 0.1 V Average phase voltage wAvgLineVoltage CJ_WORD 0…65535 0.1 V Average line voltage wFreq CJ_WORD 0…65535 0.1 Hz Frequency ITotalActivePower CJ_LONG 2147483648…21 47483647 0.001 kW Total active power dwTotalActiveEnergy CJ_DWORD 0…4294967295 1 Wh Total active energy wAlertID CJ_WORD 0…65535 N/A Detected alerts wAlarmID CJ_WORD 0...65535 N/A Detected alarms AlarmID Description The AlarmID output represents a value from 0 to 65535, whereby each bit represents a detected alarm. The table contains the bits and their description: Alarm Bit Alarm Cause Effect 0 Invalid Modbus SL address on input byDeviceNr No communication is executed. 1 Communication timeout The Modbus SL device is not responding. No actual energy information is provided by the function block. 2-15 N/A N/A EIO0000000663 05/2014 231 EnergyMeterModbusCom AlertID Description The AertID output represents a value from 0 to 65535, whereby each bit represents a detected alert. The table contains the bits and their description: Alert Bit Alert Cause 0 The Modbus SL address has been The function block is still operating with the changed on input byDeviceNr but previous (initial) address assigned. To make the new settings effective, disable the has not become effective yet. function block and re-enable it again. Effect 1-15 N/A N/A Troubleshooting Alarm Problem Solution wAlarmID.0 Invalid Modbus SL address on input byDeviceNr. Verify that the address assigned is between 1...247. Disable and re-enable the function block. wAlarmID.1 Communication timeout 1. Check that the Modbus SL address assigned to byDeviceNr is equal to the address assigned to the meter. 2. Verify the proper network wiring. 3. Check that the communication settings (speed / parity / number of stopbits) of the energy meter and the M168 are equal. 232 EIO0000000663 05/2014 SoHVAC Float2Long EIO0000000663 05/2014 Chapter 16 Float to Long Converter: Float2Long Float to Long Converter: Float2Long What Is in This Chapter? This chapter contains the following sections: Section Topic Page 16.1 Functional Overview 234 16.2 Pin Description 235 EIO0000000663 05/2014 233 Float2Long Section 16.1 Functional Overview Functional Overview Float2Long Function Block Description Function Block Description The Float2Long function block is used to convert a FLOAT variable coded in 2 words (Low Word and High Word) into a CJ_LONG variable. The precision of the converted variable and the word order of the Double Word can be configured. Why Use the Float2Long Function Block? The Float2Long function block simplifies programming. IEEE 754 Single Precision Binary Floating-Point Format: Binary 32 According to the IEEE 754 standard, a binary 32 includes: Sign bit: 1 bit Exponent: 8 bits Fraction: 23 bits + the first bit This means, that a binary 32 number has a total precision of 24 bits. 224 = 16777216 NOTE: If the floating number is higher than 16777216 or lower than -16777216, the converted value is rounded and the calculation is not accurate. The data length is limited to 16 bits that is why the floating variables are transmitted in 2 frames: 32 16 HIGH WORD 15 0 LOW WORD Protective Features The function block provides the following protective feature to help avoid certain sources of machine malfunction: 234 Protective Feature Description Input range validation Inputs and parameter ranges are validated to help prevent out of range data from being accepted directly. EIO0000000663 05/2014 Float2Long Section 16.2 Pin Description Pin Description Pin Description Pin Diagram The following picture shows the pin diagram of Float2Long: Input Pin Description Input Data Type Range Scaling / Unit xEn CJ_BIT TRUE or FALSE N/A Description Enable/Disable the function block NOTE: If the function block is disabled, the outputs lLong and wAlarmID are set to 0 and the function block is not executed. wFloat[0] CJ_WORD 0... 65535 N/A Low/high word of the FLOAT variable wFloat[1] CJ_WORD 0 ...65535 N/A Low/high word of the FLOAT variable byPrecision CJ_BYTE 0... 6 N/A Precision of the converted variable xSwap CJ_BIT TRUE or FALSE N/A Used to change the word order of the double WORD TRUE: low word first FALSE: high word first EIO0000000663 05/2014 235 Float2Long wFloat[0], wFloat[1] Example: The real value 123.456 equals to 1714259769 (conversion of a real value into a FLOAT). The input wFloat: wFloat[0] = 59769 wFloat[1] = 17142 If... Then... xSwap = FALSE (low word first), the low word is equal to 59769 the high word is equal to 17142 The 2 WORDs are combined to get a DWORD: 1714259769. This value is stored as a DWORD in the union without conversion. The value 1714259769 is converted as a LONG. If the byPrecision is equal to 3, lLong is equal to 123456. Output Pin Description Output Data Type Range Scaling / Unit Description ILONG CJ_LONG -2147483648…2147483647 –/byPrecision Decimal value converted with the precision set as per the byPrecision input. NOTE: The output lLong needs to be connected to a variable with the same precision (byPrecision). wAlarmID CJ_WORD 0…65535 N/A Alarm identification NOTE: If the function block is disabled, the outputs lLong and wAlarmID are set to 0 and the function block is not executed. 236 EIO0000000663 05/2014 Float2Long AlarmID Description The AlarmID output represents a value from 0 to 31, whereby each bit represents a detected alarm. The table contains the bits and their description: Alarm Bit Alarm Cause Effect 0 The input byPrecision is not within the defined range. The conversion cannot be executed. lLong is set to 0. 1 Underflow alarm The converted value is limited to the minimum value -2147483648. 2 Overflow alarm The converted value is limited to the maximum value 2147483647. 3 Overflow alarm: the converted value multiplied The converted value is limited to the by the precision is not within the defined range. maximum value 2147483647. 4 Underflow alarm: the converted value multiplied by the precision is not within the defined range. The converted value is limited to the minimum value -2147483648. 5-15 Not used N/A Alarm Problem Solution wAlarmID.0 The input byPrecision is not within the defined range. Check the parameter ranges Set the value within the defined range. wAlarmID.1 Underflow alarm Check the value of the input wFloat. wAlarmID.2 Overflow alarm Check the value of the input wFloat. wAlarmID.3 Overflow alarm: the converted value multiplied Check the value of the precision by the precision is not within the defined range. byPrecision. wAlarmID.4 Underflow alarm: the converted value multiplied by the precision is not within the defined range. Troubleshooting Check the value of the precision byPrecision. NOTE: The Alarm ID wAlarmID is reset automatically when the alarms disappear. EIO0000000663 05/2014 237 Float2Long 238 EIO0000000663 05/2014 SoHVAC PIDAdvanced EIO0000000663 05/2014 Chapter 17 PID Control Function Block: PIDAdvanced PID Control Function Block: PIDAdvanced What Is in This Chapter? This chapter contains the following sections: Section Topic Page 17.1 Functional Overview 240 17.2 Pin Description 243 EIO0000000663 05/2014 239 PIDAdvanced Section 17.1 Functional Overview Functional Overview PIDAdvanced Function Block Description Function Block Description The PIDAdvanced function block is designed for monitoring and controlling a wide variety of dependant processes. It includes the functions of dead band, manual mode, and hold. The PIDAdvanced function block can be used on various applications requiring regulation such as temperature control, pressure control, and flow control. This function block incorporates a PID algorithm. NOTE: The PIDAdvanced function block is designed to be operated on the TM168 (S- type) controller. NOTE: The PIDAdvanced function block can be extended with the autotuning function (see page 300). 240 EIO0000000663 05/2014 PIDAdvanced Functional Overview of the PIDAdvanced The graphic shows a functional overview of the PIDAdvanced Transfer Function The PIDAdvanced function block works according to the following transfer function: EIO0000000663 05/2014 241 PIDAdvanced Why Use the PIDAdvanced Function Block? The PIDAdvanced function block provides the following purposes: The PIDAdvanced function block can be used in heating or cooling mode (direct / reverse control). The embedded integral anti-windup function helps to prevent the PID controller from large integral corrective actions Features of the PIDAdvanced Function Block The PIDAdvanced function block provides the following features: Operating modes: automatic and manual Hold function: freezes the output value of the PID Integral anti-windup Dead band for more stable control Adjustable high or low limits Direct and reverse control Operating Modes The PIDAdvanced function block provides 2 operating modes: Automatic mode Closed loop In automatic mode, the control output is generated by Manual mode Open loop In manual mode, you enter the value of the control output. PIDAdvanced Protective Features The function block provides the following protective feature to help avoid certain sources of machine malfunction: 242 Protective Feature Description Input range validation Inputs and parameter ranges are validated to help prevent out of range data from being accepted directly. EIO0000000663 05/2014 PIDAdvanced Section 17.2 Pin Description Pin Description Pin Description Pin Diagram The following picture shows the pin diagram of PIDAdvanced: EIO0000000663 05/2014 243 PIDAdvanced Input Pin Description Input Data Type Range Scaling / Unit Description xEn CJ_BIT TRUE or FALSE N/A Enable/Disable the function block. TRUE: Enable shPv CJ_SHORT -32768…32767 0.1/user unit Actual value from the process. The process value needs to be scaled outside of the function block. NOTE: Make sure that the set-point and the process value have the same unit. shSetp CJ_SHORT -32768…32767 0.1/user unit Value of set-point xManualMode CJ_BIT TRUE or FALSE N/A TRUE: Enables manual mode FALSE: Disables manual mode Default value: FALSE wManualValue REAL wMinLim...wHighLim –0.01 % Manual value for the analog output wAnalog xHold CJ_BIT TRUE or FALSE N/A This pin is used to freeze the analog output (xHold=TRUE). The internal calculation of the integral term freezes also. TRUE: Holds the PID action FALSE: Resumes the PID action Default value: FALSE NOTE: If set to FALSE the calculation starts at the last frozen value off the analog output (wAnalog). wHighLimit CJ_WORD wLowLim to 10000 0.01 % wLowLimit CJ_WORD 0 to wHighLim 0.01 % Low limit of PID output. wDeadband CJ_WORD 0 to wHighLim 0.1/user unit Smoothes the control behavior. xAutoTune CJ_BIT TRUE or FALSE N/A FALSE: Not active TRUE: External autotuning function is active. Default value: FALSE 244 High limit of PID output. EIO0000000663 05/2014 PIDAdvanced Input Data Type Range Scaling / Unit Description wAutoTuneValue CJ_WORD 0..10000 0.01 % Value for wAnalogOut determined by the external autotuning function. Default value: 0.00 shKp CJ_SHORT -30000...+30000 0.01 / user unit Value of proportional gain configured by you. wTi CJ_WORD 0..60000 sec Value of the integral time configured by you or autotuning. Default value: 0 wTd CJ_WORD 0..60000 sec Value of derivative damping time configured by you. Default value: 0 xReset CJ_BIT TRUE or FALSE N/A FALSE: not active TRUE: Alarms are reset by a rising edge. NOTE: This pin is used to reset only the alarms. To reset the alarms, change the parameter which caused the alarm and give a rising edge on pin xReset. NOTE: Alerts are reset automatically. xManualMode, wManualValue If... Then... xManualMode is set to TRUE the manual mode is active and the output wAnalog takes the value of wManualValue. xManualMode is set to FALSE the calculation starts at the last entered manual value wManualValue. wLowLimit, wHighLimit The values at these pins define the range of PIDAdvanced output (wAnalog). These values are configured as per the analog output module specification. Example: wHighLimit = 100.00 (%) wLowLimit = 0.00 (%) The PIDAdvanced controls the analog output between 0.00 and 100.00 %. wHighLimit = 50.00 (%) wLowLimit = 10.00 (%) The PIDAdvanced controls the analog output between 10.00 and 50.00 %. EIO0000000663 05/2014 245 PIDAdvanced wDeadband The value at this pin defines the limit of the dead band for a detected error. This dead band function is used to make the PIDAdvanced output to settle down. Example: shSetp = 45.0 ° C (113 ° F) shPv = 0…60.0 ° C (32...140 ° F) (range of sensor) wHighLimit = 100.00 (%) wLowLimit = 0.00 (%) wDeadband = 2.5 ° C (36.5 ° F) (+/-) The graphic shows the dead band function: 246 EIO0000000663 05/2014 PIDAdvanced Proportional Gain shKp Example: shKp > 0 For example control for heating. shKp = 0 The output wAnalog is set to 0. shKp < 0 For example, control for cooling (inverse control). Integral Time wTi Example: wTi = 1 Fast integration time, causes a fast influence on the output wAnalog. wTi = 10 10 times slower than the fast integration time (a) and causes a slower influence on the output wAnalog. wTi = 0 wTi is deactivated. Derivate Time wTd Example: wTd = 1 The smallest damping, causes a high influence to the output wAnalog. wTd = 10 1/10 of the smallest damping, causes a lower influence on the output wAnalog. wTd = 0 wTd is deactivated. NOTE: In systems with dead time, wTd should be set to 0.The value of Td should not be less than the cycle time. If it is less than the cycle time, then the Td value is overwritten with the value of the cycle time. EIO0000000663 05/2014 247 PIDAdvanced Output Pin Description Output Data Type Range Scaling / Unit Description wAnalog shError CJ_WORD wLowLim to wHighLim 0.01 / % Analog output CJ_SHORT shSp to shPv 0.01 / user unit Actual detected error between shSp and shPv. Default value: 0.00 wAlarmID CJ_WORD 0...65535 N/A Alarm identification wAlertID CJ_WORD 0...65535 N/A Alert identification AlarmID Description The table contains the bits and their description: Alarm Bit Alarm Cause Effect wAnalog is set to 0. 0 Invalid cycle time 1 Invalid input limit parameters (wHighLim, wLowLim) 2 Invalid range wDeadBand 3 Invalid PID parameter (shKp, wTi, wTd) 4-15 not used N/A AlertID Description The table contains the bits and their description: Alert Bit Alert Cause Effect 0 Invalid range wManualValue wAnalog is set to wHighLimit or wLowLimit 1 wLowlimit is equal to wHighLimit N/A 2 Autotuning is active. N/A 3 shKp is 0 (zero). wAnalog is 0 (zero). 4-15 not used N/A 248 EIO0000000663 05/2014 PIDAdvanced Troubleshooting Alarm/Alert Problem Solution wAlarmID.0 Application cycle time is too long. Cycle time > 2000 msec The application is too large. Reduce the application and check the cycle time. wAlarmID.1 wLowLim > wHighLim wHighLim> 00.00 wLowLim > 100.00 Enter valid values. wAlarmID.2 wDeadBand < 0.0 wDeadBand < wHighLim Enter valid values. wAlarmID.3 shKp < -300.00 shKp > +300.00 wTi < 0 wTi > 60000 wTd < 0 wTd > 60000 Enter valid values. wAlertID.0 wManVal > wHighLim wManVal > wHighLim Enter valid values. wAlertID.1 N/A N/A wAlertID.2 N/A Wait until autotuning is finished. wAlertID.3 N/A Enter valid values. EIO0000000663 05/2014 249 PIDAdvanced 250 EIO0000000663 05/2014 SoHVAC CompCntrl_Slider EIO0000000663 05/2014 Chapter 18 Compressor Control for Screw Compressor with Slider Capacity: CompCntrl_Slider Compressor Control for Screw Compressor with Slider Capacity: CompCntrl_Slider What Is in This Chapter? This chapter contains the following sections: Section Topic Page 18.1 Functional Overview 252 18.2 Pin Description 253 EIO0000000663 05/2014 251 CompCntrl_Slider Section 18.1 Functional Overview Functional Overview CompCntrl_Slider Function Block Description Function Block Description The CompCntrl_Slider function block controls the operation and the cooling power of one screw compressor with modulating capacity control. NOTE: This function block must be used together with the function block CompAlarmMgmt (see page 282) to help prevent potential damages of the compressor. Why Use the CompCntrl_Slider Function Block? The CompCntrl_Slider function block provides the following purposes: The compressor can be operated in automatic, manual or in maintenance mode. The integrated timers help to prevent the compressor from frequent switching. Features of the CompCntrl_Slider Function Block 3 different operating modes (see page 257): automatic, manual, maintenance Quick stop of the compressor Support part winding Internal temperature controller Timers (see page 257): wMinOnTime, wMinOffTime, wMinCycleTime Display compressor operating hours Display compressor number of starts Display remaining time; minimum on timer minimum off timer cycle timer Protective Features The function block provides the following protective feature to help avoid certain sources of machine malfunction: 252 Protective Feature Description Input range validation Inputs and parameter ranges are validated to help prevent out of range data from being accepted directly. EIO0000000663 05/2014 CompCntrl_Slider Section 18.2 Pin Description Pin Description EIO0000000663 05/2014 253 CompCntrl_Slider Pin Description Pin Diagram The following picture shows the pin diagram of CompCntrl_Slider: 254 EIO0000000663 05/2014 CompCntrl_Slider Input Pin Description Input Data Type Range Scaling / Unit Description xEn CJ_BIT TRUE or FALSE N/A Enables the function block. byMode CJ_BYTE 1…3 N/A Mode control of the compressor: 1: automatic 2: manual 1: maintenance shProcessValue CJ_SHORT -32768 … 32767 0.1 ° C (32.18 ° F) Process value xCommand CJ_BIT TRUE or FALSE N/A shSetp CJ_SHORT -32768 … 32767 0.1 ° C (32.18 ° F) Set-point in automatic mode xManualCommand CJ_BIT TRUE or FALSE N/A shManualSetp CJ_SHORT -32768 … 32767 0.1 ° C (32.18 ° F) Set-point in manual mode or in maintenance mode (optional) xQuickStop CJ_BIT TRUE or FALSE N/A Starts/stops the compressor in automatic mode. Starts/stops the compressor in manual or in maintenance mode (optional). Quick stop of the compressor NOTE: If the input xQuickStop is set to TRUE, the compressor is immediately stopped even if the timer wMinOnTime has not elapsed and the stopping mode (to move the piston to the initial position) is not active. wCompMgmtAlarmID CJ_WORD 0…65535 N/A wDeadband CJ_WORD 0…65535 0.1 ° C (32.18 ° F) Dead band around the set-point, where both CR3 and CR4 valves are closed. Default value: 2.0 ° C (35.6 ° F) EIO0000000663 05/2014 AlarmID input from the function block CompAlarmMgmt. 255 CompCntrl_Slider Input Data Type Range Scaling / Unit Description wMinOnTime CJ_WORD 0…65535 sec Minimum time the compressor is running. wMinOffTime CJ_WORD 0…65535 sec Minimum time the compressor is stopped. wMinCycleTime CJ_WORD 0…65535 sec Minimum time between 2 consecutive starts of the compressor. wDelayPartWinding CJ_WORD 100… 65535 ms Delay for part winding for the start of the compressor. Default value: 500 ms wPulseTimeCR3 CJ_WORD 100… 65535 ms Pulse time of the valve CR3. Default value: 500 ms wPauseTimeCR3 CJ_WORD 100… 65535 ms Pause time of the valve CR3 (between 2 pulses). Default value: 500 ms wPulseTimeCR4 CJ_WORD 100… 65535 ms Pulse time of the valve CR4. Default value: 500 ms wPauseTimeCR4 CJ_WORD 100… 65535 ms Pause time of the valve CR4 (between 2 pulses). Default value: 500 ms wValve100Time CJ_WORD 100… 65535 ms Time to move the piston from the maximum position to the initial position. Default value: 500 ms xOpHoursReset CJ_BIT TRUE or FALSE N/A Reset the operating hours dwOpHours and the number of starts dwNbStarts. 256 EIO0000000663 05/2014 CompCntrl_Slider Operating Mode byMode The CompCntrl_Slider function block provides 3 operating modes: Automatic mode, byMode = 1 The compressor is controlled with the inputs wSetp and xCommand. The timers and the alarms are enabled. Manual mode, byMode = 2 The compressor is controlled with the inputs wManualSetp and xManualCommand. The timers and the alarms are enabled. Maintenance mode, byMode = 3 The compressor is controlled with the inputs wManualSetp and xManualCommand. The timers are disabled. The alarms are enabled. Timers wMinOnTime, wMinOffTime, wMinCycleTime The timers help prevent that the compressor is stopped and started too often. You can set these durations: wMinOnTime wMinOffTime wMinCycleTime NOTE: When the compressor is started (xCommand or xManualCommand is set to TRUE) or stopped (xCommand or xManualCommand is set to FALSE), the compressor cannot be stopped or started until the timer wMinOnTime or wMinOffTime has elapsed or if the time duration during 2 starts of the compressor is lower than wMinCycleTime. Output Pin Description Output Data Type Range Scaling / Unit Description byState CJ_BYTE 0… 99 N/A Current state: 1: idle 10: PartWinding1 11: PartWinding2 20: Run 30: Stop 99: Alarm xPartWinding1 CJ_BIT TRUE or FALSE N/A Command of part winding 1 xPartWinding2 CJ_BIT TRUE or FALSE N/A Command of part winding 2 xCommandCR3 CJ_BIT TRUE or FALSE N/A Command of valve CR3 NOTE: Use a solid-state relay to control the valve CR3. EIO0000000663 05/2014 257 CompCntrl_Slider Output Data Type Range Scaling / Unit Description xCommandCR4 CJ_BIT TRUE or FALSE N/A Command of valve CR4 NOTE: Use a solid-state relay to control the valve CR4. CJ_DWORD 0… 4294967296 dwNbStarts CJ_DWORD 0… 4294967296 N/A Total number of starts dwCompMgmtStatus CJ_DWORD 0… 4294967296 N/A Status of the FB wElapsedOnTime CJ_WORD 0… 65535 sec Remaining time before the minimum On time elapsed. wElapsedOffTime CJ_WORD 0… 65535 sec Remaining time before the minimum Off time elapsed. wElapsedCycleTime CJ_WORD 0… 65535 sec Remaining time before the minimum cycle time elapsed. wAlarmID CJ_WORD 0… 65535 N/A Alarm identification dwOpHours hours Total number of operating hours NOTE: Every time the compressor is started, the value dwNbStarts is incremented and the timer dwOpHours is started without reset. NOTE: When the input xOpHoursReset is set to TRUE, the number of starts and the operating hours are reset: the values dwNbStarts and dwOpHours are set to 0 and remain at 0, as long as the input xOpHours is set to TRUE. Enable If the function block is disabled, the compressor is switched off and the function block is not executed. NOTE: After the function block is enabled, the compressor can be started even if the duration of the stop is lower than wMinOffTime or if the duration between 2 consecutive starts is lower than wMinCycleTime. 258 EIO0000000663 05/2014 CompCntrl_Slider Normal Operation To avoid that the compressor is stopped and started too often, you can set the duration wMinOnTime, wMinOffTime and wMinCycleTime with the appropriate values. If... Then... the compressor is started xCommand or xManualCommand is set to TRUE the compressor is stopped xCommand or xManualCommand is set to FALSE NOTE: The compressor cannot be stopped or started until the timer wMinOnTime or wMinOffTime has elapsed or when the time duration during 2 starts of the compressor is lower than wMinCycleTime. Operating Hours and Number of Starts dwNbStarts accumulates the number of starts and the timer dwOpHours accumulates the operating hours when the compressor is started. These values should be retained even when the controller is power cycled. If the input xResetOpHours is set to TRUE, the number of starts and the operating hours are reset: the values dwNbStarts and dwOpHours are set to 0 and remain set to 0 as long as the input xOpHours is set to TRUE. EIO0000000663 05/2014 259 CompCntrl_Slider Control of the Cooling Capacity The following figure shows how the regulation of the cooling power is done internally by adjusting the cooling capacity of the compressor. CAP indicates if the cooling capacity must be increased or reduced. 260 EIO0000000663 05/2014 CompCntrl_Slider dwCompMgmtStatus Bit 0-23 operating hours ( max. 16.777.216 hours) Bit 24: reserved Bit 25: reserved Bit 26-27: compressor mode 1 = auto, 2 = manual, 3 = maintenance Bit 28: ON-timer active Bit 29: OFF-timer active Bit 30: Cycle timer active Bit 31: Alarm The following table details the compressor mode desciption for bit 25 and bit 26: Bit 26 Bit 25 Compressor mode description 0 0 Compressor FB disabled 0 1 Auto 1 0 Manual 1 1 Maintenance Alarm ID Description The AlarmID output represents a value from 0 to 3, whereby each bit represents a detected alarm. The table contains the bits and their description: Alarm Bit Alarm Cause Effect 0 The value of the input byMode is invalid. The compressor is stopped. 1 wCompMgmtAlarmID input is not equal to 0. The compressor is stopped. 2-15 not used N/A Troubleshooting In case of an alarm the compressor is stopped and the function block goes into alarm state. If compressor goes into normal state, it is automatically restarted after the timers wMinCycleTime and wMinOffTime have elapsed: Alarm Problem Solution wAlarmID.0 TRUE The value of the input byMode is invalid. Check the parameter ranges. Set the value within the defined range. wAlarmID.1 TRUE wCompMgmtAlarmID input is not equal to 0. Check the alarms of the function block CompAlarmMgmt. EIO0000000663 05/2014 261 CompCntrl_Slider 262 EIO0000000663 05/2014 SoHVAC CompCntrl_OnOff EIO0000000663 05/2014 Chapter 19 Compressor Control for Generic On/Off Compressors: CompCntrl_OnOff Compressor Control for Generic On/Off Compressors: CompCntrl_OnOff What Is in This Chapter? This chapter contains the following sections: Section Topic Page 19.1 Functional Overview 264 19.2 Pin Description 265 EIO0000000663 05/2014 263 CompCntrl_OnOff Section 19.1 Functional Overview Functional Overview CompCntrl_OnOff Function Block Description Function Block Description The CompCntrl_OnOff function block controls 1 on-off scroll compressor. This function block can be used with fix speed scroll, piston (1 stage reciprocal compressor) and screw compressors. NOTE: This function block must be used together with the function block CompAlarmMgmt to help prevent damages of the compressor. Why Use the CompCntrl_OnOff Function Block? The CompCntrl_OnOff provides the following purposes: The compressor can be operated in automatic, manual or in maintenance mode. The integrated timers help to prevent the compressor from frequent switching. Features of the CompCntrl_OnOff Function Block 3 different operating modes (see page 257): automatic, manual, maintenance Quick stop of the compressor Timers (see page 257): wMinOnTime, wMinOffTime, wMinCycleTime Display compressor operating hours Display compressor number of starts Display remaining time: minimum on timer minimum off timer cycle timer Protective Features The function block provides the following protective feature to help avoid certain sources of machine malfunction: 264 Protective Feature Description Input range validation Inputs and parameter ranges are validated to help prevent out of range data from being accepted directly. EIO0000000663 05/2014 CompCntrl_OnOff Section 19.2 Pin Description Pin Description Pin Description Pin Diagram The following picture shows the pin diagram of CompCntrl_OnOff: EIO0000000663 05/2014 265 CompCntrl_OnOff Input Pin Description Input Data Type Range Scaling / Unit Description xEn CJ_BIT TRUE or FALSE N/A Enables the function block. For more information refer to Enable (see page 258). byMode CJ_BYTE 1…3 N/A Mode control of the compressor: 1: automatic 2: manual 3: maintenance For more information refer to Operating Mode (see page 257). xCommand CJ_BIT TRUE or FALSE N/A Command of the compressor in automatic mode xManualCommand CJ_BIT TRUE or FALSE N/A Command of the compressor in manual or in maintenance mode (optional). xQuickStop CJ_BIT TRUE or FALSE N/A Quick stop of the compressor NOTE: If the input xQuickStop is set to TRUE, the compressor is immediately stopped even if the timer wMinOnTime has not elapsed. wCompMgmtAlarmID CJ_WORD 0…65535 N/A AlarmID input from the function block CompAlarmMgmt. wMinOnTime CJ_WORD 0…65535 sec Minimum time the compressor is running. wMinOffTime CJ_WORD 0…65535 sec Minimum time the compressor is stopped. wMinCycleTime CJ_WORD 0…65535 sec Minimum time between 2 consecutive starts of the compressor. xOpHoursReset CJ_BIT TRUE or FALSE N/A Reset the operating hours dwOpHours and the number of starts dwNbStarts. 266 EIO0000000663 05/2014 CompCntrl_OnOff Output Pin Description Output Data Type Range Scaling / Unit Description byState CJ_BYTE 0… 255 N/A Current state: 1: idle 20: Run 99: Alarm xCompCommand CJ_BIT TRUE or FALSE N/A Compressor command dwOpHours CJ_DWORD 0… 4294967296 hours Total number of operating hours dwNbStarts CJ_DWORD 0… 4294967296 N/A Total number of starts dwCompMgmtStatus CJ_DWORD 0… 4294967296 N/A Status of the function block wElapsedOnTime CJ_WORD 0… 65535 sec Remaining time before the minimum On time elapsed. wElapsedOffTime CJ_WORD 0… 65535 sec Remaining time before the minimum Off time elapsed. wElapsedCycleTime CJ_WORD 0… 65535 sec Remaining time before the minimum cycle time elapsed. wAlarmID CJ_WORD 0… 65535 N/A Alarm ID dwCompMgmtStatus Bit 0-23 operating hours ( max. 16.777.216 hours) Bit 24: reserved Bit 25: reserved Bit 26-27: compressor mode 1 = auto, 2 = manual, 3 = maintenance Bit 28: ON-timer active Bit 29: OFF-timer active Bit 30: Cycle timer active Bit 31: Alarm The following table details the compressor mode desciption for bit 25 and bit 26: Bit 26 Bit 25 Compressor mode description 0 0 Compressor FB disabled 0 1 Auto 1 0 Manual 1 1 Maintenance EIO0000000663 05/2014 267 CompCntrl_OnOff Alarm ID Description The AlarmID output represents a value between 0 and 3, whereby each bit represents a detected alarm. The table contains the bits and their description: Alarm Bit Alarm Cause Effect 0 The value of the input byMode is invalid. The compressor is stopped. 1 wCompMgmtAlarmID input is not equal to 0. The compressor is stopped. 2-15 not used N/A Troubleshooting In case of an alarm the compressor is stopped and the function block goes into alarm state. If the compressor goes into normal state, it is automatically restarted after the timers wMinCycleTime and wMinOffTime have elapsed: Alarm Problem Solution wAlarmID.0 TRUE The value of the input byMode is invalid. Check the parameter ranges. Set the value within the defined range. wAlarmID.1 TRUE wCompMgmtAlarmID input is not equal to 0. Check the alarms of the function block CompAlarmMgmt. 268 EIO0000000663 05/2014 SoHVAC CompCntrl_VS EIO0000000663 05/2014 Chapter 20 Compressor Control for Variable Speed Compressors: CompCntrl_VS Compressor Control for Variable Speed Compressors: CompCntrl_VS What Is in This Chapter? This chapter contains the following sections: Section Topic Page 20.1 Functional Overview 270 20.2 Pin Description 272 EIO0000000663 05/2014 269 CompCntrl_VS Section 20.1 Functional Overview Functional Overview CompCntrl_VS Function Block Description Function Block Description The CompCntrl_VS function block controls 1 scroll, screw or reciprocating compressor through variable speed drive in order to control compressor capacity. NOTE: This function block must be used together with the function block CompAlarmMgmt to help prevent damages of the compressor. Why Use the CompCntrl_VS Function Block? The CompCntrl_VS provides the following purposes: The compressor can be operated in automatic, manual or in maintenance mode. The integrated timers help to prevent the compressor from frequent switching. The CompCntrl_VS function block provides an oil recovery function which increases temporarily the variable speed drive frequency to circulate oil through the compressor. The CompCntrl_VS function block suppresses resonance frequencies to reduce noise and increase compressor life time. Features of the CompCntrl_VS Function Block 270 3 different operating modes (see page 257): automatic, manual, maintenance Quick stop of the compressor Start/stop procedure Oil recovery (see page 276) Timers (see page 257): wMinOnTime, wMinOffTime, wMinCycleTime Eliminate resonance frequency range Display compressor operating hours Display compressor number of starts Display remaining time: minimum on timer minimum off timer cycle timer EIO0000000663 05/2014 CompCntrl_VS Protective Features The function block provides the following protective feature to help avoid certain sources of machine malfunction: Protective Feature Description Input range validation Inputs and parameter ranges are validated to help prevent out of range data from being accepted directly. EIO0000000663 05/2014 271 CompCntrl_VS Section 20.2 Pin Description Pin Description 272 EIO0000000663 05/2014 CompCntrl_VS Pin Description Pin Diagram The following picture shows the pin diagram of CompCntrl_VS: EIO0000000663 05/2014 273 CompCntrl_VS Input Pin Description Input Data Type Range Scaling / Unit Description xEn CJ_BIT TRUE or FALSE N/A Enables the function block. (see page 258) byMode CJ_BYTE 1…3 N/A Mode control of the compressor: 1: automatic 2: manual 1: maintenance For more information, refer to Operating Mode (see page 257). CJ_BIT TRUE or FALSE N/A Command to start or stop the compressor regulation. wSetp CJ_WORD 0… 1000 0.1 % Set-point in automatic mode wManualSetp CJ_BIT 0… 1000 0.1 % Set-point in manual or maintenance mode (optional) xQuickStop CJ_BIT TRUE or FALSE N/A Quick stop of the compressor xStart NOTE: If the input xQuickStop is set to TRUE, the compressor is immediately stopped even if the timer wMinOnTime has not elapsed. wCompMgmtAlarmID CJ_WORD 0…65535 N/A AlarmID input from the function block CompAlarmMgmt. wMinSetp CJ_WORD 0…1000 0.1 % Minimum set-point that corresponds to the wMinFequency. NOTE: wMinSetp must be lower than 100.0%. wStartingTime CJ_WORD 0…65535 sec Duration of the starting mode wStoppingTime CJ_WORD 0…65535 sec Duration of the stopping mode wOilRecoveryTime CJ_WORD 0…65535 sec Maximum time oil recovery mode will be started. wOilRecoveryPeriod CJ_WORD 0…65535 sec Duration of the oil recovery mode wMinOnTime CJ_WORD 0…65535 sec Minimum time the compressor is running. wMinOffTime CJ_WORD 0…65535 sec Minimum time the compressor is stopped. wMinCycleTime CJ_WORD 0…65535 sec Minimum time between 2 consecutive starts of the compressor. 274 EIO0000000663 05/2014 CompCntrl_VS Input Data Type Range Scaling / Unit Description wMinFreq CJ_WORD 0…2000 0.1 Hz Minimum frequency of the compressor that corresponds to the minimum set-point. NOTE: wMinFreq must be lower than wMaxFreq. wMaxFreq CJ_WORD 0…2000 0.1 Hz Maximum frequency of the compressor wFreqLimits[10] CJ_WORD 0…2000 0.1 Hz Frequency bands disabled to avoid resonance. xOpHoursReset CJ_BIT TRUE or FALSE N/A Reset the operating hours dwOpHours and the number of starts dwNbStarts. Frequency Limitations The frequency of the variable speed drive is limited by the minimum frequency wMinFreq and by the maximum frequency wMaxFreq. NOTE: wMinFreq must be lower than wMaxFreq. EIO0000000663 05/2014 275 CompCntrl_VS Oil Recovery If... Then... the compressor is started, xCompCommand is set to TRUE and wFreq is set to wMaxFreq during the duration of wStartingTime. the compressor has run for the set time wOilRecoveryTime, wFreq is set to wMaxFreq during the duration wOilRecoveryPeriod. the compressor has the order to stop, wFreq is set to wMaxFreq during the duration wStoppingTime. wStoppingTime has elapsed, xCompCommand and wFreq are set to 0. 276 EIO0000000663 05/2014 CompCntrl_VS Output Pin Description Output Data Type Range Scaling / Unit Description byState CJ_BYTE 0… 255 N/A Current state: 1: Idle 10: Starting 20: Run 30: Oil recovery 40: Stopping 99: Alarm xCompCommand CJ_BIT TRUE or FALSE N/A Compressor command wFreq CJ_WORD 0… 1000 0.1 Hz Frequency set-point for the variable speed drive. dwOpHours CJ_DWORD 0… 4294967296 hours Total number of operating hours dwNbStarts CJ_DWORD 0… 4294967296 N/A Total number of starts dwCompMgmtStatus CJ_DWORD 0… 4294967296 sec Status of the function block. NOTE: For more information on the compressor mode refer to dwCompMgmtStatus (see page 261). wElapsedOnTime CJ_WORD 0… 65535 sec Remaining time before the minimum On time elapsed. wElapsedOffTime CJ_WORD 0… 65535 sec Remaining time before the minimum Off time elapsed. wElapsedCycleTime CJ_WORD 0… 65535 sec Remaining time before the minimum cycle time elapsed. wAlarmID CJ_WORD 0… 65535 N/A Alarm ID dwCompMgmtStatus Bit 0-23 operating hours ( max. 16.777.216 hours) Bit 24: reserved Bit 25: reserved Bit 26-27: compressor mode 1 = auto, 2 = manual, 3 = maintenance Bit 28: ON-timer active Bit 29: OFF-timer active Bit 30: Cycle timer active Bit 31: Alarm EIO0000000663 05/2014 277 CompCntrl_VS The following table details the compressor mode desciption for bit 25 and bit 26: Bit 26 Bit 25 Compressor mode description 0 0 Compressor FB disabled 0 1 Auto 1 0 Manual 1 1 Maintenance Normal Operation with xCompCommand and wFreq The output xCompCommand enables the variable speed drive and wFreq is the frequency set-point for the variable speed drive.. The output xCompCommand is controlled by the input xStart. If... Then... xStart is set to 1 the output xCompCommand is set to 1 and the variable speed drive frequency wFreq is controlled. wSetp is lower than wMinSetp the output wFreq is set to the minimum frequency wMinSetp. xStart is set to 0 the output xCompCommand is set to 0 and the variable speed drive frequency wFreq is set to 0. NOTE: wMinSetp must be lower than 100.0%. To avoid that the compressor is stopped and started too often, you can set the duration: wMinOnTime, wMinOffTime and wMinCycleTime. 278 If... Then... the timer wMinOffTime has not elapsed the compressor is not started. the time duration during 2 starts of the compressor is lower than wMinCycleTime the compressor is not started. the compressor has the order to stop and the wMinOnTime has not elapsed wFreq is set to wMinFreq. EIO0000000663 05/2014 CompCntrl_VS Alarm ID Description The AlarmID output represents a value from 0 to 31, whereby each bit represents a detected alarm. The table contains the bits and their description: Alarm Bit Alarm Cause Effect 0 The parameter wMinFreq is higher than the parameter wMaxFreq. The compressor is stopped. 1 The parameter wMinSetp is higher than 100.0 %. 2 The value of the input byMode is invalid. 3 wCompMgmtAlarmID input is not equal to 0. 4-15 not used N/A Troubleshooting In case of an alarm the compressor is stopped and the function block goes into alarm state. If the compressor goes into normal state, it is automatically restarted after the timers wMinCycleTime and wMinOffTime have elapsed: Alarm Problem Effect wAlarmID.0 TRUE Parameter wMinFreq is higher than the parameter wMaxFreq. Check the parameter ranges. Set the value within the defined range. wAlarmID.1 TRUE Parameter wMinSetp is higher than 100.0 %. wAlarmID.2 TRUE The value of the input byMode is invalid. wAlarmID.3 TRUE wCompMgmtAlarmID input is not equal to 0. EIO0000000663 05/2014 Check the alarms of the function block CompAlarmMgmt. 279 CompCntrl_VS 280 EIO0000000663 05/2014 SoHVAC CompAlarmMgmt EIO0000000663 05/2014 Chapter 21 Compressor Alarm Management: CompAlarmMgmt Compressor Alarm Management: CompAlarmMgmt What Is in This Chapter? This chapter contains the following sections: Section Topic Page 21.1 Functional Overview 282 21.2 Pin Description 283 EIO0000000663 05/2014 281 CompAlarmMgmt Section 21.1 Functional Overview Functional Overview CompAlarmMgmt Function Block Description Function Block Description The CompAlarmMgmt function block is used to detect alarms of a compressor in a chiller unit. Why Use the CompAlarmMgmt Function Block? The CompAlarmMgmt function block provides the following purposes: The CompAlarmMgmt function block manages up to 7 different alarms for a single compressor. Each alarm can be configured with an individual alarm delay time. The CompAlarmMgmt simplifies programming. Features of the CompAlarmMgmt Function Block The CompAlarmMgmt function block provides the following features: Emergency alarm Motor alarm Oil pressure switch alarm High / low pressure switch alarm High / low pressure sensor alarm Generic alarm Individual alarm delays Enable / disable alarm Manual reset (see page 295) Protective Features The function block provides the following protective feature to help avoid certain sources of machine malfunction: 282 Protective Feature Description Input range validation Inputs and parameter ranges are validated to help prevent out of range data from being accepted directly. EIO0000000663 05/2014 CompAlarmMgmt Section 21.2 Pin Description Pin Description EIO0000000663 05/2014 283 CompAlarmMgmt Pin Description Pin Diagram The following picture shows the pin diagram of CompAlarmMgmt: 284 EIO0000000663 05/2014 CompAlarmMgmt Input Pin Description Input Data Type Range Scaling / Unit Description xEn CJ_BIT TRUE or FALSE N/A Enables the function block. xEStop CJ_BIT TRUE or FALSE N/A Emergency Stop NOTE: Reset when not active. NOTE: When xEStop is set to TRUE, the emergency stop alarm cannot be reset. xMotorAlarm CJ_BIT TRUE or FALSE N/A Motor alarm (for example circuit breaker, thermoswitch) NOTE: Reset when not active. NOTE: When xMotorAlarm is set to TRUE, the motor alarm cannot be reset. xOilPresSwitch CJ_BIT TRUE or FALSE N/A Oil pressure switch alarm NOTE: Reset when not active. NOTE: When xOilPresSwitch is set to TRUE, the oil pressure switch cannot be reset. xHPSwitch CJ_BIT TRUE or FALSE N/A High pressure switch alarm NOTE: Reset when not active. xLPSwitch CJ_BIT TRUE or FALSE N/A Low pressure switch alarm NOTE: Can be reset when active. xGenericAlarm CJ_BIT TRUE or FALSE N/A Generic Alarm NOTE: When the input xGenericAlarm is set to TRUE, the timer wDelayGenericAlarm is started and the generic alarm cannot be reset. EIO0000000663 05/2014 285 CompAlarmMgmt Input Data Type Range Scaling / Unit Description xCompCommand CJ_BIT TRUE or FALSE N/A Compressor command TRUE: compressor is running. FALSE: compressor is stopped. NOTE: When xCompCommand is set to FALSE, an alarm cannot be reset. CJ_SHORT - 32768… 32767 0.01 bar High pressure current value shLPValue CJ_SHORT - 32768… 32767 0.01 bar Low pressure current value shMaxHPLimit CJ_SHORT - 32768… 32767 0.01 bar Maximum value of the high pressure shHPValue NOTE: Reset when not active. shMinLPLimit CJ_SHORT - 32768… 32767 0.01 bar Minimum value of the low pressure NOTE: Can be reset when active. wDelayEnAlarm CJ_WORD 0…65535 sec Start delay for LP switch and LP alarm when the compressor is running. NOTE: The timer wDelayEnAlarm is started when the input xCompCommand is set to TRUE. wDelayMotorAlarm CJ_WORD 0…65535 sec Delay for the motor alarm NOTE: The timer wDelayMotorAlarm is started when the input xMotorAlarm is set to TRUE. wDelayOilPresSwitch CJ_WORD 0…65535 sec Delay for the oil pressure switch alarm NOTE: The timer wDelayOilPresSwitch is started when the input xOilPresSwitch is set to TRUE. wDelayHPSwitch 286 CJ_WORD 0…65535 sec Delay for the HP switch alarm EIO0000000663 05/2014 CompAlarmMgmt Input Data Type Range Scaling / Unit Description wDelayLPSwitch CJ_WORD 0…65535 sec Delay for the LP switch alarm. NOTE: The timer wDelayLPSwitch is started when the input xLPSwitch is set to TRUE. wDelayGenericAlarm CJ_WORD 0…65535 sec Delay for the generic alarm wDelayHPAlarm CJ_WORD 0…65535 sec Delay for the HP alarm NOTE: The timer wDelayHPAlarm is started when the high pressure wLPValue is higher than the high pressure limit wHPMaxLimit. wDelayLPAlarm CJ_WORD 0…65535 sec Delay for the LP alarm NOTE: The timer wDelayLPAlarm is started when the low pressure wLPValue is lower than the low pressure limit wLPMinLimit. wDisableAlarm CJ_WORD 0…65535 N/A Disable some alarms (optional) xReset CJ_BIT TRUE or FALSE N/A Resets the alarms which are not active or which can be reset when active. xEn (Enable) If the function block is disabled, the outputs wAlarmID and xAlarm are set to 0 and the alarms are reset, even if all the alarms are active. Output Pin Description Output Data Type Range Scaling / Unit Description xAlarm CJ_BIT TRUE or FALSE N/A Alarm wAlarmID CJ_WORD 0… 65535 N/A Alarm identification NOTE: If the function block is disabled, the outputs wAlarmID and xAlarm are set to 0 and the alarms are reset even if all the alarms are active. EIO0000000663 05/2014 287 CompAlarmMgmt Motor Alarm The timer wDelayMotorAlarm is started when the input xMotorAlarm is set to TRUE. A motor alarm can be detected when the motor alarm detection is enabled. A motor alarm is detected when the input xMotorAlarm is set to TRUE and the timer wDelayMotorAlarm has elapsed. NOTE: The detected motor alarm can be reset when the input xMotorAlarm is FALSE and the reset input xReset is set to TRUE. 288 EIO0000000663 05/2014 CompAlarmMgmt Oil Pressure Switch Alarm The timer wDelayOilPresSwitch is started when the input xOilPresSwitch is set to TRUE. An oil pressure switch alarm can be detected when the oil pressure switch alarm detection is enabled. An oil pressure switch alarm is detected when the input xOilPresSwitchAlarm is set to TRUE and the timer wDelayOilPresSwitchAlarm has elapsed. NOTE: The detected oil pressure switch alarm can be reset when the input xOilPresSwitchAlarm is FALSE and the reset input xReset is set to TRUE. EIO0000000663 05/2014 289 CompAlarmMgmt High Pressure Switch Alarm The timer wHPSwitch is started when the input xHPSwitch is set to TRUE. A high-pressure switch alarm can be detected when the high-pressure switch alarm detection is enabled. A high-pressure switch alarm is detected when the input xHPSwitch is set to TRUE and the timer wDelayHPSwitchAlarm has elapsed. NOTE: The detected high-pressure switch alarm can be reset when the input xHPSwitch is FALSE and the reset input xReset is set to TRUE. 290 EIO0000000663 05/2014 CompAlarmMgmt Low-Pressure Switch Alarm The timer wDelayEnAlarm is started when the input xCompCommand is set to TRUE. The timer wDelayLPSwitch is started when the input xLPSwitch is set to TRUE. A low-pressure switch alarm can be detected when the low-pressure switch alarm detection is enabled. A low-pressure switch alarm is detected when the input xLPSwitch is set to TRUE and the timers wDelayEnAlarm and wDelayLPSwitch have elapsed. NOTE: The detected low-pressure switch alarm is reset when the input xReset is set to TRUE. The detected low-pressure switch alarm is not reset when the compressor is stopped (xCompCommand is FALSE). EIO0000000663 05/2014 291 CompAlarmMgmt Emergency Stop Alarm An emergency stop alarm can be detected when the emergency stop alarm detection is enabled. An emergency stop alarm is detected when the input xEStop is set to TRUE. NOTE: The detected emergency stop alarm can be reset when the input xEStop is FALSE and the reset input xReset is set to TRUE. 292 EIO0000000663 05/2014 CompAlarmMgmt Generic Alarm The timer wDelayGenericAlarm is started when the input xGenericAlarm is set to TRUE. A generic alarm can be detected when the generic alarm detection is enabled. A generic alarm is detected when the input xGenericAlarm is set to TRUE and the timer wDelayGenericAlarm has elapsed. NOTE: The detected motor alarm can be reset when the input xGenericAlarm is FALSE and the reset input xReset is set to TRUE. EIO0000000663 05/2014 293 CompAlarmMgmt High-Pressure Alarm The timer wDelayHPAlarm is started when the high-pressure wLPValue is higher than the highpressure limit wHPMaxLimit. A high-pressure alarm can be detected when the high-pressure alarm detection is enabled. A high-pressure alarm is detected when the input shHPValue is above the high-pressure limit (shHPMaxLimit) and the timer wDelayHPAlarm has elapsed. NOTE: The detected high-pressure alarm can be reset when the input shHPValue is below the high-pressure limit (shHPMaxLimit) and the reset input xReset is set to TRUE. 294 EIO0000000663 05/2014 CompAlarmMgmt Low-Pressure Alarm The timer wDelayEnAlarm is started when the input xCompCommand is set to TRUE. The timer wDelayLPAlarm is started when the low-pressure wLPValue is lower than the lowpressure limit wLPMinLimit. A low-pressure alarm can be detected when the low-pressure alarm detection is enabled. A low-pressure alarm is detected when the input shLPValue is below the low- pressure limit (shLPMinLimit) and the timer wDelayLPAlarm has elapsed. NOTE: The detected low-pressure alarm can be reset when the input shLPValue is above the low-pressure limit (shLPMinLimit) and the reset input xReset is set to TRUE. Alarm Reset When the input xReset is set to TRUE, the outputs wAlarmID and xAlarm are set to 0 if the following alarms are not active: motor alarm oil pressure switch alarm high-pressure switch alarm emergency stop alarm generic alarm high-pressure alarm The outputs wAlarmID and xAlarm can be reset even when the following alarms are active: low-pressure switch alarm low-pressure alarm EIO0000000663 05/2014 295 CompAlarmMgmt Alarm Disable wDisableAlarm An alarm can be disabled by setting the bit of the input wDisableAlarm to TRUE. The bits and the alarms are described in the following table: wDisableAlarm Alarm wDisableAlarm.0 TRUE Motor alarm is inactive. wDisableAlarm.1 TRUE Low pressure switch alarm is inactive. wDisableAlarm.2 TRUE High pressure switch alarm is inactive. wDisableAlarm.3 TRUE Low pressure switch alarm is inactive. wDisableAlarm.4 TRUE Emergency stop alarm is inactive. wDisableAlarm.5 TRUE Generic alarm is inactive. wDisableAlarm.6 TRUE High pressure alarm is inactive. wDisableAlarm.7 TRUE Low pressure alarm is inactive. The following graphic shows an example for alarm disable of an emergency stop alarm: NOTE: If an alarm is active when being disabled, the outputs wAlarmID and xAlarm and the timers are reset. 296 EIO0000000663 05/2014 CompAlarmMgmt Alarm ID Description The AlarmID output represents a value between 0 and 31, whereby each bit represents a detected alarm. The table contains the bits and their description: Alarm Bit Alarm Cause Effect 0 Motor alarm is active. The compressor is stopped. 1 Oil pressure switch alarm is active. 2 High pressure switch alarm is active. 3 Low pressure switch alarm is active. 4 Emergency stop is active. 5 Generic alarm is active. 6 High pressure alarm is active. 7 Low pressure alarm is active. 8-15 not used N/A Troubleshooting In case of an alarm the compressor is stopped and the function block goes into alarm state. If the compressor goes into normal state, it is automatically restarted after the timers wMinCycleTime and wMinOffTime have elapsed: Alarm Problem Solution wAlarmID.0 TRUE Motor alarm is active. Check the state of the circuit breaker or of the thermo switch of the compressor. wAlarmID.1 TRUE Oil pressure switch alarm is active. Check the state of the oil pressure switch. wAlarmID.2 TRUE High pressure switch alarm is active. Check the state of the high pressure switch. wAlarmID.3 TRUE Low pressure switch alarm is active. Check the state of the low pressure switch. wAlarmID.4 TRUE Emergency stop is active. Check the state of the emergency stop. wAlarmID.5 TRUE Generic alarm is active. Check the state of the generic alarm. wAlarmID.6 TRUE High pressure alarm is active. Check the value of the high pressure. wAlarmID.7 TRUE Low pressure alarm is active. Check the value of the low pressure. EIO0000000663 05/2014 297 CompAlarmMgmt 298 EIO0000000663 05/2014 SoHVAC PIDAutoTuning EIO0000000663 05/2014 Chapter 22 PID Autotuning: PIDAutoTuning PID Autotuning: PIDAutoTuning What Is in This Chapter? This chapter contains the following sections: Section Topic Page 22.1 Functional Overview 300 22.2 Pin Description 303 EIO0000000663 05/2014 299 PIDAutoTuning Section 22.1 Functional Overview Functional Overview PIDAutoTuning Function Block Description Function Block Description The PIDAutoTuning function block measures the dynamic response of a control system and calculates automatically the parameters Ti (integral time in seconds) and Kp (proportional gain) for that control system. These parameters can be connected to the parameter inputs of a PID AFB (for example PIDAdvanced). NOTE: This function block must be used together with the PIDAdvanced. When autotuning is enabled, it induces oscillations in the process around the set-point. After the completion of 3 oscillations, autotuning calculates a set of PI parameters. NOTE: During the autotuning process the system is set to the minimum and maximum operating limits to measure the process response time. Ensure that the minimum and maximum operating limits are set correctly. WARNING UNINTENDED EQUIPMENT OPERATION Only qualified persons with the skills and knowledge of electrical control systems, and having the related safety training, are allowed to program, install, alter, and otherwise apply this product. Understand and follow all local, regional, and national safety codes and standards. Failure to follow these instructions can result in death, serious injury, or equipment damage. Why Use the PIDAutoTuning Function Block? The PIDAutoTuning function block is used to calculate the KP and Ti parameters for the control system. Features of the PIDAutoTuning Function Block The PIDAutoTuning function block provides the following features: Manual / automatic PI calculation Calculates 3 series of Kp and Ti: aggressive, medium, and slow control. Direct / reverse control 300 EIO0000000663 05/2014 PIDAutoTuning Required Actions Before Autotuning Proceed as follows before starting autotuning: 1 Ensure that the process value and the setpoint have the same unit and precision. 2 Ensure that the process value shPv is not a fluctuating signal. If you get shPv with a fluctuating signal, try to smooth the process value by using Average AFB (AFB to calculate the average value). 3 Check if your system is direct (for example, heating) or inverse (for example, cooling). If your system is inverse, set xInversCntrl to TRUE. 4 Check the plausibility of the process value shPv. The measured process value must be plausible outside of the PIDAutoTuning function block. 5 Check the set-point shSp limits. Outside of the PIDAutoTuning function block, you have to ensure, that the set-point limit is checked by your program. If the limits are exceeded, you have to ensure that this is not a potential danger to personal health or your system. 6 Enable the PIDAutoTuning function block. NOTE: Due to the alarms of the periphery (for example, emergency stop) you have to ensure that the PIDAutoTuning function block is disabled and xStartAutotune is set to 0. NOTE: A fluctuating process value gives an incorrect calculation. Start Autotuning Proceed as follows to start autotuning: 1 Set the set-point shSetP to the working process value shPv. 2 Set xStartAutoTune to TRUE. 3 Wait Starting autotuning (xInversCntrl = 0) EIO0000000663 05/2014 301 PIDAutoTuning Starting autotuning (xInversCntrl = 1) NOTE: Autotuning is finished when xStartAutoTune is set from TRUE to FALSE. Protective Features The function block provides the following protective feature to help avoid certain sources of machine malfunction: 302 Protective Feature Description Input range validation Inputs and parameter ranges are validated to help prevent out of range data from being accepted directly. EIO0000000663 05/2014 PIDAutoTuning Section 22.2 Pin Description Pin Description Pin Description Pin Diagram The following picture shows the pin diagram of PIDAutoTuning: EIO0000000663 05/2014 303 PIDAutoTuning Input Pin Description Input Data Type Range Scaling / Unit Description xEn CJ_BIT TRUE or FALSE N/A Enables the function block. xStartAutoTune CJ_BIT TRUE or FALSE N/A A rising edge activates auto- tuning TRUE: the autotuning process starts on a rising edge. FALSE: autotuning is disabled xInversCntrl CJ_BIT TRUE or FALSE N/A Inverses the control. TRUE: Active (for example, for cooling systems) FALSE: Not active (for example, for heating systems) byMode CJ_BYTE 0...3 N/A Changes the PI parameters of the outputs shKp and wTi. 0= Manual parameter 1= ATR Para (slow) 2= ATR Para (medium) 3= ATR Para (aggressive) NOTE: If you have not performed autotuning before, set byMode to 0 (manual parameters). shPv CJ_SHORT TRUE or FALSE N/A Process value shSetp CJ_SHORT -3276.8…3276.7 0.1/user unit Set-point NOTE: shSetP is the value of the set-point, the future working process value for the PIDAdvanced AFB. NOTE: Reset when not active. shManualKp CJ_SHORT -300.00...+300.00 0.01/user unit Manual value of proportional gain configured by you. NOTE: The value is active at shKp if byMode is set to 0. wManualTi CJ_WORD 0...60000 seconds Manual value of integral time configured by you. NOTE: The value is active at wTi if byMode is set to 0. 304 EIO0000000663 05/2014 PIDAutoTuning Input Data Type Range Scaling / Unit wHighLimit CJ_WORD 0.00...100.00 0.01 % Description High limit of PID output. NOTE: wHighLimit of the PIDAdvanced AFB must have the same value. wLowLimit CJ_WORD 0.00...100.0 0.01 % Low limit of PID output. NOTE: wLowLimit of the PIDAdvanced AFB must have the same value. shSetP, shPv If the process value is fluctuating, the Average AFB must be used. When the filter time is set, you get the average process value for the entered filter time. A fluctuating signal causes a wrong calculation of the PI parameters. NOTE: The set-point shSetP and the process value shPv must be of the same unit and precision. xInversCntrl If xInversCntrl is set to TRUE, the input xInversCntrl inverts the calculation. Example: If... Then... the output wAutoTuneValue is 100.00% and shPv increases set xInversCntrl to FALSE. the output wAutoTuneValue is 100.00% and set xInversCntrl to TRUE. shPv decreases EIO0000000663 05/2014 305 PIDAutoTuning wLowLimit, wHighLimit These parameters define the range of your process (wAutoTuneValue). The PID controller (for example, PIDAdvanced AFB) must have the same values. The maximum range is 0.00 to 100.00%. NOTE: In oversized or undersized systems it is necessary to specify other ranges (for example, 0.00 to 50.00 for an oversized system). Example: wHighLimit = 50.00 (%) wLowLimit = 0.00 (%) or wHighLimit = 25.00 (%) wLowLimit = 0.00 (%) Results: The PIDAutoTuning AFB controls the output wAutoTuneValue between 0.00 and 50.00 %. The process value increases slower (for example temperature). The calculated PI parameters work better for an oversized system. byMode 306 0 = manual Manual PI- parameters are set to the outputs shKp and wTi 1 = slow Calculated PI- parameters are set to the outputs shKp and wTi. 2 = medium Calculated PI- parameters are set to the outputs shKp and wTi 3 = aggressive Calculated PI- parameters are set to the outputs shKp and wTi. EIO0000000663 05/2014 PIDAutoTuning Output Pin Description Output Data Type Range Scaling / Unit Description xAutoTune CJ_BIT TRUE or FALSE N/A TRUE: Autotuning process is active. FALSE: Autotuning process is not active. NOTE: If xAutoTune is set from TRUE to FALSE (falling edge), autotuning is finished. NOTE: It is possible to connect this output directly to the input xAutoTune of the PIDAdvanced AFB. wAutoTuneValue shKp CJ_WORD CJ_SHORT wLowLim to wHighLim 0.01 % -300.00... +300.00 0.01/user unit Analog output NOTE: It is possible to connect this output directly to the input wAutoTuneValue of the PIDAdvanced AFB. Manual or calculated Kp NOTE: It is possible to connect this output directly to the input shKp of the PIDAdvanced AFB. wTi CJ_WORD 0...60000 seconds Manual or calculated Ti NOTE: It is possible to connect this output directly to the input wTi of the PIDAdvanced AFB. wMessageID CJ_WORD 0 - 65535 N/A Message identification wAlarmID CJ_WORD 0 - 65535 N/A Alarm identification EIO0000000663 05/2014 307 PIDAutoTuning wMessageID Message Bit Message Cause Effect 0 Tuning is in progress. Autotuning is active. 1 Tuning is completed. System OK Autotuning is finished and the controlling was successful. 2 Tuning is completed. System is oversized. Autotuning is finished and the calculated PI parameters indicates an oversized system. The calculated parameters or manual values can be used. 3 Tuning is completed. System is undersized. Autotuning is finished and the calculated PI parameters indicates an undersized system. The calculated parameters or manual values can be used. 4-15 not used N/A 308 EIO0000000663 05/2014 PIDAutoTuning Troubleshooting wMessageID Message ID Problem Solution wMessageID.0 TRUE The values of some inputs are not set within the valid range, for example byMode > 5. Set valid values. wMessageID.3 TRUE Autotuning was finished and the measurement detected a non-homogeneous system. If for example the heater is oversized for the working temperature: change the heater. if it is not possible to modify the system, check the parameters wLowLimit and HighLimit. start autotuning again, or set manual PI parameters (byMode = 0”). wMessageID.4 TRUE Autotuning was finished and the measurement detected a non-homogeneous system. If for example the heater is undersized and parameters do not work: Set manual PI parameters (byMode = 0”). EIO0000000663 05/2014 309 PIDAutoTuning Alarm ID The table contains the bits of wAlarmID and their description: Alarm Bit Alarm Cause Effect 0 Invalid cycle time. 1 Invalid input limit parameters (wHighLimit, wLowLimit) 2 Invalid manual PI- parameters (shManualKp, wManualTi) wAnalog is set to 0 and autotuning will not start or will be canceled. 3 Invalid PID parameter (shKp, wTi, wTd) 4 xInversCntrl is changed during autotuning is running. 5 The calculated PID parameters are incorrect and the parameters cannot be calculated for this system. Autotuning is finished – – 6-15 310 and the controlling detected an incalculable system. wAnalog is set to 0 and autotuning will not start or will be canceled. The previously calculated PI parameters (shKp, wTi) will be deleted. EIO0000000663 05/2014 PIDAutoTuning Troubleshooting AlarmID The table contains the bits of wAlarmID and their description: AlarmID Problem Solution wAlarmID.0 TRUE Cycle time < 0 msec Cycle time > 2000 msec The application is too large. Reduce the application and check the cycle time. wAlarmID.1 TRUE wHighLimit > wLowLimit) wHighLimit > 100.00 wLowLimit = wHighLimit Check the parameter range. wAlarmID.2 TRUE shManualKp < -300.00 shManualKp > +300.00 wManualTi < 0 wManualTi > 60000 Check the parameter range. wAlarmID.3 TRUE Invalid mode value: byMode < 0 byMode > 3 Check the parameter range. wAlarmID.4 TRUE xInversCntrl changes during auto- tuning Do not change the value as long as autotuning is in progress. wAlarmID.5 TRUE Auto- tuning run for a long time (>45 minutes). The system is slow. The message Tuning completed system is Wait for a maximum of incalculable will be shown. 45 min. Stop autotuning. Set the PI parameters manually. wAlarmID.5 TRUE Internal variables detected values which are not calculable (for example Time1<=1 second or Time4>2700 seconds). There is a fluctuating signal of the actual process value (but you cannot see it in the program). The message Tuning completed system is incalculable will be shown. EIO0000000663 05/2014 If the parameters do not work, set the manual PI parameters (byMode = 0). 311 PIDAutoTuning 312 EIO0000000663 05/2014 SoHVAC Glossary EIO0000000663 05/2014 Glossary A AFB Application Function Block AHU Air Handling Unit AHUPlantModeStrategy AHU Plant Mode Strategy AHUTempCntrlStrategy AHU Temperature Control Strategy C CCS Cooling Coil Signal CompAlarmMgmt Compressor Alarm Management CompCntrl_CSH Compressor control for semi-hermetic compressors CompCntrl_OnOff Compressor control for generic on/off ompressors CompCntrl_VS Compressor control for variable speed ompressors (screw/piston) COP Coefficient of Performance Counter2Energy Converts totalized pulses in energy meter D DAT Discharge Air Temperature DCS Damper Control Signal EIO0000000663 05/2014 313 Glossary Deadband A range of the controlled variable in which no corrective action is taken by the controlled system and no energy is used. E EIML Embedded Interface Markup Language EnergyMeterModbusCom Energy meter modbus communication module for iEM3xxx meters EnergyTrend Energy meter data trend F FanMgmt Fan Management FB Function Block FCS Fan Control Signal FloatingPresHighCntrl Floating Pressure High Control H HCS Heating Coil Signal HVAC Heating, Ventilation and Air Conditioning HVAC&R Heating, Ventilation, Air Conditioning and Refrigeration I IEEE (institute of electrical and electronics engineers ) A non-profit international standards and conformity assessment body for advances in electrotechnology. 314 EIO0000000663 05/2014 Glossary M Modbus The protocol that allows communications between many devices connected to the same network. Modbus master time–out The period where the master waits for an answer from the slave on a Modbus request. If no answer is received in this period, then the Modbus message is cancelled and the master starts with a new Modbus request. N NC Night Cycle NIPU Night Purge O OAT Outdoor Air Temperature P PAR Parameter PID The Proportional, Integral and Derivative control is a generic control loop feedbackmechanism (controller) widely used in industrial control systems. PIDAdvanced PID control function block PIDAutotuning PID autotuning block Pulse2Counter Totalizer for digital input pulses R RAT Return Air Temperature EIO0000000663 05/2014 315 Glossary RMT Room temperature V VSD Variable Speed Drive W WtrTempDbCntrol Water Temperature Deadband Control 316 EIO0000000663 05/2014 SoHVAC Index EIO0000000663 05/2014 Index A AHUPlantModeStrategy, 51 AHUTempCntrlStrategy, 21 ATV••ModbusCom / ATV••• ModbusCom, 73 ATV12ModbusCom, 73 ATV212ModbusCom, 73 ATV21ModbusCom, 73 ATV312ModbusCom, 73 ATV31ModbusCom, 73 ATV32ModbusCom, 73 ATV61ModbusCom, 73 ATV71ModbusCom, 73 Pulse2Counter, 211 T ThermalPowerCalculation, 201 W WtrTempDbCntrl, 179 C CompAlarmMgmt, 281 CompCntrl_OnOff, 263 CompCntrl_Slider, 251 CompCntrl_VS, 269 CompMgmt, 89 COPCalculation: Coefficient of Performance, 207 Counter2Energy, 217 E EnergyMeterModbusCom, 227 EnergyTrend, 221 F FanMgmt, 113 Float2Long, 233 FloatingHighPresCntrl, 141 FloatingSetpoint, 163 P PIDAdvanced, 239 PIDAutoTuning, 299 EIO0000000663 05/2014 317 Index 318 EIO0000000663 05/2014
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
Download PDF
advertisement