Sunteți pe pagina 1din 134
Experion PKS Blocks application definition

Experion PKS

Blocks application definition

Experion PKS

Blocks application definition

Release: System Release 710

09/2007

PMD Builder_Blocks_Eng.doc

Section:

3 -

Notices, Copyright, and Trademarks

While this information is presented in good faith and believed to be accurate, Honeywell disclaims the implied warranties of merchantability and fitness for a particular purpose and makes no express warranties except as may be stated in its written agreements with and for its customers. In no event is Honeywell liable to anyone for any indirect, special or consequential damages.

The information and specifications in this document are subject to change without notice.

© Copyright 1989 – 2007 by Honeywell Oy. No part of this publication may be reproduced or translated, stored in a database or retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of Honeywell Oy.

Experion ® Process Knowledge System (PKS) is a registered trademark of Honeywell International Inc. All other brand or product names mentioned in the document are trademarks of their respective owners.

Honeywell Oy

Viestikatu 1-3

FIN-70600 Kuopio, Finland

Phone +358 20752 2000

Telefax +358 20752 2400

http://www.honeywell.fi

Contents

1 Blocks application definition with the Block Builder

1

1.1 Purpose of Blocks application definition

1

1.2 Starting up the Blocks application definition

2

1.3 Creating block definitions

3

1.3.1 Hierarchical blocks, model blocks, type blocks and basic blocks

3

1.3.2 Menu bar and Toolbar

4

1.3.3 Block Builder workspace

5

1.3.4 Browse window

6

1.3.5 Selecting functions from the menu

9

1.3.6 Selecting functions from the toolbar

10

1.3.7 Defining

colors

10

2 File

12

2.1 File menu description

12

2.2 Open

12

2.3 Save

14

2.4 Simulate

14

2.5 Print

15

2.6 preview

Print

17

2.6.1

Selecting the Print preview function options from the instant menu

18

2.7 Load

18

Load

2.8 type

19

2.9 Monitor

20

2.10 Delete

21

3 Edit

22

3.1 Edit menu description

22

3.2 Copy

22

3.3 Back and Forward

23

4 Blocks

24

4.1 Blocks menu description

 

24

4.2 Header

24

4.2.1

Hierarchical

block

Header

25

4.2.2

Hierarchical block Execution data (priority, phase and execution cycle)

28

4.2.3

Setting initial Face Plate values for hierarchical blocks

32

4.2.4

Type block Header

 

33

4.3 Description

 

34

4.4 Insert

34

4.4.1

Inserting hierarchical blocks and basic blocks

34

4.4.2

Inserting steps into a STEPX sequence block

35

4.5 type

Insert

 

36

4.6 Delete

36

4.7 Rename

37

4.8 Export

37

4.9 Import

38

4.10

Search

40

4.11 Delete from system

5 Pins

40

41

5.1 Pins menu description

41

5.2 Insert

41

5.2.1

Defining pins for a hierarchical block

41

5.2.2

Defining pins for a sequence step block

46

5.2.3

Defining pins for a type block

48

5.3 Delete

49

5.4 Change

50

6 Connections

51

6.1 Connections menu description

51

6.2 Link

51

6.3 Connect with flags

52

6.4 with

Connect

name

53

6.5 Delete

54

6.6 Show connections

55

6.7 Invert

55

6.8 Constant

56

6.9 Variable

57

6.10 Show values

58

6.11 Name

58

6.11.1

Deleting the pin data name given by the Name function

59

6.12 Search

59

6.13 Pin I/O and Pin description push buttons

60

6.13.1 Pin I/O

60

6.13.2 Pin description

61

7 Execution

62

7.1 Execution menu description

62

7.2 Show

62

7.3 Change

63

7.3.1

Change / Order

 

63

7.3.2

Change / Modules

64

7.3.3

Change

/ Phases

64

7.3.4

Change / Cycles

65

7.3.5

Change / Priority

65

7.3.6

Change / Basic blocks

66

7.3.7

Change / Face Plate names

67

7.3.8

Change

/

Departments

67

7.3.9

Change / Alarms output manner

68

8 Tools

69

8.1 Tools menu description

69

8.2 Pascal

69

9 Options

70

9.1 Options menu description

70

9.2 Language

70

9.3 Toolbar

71

9.4 case

Text

71

9.5 Font

71

9.6 Colors

71

3 - ii

Contents

Experion PKS Blocks application definition 09/2007

9.7

Menu bitmaps

73

10 Window

74

10.1 Window menu description

74

10.2 Arrange

74

10.3 Tile

horizontal

74

10.4 Tile vertical

74

10.5 Cascade

74

10.6 Close

74

10.7 Close all

75

10.8 The name list of opened windows

75

11 Help

76

11.1 Help menu description

76

11.2 Contents

76

11.3 Search for help on

77

11.4 Basic blocks

77

11.5 System status messages

77

11.6 About PMD Block Builder

78

12 Defining faceplates and standard pins for tag blocks

79

12.1 Purpose of faceplates

79

12.1.1

Trend collection categories and collection data

79

12.2 Measurement (Measure)

80

12.3 Control (Control)

83

12.4 One-way motor and Pump (M1Way)

87

12.5 Two-way and Two-speed motor (M2Way, M2Speed)

91

12.6 Open/close valve and Three-way valve (Valve)

95

12.7 Motor valve (MValve)

99

12.8 Control switch (CSwitch)

102

12.9 Device control (Device)

105

12.10 General logic (Genlog)

109

12.11 Binary (Binary)

112

12.12 Sequence (Sequence)

115

13 Block Simulator / Block Monitor User Manual

118

13.1 Activation and operation of the Block Simulator / Block Monitor 118

13.2

120

13.2.1 Open 120

13.2.2 Back and Next 120

13.2.3 Print 120

121

13.2.5 Speed 121

Block menu

13.2.4 Run and Stop

13.2.6 Cycle

122

13.2.7 Test settings

122

13.2.8 Save variables

123

13.2.9 Public pins 123

13.3 Fields menu

123

13.3.1

Handle

124

13.3.2 Delete all 125

13.3.3

Settings

125

13.4 Return

126

14 Converting Block Builder Applications to XML files

14.1 Converting Block Builder Applications to XML files

127

127

1 Blocks application definition with the Block Builder

1.1 Purpose of Blocks application definition

The Blocks application definition is used to define Experion PKS with PMD Controller automation system’s measurements, controls, motor and valve controls, logic, group start-ups and calculations, i.e. all actual process control functions and their associated faceplate data. Alarms and process history collection (trends) are also partly defined in the Blocks application definition.

Selecting Blocks application definition in the PMD Builder opens the Block Builder. The Block Builder uses the control of a specific process to generate a block hierarchy that comprises various blocks. The highest block in the block diagram is generated and named automatically in accordance with the department definition made on the PMD Builder’s Main Page. Departments are divided further into smaller sections, i.e. hierarchical blocks that represent the various process sections, machine groups, etc. Within each hierarchical block, 16 new blocks can be generated. When creating a hierarchy in the downwards direction, the lowermost level is used to accommodate the tag blocks, e.g. for measurements, controls and motors.

The tag blocks are mainly configured from pre-programmed basic blocks. The ready made or project-specific type blocks can also be used in tag blocks. In addition, the Block Builder’s high-level language can be used to configure application-specific blocks which are not included in the basic blocks. The high-level language used in Block Builder is a Pascal programming language.

The tag blocks, new type blocks and model blocks are tested by a Block Simulator activated via the Block Builder, immediately after the block definition in question has been completed.

If a design module is connected to the system, it is also possible to download the blocks into the system from the Block Builder and test the system-loaded blocks with the Block Monitor. The tag blocks are mainly downloaded into the automation system’s process modules (PMD Controllers and XPR-A-based process modules) for execution.

1.2 Starting up the Blocks application definition

The Blocks application definition is started up from the PMD Builder Main Page. Open the PMD Builder either by double-clicking the PMD Builder icon on the desktop or by selecting Start/Programs/PMD/PMD Builder.

If there are no existing project definitions or department definitions, then create them by using the Create New function in the File menu of the PMD Builder Main Page. For instructions, see document PMD Builder.

Main Page. For instructions, see document PMD Builder . If project and department de finitions have

If project and department definitions have been done, the department is shown in the Connect window. Select the department and press Connect.

Connect window. Select the department and press Connect. Enter the credentials and press OK. The PMD

Enter the credentials and press OK. The PMD Builder opens in a System view.

