ps564 tect temp control ac500 v24 library example 3adr025230m0201

Upload: mijo-odza

Post on 07-Jul-2018

290 views

Category:

Documents


5 download

TRANSCRIPT

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    1/47

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    2/47

    PS564 TECT Example programVersion: V1.0.0 1 AC500 / Issue: 11.2015

    CONTENTS

    1 ....... Disclaimer .................................................................................................................. 2

    2 ....... INTRODUCTION TO DOCUMENT ............................................................................. 3

    2.1 ... Scope of the document ................................................................................................... 3

    2.2 ... Overview of the Content ................................................................................................. 3

    2.3 ...

    Compatibility ................................................................................................................... 3

    2.4 ... Safety Instructions .......................................................................................................... 3

    3 ....... Overview .................................................................................................................... 4

    3.1 ... The first example “A_One_Zone” .................................................................................. 5

    3.2 ... The second example “B_Multiple_zones” ..................................................................... 7

    3.3 ... The third example “C_One_Group” ............................................................................... 8

    3.4 ... The fourth example “D_Multiple_Groups” .................................................................... 9

    4 ....... Getting started with Examples ............................................................................... 10

    4.1 ... Example: A_One_Zone ................................................................................................. 10 4.1.1 Configuration (Automation Builder) ........................................................... 10

    4.1.2 Progra ming (‘IEC 61131 -3 editor’) ............................................................ 10

    4.1.3 Program Download ................................................................................... 15

    4.1.4 Visualization ............................................................................................. 15

    4.2 ... Example: B_Multiple_Zones ......................................................................................... 18

    4.2.1 Configuration (Automation Builder) ........................................................... 18

    4.2.2 Programing (‘IEC 61131 -3 editor’) ............................................................ 18

    4.2.3 Visualization ............................................................................................. 18 4.3 ... Example: C_One_Group ............................................................................................... 20

    4.3.1 Configuration (Automation Builder) ........................................................... 20

    4.3.2 Programing (‘IEC 61131 -3 editor’) ............................................................ 20

    4.3.3 Program Download ................................................................................... 21

    4.3.4 Visualization ............................................................................................. 21

    4.4 ... Example: D_Multiple_Groups ....................................................................................... 22

    4.4.1 Configuration (Automation Builder) ........................................................... 22

    4.4.2 Programing (‘IEC 61131 -3 editor’) ............................................................ 22 4.4.3 Program Download ................................................................................... 24

    4.4.4 Visualization ............................................................................................. 24

    4.5 ... Example: D_Multiple_Groups_CP600 .......................................................................... 26

    4.5.1 Configuration (Automation Builder) ........................................................... 26

    4.5.2 Panel Builder 600 ..................................................................................... 27

    4.5.3 CP600 Panel Builder screens ................................................................... 34

    5 ....... REVISION HISTORY ................................................................................................ 44

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    3/47

    PS564 TECT Example programVersion: V1.0.0 2 AC500 / Issue: 11.2015

    1 Disclaimer

    A. For customers domiciled outside Germany /Für Kunden mit Sitz außerhalb Deutschlands

    „Warranty, Liability: The user shall be solely responsible for the use of this application example described within this file. ABBshall be under no warranty whatsoever. ABB's liability in connection with this application example or thefiles included within this file, irrespective of the legal ground, shall be excluded. The exclusion of liabilityshall not apply in the case of intention or gross negligence. The present declaration shall be governed byand construed in accordance with the laws of Switzerland under exclusion of its conflict of laws rules and ofthe Vienna Convention on the International Sale of Goods (CISG)."

    „Gewährleistung und Haftung: Der Nutzer ist allein für die Verwendung des in dieser Datei beschriebenen Anwendungsbeispielsverantwortlich.

    ABB unterliegt keiner Gewährleistung. Die Haftung von ABB im Zusammenhang mit diesem Anwendungsbeispiel oder den in dieser Datei enthaltenen Dateien - gleich aus welchem Rechtsgrund - istausgeschlossen. Dieser Ausschluß gilt nicht im Falle von Vorsatz oder grober Fahrlässigkeit. DieseErklärung unterliegt Schweizer Recht unter Ausschluß der Verweisungsnormen und des UN-Kaufrechts(CISG)."

    B. Nur für Kunden mit Sitz in Deutschland

    „Gewährleistung und Haftung: Die in diesem Anwendungsbeispiel enthaltenen Dateien beschreiben eine mögliche Anwendung der AC500bzw. zeigen eine mögliche Einsatzart. Sie stellen nur Beispiele für Programmierungen dar, sind aber keinefertigen Lösungen. Eine Gewähr kann nicht übernommen werden.Der Nutzer ist für die ordnungsgemäße, insbesondere vollständige und fehlerfreie Programmierung derSteuerungen selbst verantwortlich. Im Falle der teilweisen oder ganzen Übernahme derProgrammierbeispiele können gegen ABB keine Ansprüche geltend gemacht werden.Die Haftung von ABB, gleich aus welchem Rechtsgrund, im Zusammenhang mit den

    Anwendungsbeispielen oder den in dieser Datei enthaltenen Dateien wird ausgeschlossen. DerHaftungsausschluß gilt jedoch nicht in Fällen des Vorsatzes, der groben Fahrlässigkeit, bei Ansprüchennach dem Produkthaftungsgesetz, im Falle der Verletzung des Lebens, des Körpers oder der Gesundheitoder bei schuldhafter Verletzung einer wesentlichen Vertragspflicht. Im Falle der Verletzung einerwesentlichen Vertragspflicht ist die Haftung jedoch auf den vertragstypischen, vorhersehbaren Schadenbegrenzt, soweit nicht zugleich ein anderer der in Satz 2 dieses Unterabsatzes erwähnten Fälle gegebenist. Eine Änderung der Beweislast zum Nachteil des Nutzers ist hiermit nicht verbunden.Es gilt materielles deutsches Recht unter Ausschluß des UN-Kaufrechts."

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    4/47

    PS564 TECT Example programVersion: V1.0.0 3 AC500 / Issue: 11.2015

    2 INTRODUCTION TO DOCUMENT

    2.1 Scope of the document

    The purpose of this document is to give some examples how to develop an applicationwith the PS564 temperature control library - TECT_TEMP_CONTROL_AC500_V24.lib

    2.2 Overview of the ContentThere are different examples available:

    2.3 Compatibility

    The example programs explained in this document have been created and tested withthe below engineering system versions. They should also work with other versions;nevertheless some small adaptations may be necessary, for future versions.

    Prerequisite to run the example programs:

    Automation Builder V1.1.0 and V1.2

    AC500 PLC: PM57x, PM58x, PM59x or PM595 with Firmware 2.4.2 or higher.

    Automation Builder should have Panel Builder V1.90.0 installed or higher.

    CP600 seried HMI

    SD card

    2.4 Safety Instructions

    The user must follow all applicable safety instructions and the guidelines mentioned inthe user documents of the ABB products used in the example program.

    Read the complete safety instructions for the AC500 before installation andcommissioning.

    Read all safety instructions of your control station system manuals.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    5/47

    PS564 TECT Example programVersion: V1.0.0 4 AC500 / Issue: 11.2015

    3 Overview

    The Temperature Control library package consists of the following libraries:

    Two libraries (ADCTRL_AC500_V24.lib and TECT_EXT_AC500_V24.lib) are internallibraries. The main library is TECT_TEMP_CONTROL_AC500_V24.lib. It contains thefunction blocks which are needed to setup a temperature control system for one zone,one group of zones or for the entire system, consisting of several groups. Overview ofall function blocks and details can be found in the function block description of thelibrary.

    The example project consists of four examples A to D:

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    6/47

    PS564 TECT Example programVersion: V1.0.0 5 AC500 / Issue: 11.2015

    3.1 The first example “A_O ne_Zone”

    This example explains how to setup the temperature control for single zone.

    The function block TECT_TEMP_CONTROL performs the temperature control includingautomatic adaptation of control parameter to the process. The duty cycle containing

    heating or cooling signals are connected to the actuators of the extruder zone, which issimulated by the function block TECT_TEMP_SIMU. So there is no need to connect areal temperature zone to the AC500 in this example. The actual temperature which issimulated by TECT_TEMP_SIMU is fed back into the TECT_TEMP_CONTROLfunction block in order to close the control loop.

    Beyond the few inputs and outputs of the TECT_TEMP_CONTROL function block thereare several parameters stored in the global variable ”ZoneData ” (blue box in the pictureabove) and it is defines as data type TECT_TEMPZONEDATA_TYPE: (Refer onlinehelp: TECT_TEMPZONEDATA_TYPE)

    It is grouped in substructures - …SET_TYPEs for w riting values and…STATUS_TYPEs for reading values. Furtheremore there are values which are readand written by the MACHINE engineer who comissions the machine and others by the

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    7/47

    PS564 TECT Example programVersion: V1.0.0 6 AC500 / Issue: 11.2015

    PROCESS engineer who handles the process itself. For example:

    TECT_MACHINE_SET_TYPE contains the temperature limits rHighHigh_Tempand rLowLow_Temp which are determined by the machine. (Refer online helpTECT_MACHINE_SET_TYPE)

    TECT_PROCESS_SET_TYPE contains the temperature limits rHigh_Temp andrLow_Temp which are determined by the process. (Refer online helpTECT_PROCESS_SET_TYPE)

    The structure Zone data acts as an interface between the function blocks(TECT_TEMP_CONTROL, TECT_LOG_FILE, TECT_DATA_FLASH, …) and the HMI(not part of this example).

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    8/47

    PS564 TECT Example programVersion: V1.0.0 7 AC500 / Issue: 11.2015

    3.2 The second example “ B_ Multiple_zones”

    This example explains how to setup n zones of temperature control. The number ofzones is n = 6 in the example.

    There are six instances of TECT_TEMP_CONTROL and TECT_TEMP_SIMU.

    In the above example for six zones we can call one instance of TECT_PWM8 forheating and another instance of TECT_PWM8 for cooling. (Refer online helpTECT_PWM8 for details) They care for an optimized use of the actuators, so that theywill not be switched on at the same time to avoid undesired voltage drop in the powersupply system.

    In the above example six intances of TECT_TEMP_CONTROL, TECT_TEMP_SIMUfunction blocks are called. For all the zones present, one instance ofTECT_DATA_FLASH and TECT_LOG_FILE function block is sufficient to handle all thesix zones.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    9/47

    PS564 TECT Example programVersion: V1.0.0 8 AC500 / Issue: 11.2015

    3.3 The third example “ C_ One_Group”

    This example explains how to setup a group of n zones. Instead of instantiating nfunction blocks TECT_TEMP_CONTROL it is sufficient to instantiate one function blockTECT_GROUP which handles the complete group:

    One instance of TECT_GROUP and six instances of TECT_TEMP_SIMU functionblocks are called.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    10/47

    PS564 TECT Example programVersion: V1.0.0 9 AC500 / Issue: 11.2015

    3.4 T he fourth example “ D_Multiple_Groups ”

    This example explains the configuration of TECT_SYSTEM and TECT_GROUP formultiple groups. Example contains n = 18 zones in m= 3 groups: Group 1 with 8 zones,group 2 with 6 zones and group 3 with 4 zones.

    The exam ple also contains a Panel Builder 600 project “ D_Multiple_Groups_CP600 ” toconfigure a CP600 panel for control and monitoring of all zones. The function block“TECT_HMI_MUX” is used as interface between AC500 and CP600 .

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    11/47

    PS564 TECT Example programVersion: V1.0.0 10 AC500 / Issue: 11.2015

    4 Getting started with Examples

    Libraries are located in …Common Files\CAA-Targets\ABB_AC500\AC500_V12\library\PS564-TEMPCTRL

    The example project can be found in the folder:…Users\Public\Documents\AutomationBuilder\Examples\PS564-TEMPCTRL\

    4.1 Example: A_One_Zone

    This example program explains the simple configuration of one temperature controlzone along with a simulation block. It will guide on how to configure and monitor asingle temperature zone. The following components are required for this example:

    AC500 PLC (PM573 or higher)

    SD card

    Automation Builder V1.1.0 or higher

    Library: PS564 – TEMPCTRL package

    Example project: “PS564_TECT_Example.project”

    4.1.1 Configuration (Automation Builder)

    Open the example in Automation Builder 1.1.0 or higher.

    Update the PLC target to the one used. (Default in example is PM573). Open theapplication “ A_ One_Zone“ in ‘IEC 61131 -3 editor’”

    4.1.2 Programing ( ‘IEC 61131 -3 editor’ )

    A_One_Zone example has following POUs configured for single zone,

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    12/47

    PS564 TECT Example programVersion: V1.0.0 11 AC500 / Issue: 11.2015

    It has TECT_TEMP_CONTROL, TECT_TEMP_SIMU, TECT_DATA_FLASH andTECT_LOG_FILE one instance called. Observe the closed control loop between thetwo function blocks TECT_TEMP_CONTROL and TECT_TEMP_SIMU

    In this example simulation zone (TECT_TEMP_SIMU) is used to simulate thetemperature and connected it as input ACT_TEMP_RAW of FB

    TECT_TEMP_CONTROL. If a real zone has to be used, just removeTECT_TEMP_SIMU FB and map DUTY_CYCLE and ACT_TEMP_RAW of FBTECT_TEMP_CONTROL to the real actuators and temperature sensor.

    4.1.2.1 Lib rary

    In order to access the temperatue control function blocks, following three libraries haveto be added in the project. (Default path after installation is C:\Program Files(x86)\Common Files\CAA-Targets\ABB_AC500\AC500_V12\library\PS564-TEMPCTRL)

    TECT_TEMP_CONTROL_AC500_V24.lib

    TECT_EXT_AC500_V24.lib (internal library used in the temperature controllibrary)

    ADCTRL_AC500_V24.lib (internal library used in the temperature control library)

    This can be added or accessed in the ‘Library manager’ under Resouces tab.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    13/47

    PS564 TECT Example programVersion: V1.0.0 12 AC500 / Issue: 11.2015

    Also following oject files has to be present in the folder PS564-TEMPCTRL

    TECT_EXT_AC500_V24.obj

    TECT_EXT_AC500_V24_FPU.obj

    TECT_EXT_AC500_V24_VEC.obj

    4.1.2.2 PLC_PRG (POU)

    This POU calls the other three POUs namely, ZoneSimulation, TempControl andOptionalFunctions

    4.1.2.3 Temp Con tro l (POU)

    This POU has the instance of temperature control declared and action to initializeparameters of zone.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    14/47

    PS564 TECT Example programVersion: V1.0.0 13 AC500 / Issue: 11.2015

    This is the main function block to control the temperature at each zone. For more detailson the function block refer online help: TECT_TEMP_CONTROL.

    The main parameters of the structure zone data are set in the first cycle of this action.

    More details on the parameters can be found in the online help:TECT_TEMPEZONEDATA_TYPE structure

    4.1.2.4 Zon eSim ulatio n (POU)

    This POU has the instance of TECT_TEMP_SIMU function block, which is used to

    simulate the real zone parameters for the example. This POU can be disabled whenreal zone is connected and temperature is read from the sensors.

    To simulate the actual temperature for the temperature control function block,

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    15/47

    PS564 TECT Example programVersion: V1.0.0 14 AC500 / Issue: 11.2015

    TECT_TEMP_SIMU function block is useful. For more details refer online helpTECT_TEMP_SIMU.

    4.1.2.5 Opt ionalFun ctio ns (POU)

    This POU has the optional functions used in the example program for additionalfeatures.

    TECT_LOG_FILE function block is optional and user can use this block to log theprocess status based on different selections and mode. For more details refer onlinehelp: TECT_LOG_FILE.

    Data flash function block can be used to store internal parameters and machine setparameters into the flash memory. For more details on the function block refer onlinehelp: TECT_DATA_FLASH.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    16/47

    PS564 TECT Example programVersion: V1.0.0 15 AC500 / Issue: 11.2015

    Recipe function block can be used to store all the basic settings done in the structureTECT_TEMPZONEDATA_TYPE for each zone into SDCARD/FLASHDISK. For moredetails on the function block refer online help: TECT_RECIPE

    4.1.3 Program Download

    The CPU program can be downloaded to PLC using normal TCP/IP gateway. Put thePLC in Run mode.

    Note: Battery is required to retain the parameters declared as global retain variableseven after restart/ shut down of PLC.

    4.1.4 Visualization

    Open the visualization PLC_VISU which allows to control and monitor one zone:

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    17/47

    PS564 TECT Example programVersion: V1.0.0 16 AC500 / Issue: 11.2015

    For starting the example click on “Enable Temperature Control” and “AutoTune”:

    Wait some minutes until the AutoTune is complete: ( Indicator “Tune Done” )

    Push bu tton “ Accept” AutoTune in order to copy the tuned control parameters (KP, TI,TD and T1) to the actual parameters. Disable AutoTune to run the normal PID_Process:

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    18/47

    PS564 TECT Example programVersion: V1.0.0 17 AC500 / Issue: 11.2015

    When the control loop is settled the deviation between Set Point (50) and ACTtemperature becomes less than 0,5°C, so that the High Deviation error disappears NoError

    Change the SET temperature (e.g. to 40°C in the first step and to 45°C in the secondstep) and wait until ACT temperature follows:

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    19/47

    PS564 TECT Example programVersion: V1.0.0 18 AC500 / Issue: 11.2015

    4.2 Example: B_Multiple_Zones

    This example program explains the simple configuration of multiple temperature controlzone along with simulation blocks. It will guide on how to configure and monitor multipletemperature zones. The following components are required for this example:

    AC500 PLC (PM573 or higher)

    SD card Automation Builder V1.1.0 or higher

    Library: PS564 – TEMPCTRL package

    Example project: “PS564_TECT_Example.project”

    4.2.1 Configuration (Automation Builder)

    Open the example in Automation Builder 1.1.0 or higher. Update the PLC target to the one used. (Default in example is PM573). Open the

    application “B_Multiple_Zones“ in ‘IEC 61131 -3 editor’”

    4.2.2 Programing ( ‘IEC 61131 -3 editor’ )

    B_Multiple_Zones example has following POUs configured for multiple zones,

    This example has 6 instances of TECT_TEMP_CONTROL function block called for 6temperature zones. Temperature of the process is simulated instead of real zones foreach zone using TECT_TEMP_SIMU function block. It has optional functionsTECT_RECIPE, TECT_LOG_FILE and TECT_DATA_FLASH Library.

    Refer chapter 4.1 for more detailed description and screenshots

    4.2.3 Visualization

    ALL_ZONES: This Visualization can be used to enable/disable all the 6 zones in theexample program. User can monitor the variation of actual temperature for all thezones. It also display the latest three logs of the process for each zone. For moredetails on the use of LOG_VISU feature refer online help TECT_LOG_ENTRY_PH.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    20/47

    PS564 TECT Example programVersion: V1.0.0 19 AC500 / Issue: 11.2015

    ZONE_DATA: This visualizations calls the TECT_ZONE_DATA_PH for each zone.Using this user can monitor and control process of each zone.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    21/47

    PS564 TECT Example programVersion: V1.0.0 20 AC500 / Issue: 11.2015

    4.3 Example: C_One_Group

    This example program explains the simple configuration of onegroup of temperaturecontrol zone along with a simulation blocks for each zone. It will guide on how toconfigure and monitor a group of temperature zones. The following components arerequired for this example:

    AC500 PLC (PM573 or higher)

    SD card

    Automation Builder V1.1.0 or higher

    Library: PS564 – TEMPCTRL package

    Example project: “ PS564_TECT_Example.project ”

    4.3.1 Configuration (Automation Builder)

    Open the example in Automation Builder 1.1.0 or higher.

    Update the PLC target to the one used. (Default in example is PM573). Open theapplication “C_One_Group “ in ‘IEC 61131 -3 editor’”

    4.3.2 Programing ( ‘IEC 61131 -3 editor’ )

    C_One_Group example has following POUs configured for one group.

    This example program has one group function block called for six temperature zones,Temperature is simulated instead of Real zones for each zone usingTECT_TEMP_SIMU function block. It has optional functions TECT_RECIPE,TECT_LOG_FILE and TECT_DATA_FLASH

    PLC_PRG (POU): This POU calls the other three POUs namely,Multi_Zone_Simulation, TempControl and OptionalFunctions

    TempControl (POU): This POU has the instance of Group function block declared andactions to initialize parameters of zone, to transfer the heat and cool status, to read thetemperature from simulation for each zone.

    TECT_GROUP function block: This function block can handle multiple zones. In theexample B_Multiple_Zones 6 instances of TECT_TEMP_CONTROL function block is

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    22/47

    PS564 TECT Example programVersion: V1.0.0 21 AC500 / Issue: 11.2015

    called for 6 zones. But, using one instance of this block all 6 instance of temperaturecontrol can be handled. User can group the temperature zones in a whole and call thisblock to configure and monitor in one go. For more details of the function block referonline help TECT_GROUP.

    4.3.3 Program Download

    The CPU program can be downloaded to PLC using normal TCP/IP gateway. Put thePLC in Run mode.

    Note: Battery is required to retain the parameters declared as global retain variableseven after restart/ shut down of PLC.

    4.3.4 Visualization

    ALL_ZONES: This Visualization can be used to enable/disable all the 6 zones in theexample program. User can monitor the variation of actual temperature for all the

    zones. It also display the latest three logs of the process for each zone. For moredetails on the use of LOG_VISU feature refer online help: TECT_LOG_ENTRY_PH.

    User can enable/ disable Temperature control, Standby, Auto tune, Accept auto tuneusing the ON/OFF buttons available. Also user can cold reset or Warm reset theprocess.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    23/47

    PS564 TECT Example programVersion: V1.0.0 22 AC500 / Issue: 11.2015

    ZONE_DATA: Refer previous chapter for more detailed description and screenshots

    4.4 Example: D_Multiple_Groups

    This example program explains the simple configuration of multiple temperature controlgroups along with a simulation blocks. It will guide on how to configure and monitormultiple group of temperature groups in a system. The following components arerequired for this example:

    AC500 PLC (PM573 or higher)

    SD card

    Automation Builder V1.1.0 or higher

    Library: PS564 – TEMPCTRL package

    Example project: “ PS564_TECT_Example.project ”

    4.4.1 Configuration (Automation Builder)

    Open the example in Automation Builder 1.1.0 or higher.

    Update the PLC target to the one used. (Default in example is PM573). Open theapplication “D_Multiple_Groups” in ‘IEC 61131-3 editor’

    4.4.2 Programing ( ‘IEC 61131 -3 editor’ )

    D_Multiple_Groups example has following POUs configured for single zone,

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    24/47

    PS564 TECT Example programVersion: V1.0.0 23 AC500 / Issue: 11.2015

    This example program explains how to configure a system of multiple group withdifferent set of temperature zones. Temperature is simulated instead of Real zones foreach zone using TECT_TEMP_SIMU function block. It has optional functionsTECT_RECIPE, TECT_LOG_FILE and TECT_DATA_FLASH. This example alsoexplains how to interface ‘IEC 61131 -3 editor’ program with CP600 panel.

    TempControl (POU): This POU has the instance of Group function block declared andactions to initialize parameters of zone, to transfer the heat and cool status, to read thetemperature from simulation for each zone.

    TECT_SYSTEM function block: This function block can be used to control and monitormultiple groups together. In this example one instance of TECT_SYSTEM functionblock is called which handles the three groups of eight, six and four zones respectively.

    HMI_Interface (POU): This POU calls the function block TECT_HMI_MUX which isused as interface between AC500 PLC and CP600 control panel. For more detailsabout this function block refer the online help: TECT_HMI_MUX.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    25/47

    PS564 TECT Example programVersion: V1.0.0 24 AC500 / Issue: 11.2015

    4.4.3 Program Download

    The CPU program can be downloaded to PLC using normal TCP/IP gateway. Put thePLC in Run mode.

    Note: Battery is required to retain the parameters declared as global retain variableseven after restart/ shut down of PLC.

    Note: After compliation the Codeys program might throw Warnings related to Callback.This can be ignored since it will not effect any functionality

    4.4.4 Visualization

    In ZONE_DATA_IN_GROUP user can control and monitor the parameters of eachindividual temperature zones of the respective groups. Using the Group selector on topuser can switch between Group 1, 2 and 3.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    26/47

    PS564 TECT Example programVersion: V1.0.0 25 AC500 / Issue: 11.2015

    In GROUP_1 you can monitor all eight zones of first group. On top of the visualizationthere are Group command buttons for sending commands to all zones of the group.User can check the behavior of actual temperature of each zone through graphs. It alsodisplay the latest three logs of the process for each zone. For more details on the use ofLOG_VISU feature refer online help: TECT_LOG_ENTRY_PH.

    GROUP_2 and GROUP_2 are similar for the group 2 and 3.

    In SYSTEM_CONTROL you can send commands for Group 1, 2 or 3. The buttons inthe top area “System Control” are valid for the complete system which means all zonesof all groups.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    27/47

    PS564 TECT Example programVersion: V1.0.0 26 AC500 / Issue: 11.2015

    4.5 Example: D_Multiple_Groups_CP600

    This example program explains the simple configuration of multiple temperature controlgroups and monitoring from CP600 Control Panel. It will guide on how to configure andmonitor multiple group of temperature groups in a system. The following componentsare required for this example:

    AC500 PLC (PM573 or higher)

    SD card

    Automation Builder V1.1.0 or higher

    Library: PS564 – TEMPCTRL package

    Example project: “ PS564_TECT_Example.project ”

    CP600 Panel

    Note: This example is developed using CP635 series of CP600 Panel.

    4.5.1 Configuration (Automation Builder)

    Open the example in Automation Builder 1.1.0 or higher.

    Update the PLC target to the one used. (Default in example is PM573). Download theprogram “D_Multiple_Groups” into AC500 PLC (see previous chapter)

    Open the application “D_Multiple_Groups_CP600 ” in Panel builder 600.

    Open the applicat ion „Panel Builder 600“ in Panel Builder

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    28/47

    PS564 TECT Example programVersion: V1.0.0 27 AC500 / Issue: 11.2015

    4.5.2 Panel Builder 600

    4.5 .2 .1 IP con f igura t ion and o ther s e t t ings before do wn load:

    Configured IP address of the Panel is 192.168.0.10 and can be changed optionally.

    [Refer the hardware settings manual of CP600 Control panel for steps to modify IP.]In the panel builder project the IP address of the AC500 CPU is set to 192.168.0.145.For different IP addresses please perform the following steps:

    Open Config menu and double click on Protocols.

    Click on the configuration for ABB Codesys ETH. This will open configuration window

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    29/47

    PS564 TECT Example programVersion: V1.0.0 28 AC500 / Issue: 11.2015

    Click on Modify button, it will open another window. User needs to enter IP address ofthe CPU at this position.

    Once IP address is done, user should click on tags and update all the tags.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    30/47

    PS564 TECT Example programVersion: V1.0.0 29 AC500 / Issue: 11.2015

    Refer to next chapter for more details on importing tags.

    Now HMI program is ready to be use.

    4.5 .2 .2 Imp or t ing sym bol f i les and crea t ing tags :

    These chapter explains how to import symbol files from AC500 PLC into HMI programand create/update the tags.

    In the example ‘ D_Multiple_Groups’, Global_Variables_HMI is having all the variablesfor tagging in the CP600. These tags have to be imported as symbol file (.SYM) andtagged for respective variables in the CP600

    In the ‘IEC 61131 -3 editor’ project file select the creation of symbol files. Project Options Symbol configuration.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    31/47

    PS564 TECT Example programVersion: V1.0.0 30 AC500 / Issue: 11.2015

    Also check if download symbol file is selected in Target settings

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    32/47

    PS564 TECT Example programVersion: V1.0.0 31 AC500 / Issue: 11.2015

    After the download of project file into AC500 PLC, in the automation builder export thesymbol file into desired location in the PC.

    Now in the panel builder 600 under config Tags ABB Codesys ETH Prtocol Import tags

    Select the location to where the symbol file is exported and import the tags fromD_Multiple_Groups.SYM file into Panel builder.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    33/47

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    34/47

    PS564 TECT Example programVersion: V1.0.0 33 AC500 / Issue: 11.2015

    On the Panel do the following configurations

    By navigating between different pages user can configure control, process settings and

    monitor the whole process.1. Home page, from here user can navigate to any of the control and monitoring

    pages. User can also control the major process of the system/group by ON/OFFbuttons available.

    2. If the configuration is for the first time then user should select Options Startuppage. This will guide from one page to another for the limit settings, auto tunesettings, PID settigns which can be done for each group separately.

    3. After the startup configuration user can start the process and choose betweenautomatic/ manual control of the process under Contol/Status button.

    4. If there is any changes in the settings to be made after the process is started/running then user can navigate to Settings page where limit and control settings canbe edited.

    5. After the settings are done, navigate to PID/Tune page where the auto tune can becontrolled, here user can accept/reject the autotune values.

    6. After all the settings are done and tune values are accepted, navigate to themonitoring screens. Trends, alarms and home page are the monitoring screens.

    7. Go to ‘Trends’ page to observe the variations in the actual temperature for eachzone.

    8. After this user click on alarm screen to check the list of all warnings/ faultsgenerated in the system. Latest alarm can also be seen in the status bar below eachpage.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    35/47

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    36/47

    PS564 TECT Example programVersion: V1.0.0 35 AC500 / Issue: 11.2015

    4.5.3.2.1 Automatic Control

    In the Second set of data, Actual temperature and other process status are displayed. Ifthe colour is red then heat process is running and blue indicates cooling process of theindividual zone. In the last row control state of each zone is displayed which is easy tomonitor the group.

    4.5.3.2.2 Manual Control

    In the Manual control page user can override all the running process and take completecontrol of the system into his control. For the zones for which ‘Manual Mode’ is ON, it isunder manual control and runs with the user defined duty cycle, ‘Manual Output’. Forexample in the above image we can see for Zone 1, 3, 6 and 8 manual mode isactivated.

    User can view the present running status and monitor the process. User has to be

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    37/47

    PS564 TECT Example programVersion: V1.0.0 36 AC500 / Issue: 11.2015

    careful in choosing the Manual output values because erroneous value could lead toserious damage. Control state indicates the present running process in each zone.

    Note: In the manual mode there is no limits defined and user has to be careful whileassigning the values. It might lead to damage of apparatus.

    4.5.3.2.3 Advanced Status

    Advanced status page is a monitoring screen where user can view more details aboutthe system status and errors. All the parameters in this page is read only.

    4.5.3.3 Setting s

    In the settings of the system there are two pages, one for limit settings and another forcontrol settings

    4.5.3.3.1 Limit settings

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    38/47

    PS564 TECT Example programVersion: V1.0.0 37 AC500 / Issue: 11.2015

    This is the page where all the limit settings for each zone can be made. These settingswill generate alarms/faults for the respective zone based on the limits declared here.

    4.5.3.3.2 Control settings

    Control settings page provides major control parameter configuration for the user likedutycycle, temp difference cool and cool off ratio. Using the ON button user can trun on/turn off heating and cooling for each zone.

    4.5.3.4 PID / TUN E

    For the PID/tune settings there are two pages available, one page for the auto tunesettings and another page for the KP, TI, TD and T1 settings.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    39/47

    PS564 TECT Example programVersion: V1.0.0 38 AC500 / Issue: 11.2015

    4.5.3.4.1 Auto Tune

    In this Auto tune page, as in above image, all the auto tune related settings can beconfigured and monitored. User can configure the tune step, and can enable tuning foreach zone individually. Once the tune is completed status of ‘tune done’ will be green(in the above image zone 1, 2, 3, 4 and 5). The tuned value can be accepted/ rejectedby ON button for zone 2 and 4 it is accepted). For each zone tuned values of KP, TI andTD are available.

    4.5.3.4.2 PID settings

    In the PID settings page, each zone tuned value of KP,TI,TD and Cool factor isavailable. In the previous page of ‘Auto Tune’, if the tune values for a zone is acceptedthen it will be copied into process KP,TI, TD and Cool factor. (In the above imageobserve zone 2 and zone 4).

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    40/47

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    41/47

    PS564 TECT Example programVersion: V1.0.0 40 AC500 / Issue: 11.2015

    4.5.3.7 Opt ion s

    Options is the page which provides some options to the user, each of them areexplained below

    4.5.3.7.1 Startup

    Startup is the screen using which user can configure the parameters or control and

    limits of the system for each group and zone.

    Select the Group and assign group name for which initialization has to be made.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    42/47

    PS564 TECT Example programVersion: V1.0.0 41 AC500 / Issue: 11.2015

    All the limit settings for the machine and process are set here. Based on the limitsettings made here warnings/ faults will be generated.

    Control settings page provides major control parameter configuration for the user likedutycycle, temp difference cool and cool off ratio. Using the ON button user can trun on/turn off heating and cooling for each zone.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    43/47

    PS564 TECT Example programVersion: V1.0.0 42 AC500 / Issue: 11.2015

    In this Auto tune page, as in above image, all the auto tune related settings can beconfigured and monitored. User can configure the tune step, and can enable tuning foreach zone individually. Once the tune is completed status of ‘tune done’ will be green (in the above image zone 1,2, 3, 4 and 5). The tuned value can be accepted/ rejected byON button ( for zone 2 and 4 it is accepted) For each zone tuned values of KP, TI andTD are available.

    In the PID settings page, each zone tuned value of KP,TI,TD and Cool factor isavailable. In the previous page of ‘Auto Tune’, if the tune values for a zone is acceptedthen it will be copied into process KP,TI, TD and Cool factor. (In the above imageobserve zone 2 and zone 4).

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    44/47

    PS564 TECT Example programVersion: V1.0.0 43 AC500 / Issue: 11.2015

    After all the settings are made startup completed page will appear. Here user can clickon ‘Startup’ button to configure settings for all the group.

    4.5.3.7.2 Users, Panel Settings, Info

    These buttons are placeholders, they can be implemented by the user.

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    45/47

    PS564 TECT Example programVersion: V1.0.0 44 AC500 / Issue: 11.2015

    5 REVISION HISTORY

    Rev. ind. Page (P)Chapt. (C)

    Description DateDept./Init

    V1.0.0 All First Release DEAPR/ACDT, 2015-11-26

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    46/47

  • 8/18/2019 Ps564 Tect Temp Control Ac500 v24 Library Example 3adr025230m0201

    47/47

    ABB Automation Products GmbH

    Wallstadter Str. 5968526 Ladenburg, Germany

    Note:We reserve the right to make technical changes or modify the contents of this document without prior notice. With regard to purchase orders, the agreedparticulars shall prevail. ABB AG does not accept any responsibility whatsoever for potential errors or possible lack of information in this document.We reserve all rights in this document and in the subject matter and illustrations contained therein. Any reproduction, disclosure to third parties or utilizationof its contents – in whole or in parts – is forbidden without prior written consent of ABB AG.© Copyright 2015 ABB , All rights reserved

    ManualNo.3ADR025230M0201