You can declare variables either locally in the declaration part of a POU or in a global variable list (GVL) or in a persistent variables list or in the I/O mapping of devices.
Refer to the chapter Variables Declaration for information on the declaration of a variable, including the rules concerning the variable identifier and multiple use.
It depends on the data type where a variable can be used.
You can access available variables through the
.