Select the Blocks tab in the upper left corner of the PMD Builder window. (If

Select the Blocks tab in the upper left corner of the PMD Builder window. (If the tree view shows only the department name, pressing the + sign in front of the department name opens the block hierarchy.) To open the Block Builder, either:

Double-click directly on the name of an individual block with the left-hand mouse button, or

Click on the name of an individual block with the right- hand mouse button and select Edit from the menu opened.

If the builder is started up at a specific block, then the block’s existing

definition will be displayed in the Block Builder.

Select the System tab to exit the Block Builder. The Block Builder closes automatically and System definition opens.

1.3 Creating block definitions

1.3.1 Hierarchical blocks, model blocks, type blocks and basic blocks

The Block Builder is used to generate a block hierarchy from the control of a specific process. The blocks of a block hierarchy are divided into hierarchical blocks, model blocks, type blocks and basic blocks.

A hierarchical block only contains inner hierarchical blocks or basic

blocks and type blocks. Those hierarchical blocks which contain basic

blocks and type blocks are called tag blocks. Tag blocks can also be defined with the Block Builder’s high-level language.

When a tag block is saved as a model block, it can be used as a template for new identical blocks or similar tag blocks. Note! Model blocks are not available in system release 710.

Type blocks are also defined by the Block Builder, like tag blocks. Type blocks are used like tag blocks, i.e. to execute the function

defined for the block. Type blocks can contain basic blocks and/or other type blocks and they can be defined with the Block Builder’s high-level language. A set of ready-made type blocks are available for systems, for the purpose of implementing advanced control methods, such as fuzzy logic, neural networks, optimization, statistical process control, and the control of hydraulic directional valves.

Basic blocks are always ready-made and included in the system delivery.

Certain basic blocks and type blocks contain so many pins that they cannot be shown simultaneously by the Block Builder. The bottom edge of such blocks is provided with an extra box; placing the pointer on the box and double-clicking the left-hand mouse button displays the hidden pins for examination. The hidden pins cannot be connected through wiring. An example of such a block is the PID block whose nine hidden input pins can be displayed three pins at a time.

hidden input pins can be displayed three pins at a time. Some basic blocks are provided
hidden input pins can be displayed three pins at a time. Some basic blocks are provided
hidden input pins can be displayed three pins at a time. Some basic blocks are provided
hidden input pins can be displayed three pins at a time. Some basic blocks are provided

Some basic blocks are provided with a triangle at their bottom edge, indicating that pins may be added to them. To add pins, place the pointer on the lowermost pin, depress the left-hand mouse button and drag the mouse downwards. Once a suitable number of pins is displayed, release the button. Correspondingly, pins are deleted by dragging the mouse upwards.

The ADD block is an example of this block type.pins are deleted by dragging the mouse upwards. 1.3.2 Menu bar and Toolbar The PMD Block

1.3.2 Menu bar and Toolbar

The PMD Block Builder has a menu bar and toolbar which contain all the functions required for block definition creation, testing and downloading. The Block Builder’s workspace, in turn, always contains the block to which all the functions are targeted. In addition the block hierarchy being designed as well as the available libraries are displayed on the left.

1.3.3 Block Builder workspace All Block Builder menu functions and toolbar push button functions are

1.3.3 Block Builder workspace

All Block Builder menu functions and toolbar push button functions are targeted at the block which is open in the Block Builder workspace. The block name is displayed in the window title bar.

When several levels have been defined for a department’s block hierarchy, instant opening can be used in the Block Builder workspace, to move upwards or downwards in the hierarchy, one level at the time. Instant opening can only be used for hierarchical blocks, not for model, type or basic blocks.

To open a block below an open block in the hierarchy in the Block Builder, place the pointer on the block name and double-click the left-hand mouse button.

To open a block above an open block in the hierarchy in the Block Builder, place the pointer on the Block Builder title bar and double-click the left-hand mouse button.

It is also possible to open a block in the Block Builder workspace by selecting it from the Browse window, or by using the menu bar functions or toolbar functions.

Blocks that are inside the block being edited can be moved almost freely from one Block Builder workspace site to another as follows:

1. Place the pointer with the mouse on the name of the block to be moved and depress the left-hand mouse button. This causes a rectangle to be displayed at the available block sites.

2. Keeping the button depressed, move the block to the selected block site and release the button.

Selecting functions from the Block Builder workspace

Click the right-hand mouse button on the Block Builder workspace to open the following menu:

on the Block Builder workspace to open the following menu: 1.3.4 Browse window The Browse window

1.3.4 Browse window

The Browse window contains both the block hierarchy for the department being designed and the available libraries.

The Browse window contains four tabs:

available libraries. The Browse window contains four tabs: • The block hierarchy of the department being

The block hierarchy of the department being

defined.

• The block hierarchy of the department being defined. • Basic block selection • Type block

Basic block selection

of the department being defined. • Basic block selection • Type block selection connected to the

Type block selection connected to the system being defined

Type block selection connected to the system being defined • Model block selection connected to the

Model block selection connected to the system being defined. Model blocks are not available in system release 710.

Model blocks are not available in system release 710. 3 - 6 • Blocks application definition

To open a selected tab, place the pointer on the tab name and click the left-hand mouse button.

The Hierarchy tab shows the block hierarchy of the department being defined. The highest block in the hierarchy is always generated automatically and has the same name as the department. The blocks defined can be displayed from below the department block, until the tag blocks are reached. The various block types are indicated by their own symbols in the hierarchy.

Block symbols (Bitmaps):

own symbols in the hierarchy. Block symbols (Bitmaps): The block hierarchy is browsed with the mouse.
own symbols in the hierarchy. Block symbols (Bitmaps): The block hierarchy is browsed with the mouse.

The block hierarchy is browsed with the mouse. To activate a desired block, place the pointer on its name and click the left-hand mouse button. The currently active block in the hierarchy is indicated by a blue background color. The plus sign (+) in front of a block name indicates that the block contains sub-blocks. To display the sub- blocks, place the pointer on the plus sign and click the left-hand mouse button. Correspondingly, an opened block is closed by clicking on the minus (-) sign in front of the block name.

Double-clicking on a block name with the left-hand mouse button opens the block in question in the Block Builder workspace for editing. At the same time, the block’s possible sub-blocks are displayed in the hierarchy.

If changes have been made to a block opened in the Block Builder workspace, without saving the changes, the Block Builder will ask:

Save the changes?. If the reply is:

Yes : The changes will be saved and the selected block will open in the Block Builder workspace.

No : The changes will not be changed and the selected block will open in the Block Builder workspace.

Cancel : The new block will not open and the previous block will remain in the Block Builder workspace.

The Basic tab contains the basic blocks.

Basic blocks may be added to a tag block being edited in the Block Builder workspace by double-clicking on the name of the basic block to be added with the left-hand mouse button. This will move the

basic block to the first vacant block site in the Block Builder workspace.

Tip! Basic blocks that already exist in the Block Builder workspace can be copied by depressing the CTRL key and clicking the desired

block with the left-hand mouse button. The copy of the block appears

to the first vacant block site in the Block Builder workspace.

The Type tab contains the type blocks that have been saved to the type block directory of the project in question.

A type block is added to a tag block being edited in the Block Builder

workspace by double-clicking on the name of the type block.

After the type block has been added, double-clicking the mouse on the type block name opens the type block in the Block Builder workspace.

The Model tab contains the blocks saved to the model block directory of the project in question. Note! Model blocks are not available in system release 710.

Selecting functions from the Browse window

Click the right-hand mouse button on the Browse window to open the following menu:

button on the Browse window to open the following menu: Monitor - Opens the Block Monitor

Monitor - Opens the Block Monitor

Simulate - Opens the Block Simulator

Load - Loads an individual block into the system, depending on which of them has been selected from the hierarchical tree structure.

Mass operations (system) - Opens the following menu. For example, the Load all command is used to load the selected block plus all the blocks below it in the block hierarchy, from the Design Module to the PMD server and further from the PMD server to the modules (usually to the PMD Controllers) that execute the application.

The commands Expand One Level , Expand Branch , Expand All and Collapse Branch can

The commands Expand One Level, Expand Branch, Expand All and Collapse Branch can be used to expand or collapse the block hierarchy.

The View command opens the following menu for selecting information to be shown in the hierarchical tree structure.

information to be shown in the hierarchical tree structure. 1.3.5 Selecting functions from the menu The

1.3.5 Selecting functions from the menu

The Block Builder menus and their functions are activated either by the mouse or via the keyboard. Part of the menu functions can also be executed through the toolbar push buttons.

The functions are always targeted at the block, which is open in the Block Builder workspace.

the block, which is open in the Block Builder workspace. With the mouse: 1. To open

With the mouse:

1. To open a menu, place the pointer on the menu name and click the left-hand mouse button.

2. To activate a function, click the left-hand mouse button on the name of the function.

Via the keyboard:

1. To open a menu, depress simultaneously the Alt key and the letter key underlined on the menu name.

2. To activate a function:

Use the arrow keys to select the desired function and

press the Enter key or press the letter key underlined on the function name.

1.3.6 Selecting functions from the toolbar

The Block Builder is also provided with a toolbar. The toolbar push buttons activate the same functions as those selected from the menu bar menus.

same functions as those selected from the menu bar menus. The current availability of push buttons

The current availability of push buttons depends on the Block Builder function being executed. Should a push button not be available, its display symbol will be dim on the screen. Correspondingly, the symbols of available push buttons are clearly visible.

Toolbar push buttons:

push buttons are clearly visible. Toolbar push buttons: Insert O p e n Save Print L

push buttons are clearly visible. Toolbar push buttons: Insert O p e n Save Print L

push buttons are clearly visible. Toolbar push buttons: Insert O p e n Save Print L

push buttons are clearly visible. Toolbar push buttons: Insert O p e n Save Print L

push buttons are clearly visible. Toolbar push buttons: Insert O p e n Save Print L

push buttons are clearly visible. Toolbar push buttons: Insert O p e n Save Print L

push buttons are clearly visible. Toolbar push buttons: Insert O p e n Save Print L

Insert

Open

Save

Print

Load

Delete

Link

Connect with flagsO p e n Save Print L o a d D e l e t e

Connect with nameL o a d D e l e t e L i n k Connect with

l e t e L i n k Connect with flags Connect with name Name Constant

l e t e L i n k Connect with flags Connect with name Name Constant

l e t e L i n k Connect with flags Connect with name Name Constant

l e t e L i n k Connect with flags Connect with name Name Constant

l e t e L i n k Connect with flags Connect with name Name Constant

l e t e L i n k Connect with flags Connect with name Name Constant

l e t e L i n k Connect with flags Connect with name Name Constant

Name

Constant

Variable

Invert

Show values

Show connections

Pin IO

Pin descriptionConstant Variable Invert Show values Show connections Pin IO Back Forward Simulate Monitor Pascal Information Font

Invert Show values Show connections Pin IO Pin description Back Forward Simulate Monitor Pascal Information Font

Back

Show values Show connections Pin IO Pin description Back Forward Simulate Monitor Pascal Information Font Color

Show values Show connections Pin IO Pin description Back Forward Simulate Monitor Pascal Information Font Color

Show values Show connections Pin IO Pin description Back Forward Simulate Monitor Pascal Information Font Color

Show values Show connections Pin IO Pin description Back Forward Simulate Monitor Pascal Information Font Color

Show values Show connections Pin IO Pin description Back Forward Simulate Monitor Pascal Information Font Color

Show values Show connections Pin IO Pin description Back Forward Simulate Monitor Pascal Information Font Color

Show values Show connections Pin IO Pin description Back Forward Simulate Monitor Pascal Information Font Color

Forward

Simulate

Monitor

Pascal

Information

Font

Color

DescriptionBack Forward Simulate Monitor Pascal Information Font Color Contents To activate a desired push button, click

Simulate Monitor Pascal Information Font Color Description Contents To activate a desired push button, click on

Contents

To activate a desired push button, click on it with the left-hand mouse button.

1.3.7 Defining colors

Some Block builder definitions contain color definitions. Color definitions are required e.g. when a General logic or a Binary faceplate is selected for a tag block.

Colors are specified by using RGB color codes. An RGB color code consists of three two-digit hexadecimal numbers specifying the intensity of the corresponding color. For example, red is the RGB color code #FF0000.

The following table lists the colors supported as of Internet Explorer

4.0

Table of RGB color codes:

Table of RGB color codes: Experion PKS Blocks application definition 09/2007 Blocks application defi nition with

2

File

2.1 File menu description

The File menu functions are targeted at tag blocks, model blocks and type blocks. Among other things, the menu functions can be used to save a block to the design module, activate the block simulator, output block definitions to a printer, and download a block to the system.

to a prin ter, and download a block to the system. 2.2 Open The File menu’s

2.2 Open

The File menu’s Open function is used to open hierarchical blocks, type blocks and model blocks. In addition, the Open function is used to begin the creation of new type blocks and model blocks. New hierarchical blocks cannot be created with the Open function; instead, a new hierarchical block is added to the block hierarchy by using the Blocks menu’s Insert function.

See also section Hierarchical blocks, model blocks, type blocks and basic blocks.

If changes have been made to the block currently open in the Block Builder workspace without saving the changes, then the builder will ask: Save changes?

3 - 12

File

Experion PKS Blocks application definition 09/2007

Yes : The changes will be saved and the Open/Save a block window displayed. No

Yes : The changes will be saved and the Open/Save a block window displayed. No : The changes will not be changed and the Open/Save a block window will be displayed. Cancel : The Open function will be cancelled and the previous block will remain in the Block Builder workspace.

previous block will remain in the Block Builder workspace. Use the Open/Save a block window’s entry

Use the Open/Save a block window’s entry field to write the name of the block to be opened. A hierarchical block to be opened may reside higher or lower in the block hierarchy than the block currently open in the Block Builder workspace. If the block to be opened does not exist, the builder will display a window requesting the type for the new block. New blocks may be type blocks or model blocks. Creation of new basic blocks is not possible at the configuration stage.

new basic blocks is not possible at the configuration stage. The Type block is a block

The Type block is a block assembled from a number of basic blocks and/or other type blocks or it can be defined with the Block Builder's high-level language. The type block is defined in the same way as a hierarchical tag block. (Hierarchical blocks are added to the block hierarchy by selecting Blocks/Insert from the menu bar.) The name length of a type block is, however, seven characters. The builder provides the 8 th character as the version number, which is 0 in the case of a new block. If the version number is not entered when opening the type block, then the latest version is opened. If the version number entered is other than the latest, the builder will display the latest version number and request whether to open this version or not.

Note! Model blocks are not available in system release 710. The Model block is an all-purpose block formed from a number of basic blocks and type blocks. A model block is defined by the Block Builder like a hierarchical block. However, model blocks cannot

contain sub-blocks. Tag blocks are copied with the aid of model blocks.

Basic blocks cannot be created at the configuration stage.

Model blocks and type blocks are not hierarchical, which is why they are not visible in the block hierarchy. The type blocks saved to the project directory are, however, visible on the Type tab in the Browse window. Correspondingly, model blocks are displayed on the Browse window’s Model tab.

2.3 Save

The File menu’s Save function is used to save the block, which is currently in the Block Builder workspace, to the design module memory. The function displays the following Save as window in the builder.

displays the following Save as window in the builder. Select Hierarchical if the block to be

Select Hierarchical if the block to be saved is one of the blocks in the department’s block hierarchy, e.g. a tag block.

Hierarchical saves as hierarchical all the blocks contained in a department’s block hierarchy, e.g. tag blocks.

Note! Model blocks are not available in system release 710. Select Model if the block to be saved will be used as a model block, i.e. it will be copied and used in many tag blocks.

Note! High-level language defined blocks cannot be saved through the Save function. They must always be saved by the Program Builder.

2.4 Simulate

The File menu’s Simulate function opens the Block simulator to simulate and test blocks which have been marked as complete. It is also possible to start simulation from the Browse window by clicking on the block name with the right-hand mouse button and selecting Simulate from the menu opened.

Type block simulation must be activated from a hierarchical block which uses a type block.

Simulation means functional testing and examination of a block at the design module. Block pin states can be monitored and have

3 - 14

File

Experion PKS Blocks application definition 09/2007

desired values entered. In simulation, the testable block’s data updates can be stopped on the screen at desired times, for more accurate analysis of the test situation, for example. Following this, updating of the block’s data can be re-activated.

The Block simulator’s user instructions are provided at the end of this document, see section Block Simulator / Block Monitor User Manual.

The Block Simulator and Block Monitor have a joint user manual, due to the fact that their functions are almost identical. The Block Simulator is used to test the blocks’ functions once they have been completed. Simulation takes place at the design module and the pin data items are entered either manually or through copying from a simple process model. Monitoring, in turn, is used to test system- loaded blocks which means that their pin data items are updated by the system’s process modules (PMD Controllers and XPR-A-based process modules).

2.5

Print

The File menu’s Print function outputs data from the defined block hierarchy to a printer. The function displays a selection window to select the content for printing.

a selection window to select the content for printing. When selecting any of the first five

When selecting any of the first five options, and accepting the choice by pressing the OK push button, the following window is shown in the display. In this window you can select the output options.

The Beginning block must be defined if the Cross reference list (inputs and outputs) or

The Beginning block must be defined if the Cross reference list (inputs and outputs) or the Cross reference list (outputs) is to be printed.

If the option Ascii File or Html File is selected from the alternatives of the Direct Output To, then the file path and file name can be defined by writing them in the entry field, or by selecting them from the Save as window opened by pressing the push button located on the right of the entry field.

When selecting a Block document as the print content, printing is targeted at the block being edited in the Block Builder workspace. The print function can only be used to print the Block document on the printer defined as the design module’s default printer.

To print the block document, the builder requests the following additional definitions:

the builder requests the following additional definitions: The All pages selection outputs the entire documentation

The All pages selection outputs the entire documentation of the block being edited in the Block Builder workspace.

The First page only selection outputs the block documentation’s front page only. The front page contains the data displayed in the Block Builder workspace, plus the header table. The header table displays the block name, the save date and the data written in the Print window’s ID data fields.

3 - 16

File

Experion PKS Blocks application definition 09/2007

In addition to the block residing in the Block Builder workspace, the All blocks selection outputs all the sub-blocks contained in the block. The All connections selection, in turn, extends printing to all the blocks to which references are made to the block’s public pins.

The Pascal selection outputs the code written in the high-level language.

2.6 Print preview

The File menu’s Print preview function displays the Block document as it will be printed, i.e. the data shown in the Block Builder workspace, plus the document header table.

Block Builder workspace, plus the document header table. The project related information (customer data) in the

The project related information (customer data) in the header table are given in conjunction with the Block document definition in the File / Print function. See section Print.

in the File / Print function. See section Print . Experion PKS Blocks application definition 09/2007

2.6.1

Selecting the Print preview function options from the instant menu

the Print preview function options from the instant menu The options of the Print preview func

The options of the Print preview function are selected via an instant menu. The instant menu is displayed by clicking on the block document with the left-hand mouse button. The available options are:

Print

See section Print.

Style

Alcont

Outputs the header table used in Alcont projects.

Printa

Outputs the header table used in Printa projects.

Honeywell

Outputs the general Honeywell header table.

Size

Default

Block document is shown in the block document window in size that can be correctly printed on the punched A4-size paper.

Maximized

Block document is shown in the block document window in maximized size.

Resize

After this selection you can resize the block document window by dragging it with the mouse.

Pin badge

The texts, which are defined for the pins in the Pin data definition window’s Badge field, are output to the block document.

Save as…

Opens the Save as window, which is used to save the block document with the desired file name to the desired folder.

Color…

You can use the Color function to change the Print preview window colors.

See section Colors.

2.7

Load

The File menu’s Load function is used to load the block being edited into the PMD Server. Before loading, the block must be marked as ready and its execution data (module, cycle, phase and priority) must be defined by using the Blocks menu’s Header function. In addition, the block must be saved by using the File menu’s Save function, to

3 - 18

File

Experion PKS Blocks application definition 09/2007

enable the creation of a loadable software version. The Load function displays the following message window.

The Load function displays the following message window. If the block to be loaded is a

If the block to be loaded is a type block, then loading can be targeted either at all the modules in the department or at selected modules only, due to the fact that type blocks do not have a specific execution module. If the department’s system definitions have been completed, the module names will be displayed in the Loading a type block window.

names will be displayed in the Loading a type block window. The type block is loaded

The type block is loaded into all modules simultaneously when the option To all modules is selected and loading activated by pressing the OK push button.

If the type block is to be loaded into selected modules only, then loading will take place one module at a time. Select the module from the list field by clicking on the module name with the left-hand mouse button. This will cause the name to settle in the To module field. Then activate loading by pressing the OK push button.

The Cancel push button closes the window without loading the block.

2.8 Load type

The File menu’s Load type function loads type blocks to the PMD server. The function displays the Load types window.

PMD server. The function displays the Load types window. Experion PKS Blocks application definition 09/2007 File

All the type blocks contained in the list are loaded simultaneously to the PMD server when the selection All blocks is made and the OK push button pressed.

To load just some of the type blocks from the list to the PMD server, load the blocks one by one. To select the block to be loaded, click on its name with the left-hand mouse button on the list field. This will cause the block name to be displayed in the Block field. To activate loading, press the OK push button.

The Cancel push button closes the window without loading a block.

2.9

Monitor

The File menu’s Monitor function can only be used for blocks loaded in the system. The function opens the Block Monitor where a block loaded in the system can be tested. The block pins are updated directly from the process modules. It is also possible to start the monitor function from the Browse window by clicking on the block name with the right-hand mouse button and selecting Monitor from the menu opened.

Type block monitoring must be activated from a hierarchical block which uses the type block.

The Block Monitor’s user instructions are provided at the end of this document, see section Block Simulator / Block Monitor User Manual.

The Block Simulator and Block Monitor have a joint user manual, due to the fact that their functions are almost identical. The Block Simulator is used to test the blocks’ functions once they have been completed. Simulation takes place at the design module and the pin data items are either entered manually or they are produced by a simple process model. Monitoring, in turn, is used to test system- loaded blocks which means that their pin data items are updated by the system’s process modules (PMD Controllers and XPR-A-based process modules).

3 - 20

File

Experion PKS Blocks application definition 09/2007

2.10 Delete

The File menu’s Delete command can be used to delete model blocks and type blocks from the design module libraries. The function does not delete type blocks from the system. The function displays the following selection window.

The function displays the following selection window. To select the block to be deleted, either click

To select the block to be deleted, either click on its name in the list field (the name outputs to the Block field) or write the name in the Block field. Accept delete by pressing the OK push button. The Cancel push button closes the window without deleting the block.

3

Edit

3.1 Edit menu description

The Edit menu’s functions can be used to copy a block from the Block Builder workspace to the clipboard or a printer, and scroll the blocks opened for editing.

or a printer, and scroll the blocks opened for editing. 3.2 Copy The Edit menu’s Copy

3.2 Copy

The Edit menu’s Copy function can be used to copy data shown in the Block Builder workspace to the clipboard or a printer.

The Copy / Clipboard function can be used to copy the data shown in the Block Builder workspace to a printer. The function opens a Print window, to activate printing and change printers if necessary.

The Copy / Printer function can be used to copy the data shown in the Block Builder workspace to a printer. The function opens a Print window, to activate printing and change printers if necessary.

to activate printing and change printers if necessary. The Setup push button opens the printer’s selection

The Setup push button opens the printer’s selection window.

The OK push button accepts printing and sends to the selected printer.

The Cancel push button closes the window without printing.

3 - 22

Edit

Experion PKS Blocks application definition 09/2007

3.3 Back and Forward

The Edit menu’s Back and Forward function can be used to move between blocks, after several blocks have been opened in the Block Builder workspace.

blocks have been opened in the Block Builder workspace. The Back and toolbar push buttons. Forward
blocks have been opened in the Block Builder workspace. The Back and toolbar push buttons. Forward

The Back and toolbar push buttons.

Forward function can also be activated by the

4

Blocks

4.1 Blocks menu description

The Blocks menu’s functions are used to handle hierarchical blocks, type blocks and basic blocks.

handle hierarchical blocks, type blocks and basic blocks. 4.2 Header The Blocks menu’s Header function determines

4.2 Header

The Blocks menu’s Header function determines a block’s ID code and execution data, a possible faceplate, and any of the faceplate-related data items, in cases where a hierarchical block is being edited. If the block being edited is a type block, then the function will display the Header of Type Block window.

3 - 24

Blocks

Experion PKS Blocks application definition 09/2007

4.2.1

Hierarchical block Header

4.2.1 Hierarchical block Header A block can be provided with three Ids for various user groups.

A block can be provided with three Ids for various user groups.

The Id 1 field automatically displays the name that was given to the block when it was added to the block hierarchy. Id 1 is generally used as the tag block’s ID in the faceplate.

The Id 2 and Id 3 fields can be defined as per project. Generally these fields are used for electric tag IDs and instrument tag IDs.

If

you want to show Id 2 or Id 3, instead of Id 1, as the tag block’s ID

in

the faceplate, use the ID parameter in the Setting initial Face Plate

values window to define that. Id 1, Id 2 and Id 3 are shown in the Info tab of the faceplate.

The Name field is used to enter the long name (maximum length is

30 characters) for the block. The letters A – Z and a - z, numbers 0 - 9 and the following characters: !, #, $, %, &, (, ), +, -, ˆ and _ are allowed

in name.

The name is shown in the title bar and in the Info tab of the faceplate.

The Name 2 field is used in Printa systems only to enter an additional description with a maximum length of 30 characters.

The Description field is automatically checked (selected) after the functional description has been written for the block in question by using the Blocks menu’s Description function. A functional description may have a maximum of 2000 characters.

The Model field automatically shows the name of the model block used in the block. The model block’s name can be deleted from the

field, in cases where the block has been changed to such a degree that

it no longer sufficiently resembles the model block. Note! Model

blocks are not available in system release 710.

The Serial interface block field is not used in system release 710.

Face Plate is selected, for example, for those blocks that carry out measurements, controls, or motor controls. The faceplate is used to show block’s pin values on the user interface. To select a faceplate, place the pointer on the faceplate name in the list field and click the left-hand mouse button. The name of the selected faceplate outputs into the Face Plate field. The faceplate name can also be written in the field. For detailed faceplate descriptions, see section Defining faceplates and standard pins for tag blocks. The list below sets out the faceplate options, as per the control types, contained in the Block Builder, arranged per the control type.

Type

Faceplate name

Measurement

Measure

Control

Control

Motor

M1Way, M2Way, M2Speed

Valve

Valve, MValve

Control switch

CSwitch

Device control

Device

General logic

Genlog

Binary

Binary

Sequence

Sequence

The Extension field is selected to edit a faceplate’s initial values. A Setting initial Face Plate values window is only displayed after accepting the Header window definitions by pressing the OK push button and closing the Execution data window by pressing either the OK or the Cancel push button. See section Setting initial Face Plate values for hierarchical blocks.

The Tag field in the Header window must be selected for a hierarchical block, to display the block ID as an identifier for the alarms generated by this block. (Alarms are displayed in the Alarm Summary display on the user interface.) If the Tag field is not selected, then the block ID of the first block, (above the block in question) which has the Tag field selected, will be displayed in the Alarm summary display.

The Ready field is selected after the block definitions, such as connections, have been completed. Once the block has been marked as being ready, the editor will compile the block data in conjunction with saving. The block must be marked as ready, before Program Builder activation, before block testing with the Block Simulator, and before loading blocks into the system.

The Associated Pages function can be used only for blocks having a faceplate selected. The Associated Pages function is used to define displays, faceplates, popups and other documents (text or picture files), which you want to get out from the Associated pages tab in the faceplate extensin of the block in question. In addition, the first defined display can be called up on the Alarm summary display through the alarms generated by this block. (Right- click on a alarm row and select the Associated display from the menu opened).

3 - 26

Blocks

Experion PKS Blocks application definition 09/2007

The Associated Pages push button opens the definition window:

The Associated Pages push button opens the definition window: You can define maximum of 10 associated

You can define maximum of 10 associated pages (displays, faceplates, popups and other documents) for a block having a faceplate. (The order of the pages in the Associated Pages tab will be the same as the order you greate the pages in this window.) Note! The source directory of the displays and popups must be C:\Program files\Honeywell\Experion PKS\Client\Abstract The source directory of the documents (text and picture files) must be the PMD Server's shared directory C:\Program files\Honeywell\PMDC\Descriptions\[Department name] In the Name of page field write the name of the page to be associated with the block being defined. The maximum length of the name is 30 characters. Note! When defining a document, the name must contain the extension (for example .txt, .doc, .pdf, .ppt, .gif). Select the Page type that is correct for the page. In the Description field write the description for the page. This description will be diplayed in the Associated Pages tab. The maximum length of the description is 30 characters. Note! Because the description is one of the texts that can be localized, see document Localization for instructions of the allowed characters. Use the Location X and Y fields to define the location, where the faceplate, popup or document is output on the user interface screen (origo is the top left corner of the display, unit pixel) Note! The default coordinates X=0 and Y=0 will output the page so that its top left corner has coordinates 200, 200. Press the Add push button to move the page definition into the Name: T:X,Y field. The Change push button allows you to change the definition that is selected in the Name: T:X,Y field. The Delete push button removes the definition that is selected in the Name: T:X,Y field. Press the OK push button to save the definitions and to close the window. Press the Cancel push button to closes the window without saving the definitions.

The Version, Author, Date and Control fields are updated automatically.

Press the OK push button to accept the header definitions. This will cause the Execution data window to be displayed on the screen.

The Cancel push button closes the Header window without accepting the definitions made.

4.2.2 Hierarchical block Execution data (priority, phase and execution cycle)

Defining priority, phase and execution cycle for blocks executed by PMD Controllers and XPR-A processors.

blocks executed by PMD Controllers and XPR-A processors. The Module field is used to define the

The Module field is used to define the name of the module (PMD Controller or XPR-A-based process module) where the block will be loaded for execution. The lower field is used to define the name of the back-up controller, if a redundant PMD Controller is used. (The module names are defined by the PMD Builder’s System definition. See document System definitions.) Once the module is defined for a block in the higher hierarchy level the name will output, as default, to blocks in the lower hierarchy level.

The Cycle (s) list is used to select the execution cycle for the block. The options range from 0.02 to 180 seconds. See the following paragraph for permitted cycles as per high, medium and low priority. Note! An application with a maximum of 2000 hierarchical blocks can be loaded into a redundant PMD Controller. A maximum of 100 blocks can have the execution cycle of 20 ms, the rest of the blocks must have an execution cycle > = 100 ms. Always consider carefully when selecting the fastest execution cycles. For example, if the execution cycle of a priority’s fastest block is reduced from 0.5 to 0.02 s, then the basic load of application execution will be multiplied by 25. The cycle should be the same for all blocks in a sequence.

3 - 28

Blocks

Experion PKS Blocks application definition 09/2007

The Priority options are high, medium and low. The recommendation is to

Use high priority for the execution of fast-cycle blocks that contain simple calculations, e.g. logic. Permitted cycles are 0,02, 0,06 ja 0,1 s.

Use medium priority for execution of other, normal blocks. Permitted cycles are >/= 0,1 s.

Use low priority for the execution of blocks that permit slower execution intervals, complex blocks, e.g. model blocks and complicated neural networks. Permitted cycles are >/= 0,5 s.

The various priorities are fully independent of each other. This means that blocks with different priorities are independent of each other with regard to the execution order. Each priority can be regarded as if it were an independent module. Therefore, it is not possible to interconnect blocks with different priorities through wiring or flags. Connecting by name establishes normal data communication between the connections which are affected by the data transfer cycle. If the sub-block priority is different from the tag block priority, then the sub-block must not have visible pins on an upper level. The priority must be the same for all blocks in a sequence.

The blocks with high priority definitions will be executed first. The blocks with medium priority definitions will be executed if there is nothing to execute with a high priority. The blocks of low priority will be executed when there is nothing to be executed with high or medium priority. A higher priority may interrupt the execution of lower priorities at any time, even during block execution.

Each priority receives a basic cycle automatically. The base cycle is the cycle that is used to read the process interface data within the priority. The base cycle is either the execution cycle of the fastest block within the priority, or faster, so that the cycles of the blocks within the priority can be executed at multiples of the base cycle. In other words, for example, if the priority contains blocks whose execution cycle is 0.02 s, then the priority’s base cycle will be 0.02 s.

With high priority the slowest possible base cycle is 0.1 s.

Each priority handles its process interfaces at its own base cycle. The high priority handles always the process interface data used by the other modules.

Note! If the cycle of the fastest block within the priority is 0.06 s, then both the cycle of the fastest block and the base cycle will be 0.05 s.

Cycle of the fastest block, s (within the priority)

Base cycle, s

0.02

0.02

0.06 -----> 0.05

0.05

0.1

0.1

0.2

0.1

0.5

0.5

1

1

2

1

5

5

10

10

30

30

60

60

180

180

The Phase field in the list is used to select the block phase, i.e. Fixed or Auto.

Phasing enables module load stabilization as per priority.

In other words, the execution process corresponding to the priority assigns the execution of the blocks executable at a lower cycle than the base cycle to various phases, i.e. to the multiples of the base cycle. The phase is selected automatically for blocks the phase definition of which is Auto. The Auto-phased blocks’ sub-blocks with the phase Fixed are executed in the same phase with the Auto-phased block. This is a means to implement entities of several hierarchical blocks within which the execution order of the blocks is precisely defined.

Going downwards in the block hierarchy onto a specific level, e.g. the tag block level, the blocks’ phase is defined as Auto. Below this level, the blocks’ phase will be defined as Fixed. This means that the system will automatically phase the execution of control entities as per priority. Within these entities, however, in the case of tag blocks, for example, the blocks will always have the defined order of execution.

If necessary you can implement an entity of several tag level blocks and their sub-blocks with a fixed execution order by selecting Fixed as the phase for the tag level blocks and Auto for the block above the tag level. The maximum number of Fixed blocks under the biggest Auto-phased block allowed is 96.

Note! In a sequece the STEPX block's phase must be defined as Auto and the step blocks’ phase must be defined as Fixed.

3 - 30

Blocks

Experion PKS Blocks application definition 09/2007

Use the OK push button to accept the definitions made in the Execution data window.

Use the OK push button to accept the definitions made in the Execution data window. Pressing the OK has the following effects

The Header window and the Execution data window will close, and the block will be ready to be loaded into the process module, provided that the Extension field has not been selected in the Header window.

The Header window and the Execution data window will close and the Setting initial Face Plate values window displayed, provided that the Extension field has been selected in the Header window.

The Cancel push button closes the Execution data window without saving the definitions. The Setting initial Face Plate values window will be displayed, provided that the Extension field has been selected in the Header window.

4.2.3

Setting initial Face Plate values for hierarchical blocks

Setting initial Face Plate values for hierarchical blocks The Setting initial Face Plate values window is

The Setting initial Face Plate values window is used to determine the process area and the definable faceplate texts for the faceplate selected in the Header window.

Use the Process area field to write the name of the process area for which the faceplate is to be saved. The process areas are defined by the PMD Builder’s System tool.

The Texts to be defined depend on the faceplate selected. For example, the measurement upper and lower limit, measurement unit and any connections to other tag blocks are defined for a measurement faceplate. Naturally, a faceplate’s texts and limit values must comply with the values of the tag block being defined.

The definable texts of each faceplate are described in detail in the section Defining faceplates and standard pins for tag blocks.

When a Setting initial Face Plate values window opens on the screen, the text’s first line is already active and is displayed in the edit field in the lower section of the window. Write a desired text in the Text field and press the OK push button to accept. This automatically activates the next line.

Having defined all the texts necessary, close the window by pressing the End push button. This also saves the definitions made.

Pressing the Cancel push button closes the window without saving.

3 - 32

Blocks

Experion PKS Blocks application definition 09/2007

4.2.4

Type block Header

If the block being edited is a type block, then the Blocks menu’s Header function will display the Header of Type Block window.

function will display the Header of Type Block window. The ID field automatically displays the block

The ID field automatically displays the block name and version number. Here, the ID cannot be changed.

The Description box will automatically be marked as having been selected if a functional description has been written for the block by using the Blocks menu’s Description function. A functional description has a maximum of 2000 characters.

The Pascal box is selected if the block is to be implemented in the high-level language.

The Ready box is selected if the block definitions, such as connections, are ready-made. If a block is to be made in the high- level language, it must be marked as being ready. The reason is that the Program Builder cannot be activated unless the block has been marked as ready. Similarly, the block must be marked as ready before it can be tested with the Block simulator, and before being loaded into the system. A block is compiled at the saving stage, only if it has been marked as ready.

Initial value of running state after PM/MM cold-start: Running is the default option. However, if type block activation is not desired after a cold-start for some reason, then the Stopped option must be selected.

The Version, Author and Date fields are updated automatically.

Press OK to accept the Header data.

The Cancel push button closes the window without saving the definitions made.

4.3 Description

The Blocks menu’s Description function displays a window that can be used to write a function description for the block. The description may have a maximum length of 2000 characters. To save the description written, press the Close push button located at the right- hand end of the title bar

.
.

4.4 Insert

The Blocks menu’s Insert function is used to add hierarchical blocks and basic blocks to the block hierarchy. This function is also used to add step blocks into the STEPX sequence block. The function opens the Insert blocks selection window.

Tip! You can open the Insert blocks selection window also by pressing the Insert key on the keyboard.

4.4.1 Inserting hierarchical blocks and basic blocks

4.4.1 Inserting hierarchical blocks and basic blocks To insert a hierarchical block , write the name,

To insert a hierarchical block, write the name, which the block is to receive, in the entry field in the window. Name must be unique inside the department. Hierarchical block names, with the exception of sequence blocks, have a maximum length of 40 characters. The names of sequences have a maximum length of 38 characters. If needed, the maximum length of block names can be defined during server installation separately for each department.

Note! The maximum length of tag block names is in practice 20 characters, because longer names do not fit in the faceplates. The faceplate name outputs in two rows, each of which has a maximum length of 10 characters. Note also! The name of a block which will have a faceplate must have at least one alpha character.

Permissible characters are: A - Z, a - z, 0 - 9, !,#, %, &, (, ), -, $, and Name cannot contain any of the following characters: Space, Tab, Period (.), Comma (,), Forward slash (/), Back slash (\), Less than (<), Greater than (>), Single quote ('), Double quote ("), Asterisk (*), Question mark (?), Vertical bar (|), Colon (:) and Semi-colon (;). Names are not case-sensitive, e.g. STA015 and sta015 are the same. The Block Builder will change lower case letters into upper case. Accept the block insertion by pressing the OK push button, which

3 - 34

Blocks

Experion PKS Blocks application definition 09/2007

will cause the block to be displayed in the first vacant block site available.

To insert a basic block, select the desired block from the list shown in the Insert a block window by clicking on the block name. The list contains all the basic blocks available. The list can be scrolled by means of the scroll bar. You can also write the block name into the entry field.

Accept the block insertion by pressing the OK push button which will cause the block to be displayed in the first vacant block site available in the Block Builder workspace.

Having inserted the desired blocks, close the Insert a block window by pressing the Cancel push button.

Note! For a single tag block, you may define alarm blocks only either in its tag-level or in a single hierarchical sub-block that has not been marked as a tag-level block in its header definition.

Tip! It is possible and an easy way to add basic blocks by double- clicking them in the Browse window. See Browse window / Basic tab.

Note! A type block cannot receive all the basic blocks, e.g. logic packages blocks, alarm blocks or send blocks. If an attempt is made to insert an illegal block in a type block, the Block Builder will issue an error message.

4.4.2 Inserting steps into a STEPX sequence block

When editing a STEPX sequence block, the Insert function will display the Insert a step window.

Insert function will display the Insert a step window . Use the entry field to write

Use the entry field to write the number of the step being inserted. Numbers 1-253 can be used. Accept the number by pressing the OK push button. The number outputs to the step list of the STEPX block in the Block Builder workspace. A total of 40 steps can be inserted in a STEPX sequence block, including the BEGIN and END blocks.

Having inserted the desired steps, close the Insert a step window by pressing the Cancel push button.

4.5 Insert type

The Blocks menu’s Insert type function is used to insert a type block in the block being edited. The block to be inserted must have been saved in the type block directory of the project in question. The function displays the following selection window.

The function displays the following selection window. To insert a type block , select the desired

To insert a type block, select the desired block from the list shown in the Insert a type block window by clicking on the block name. The list can be scrolled by means of the scroll bar arrows and the square. Accept the block insertion by pressing the OK push button which will cause the block to be displayed in the first vacant block site available in the Block Builder workspace. You can also write the block name into the entry field.

Having inserted the desired blocks, close the Insert a type block window by pressing the Cancel push button.

Tip! It is possible and an easy way to add type blocks by double- clicking them in the Browse window. See Browse window / Type tab.

4.6 Delete

The Blocks menu’s Delete function deletes blocks from the block being edited as follows:

Place the pointer on the name of the block to be deleted and click the left-hand mouse button. This changes the block's color indicating that it is active.

Select the Delete function.

In conjunction with deletion, all connections made to the block will also be lost. In addition, any blocks residing below the block being deleted will also be deleted. Should several blocks be active simultaneously, the Delete function will delete the most recently activated block first.

When editing a STEPX sequence block, the Delete function deletes the step block selected from the step list.

The block will disappear from the design module in conjunction with saving.

If the block deleted has been loaded into the system, the deletion must be done by using the Blocks menu's Delete from system function. See section Delete from system.

3 - 36

Blocks

Experion PKS Blocks application definition 09/2007

4.7 Rename

The Blocks menu’s Rename function is used to change block names as follows:

Place the pointer on the block to be renamed and click the left-hand mouse button to activate the block.

Select the Rename function. A definition window appears.

Select the Rename function. A definition window appears. Enter the new name and accept it by

Enter the new name and accept it by pressing the OK push button. (Pressing the Cancel push button closes the window without renaming the block.)

The program outputs the following question window:

block.) The program outputs the following question window: Answer Yes to rename the block and to

