Sei sulla pagina 1di 16

Industrial Automation

Automation Industrielle
Industrielle Automation

4.

Device Management Protocols


Protocoles de gestion des appareils
Gertezugangsprotokolle

4.4.1

Electronic Device Description

Prof. Dr. H. Kirrmann


ABB Research Center, Baden, Switzerland
2004 March, HK 1 / 16

Device Model Principle


device
volumetric flow rate
type
FlowPro
manufacturer
ABB
volumetric flow rate
3 cm2
cross sectional area:

field device

2 cm

pipe inside diameter

network
adapter

handheld
device

SCADA

velocity

13.32 m2/s

diff. pressure

9.8

Pa

density

0.8

kg/l

network
adapter

modem
4-20 mA loop

13.32

EPFL - Industrial Automation

9.8

2004 April, HK

0.8

transmission system (HART or field bus)

4.4.1 Device Description Language

Device Description in HART

EPFL - Industrial Automation

2004 April, HK

4.4.1 Device Description Language

DDL Origins
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 (IEC 61804-2)

EPFL - Industrial Automation

2004 April, HK

4.4.1 Device Description Language

Example of Function Profile


Physical

transmitter serial number


sensor serial number
health of device
Volumetric flow
certification of transmitter
Mass flow
volumetric flow rate
certification of sensor
cross sectional area mass flow rate (min, max)
wetted material
pipe inside diameter
process density values
model number (ordering info)
pipe inside diameter unit
volumetric flow rate
health of process
flow velocity
velocity
line pressure
temperature
differential pressure
process process
temperature
process density
density

standard volume flow


standard mass flow
steam quality
energy flow
line pressure
percent concentration
net volumetric flow

Flow Device (Fieldbus Foundation)

EPFL - Industrial Automation

2004 April, HK

4.4.1 Device Description Language

Device Description Language objects


Variables:
Variables, Records, Arrays
Relations: relationship between variables, records and arrays
Variables Lists: logical grouping of variables
Menus : presentation of the data to a host
Edit Displays : editing the data by a host
Item Arrays : logical grouping of data
Programs : tasks to start and stop
Blocks: describes Function Blocks
Domains : download/upload of memory
Response codes: status of the request for an object

EPFL - Industrial Automation

2004 April, HK

4.4.1 Device Description Language

DDL Usage
DDL
Source
File

Device
Specification

Specifications
DDL
Source
Language
Specification

DDL
Compiler
"tokenizer"
DDL
Binary
File

Binary

DDL
Encoding
Specification

DDL
Service
Library
Host Device
A binary form of the source is stored in the hand-help device (not in the field device)
EPFL - Industrial Automation

2004 April, HK

4.4.1 Device Description Language

DDL Device Description Information

Information about the device itself


MANUFACTURERinteger;//a24bitintegeridentifyingthemanufacturer
DEVICE_TYPEinteger;//a16bitintegerwhichidentifiesthedevicetype
DEVICE_REVISIONinteger;//an8bitintegerwhichidentifiestherevision
DD_REVISIONinteger;//an8bitintegerwhichidentifiestheDDLversion

EPFL - Industrial Automation

2004 April, HK

4.4.1 Device Description Language

DDL Variables
VARIABLEname//nameofthevariableasASCIIstring
{
CLASS={INPUT,OUTPUT,CONTAINED,//mustbelongtooneofthesethree
DYNAMIC,DIAGNOSTIC,SERVICE,OPERATE,ALARM,TUNE,LOCAL//options
}
TYPE={arithmetic,enumerated,string,index,date/time}
LABELstring;//texttodisplayalongthevariablevalue
CONSTANT_UNITstring;//stringtobedisplayedfortheunits
HANDLING={READ,WRITE}//
HELPstring;//onlinehelpstring
PRE_EDIT_ACTIONS{methods}
POST_EDIT_ACTIONS
READ_TIME_OUTexpression;
WRITE_TIME_OUTexpression;
VALIDITYboolean;
RESPONSE_CODESresponse_code_name;
}

EPFL - Industrial Automation

2004 April, HK

4.4.1 Device Description Language

DDL Variables (Types)


//arithmetictypes
INTEGER,UNSIGNED,FLOAT,DOUBLE,
//e.g.TYPEINTEGER(size){optionoption...}
//options:
DISPLAY_FORMATstring;//e.g.%4iasinprintf
EDIT_FORMATstring;//e.g.%dasinscanf
MIN_VALUEexpression;//e.g.MIN_VALUE=10;MIN_VALUE1=10;
MAX_VALUEexpression;//e.g.MAX_VALUE=+10;MAX_VALUE1=5;
SCALING_FACTORexpression;//

//enumeratedtype
ENUMERATED(size)
{{value,//
description,//texttobedisplayedwhenvalueistaken
help,//shorttextdescribingthevalue
}}
BIT_ENUM(size)
{{value//inreality,bitpositioninword,notoctet
description//texttobedisplayedwhenbitisset
help,//shorttextdescribingthebit
function,//functionalclass(seeCLASS)
status_class,//cause,duration,correctability,scope,output,miscellaneous
methods//methodtobeperformedwhenbitisset.
}}

EPFL - Industrial Automation

2004 April, HK

10

4.4.1 Device Description Language

DDL Variables (Strings)


//stringtypes
EUC(size);
ASCII(size);
PASSWORD(size);
BITSTRING(length);//numberofbits
VISIBLE(size);
OCTET(size);
//indextype
INDEX(size)item_array;
//sizeinoctets>1,default1.
//item_arrayseeitemarray
//data/timetypes
DATE_AND_TIME;
TIME;
DURATION;
TIME_VALUE;

EPFL - Industrial Automation

2004 April, HK

11

4.4.1 Device Description Language

DDL Menu Items


Menu items define screen windows - implementation is free but order is prescribed.
MENUname
{
Labelstring;
Items;
}
ITEMS
{
variables(DISPLAY_VALUEREAD_ONLY)
elementsofblockparameters
editdisplay
methods
EDIT_DISPLAYname
othermenus
{
}
Edititem
Label
Displayitems EDIT_ITEMS
{
Preeditactions
write_as_one
Post_editactions
blockparameter
}
elementsofblockparameters
PRE_EDIT_ACTIONS
}
{
method,method..
}

EPFL - Industrial Automation

2004 April, HK

12

4.4.1 Device Description Language

DDL Methods
Methods are piece of code to be executed by the host in response to change of
device variables or user commands
METHODname
{
attribute,
attribute,
...
}

Class//see"CLASS"
Definition
Label
DEFINITIONc_compound_statement
Help
Validity
ANSI"C"subset,maynotuse
pointers,initializers,
enumerations,structures,
unions,...

EPFL - Industrial Automation

2004 April, HK

13

4.4.1 Device Description Language

DDL Blocks
Blocks are segments of Function Block Language defined in FMS
BLOCKname
{
attribute,
attribute,
... Characteristics
Label
}
Parameters
Help
ParameterLists
ItemLists

CHARACTERISTICSrecord_name;//typeoftheblock

PARAMETERS
{
name,//nameoftheitem
item,//namesofvariables,arraysorrecords
description,//shortdescription
help;//helptextfortheitem
name,item,description,help;
...
}

EPFL - Industrial Automation

2004 April, HK

14

4.4.1 Device Description Language

EPFL - Industrial Automation

2004 April, HK

15

4.4.1 Device Description Language

EPFL - Industrial Automation

2004 April, HK

16

4.4.1 Device Description Language

Potrebbero piacerti anche