Ai 412 Eddl
Ai 412 Eddl
4.
4.4.1
field device
SCADA
network adapter
handheld device
modem
13.32
9.8
0.8
2004 April, HK
2004 April, HK
Objective:
define how a device presents itself to a hand-help terminal or an engineering station
2004 April, HK
standard volume flow standard mass flow steam quality energy flow line pressure percent concentration net volumetric flow
2004 April, HK
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
2004 April, HK
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
2004 April, HK
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
PRE_EDIT_ACTIONS {methods} POST_EDIT_ACTIONS READ_TIME_OUT expression; WRITE_TIME_OUT expression; VALIDITY boolean; RESPONSE_CODES response_code_name; }
2004 April, HK
// 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.
2004 April, HK
10
// 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;
2004 April, HK
11
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.. }
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
METHOD name { attribute, attribute, ... }
// see "CLASS" DEFINITION c_compound_statement ANSI "C" subset, may not use pointers, initializers, enumerations, structures, unions,...
2004 April, HK
13
DDL Blocks Blocks are segments of Function Block Language defined in FMS
BLOCK name { attribute, attribute, Characteristics ... Label } Parameters Help Parameter Lists Item Lists
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; ... }
2004 April, HK
14
2004 April, HK
15
2004 April, HK
16