0% found this document useful (0 votes)
122 views16 pages

Ai 412 Eddl

This document discusses electronic device description languages (DDLs) used for industrial automation. It provides an overview of DDL origins and objectives, describes DDL objects like variables, menus, methods and blocks. Examples are given of DDL usage in device descriptions, variable types, and menu/method definitions according to standards like HART and Fieldbus Foundation specifications. The document aims to explain how DDLs define how a field device presents itself to host systems.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
122 views16 pages

Ai 412 Eddl

This document discusses electronic device description languages (DDLs) used for industrial automation. It provides an overview of DDL origins and objectives, describes DDL objects like variables, menus, methods and blocks. Examples are given of DDL usage in device descriptions, variable types, and menu/method definitions according to standards like HART and Fieldbus Foundation specifications. The document aims to explain how DDLs define how a field device presents itself to host systems.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 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: pipe inside diameter velocity diff. pressure density 2 cm

field device

SCADA

13.32 m2/s 9.8 0.8 Pa kg/l

network adapter

handheld device

network adapter 4-20 mA loop

modem

13.32

9.8

0.8

transmission system (HART or field bus)

EPFL - Industrial Automation

2004 April, HK

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 differential pressure process process temperature temperature process density density

Flow Device (Fieldbus Foundation)

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

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 DDL Compiler "tokenizer" DDL Binary File 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

Device Specification

Specifications DDL Source Language Specification DDL Binary Encoding Specification

4.4.1 Device Description Language

DDL Device Description Information

Information about the device itself


MANUFACTURER integer; DEVICE_TYPE integer; DEVICE_REVISION integer; DD_REVISION integer; // // // // a 24-bit a 16-bit an 8-bit an 8-bit integer integer integer integer identifying the manufacturer which identifies the device type which identifies the revision which identifies the DDL version

EPFL - Industrial Automation

2004 April, HK

4.4.1 Device Description Language

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

CLASS = { INPUT, OUTPUT, CONTAINED, // must belong to one of these three DYNAMIC, DIAGNOSTIC, SERVICE, OPERATE, ALARM, TUNE, LOCAL // options } TYPE = { arithmetic,enumerated,string,index, date/time } LABEL string; CONSTANT_UNIT string; // text to display along the variable value // 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; }

EPFL - Industrial Automation

2004 April, HK

4.4.1 Device Description Language

DDL Variables (Types)


// arithmetic types INTEGER, UNSIGNED, FLOAT, DOUBLE, // e.g. TYPE INTEGER (size) {option option ...} // options: DISPLAY_FORMAT string; // e.g. %4i as in EDIT_FORMAT string; // e.g. %d as in MIN_VALUE expression; // e.g. MIN_VALUE MAX_VALUE expression; // e.g. MAX_VALUE SCALING_FACTOR expression; //

printf scanf = -10; MIN_VALUE1 = -10; = +10; MAX_VALUE1 = -5;

// enumerated type ENUMERATED (size) {{value, // description, // text to be displayed when value is taken help, // short text describing the value }} BIT_ENUM (size) {{value description help, function, status_class, methods }} // // // // // // in reality, bit position in word, not octet text to be displayed when bit is set short text describing the bit functional class (see CLASS) cause, duration, correctability, scope, output, miscellaneous method to be performed when bit is set.

EPFL - Industrial Automation

2004 April, HK

10

4.4.1 Device Description Language

DDL Variables (Strings)


// string types EUC (size); ASCII (size); PASSWORD (size); BITSTRING (length); VISIBLE (size); OCTET(size);

// number of bits

// index type INDEX (size) item_array; // size in octets >1, default 1. // item_array see item array // data/time types 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.
MENU name { Label string; Items; } ITEMS { variables (DISPLAY_VALUE READ_ONLY) elements of block parameters edit display methods EDIT_DISPLAY name other menus { } Edit item Label Display items EDIT_ITEMS Pre-edit actions { Post_edit actions write_as_one block parameter } elements of block parameters 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
METHOD name { attribute, attribute, ... }

Class Definition Label Help Validity

// see "CLASS" DEFINITION c_compound_statement ANSI "C" subset, may not use 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
BLOCK name { attribute, attribute, Characteristics ... Label } Parameters Help Parameter Lists Item 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; ... }

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

You might also like