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

Page 353

Advertising
background image

L-force | PLC Designer

Menu Commands sorted by Categories

DMS 4.1 EN 03/2011 TD29

351

Automatically generate POUs for property access: If this option is activated,
automatically function POUs will be created in the POUs window, which can be used to
access the project properties values in the application program. Special functions will
be created in this case for the properties 'Company', 'Title' and 'Version' (GetCompany,
GetTitle, GetVersion). For accessing additionally defined properties, a respective
function for each property type (GetTextProperty, GetBooleanProperty,
GetNumberProperty, GetVersionProperty) will be available. In this case call the
appropriate function, pass the property key (as defined in the properties tab) as an
input, and you will get returned the property value.
Example: The following property is defined in the Properties tab: Key = nProp1, Type =
Number, Value = 333. To get the value in the application program, call function
GetNumberProperty, for example showprop:=GetNumberProperty("nProp1");
showprop must be declared as type DINT in this case.

4. Statistics:

Abb. 156 Project Information dialog, Statistics

The table shows an overview on the objects used in the project: See the total Number
of objects
on top as well as in the table below the number of objects (Count) per
Object type.

Advertising