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 one of the system blocks 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.
Example: A TON block declared within the namespace Standard might result 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.

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"