Answer Yes to rename the block and to change the new block name also into all the Connect with name connections. Note! Depending on the size of the application, it may take quite a long time when the program goes through the application and updates the connections. Answer No just to rename the block.

4.8 Export

The Blocks menu’s Export function can be used to copy a desired portion of the application to a diskette and transfer it to the block hierarchy of another design module. The copied application portion is combined with the block hierarchy of the other design module by using the Import function.

To copy a portion of the application, take the following steps:

In the Block Builder workspace place the pointer on the name of the block to be copied and click the left-hand mouse button to activate the block. All blocks residing below the selected block in the block hierarchy will also be exported.

Select the Export function. The definition window outputs.

If you select Default in the Select license field, the application is copied using the

If you select Default in the Select license field, the application is copied using the license of the department in question.The possible other licenses are library licenses used in application library development. Those licences are usually not needed in normal projects.

Write in the Export Block(s) to folder field the folder name to which the blocks will be copied, or use the Browse button to browse the location.

If the block is Pascal type, select Block pascal source to copy also the Pascal codes.

Select OK to to copy the blocks.

4.9

Import

The Blocks menu’s Import function combines with the block hierarchy those application portions that have been copied by the Export function to diskettes. The parts to be combined must not contain blocks with identical names.

Note! A license is needed to import blocks from another department. If the required license has not been installed, a notification window opens and the import function will not proceed.

