You are on page 1of 19

We reserve all rights in this document and in the information contained therein.

Reproduction, use or disclosure to third parties without express authority is strictly forbidden.  ABB

Function Designer

Example Project

Based on Project Function Designer


Prep. SK Example Project
Appr. PidLoopExample.afw
Doc. kind Example Documentation Doc. Item

Title Function Designer Example Project des. des.

Resp. dept.
Doc. no. Lang. Rev. ind. Page 1
en
ABB Automation Products No. of p. 19
Function Designer: “PidLoopProj” Example Project

Function Designer Example Project

Contents

1. Introduction ................................................................................................................3
2. Prerequisites...............................................................................................................4
3. Prepare Project...........................................................................................................4
3.1 Open ControlBuilder project “PidLoopProj” ....................................................4
3.2 Allocate Object “Loop1” into Application_1.....................................................5
3.3 Generate ConfiData for CBM .........................................................................6
3.4 Allocate IO within CBM...................................................................................8
3.5 Establish Task Connection in CBM ..............................................................11
4. Download and Go Online.........................................................................................11
4.1 Start Softcontroller........................................................................................11
4.2 Force Channel ..............................................................................................13
4.3 Set PidSimpeReal1 Gain and TI...................................................................13
4.4 Start Automatic Mode and show graph ........................................................14
5. Watch Online Values within Function Designer ....................................................14
5.1 Start OPC Server..........................................................................................14
5.2 Establish OPC Connection within PPA.........................................................15
5.2.1 Adapt Basic Service Group ............................................................15
5.2.2 OPC Data Source Definition: Modify Control Network....................16
5.3 Watch Online Values in CBM .......................................................................17

Doc. kind Example Documentation Project PidLoopProj


Title Function Designer Example Project

Doc. no. Lang. Rev. ind. Pages 2


en 19
ABB Automation Products No. of p.
Function Designer: “PidLoopProj” Example Project

1. Introduction
The PidLoopExample.afw contains a demo example for function designer.
It could be loaded into the system by an *.afw file called “PidLoopExample.afw”
As a result a CBM project called “PidLoopProj” will appear in the control structure of PPA.
Within the functional structure you will get a closed loop control example consisting of PI
Controller, a first order lead lag as process simulation and a hysteresis connected to the
output of the PI controller: this hysteresis was included in order to get an oscillating
controller output to the process which will lead to always changing values during online
mode. Of course this loop example has no good control performance (oscillating output).

During this example you will learn how to


- import the project “PidLoopProj” based on the given “PidLoopExample.afw” file
- allocate the data of the Functional structure (FS) into ControlBuilder M Professional
(CBM)
- generate ConfiData for the CBM
- start the Softcontroller
- start the OPC server and adapt settings within Process Portal A (PPA)
- simulate the AC800M hardware by downloading the Application to the Softcontroller
- Watch online Values within Function Designer

Doc. kind Example Documentation Project PidLoopProj


Title Function Designer Example Project

Doc. no. Lang. Rev. ind. Pages 3


en 19
ABB Automation Products No. of p.
Function Designer: “PidLoopProj” Example Project

2. Prerequisites
• PPA ,CBM , Engineering Platform ,etc. according Release Notes for SB3 installed
• System Extensions:

• Warning: be sure not to have already a CBM project named “PidLoopProj” ! Otherwise data
could be corrupted or lost!
• Start Import/Export Tool”

• Import :

o PidLoopExample.afw
o -> Yes to all questions
o

3. Prepare Project

3.1 Open ControlBuilder project “PidLoopProj”


• Right Mouse click on the project aspect of PidLoopProj

Doc. kind Example Documentation Project PidLoopProj


Title Function Designer Example Project

Doc. no. Lang. Rev. ind. Pages 4


en 19
ABB Automation Products No. of p.
Function Designer: “PidLoopProj” Example Project

=> Open Project

3.2 Allocate Object “Loop1” into Application_1


• Go to Loop1 in FS
• Go to Allocatable Group aspect
• Press Allocate Button and choose Application_1

Doc. kind Example Documentation Project PidLoopProj


Title Function Designer Example Project

Doc. no. Lang. Rev. ind. Pages 5


en 19
ABB Automation Products No. of p.
Function Designer: “PidLoopProj” Example Project

3.3 Generate ConfiData for CBM


• Press the “Generate Code” Button of the Allocatable Group Aspect:

Doc. kind Example Documentation Project PidLoopProj


Title Function Designer Example Project

Doc. no. Lang. Rev. ind. Pages 6


en 19
ABB Automation Products No. of p.
Function Designer: “PidLoopProj” Example Project

The result within CBM should be:

Doc. kind Example Documentation Project PidLoopProj


Title Function Designer Example Project

Doc. no. Lang. Rev. ind. Pages 7


en 19
ABB Automation Products No. of p.
Function Designer: “PidLoopProj” Example Project

