16
7/23/2019 AI_412_EDDL http://slidepdf.com/reader/full/ai412eddl 1/16 Device Management Protocols Protocoles de gestion des appareils Gerätezugangsprotokolle Electronic Device Description Prof. Dr. H. Kirrmann ABBResearch Center, Baden, Switzerland Industrial Automation Automation Industrielle Industrielle Automation 4.4.1 4. 2004 March,HK1 / 16

AI_412_EDDL

Embed Size (px)

Citation preview

Page 1: AI_412_EDDL

7/23/2019 AI_412_EDDL

http://slidepdf.com/reader/full/ai412eddl 1/16

Device Management ProtocolsProtocoles de gestion des appareils

Gerätezugangsprotokolle

Electronic Device Description

Prof. Dr. H. Kirrmann

ABB Research Center, Baden, Switzerland

Industrial AutomationAutomation IndustrielleIndustrielle Automation

4.4.1

4.

2004 March, HK 1 / 16

Page 2: AI_412_EDDL

7/23/2019 AI_412_EDDL

http://slidepdf.com/reader/full/ai412eddl 2/16

2 4.4.1 Device Description Language2004 April, H!P"L # $ndustrial Auto%ation

Device Model Principle

t&pe

%anu'acturer 

%ode%

transmission system (HART or field bus)

net(orkadapter 

device

volu%etric 'lo( rate

"lo(Pro

 A))

velocit& 1*.*2 %2+s

di''. pressure .- Pa

densit& 0.- kg+l

volu%etric 'lo( rate

cross sectional area

pipe inside dia%eter 

* c%2

2 c%

1*.*2 .- 0.-

'ield device

/and#

/eld