Note also! If you want to import blocks from an older system than R710, the blocks have to be converted to XML files before they are merged. See 14 Converting Block Builder Applications to XML files.

Use the Import function as follows:

Open into the Block Builder workspace the block to which you want to import the new part and select Blocks/ Import, thus causing a Import definition window to be displayed.

3 - 38

Blocks

Experion PKS Blocks application definition 09/2007

In the Import Block(s) from folder field, type the folder in which the blocks to

In the Import Block(s) from folder field, type the folder in which the blocks to be merged are located. Alternatively, use the Browse button to search the desired folder.

Select the block name in the Select highest block field. The blocks that are under the block in the block hierarchy will also be combined.

Select the No Change field if the block IDs are not to be changed in conjunction with the Import function.

Select the Change characters option if only some of the characters are to be changed. Changing will be possible if the blocks being combined have been named in a suitable fashion, i.e. if the characters to be changed are the same in the ID of the highest block and sub- blocks.

Select the Change string option if the whole character string is to be changed. The function changes all the characters which are used in the ID of the highest block. If the IDs of the sub-blocks are longer than the ID of the highest block, the extra characters are not changed or deleted. For example, if the character A is used as an identifier of alarm sub-blocks, it will remain. This option is mainly used when merging model tag blocks or application portions within the project specific application.

