Presentation is loading. Please wait.

Presentation is loading. Please wait.

Beckhoff Building Automation 30.04.2015 1 New Automation Technology HVAC-Library Exercise Heating Circuit.

Similar presentations


Presentation on theme: "Beckhoff Building Automation 30.04.2015 1 New Automation Technology HVAC-Library Exercise Heating Circuit."— Presentation transcript:

1 Beckhoff Building Automation 30.04.2015 1 New Automation Technology HVAC-Library Exercise Heating Circuit

2 Beckhoff Building Automation 30.04.2015 2  In the following exercise is the programming of a heating circuit stepwise described. Function: This installation is a static heating circuit in which the flow temperature is controlled in accordance with the outside temperature. The actuator for the heating circuit valve is a three-point actuator. The heating circuit can be switched into night setback mode by a switching timetable. New Automation Technology HVAC-Library Exercise Heating Circuit

3 Beckhoff Building Automation 30.04.2015 3  The programming takes place with pre defined Macros.  The macros are composed of TwinCAT Export-Files:  The HVAC-Macros are located in the folder: ….\EXP_Files\subprograms. Fore a better overview the sub programs are classified in sub folders. New Automation Technology HVAC-Library Exercise Heating Circuit

4 Beckhoff Building Automation 30.04.2015 4  For using the macros there are some adjustments in TwinCAT necessary. At [Projekt] Options you get in the menu Editor from TwinCAT. There you have to adjust the fond and tab width. New Automation Technology HVAC-Library Exercise Heating Circuit

5 Beckhoff Building Automation 30.04.2015 5  To use the macros the following libraries must be included \TwinCAT\Plc\Lib\. New Automation Technology HVAC-Library Exercise Heating Circuit

6 Beckhoff Building Automation 30.04.2015 6 New Automation Technology HVAC-Library Exercise Heating Circuit The base program must be loaded first before the macros can be used. The System programs folder is located within the base program. The programs are used to initialise global variables. Please open the Projekt : Base_Program.pro

7 Beckhoff Building Automation 30.04.2015 7 In the base program the following global variables are defined.  rOutside_Toutdoor temperature  rOutside_T_dampedoutdoor temperature damped  bFlashFlagBlinker  CtrkVoltage 230V AC, 24V DC, 24V AC  bResetFault acknowledge faults  stSystemTimeSystem time structure  dtSystemTime System time date an time  uiYearYear  uiMonthMonth  uiDayDay  uiDayOfWeekDay of week (0-6)  uiHourHour  uiMinuteMinute  uiSecondSecond  uiMillisecondMillisecond  tTaskCycleTimeCycle time Task  tPLCCycleTimeCycle time PLC New Automation Technology HVAC-Library Exercise Heating Circuit

8 Beckhoff Building Automation 30.04.2015 8 1. Step. Add a folder with the name HC1 (Heating circuit one) New Automation Technology HVAC-Library Exercise Heating Circuit

9 Beckhoff Building Automation 30.04.2015 9 2. Step: Load all the macros for the heating circuit out of the folder: EXP_Files  Heating Valve: 3Point_CtrlValve with AntiblockageE__X_3PCtrlValve_AB.EXP  PID-Controller:PID_Ctrl__X_PID.EXP  Setpoint Calculation:Setpoint_Heating_Circuit __X_SETPOINT_HC.EXP  Time Schedule:TimeScheduling_1Stage__X_ TimeSchedul1St.EXP  Temperature Sensor:TemperatureSensor__X_T.EXP  Pump:Pump__X_PU.EXP New Automation Technology HVAC-Library Exercise Heating Circuit

10 Beckhoff Building Automation 30.04.2015 10  Rename all objects.  Replace the placeholder X with the plant name HC1.  Move all program blocks into the folder HC1 Result: New Automation Technology HVAC-Library Exercise Heating Circuit 3. Step:

11 Beckhoff Building Automation 30.04.2015 11  Create a main program for the heating circuit named HC1. New Automation Technology HVAC-Library Exercise Heating Circuit 4. Step:

12 Beckhoff Building Automation 30.04.2015 12  Place all subprograms from HC1 in the main program an connect them. See below! 0 -> 1Time Scheduling transfers day or night modus 3 -> 1Transmission freeze protection status for setpoint calculation. 1 -> 4The heating is operating and enables the PID-Controller. 5 -> 4The actual temperature value is transmitted to the PID. 4 -> 2The PID is transmitting his control value to the valve. 4 -> 3The controller is transmitting his output to request the pump depending on the valve position. New Automation Technology HVAC-Library Exercise Heating Circuit 5. Step:

13 Beckhoff Building Automation 30.04.2015 13  The heating circuit is finished now.  The call form HC1 is to add in Main. New Automation Technology HVAC-Library Exercise Heating Circuit 6. Step:

14 Beckhoff Building Automation 30.04.2015 14  Compile the program New Automation Technology HVAC-Library Exercise Heating Circuit

15 Beckhoff Building Automation 30.04.2015 15 New Automation Technology HVAC-Library Exercise Heating Circuit

16 Beckhoff Building Automation 30.04.2015 16 New Automation Technology HVAC-Library Exercise Heating Circuit

17 Beckhoff Building Automation 30.04.2015 17 New Automation Technology HVAC-Library Exercise Heating Circuit

18 Beckhoff Building Automation 30.04.2015 18 New Automation Technology HVAC-Library Exercise Heating Circuit

19 Beckhoff Building Automation 30.04.2015 19 If another heating circuit is required, it is very efficient to proceed as follows: The name of the heating circuit is underlined in red. With the text editor we search for HC1 and replace it with HC2. This renames all the program blocks in the heating circuit macro, and all the variables that are locally declared within them. The changes are then saved in the file HeatingCircuit_3Point.exp, and the text editor is closed. After this we can import the HeatingCircuit_3Point.exp file with installation identifier HC2. By repeating this process, a large heat distributor with a large number of heating circuits can be programmed in a very short time. New Automation Technology HVAC-Library Exercise Heating Circuit


Download ppt "Beckhoff Building Automation 30.04.2015 1 New Automation Technology HVAC-Library Exercise Heating Circuit."

Similar presentations


Ads by Google