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

  • 26fbe6a158721888c0a8640e00a479cd-ID_d533d252c37bd547c0a864635eea2380

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