Operands

Constants

You declare constants with the keyword CONSTANT. Constants can be either local or global.

Syntax:

VAR CONSTANT <identifier>:<Type> := <initialization>; END_VAR

See also

Variables

You declare variables as local or global in the declaration section of a POU or in a global variable list.

The position where you can use a variable depends on its data type.

See also

Other