Declaration Part

All variables to be used only in this POU are declared in the declaration part of the POU. These can include: Input Variable, output variable Output Variable, Input and Output Variables, Local Variables, remanent variables Remanent variables and Constants, Typed Literals. The declaration syntax is based on the IEC61131-3 standard.

Regard the possibility of using ‘Save as template’ for objects of type ‘Global Variables’, ‘Data types’, ‘Function’, ‘Function Block’ or ‘Program’ .

Note

Regard the possibility of using pragmas Pragmas, Overview to affect the properties of a variable concerning the compilation resp. precompilation process.

An example of a correct declaration of variables in CoDeSys-Editor:

../_images/80275edd43757c630a33139006eab46b1