Declaring a POU within a namespace

How to declare a POU already created within a →namespace (this is done in the →graphical FBD-editor):

  1. Make the tab Namespaces visible.

  2. In the field Current namespace, enter a text. The text must be an →IEC-identifier or a fully qualified name.
    A fully qualified name consists of a sequence of namespace identifiers separated by . (dots).
    Examples for namespaces: Standard, Standard.Timers, Standard.Timers.HighResolution, Standard.Counters

  3. Press the Enter-key or click anywhere outside the field to use the text as current namespace. Press the ESC-key, if you want to discard the text.

  4. Save the FBD-editor so that the POU is declared within the namespace.

  5. Check the messages in the Problems view whether →calls of the current POU are now reported as faulty.

Restriction

Avoid creating POUs with the name of a language element from the global namespace and declaring them within a namespace. Reason: At present, it is not possible to use language elements with the same name from the global namespace. This restriction applies to all language elements declared in the global namespace, but in particular to the system blocks. logi.CAD 3 changes the call of the language element declared in the global namespace to the call of the language element declared in the same namespace.
Example: A TON block declared within the namespace Standard results in the fact that the standard TON block of the global namespace cannot be used. In particular, if Standard is entered as a used namespace. When calling TON, the TON block from the same namespace Standard will be called instead of the standard TON block.

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg It is also possible to specify a namespace when creating the FBD-object (see "Creating POU in FBD ") or within the application navigator (see "Actions with folders/objects in context with namespaces").

How to change a current namespace for a POU: Overwrite the text entered in the field Current namespace.

How to delete the current namespace for a POU: see "Deleting/removing namespaces for a POU"