Select OK to merge the blocks.

Merging the blocks can take some time, depending on the amount of the blocks to be merged.

Note! Save all blocks before loading them to system.

4.10 Search

Save all blocks before loading them to system. 4.10 Search You can search with the Blocks

You can search with the Blocks/Search function, which hierarchical blocks use the certain type block. When you enter the type block name in the Name field, a list opens showing the locations where the type block is used.

4.11 Delete from system

The Blocks menu’s Delete from system function is used to delete a single hierarchical block or type block from the PMD server. This function only deletes the selected block from the system, and none of the blocks contained below it in the block hierarchy. The type block is automatically deleted from its execution module.

Open the block to be deleted in the Block Builder workspace and select the Delete from system function. This will output the selection window.

system func tion. This will output the selection window. Select the block type being deleted and

Select the block type being deleted and activate function by pressing the OK push button.

Pressing the Cancel push button closes the window without deleting the block.

3 - 40

Blocks

Experion PKS Blocks application definition 09/2007

5

Pins

5.1 Pins menu description

The Pins menu functions are used to define the pins through which all the messages are relayed to and from the block in question.

the messages are relayed to and from the block in question. 5.2 Insert The Pins menu’s

5.2 Insert

The Pins menu’s Insert function is used to define all the pins required by a block.

