Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Automation Industrielle
Industrielle Automation
4.
4.4.1
field device
2 cm
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
9.8
2004 April, HK
0.8
2004 April, HK
DDL Origins
Developed by Fisher-Rosemount for transducers connected over HART
HART = data communication superimposed over 4-10 mA loops
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)
2004 April, HK
2004 April, HK
2004 April, HK
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
2004 April, HK
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;
}
2004 April, HK
//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.
}}
2004 April, HK
10
2004 April, HK
11
2004 April, HK
12
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,...
2004 April, HK
13
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;
...
}
2004 April, HK
14
2004 April, HK
15
2004 April, HK
16