devicenet(orkadapter 

ADA

4#20 %A loop

Page 3: AI_412_EDDL

7/23/2019 AI_412_EDDL

http://slidepdf.com/reader/full/ai412eddl 3/16

* 4.4.1 Device Description Language2004 April, H!P"L # $ndustrial Auto%ation

Device Description in HART

Page 4: AI_412_EDDL

7/23/2019 AI_412_EDDL

http://slidepdf.com/reader/full/ai412eddl 4/16

4 4.4.1 Device Description Language2004 April, H!P"L # $ndustrial Auto%ation

DDL rigins

Developed by Fisher-Rosemount for transducers connected over HART

HART = data communication superimposed over 4-10 mA loops

Extended by Fieldbus Foundation (FF-900-1.0 1996)

Objective:

define how a device presents itself to a hand-help terminal or an engineering station

became international standard in 2004 as EDDL (IEC1-04#2)

Page 5: AI_412_EDDL

7/23/2019 AI_412_EDDL

http://slidepdf.com/reader/full/ai412eddl 5/163 4.4.1 Device Description Language2004 April, H!P"L # $ndustrial Auto%ation

E!ample of "unction Profile

transmitter serial number

sensor serial number

health of devicecertification of transmitter

certification of sensor

wetted material

model number (ordering info)

health of process

Physical

volumetric flow rate

cross sectional area

pipe inside diameter

pipe inside diameter unit

velocity

differential pressure

density

Volumetric flow

mass flow rate (min, max)

process density values

volumetric flow rate

line pressure

process temperature

Mass flow

process temperature

process densitystandard volume flow

flow velocity

energy flow

standard mass flowsteam quality

line pressurepercent concentration

net volumetric flow

Flow Device (Fieldbus Foundation)

Page 6: AI_412_EDDL

7/23/2019 AI_412_EDDL

http://slidepdf.com/reader/full/ai412eddl 6/16 4.4.1 Device Description Language2004 April, H!P"L # $ndustrial Auto%ation

Device Description Language ob#ects

Blocks: describes Function Blocks

Variables, Records, Arrays

Menus: presentation of the data to a host

Edit Displays: editing the data by a host

Variables Lists: logical grouping of variables

Relations: relationship between variables, records and arrays

Variables:

Item Arrays: logical grouping of data

Programs: tasks to start and stop

Domains: download/upload of memory

Response codes:status of the request for an object

Page 7: AI_412_EDDL

7/23/2019 AI_412_EDDL

http://slidepdf.com/reader/full/ai412eddl 7/16 4.4.1 Device Description Language2004 April, H!P"L # $ndustrial Auto%ation

DDL $sage

DDLSource

File

DeviceSpecification

DDLCompiler"tokenizer"

DDLService

LibraryHost Device

DDLSourceLanguageSpecification

Specifications

DDLBinary

EncodingSpecification

 A 5inar& 'or% o' t/e source is stored in t/e /and#/elp device 6not in t/e 'ield device7

BinaryDDL

File

Page 8: AI_412_EDDL

7/23/2019 AI_412_EDDL

http://slidepdf.com/reader/full/ai412eddl 8/16- 4.4.1 Device Description Language2004 April, H!P"L # $ndustrial Auto%ation

DDL Device Description %nformation

Information about the device itself

MANUFACTURER integer; // a 24-bit integer identifying the manufacturerDEVICE_TYPE integer; // a 16-bit integer which identifies the device typeDEVICE_REVISION integer; // an 8-bit integer which identifies the revisionDD_REVISION integer; // an 8-bit integer which identifies the DDL version

Page 9: AI_412_EDDL

7/23/2019 AI_412_EDDL

http://slidepdf.com/reader/full/ai412eddl 9/16 4.4.1 Device Description Language2004 April, H!P"L # $ndustrial Auto%ation

DDL &ariables

CONSTANT_UNIT string; // string to be displayed for the units

HANDLING = {READ, WRITE} //

HELP string; // on-line help string

PRE_EDIT_ACTIONS {methods}

POST_EDIT_ACTIONS

READ_TIME_OUT expression;

WRITE_TIME_OUT expression;

VALIDITY boolean;

RESPONSE_CODES response_code_name;}

CLASS = { INPUT, OUTPUT, CONTAINED, // must belong to one of these threeDYNAMIC, DIAGNOSTIC, SERVICE, OPERATE, ALARM, TUNE, LOCAL // options

  }TYPE = { arithmetic,enumerated,string,index, date/time }

LABEL string; // text to display along the variable value

VARIABLE name // name of the variable as ASCII string{

Page 10: AI_412_EDDL

7/23/2019 AI_412_EDDL

http://slidepdf.com/reader/full/ai412eddl 10/16

10 4.4.1 Device Description Language2004 April, H!P"L # $ndustrial Auto%ation

DDL &ariables (Types)

// arithmetic typesINTEGER, UNSIGNED, FLOAT, DOUBLE,

// e.g. TYPE INTEGER (size) {option option ...}  // options:  DISPLAY_FORMAT string; // e.g. %4i as in printf

  EDIT_FORMAT string; // e.g. %d as in scanf  MIN_VALUE expression; // e.g. MIN_VALUE = -10; MIN_VALUE1 = -10;  MAX_VALUE expression; // e.g. MAX_VALUE = +10; MAX_VALUE1 = -5;  SCALING_FACTOR expression; //

// enumerated typeENUMERATED (size)

  {{value, //description, // text to be displayed when value is taken  help, // short text describing the value  }}

BIT_ENUM (size)  {{value // in reality, bit position in word, not octet

description // text to be displayed when bit is set  help, // short text describing the bit  function, // functional class (see CLASS)  status_class, // cause, duration, correctability, scope, output, miscellaneous  methods // method to be performed when bit is set.  }}

Page 11: AI_412_EDDL

7/23/2019 AI_412_EDDL

http://slidepdf.com/reader/full/ai412eddl 11/16

11 4.4.1 Device Description Language2004 April, H!P"L # $ndustrial Auto%ation

DDL &ariables ('trings)

// string typesEUC (size);ASCII (size);PASSWORD (size);

BITSTRING (length); // number of bitsVISIBLE (size);OCTET(size);

// index typeINDEX (size) item_array;  // size in octets >1, default 1.  // item_array see item array

// data/time typesDATE_AND_TIME;TIME;DURATION;TIME_VALUE;

Page 12: AI_412_EDDL

7/23/2019 AI_412_EDDL

http://slidepdf.com/reader/full/ai412eddl 12/16

12 4.4.1 Device Description Language2004 April, H!P"L # $ndustrial Auto%ation

DDL Menu %tems

Menu items define screen windows - implementation is free but order is prescribed.

MENU name

  {  Label string;  Items;}

ITEMS  {  variables (DISPLAY_VALUE READ_ONLY)  elements of block parameters  edit display  methods

  other menus  }

EDIT_DISPLAY name  {  Edit item  Label  Display items  Pre-edit actions  Post_edit actions  }

EDIT_ITEMS  {  write_as_one  block parameter  elements of block parameters  }

PRE_EDIT_ACTIONS  {  method, method..  }

Page 13: AI_412_EDDL

7/23/2019 AI_412_EDDL

http://slidepdf.com/reader/full/ai412eddl 13/16

1* 4.4.1 Device Description Language2004 April, H!P"L # $ndustrial Auto%ation

DDL Metods

Methods are piece of code to be executed by the host in response to change ofdevice variables or user commands

METHOD name  {  attribute,  attribute,  ...}

Class // see "CLASS"DefinitionLabelHelpValidity

DEFINITION c_compound_statement

ANSI "C" subset, may not usepointers, initializers,enumerations, structures,unions,...

Page 14: AI_412_EDDL

7/23/2019 AI_412_EDDL

http://slidepdf.com/reader/full/ai412eddl 14/16

14 4.4.1 Device Description Language2004 April, H!P"L # $ndustrial Auto%ation

DDL loc*s

Blocks are segments of Function Block Language defined in FMS

BLOCK name  {  attribute,

  attribute,  ...}

CharacteristicsLabelParametersHelpParameter ListsItem Lists

CHARACTERISTICS record_name; // type of the block

PARAMETERS  {  name, // name of the item  item, // names of variables, arrays or records  description, // short description  help; // help text for the item  name, item, description, help;  ...  }

Page 15: AI_412_EDDL

7/23/2019 AI_412_EDDL

http://slidepdf.com/reader/full/ai412eddl 15/16

13 4.4.1 Device Description Language2004 April, H!P"L # $ndustrial Auto%ation

Page 16: AI_412_EDDL

7/23/2019 AI_412_EDDL

http://slidepdf.com/reader/full/ai412eddl 16/16

1 4.4.1 Device Description Language2004 April, H!P"L # $ndustrial Auto%ation