Attribute 'conditionalshow_all_locals'

The pragma is relevant for function blocks and other types contained in a library.

The effect of the pragma is that no local variables are displayed on the user interface if the associated library is installed as a *.compiled library. However, the local variables are displayed on the user interface if the associated library is installed as a *.library.

Affected features:

This is useful when you are developing libraries. As a library developer, you provide function blocks or variables with the pragma. This allows you to specify which identifiers are hidden after being included in a project. If you miss the hidden identifiers later, for example when debugging or further developing the library, you can re-enable their visibility.

Syntax: {attribute 'conditionalshow_all_locals'}

Insertion location: Line above a signature

Sample: Hide all variables

{attribute 'conditionalshow_all_locals'}
FUNCTION_BLOCK FB_ Sample
VAR
    nLocal    : INT;
    nCounter  : INT;
END_VAR

The local variables nLocal and nCounter of the function block FB_Sample are invisible.

See also: