Library namespace

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

Syntax:

<library namespace>.<library function block identifier>

A library function block identifier is extended with the library namespace (prefixed with a dot as separator) to access the library function block in an unambiguous and qualified manner. Usually the namespace and the name of a library are the same.

Example:

A library is integrated in a project and contains a function block FB_Sample. However, a function block with the same name is already instantiated locally in the project. Use libA.fbSample as the name for the library block, in order to access the library block, rather than the local function block.

nVar1 := fbSample(nIn := 12); // Call of the project function block FB_Sample
nVar2 := lib.fbSample(nIn := 22); // Call of the library function block FB_Sample

You can define a different identifier for the namespace. To this end, in your capacity as library developer enter a namespace in the project information when you create a library project. Alternatively, you can specify a special namespace when you create a PLC project in the library manager for a library in the Properties view.