Operator - Library NamespaceΒΆ

This operator is an extension of the IEC 61131-3 standard.

Syntax: <library namespace>.<library identifier>

Example: LIB_A.FB_A

A library module identifier is appended with the library namespace (as a prefix separated by a dot) for unique and qualified access to the library module. The namespace usually coincides with the library name.

Example

A library is included in a project and contains the module FB_A. However, the function block with the same name is already available locally in the project. Identify the library module as LIB_A.FB_A in order to access the library module, not the local function block.

var1 := FB_A(in := 12); // Call of the project function FB_A
var2 := LIB_A.FB_A(in := 22); // Call of the library function FB_A

You can define another identifier for the namespace. To do this, specify a namespace in the project information (library developers: when creating a library project). As an alternative, you can specify a specific namespace for a library in the library manager in the Properties dialog box (application developers: when creating an application).

See also