Requirement: A POU or GVL of a project is open.
-
Click “Edit Auto Declare”.
The “Declare Variable” dialog opens.
-
Select the desired scope for the variable from the list box “Scope”.
-
Specify a variable name in the input field “Name”.
-
Select the desired data type from the “Data type” list box.
-
If the initialization value deviates from the standard initialization value, enter an initialization value for the variable.
-
Click “OK” to confirm your input.
The newly declared variable is listed in the declaration part of your POU.
With the help of pragmas in the declaration part you can affect the processing of the declaration by the compiler.
-
See also: ⮫ Declare Variable