Using the list of the used namespaces

If the current FBD-editor should access →blocks or →data types outside of the current →namespace, no special steps are required. As usual, you create the →calls to such blocks (see "Creating value fields and calls") or you declare the →variable based on the data type (see "Declaring variables in FBD").

Good to know

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/lightbulb.svg The specifications that are required for the block or data type outside of the current namespace are automatically entered with the fully qualified name of the element by logi.CAD 3.
A fully qualified name consists of a sequence of namespace identifiers separated by . (dots). The identifier of the block or of the data type concludes the fully qualified name. Example: The fully qualified name is Standard.Timers.HighResolution, if a call of the function TimeTick has been inserted and TimeTick has been declared within the namespace Standard.Timers.HighResolution.

The fully qualified name for →function blocks and/or data types (in case of variables) is also visible within the column Data type of the list of the declared variables.

As logi.CAD 3 automatically manages the access to elements within a namespace. usually you do not have to add namespaces or change them afterwards. But logi.CAD 3 provides some features for a manual intervention anyway:

  • How to add an existing namespace as used namespace:

  1. In tab Namespaces : Open the context menu for the field Used namespaces and select the command Add namespace...

  2. In the dialog, select the appropriate namespace from the list under Namespace (e.g. Standard.Timers.HighResolution) and click Add.
    Result: The namespace is listed under Used namespaces.
    Internally, a used namespace corresponds to a USING namespace directive you might know when creating ST-code (see "Namespaces in ST: usage" for more information).

  • How to delete a used namespace: See "Deleting/removing namespaces for a POU".

  • Due to reasons of representation, if you prefer to not display the fully qualified name within the column Data type, it is possible to toggle the representation for function blocks and/or data types (not provided for →functions).

    1. Make the list of declared variables visible.

    2. Select the variables/instances in the list.
      Press Ctrl+A to select all elements in the view. Or press and hold the Shift- or the Ctrl-key to select several variables/instances.

    3. From the context menu, select Toggle Fully Qualified Name of Type. Alternative: Press the Ctrl+Shift+N.
      Result: The namespace is now visible within the column Namespace of the list of the declared variables . Internally, however, the used elements are still identified by the fully qualified name.

    4. If you want that the fully qualified name is displayed again, select Toggle Fully Qualified Name of Type again or press Ctrl+Shift+N again.

How to check whether the FBD-editor accesses blocks or data types outside of the current namespace:

  1. Check the column Data Type and/or Namespace within the list of declared variables.
    If a fully qualified name is entered within the column Data Type or a namespace is entered within the column Namespace, this function block or the data type (in case of a variable) is located outside of the current namespace.

  2. Point to the call of a function. If the function is from a namespace, the tooltip displays the fully qualified name.

  3. Check the field Used Namespaces within the tab Namespaces.
    If namespaces are entered, you have added a used namespace.
    images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/error.svg Restriction: If there is a USING instruction within the application navigator, this used namespace is not listed in the field Used Namespaces within the tab Namespaces . Details: See "Assigning USING for accessing a different namespace folder".