5.2.1 Defining pins for a hierarchical block

Note! If the definable block, such as measurement, control, motor or valve tag block has been provided with a faceplate by the Blocks menu’s Header function, then pins with certain names must be defined for the block. These pins automatically relay the data from the tag block to the faceplate. For detailed instructions for faceplates and the pins they require, see the end of this document, section Defining faceplates and standard pins for tag blocks.

When defining a hierarchical block, the Pins menu’s Insert function displays the following window.

Use the Name field to enter the pin name. The maximum pin name length is

Use the Name field to enter the pin name. The maximum pin name length is 3 characters. Permissible as characters are letters A–Z, numbers 0-9 and the _ character. The name may be written with lower case or upper case letters. Once the pin definition is accepted, the Block Builder will generate the name in compliance with the pin type presentation form. (See explanation for Type.)

The Description field can be used to write a pin description with a maximum length of 30 characters. This description is printed in the block document and is shown next to the pin in the Block Builder workspace by pressing the toolbar’s

Pin description push button

The Badge field can be used to write an additional 10-character description which is printed in the documentation if the pin is an I/O pin.

Select Input to define an input pin. Input pins are displayed on the left-hand side of the Block Builder workspace. Correspondingly, select Output to define an output pin, displayed on the right-hand side of the Block Builder workspace.