3.4 Allocate IO within CBM


Start IO allocation:
• Right mouse click on Controller within Control Structure
• Advanced Menu => IO Allocation

• Go to Functional Structure
• Drop Loop1 into started IO Allocation tool:

Doc. kind Example Documentation Project PidLoopProj


Title Function Designer Example Project

Doc. no. Lang. Rev. ind. Pages 8


en 19
ABB Automation Products No. of p.
Function Designer: “PidLoopProj” Example Project

• Move ExtSP1 with mouse below 1 AI:

• Write Allocation into CBM (Edit Menu):

Doc. kind Example Documentation Project PidLoopProj


Title Function Designer Example Project

Doc. no. Lang. Rev. ind. Pages 9


en 19
ABB Automation Products No. of p.
Function Designer: “PidLoopProj” Example Project

Alternative way if IO Allocation is not working:


- Connect Hardware Unit AI820 within CBM to ExtSP1

Doc. kind Example Documentation Project PidLoopProj


Title Function Designer Example Project

Doc. no. Lang. Rev. ind. Pages 10


en 19
ABB Automation Products No. of p.
Function Designer: “PidLoopProj” Example Project

3.5 Establish Task Connection in CBM

4. Download and Go Online

4.1 Start Softcontroller


StartMenu/…/Softcontroller
• Change System Identity of Controller in CBM:
o Take IP Address of your PC:
o (don’ t forget to add “:2”

• Mark Hardware for Simulation Mode within CBM:

Doc. kind Example Documentation Project PidLoopProj


Title Function Designer Example Project

Doc. no. Lang. Rev. ind. Pages 11


en 19
ABB Automation Products No. of p.
Function Designer: “PidLoopProj” Example Project

• Tools > Download Project and Go Online


Continue in case of messages

Doc. kind Example Documentation Project PidLoopProj


Title Function Designer Example Project

Doc. no. Lang. Rev. ind. Pages 12


en 19
ABB Automation Products No. of p.
Function Designer: “PidLoopProj” Example Project

4.2 Force Channel


Select AI820 in Editor and Force Channel 1 to 50

4.3 Set PidSimpeReal1 Gain and TI


Interaction Window of PidSimpleReal in CS:

Doc. kind Example Documentation Project PidLoopProj


Title Function Designer Example Project

Doc. no. Lang. Rev. ind. Pages 13


en 19
ABB Automation Products No. of p.
Function Designer: “PidLoopProj” Example Project

4.4 Start Automatic Mode and show graph

5. Watch Online Values within Function Designer

5.1 Start OPC Server


• StartMenu /…/OPC Server for AC800 MC
- connect to Softcontroller (IP Address of your local PC)

Doc. kind Example Documentation Project PidLoopProj


Title Function Designer Example Project

Doc. no. Lang. Rev. ind. Pages 14


en 19
ABB Automation Products No. of p.
Function Designer: “PidLoopProj” Example Project

After successful connection it should look like this

5.2 Establish OPC Connection within PPA

5.2.1 Adapt Basic Service Group


• Go to Service Structure / Basic, Service Group
Doc. kind Example Documentation Project PidLoopProj
Title Function Designer Example Project

Doc. no. Lang. Rev. ind. Pages 15


en 19
ABB Automation Products No. of p.
Function Designer: “PidLoopProj” Example Project

• Go to Aspect Service Group Definition


• Go to tab Special Configuration
• Add Collector Program ID to Basic Service:

5.2.2 OPC Data Source Definition: Modify Control Network

• Go to Control Structure
• Go to Control Network
• Go to OPC Data Source Definition Aspect
• Create new service group
• Add service provider : choose your PC

Doc. kind Example Documentation Project PidLoopProj


Title Function Designer Example Project

Doc. no. Lang. Rev. ind. Pages 16


en 19
ABB Automation Products No. of p.
Function Designer: “PidLoopProj” Example Project

5.3 Watch Online Values in CBM


• Go to Functional structure

- Subscribe for live data:

Doc. kind Example Documentation Project PidLoopProj


Title Function Designer Example Project

Doc. no. Lang. Rev. ind. Pages 17


en 19
ABB Automation Products No. of p.
Function Designer: “PidLoopProj” Example Project

- Select Port or Connection you would like to have on your online display:

Doc. kind Example Documentation Project PidLoopProj


Title Function Designer Example Project

Doc. no. Lang. Rev. ind. Pages 18


en 19
ABB Automation Products No. of p.
Function Designer: “PidLoopProj” Example Project

REVISION
Rev. Page (P) Description Date
ind. Chapt.(C) Dept./Init.
Updated for SV3.1 30.9.03

Doc. kind Example Documentation Project PidLoopProj


Title Function Designer Example Project

Doc. no. Lang. Rev. ind. Pages 19


en 19
ABB Automation Products No. of p.

You might also like