The pragma {attribute 'hide_all_locals'} helps you to prevent all local variables of a signature from being displayed within the functionality of listing components or the input assistant. This attribute is identical to assigning the attribute hide to each particular of the local variables.
{attribute 'hide_all_locals'}
The function block myPOU is implemented using the attribute:
{attribute 'hide_all_locals'}
FUNCTION_BLOCK myPOU
VAR_INPUT
a:INT;
END_VAR
VAR_OUTPUT
b:BOOL;
END_VAR
VAR
c,d:INT;
END_VAR
In the main program 2 instances of function block myPOU are defined:
PROGRAM PLC_PRG
VAR
POU1, POU2: myPOU;
END_VAR
When assigning an input value to POU1, the functionality of listing components that works on typing POU1 in the implementation part of PLC_PRG will display the variables a and b. The hidden local variables c or d will not be displayed.