Library namespace, Enumeration name, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual
Page 1093

L-force | PLC Designer
Programming Reference
DMS 4.1 EN 03/2011 TD29
1091
Library namespace
Scope operator: Extension to the IEC 61131-3 standard.
The library namespace can be used to explicitly access the library components.
Example: If a library which is included in a project, contains a module "fun1" and there
is also a POU "fun1" defined locally in the project, then add the "namespace" of the
library can be added to the module-name in order to make the access unique. The
syntax is:
By default the "namespace" of a library is identic with the library name, however you
can define another one either in the Project Information when creating a library
project, or later in the Properties dialog for a library.
Example:
There is a function "fun1" in library "lib". There is also a function "fun1" declared in the
project. By default the namespace of library lib is named "lib":
res1 := fun(in := 12); // call of the project function fun
res2 := lib.fun(in := 12); // call of the library function fun
Enumeration name
Scope operator: Extension to the IEC 61131-3 standard.
The type name of enumerations can be used to disambiguate the access to an
enumeration constant. In this case "
name. So it is possible to use the same constant in different enumerations.
Example:
The constant "Blue" is a component of enumeration "Colors" as well as of enumeration
"Feelings".
color := Colors.Blue; // Access to enum value Blue in type Colors
feeling := Feelings.Blue; // Access to enum value Blue in type Feelings