Select Vector if the pin is to relay data in a vector form. The Block Builder will request the vector length once the pin definition is accepted. Vectors can be used by the blocks executed in high-level language, and by those blocks which use vector blocks that are included in the basic block selection.

.
.

3 - 42

Pins

Experion PKS Blocks application definition 09/2007

Type:

Signal

Integer 0

255.

Real

Real number. Absolute value 3.4128237E38 and the lowest absolute value, other than 0, is 3.4128237E-38. Accuracy 7 digits.

Word

Integer 0

65535.

LongReal

Value range approx. (+/-)1.113E-308, 0 and (+/-)1.113E308. Accuracy 16 digits.

Char

Character

Integer

Integer with a sign -32768

32767.

Two bytes.

LongInt

Integer with a sign -2147483648

2147483647.

Four bytes.

The pins will be displayed in the Block Builder workspace in accordance with the selected type as follows:

Type

Presentation form

Example

Signal

All letters in lower case

Swi

Real

All letters in upper case

SET

Others

Upper case initial letter, others in

Cn1 (Word)

lower case

Rec (Vector)

If an input pin is selected and the Type is Real, then the Block Builder

will turn the pin into a variable which is saved automatically and will request the initial value once the pin definition is accepted. It is not advisable to make automatically saved variables of those pins which receive their values from another module (the external setpoint value of a cascade control, RSE, for example). This is due to the fact that the value of an automatically saved variable is saved in the PMD server whenever the value receives a change from another module or the Block monitor. The pin will not become one which is saved automatically, if the window that requests the variable’s initial value is closed by pressing the Cancel push button or the Esc key on the keyboard. The value of a non-automatically-saved variable is saved in the PMD server via the Block monitor’s Block menu’s Save variables function.

Defining pins for various purposes:

A pin is defined as a public pin if the data contained in it is to be

connected to a faceplate and displays or the data is to be used in other blocks. The pin will not be visible on a higher hierarchical level and cannot, therefore, be wired on this level. All pins connected to faceplates are public.

A pin is defined as a pin visible on a higher level if it is to be

displayed on a higher hierarchical level where it may also be connected to other blocks through wiring or flags. A pin that is

visible on a higher level cannot be connected to a faceplate or displays.

The type of an analog I/O pin will automatically be Word once the pin definitions are accepted. Correspondingly, the type of a binary I/O pin will automatically be Signal. I/O pins are used to connect blocks to process interfaces. The I/O pin names are attached to process interface device I/O channels by the PMD Builder’s System tool. To indicate an I/O pin, a thick line is displayed at the pin’s left-

hand side in the Block Builder workspace. I/O pins cannot be connected to faceplates or displays.

The rng pin and motor run data are examples of pins which are both public and I/O pins. Here, the pin data can be connected to both the process interface and the faceplate.

The RSE pin and cascade controls’ external setpoint values are examples of public pins visible on a higher level. Such a pin can be connected between two blocks on a higher hierarchical level and shown in the faceplate as well.

