Local Variables - VARΒΆ

Local variables are declared between the keywords VAR and END_VAR in the declaration section of programming objects.

You have read-only access to local variables by using the instance path.

You can extend local variables with an attribute keyword.

Example

VAR
    iVar1 : INT;
END_VAR

See also