L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 82

Advertising
background image

L-force | PLC Designer

Concepts and Base Components

80

DMS 4.1 EN 03/2011 TD29

Syntax for declaration of a DUT:
TYPE <identifier> : <DUT components declaration>
END_TYPE
The DUT components declaration depends on the type of DUT, e.g. a structure or an
enumeration.

Example:
See in the following two DUTS, defining structures struct1 and struct2; struct2 extends
struct1, which means that you can use "

struct2.a

" in your implementation to access

variable a.

TYPE struct1 :
STRUCT
a:INT;
b:BOOL;
END_STRUCT
END_TYPE

TYPE struct2 EXTENDS struct1 :
STRUCT
c:DWORD;
d:STRING;
END_STRUCT
END_TYPE

Advertising