Register I/O pins connect a block to a process interface provided with a register interface. The register I/O pin type will be determined automatically, provided that the definition has been made by the PMD Builder. If the pin definition does not exist, an error message will be displayed. If the pin is accepted as being ready after the error message has been acknowledged, the pin type will be Signal. However, this type does not necessarily comply with future I/O definitions and the connection will not function. The External option will also be selected automatically once the Register I/O pin definition is accepted.

Select the Creates an interlock option if the data relayed by the pin causes an interlock or a control disable state in the block being defined, and if you want to show the cause of the interlock/disable

in the block’s faceplate extension on the user interface.

A data item that interlocks a motor in the halt state is an example.

The following definition window will output after you have selected

the option Creates an interlock and pressed the OK push button in the Pin data window.

and pressed the OK push button in the Pin data window. The Description field is used

The Description field is used to write a description of the interlock or control disable. This information will be shown in the faceplate extension. It is recommended to write the description in English and,

if required, localize the text by using the localization tools of the

system. See document Localization.

The TagName field is used to write the name of the tag block that issues the interlock or control disable. This information will be shown in the faceplate extension.

3 - 44

Pins

Experion PKS Blocks application definition 09/2007

Select the Interlock inverted option if the interlock is valid when the data value is zero. The Definition options are only significant when making device control or general logic tag blocks.

When defining a device control tag block, the Definition options are used to specify in detail the causes of an interlock. Causes are shown in the faceplate. For a description of the Device control faceplate, see section Device control (Device). If you are using the device control tag block to control a hydraulic directional valve, see a separate Hydraulic and Pneumatic Control Toolbox User Manual.

When defining a general logic tag block, the Definition options are used to define the faceplate’s title(s), under which the data of the Description and TagName fields will be displayed. For a description of the General logic faceplate, see section General logic (Genlog).

Select the Target of interlock option if the pin data creates an interlock or a control disable state for one or more blocks, and a description of the interlock targets should be visible in the block’s faceplate extension. The following definition window will output after you have selected the option Target of interlock and pressed the OK push button in the Pin data window.

and pressed the OK push button in the Pin data window. Use the Description and Tag

Use the Description and Tag name fields to write, one by one, the description and block name of the tag blocks where the pin will cause an interlock or a control disable state. It is recommended to write the description in English and, if required, localize the text by using the localization tools of the system. See document Localization. Accept the entered description and block name by pressing the OK push button which causes them to be displayed in the list field. The Add push button adds an empty line above the active line. The Delete push button deletes the active line. The Save push button saves the definitions accepted in the list field and closes the window. The Cancel push button closes the window without saving the definitions made. Select the Interlock inverted option if the interlock is to be valid when the data value is zero.

The Block able to write to its input option can only be selected for the pins of a high-level language block or a sequence step, such as

the Wait time counter (Wtc) and the SWAIT control (Wco). (See also document Basic blocks, section SWAIT.)

The Pin to be copied in testing field can be used to write, for the input pin, the name of the output pin whose value is to be relayed to the input pin. The Inverted option can be selected for a pin of the signal type.

Trend record option is not used in the Experion PKS with PMD Controller automation system.

The Activate task pin must always be a public WORD-type pin.

5.2.2 Defining pins for a sequence step block

When defining a sequence steps (i.e. steps inside a STEPX sequence block), the Pins menu’s Insert function displays the following window.

menu’s Insert function displays the following window. Note! When defining the pins of a sequence step,

Note! When defining the pins of a sequence step, the conditions-of- progress option is displayed instead of the trend record option in the Pin data window of a hierarchical block. All other options are the same. (See section Defining pins for a hierarchical block.) Therefore only conditions-of-progress option is explained in this section.

Condition of progress means that sequence execution will continue only when the step’s progress conditions are valid. Each step can have a maximum of ten progress condition pins. The following definition window will output after you have selected the option conditions-of-progress and pressed the OK push button in the Pin data window.

3 - 46

Pins

Experion PKS Blocks application definition 09/2007

The Connection and Transmission Cycle fields are used to define the progress condition source. The

The Connection and Transmission Cycle fields are used to define the progress condition source. The Explanation field is used to enter the condition text, which must be valid before the sequence can proceed. The explanation has a maximum length of 10 characters and it is shown in the sequence faceplate as the progress condition explanation. It is recommended to write the explanation in English and, if required, localize it by using the localization tools of the system. See document Localization. The Condition name can be selected to be either the block name that sends data to the pin or the pin explanation defined for the pin in the Pin data window. Select the Condition inverse option, if the condition is to be valid when the data value is zero. The Condition can be by-passed option is selected if the condition can be by-passed via the user interface. Note! If you select the can be by-passed option, you must also define The by-passing must be deleted property. The alternatives are:

At step re-execution

At sequence startup

Via the keyboard

Note! If you don't select any of the by-passing must be deleted options, the system selects this option as default.

The condition by-pass is removed automatically when the sequence proceeds to the step in question.

The condition by-pass is removed automatically at sequence startup.

The user must by-pass the condition by clicking the condition line and acknowledging the command by pressing OK on the message window.

Press the OK push button to accept the pin’s progress condition definition. The Cancel push button closes the window without saving the pin definition. The Get push button shows the progress condition, that was saved as the default condition. The Save push button saves the complete progress condition definition as the default condition.

5.2.3

Defining pins for a type block

When defining a type block, the Pins menu’s Insert function displays the following window.

menu’s Insert function displays the following window. The Name , I nput or Output, Vector and

The Name, Input or Output, Vector and Description options are defined in the same way as the pins of a hierarchical block.

Type:

Signal

Integer 0

255.

Real

Real number. The highest absolute value is 3.4128237E38 and the lowest absolute value, other than 0, is 3.4128237E-38. Accuracy 7 digits.

Word

Integer 0

65535.

LongReal

Value range approx. (+/-)1.113E-308, 0 and (+/-)1.113E308. Accuracy 16 digits.

Char

Character

Record

Not supported in the system. The records must be described as byte vectors.

StringVector

A table formed of fixed-length character strings. The Block Builder requests the length and number of character strings.

Integer

Integer with a sign -32768

32767.

Two bytes.

LongInt

Integer with a sign -2147483648

2147483647.

Four bytes.

LongWord

Integer without a sign 0

4294967295.

Four bytes.

It is also possible to define several types for a high-level block pin at the same time. This means that the pin becomes a so-called type group pin. To be able to process a type group pin in the high-level language, it is necessary to select, for the pin, the Address and type of parameter are passed option.

The options Binary I/O, analog I/O and Visible on the higher level have the same effects as the pins defined for a hierarchical block.

Use the Space reserving pin to connect a constant value that indicates the number of elements in the reserved memory space, or another space reserving pin (e.g. the PIDEL block’s LEN pin).

The Limitation options are used to determine whether a constant value or a variable, or both, may be connected to the pin in question.

3 - 48

Pins

Experion PKS Blocks application definition 09/2007

The Hidden option must be reserved for connection to the hidden pin of a basic block residing within a type block. The pins defined as hidden pins will not be seen in a hierarchical block that uses the type block. Hidden pins are used to save the data that is retained beyond the execution cycle (the previous value of an input signal, for example).

The Preserved output must be selected when the output pin of a basic block or type block has to be retained beyond the execution cycle (e.g. when the output is read before writing, or if the output is not updated during each execution cycle) and when there is an additional requirement for the pin to be visible. A type block’s internal pin data resides in the execution process stack and is, therefore, not preserved beyond the execution cycle.

The Address and type of parameter are passed option must be selected if the block must be able to write to its own input. The option must also be selected for the type group pins. A type group pin is a pin for which more than one type have been selected. The pin type is only attached at the editing stage. For this purpose, a high- level language block may also receive the pin type data item.

The pins that are selected via the Shown when asked option will pile up in the user block, thus reducing the space available to the block.

Select the No double copying option if the pin value is not to be copied from one processor to another when using a process module provided with processor redundancy.

5.3

Delete

The Pins menu’s Delete function is used to delete an inserted pin from a block as follows:

1. Place the pointer on the pin to be deleted, and click the left-hand mouse button to activate the pin.

2. Select the Delete function, thus causing the pin to be deleted.

5.4

Change

The Pins menu’s Change function can be used to change pin data as follows:

1. Place the pointer on the pin whose data is to be changed, and click the left-hand mouse button to activate the pin.

2. Select the Change function. This displays the Pin data window on the screen. (The window can also be opened by directly double- clicking on the pin with the left-hand mouse button.)

3. Change the pin definitions as required and save the