
7-4
7.5 Identifier
7.5.1 Variable
A variable is used to temporarily store data used in a program. There are
global variables, local variables and system variables.
A global variable can be commonly used from any program (task).
A local variable is valid only in one program. Even if another program
executed together also has a variable with the same name, it works only in the
program it belongs to and does not affect the programs mutually.
Global variable
F10=10
Not available to refer
Local variable
JIGU=5
Local variable
LOVE=10
Local variable
LOVE=8
vailable to refe
vailable to refe
vailable to refe
Program 3
Program 2
Program 1
Global Variable and Local Variable
Unexpected accidents can be avoided since the local variable
does not interfere with the variables of other programs.
Comentarios a estos manuales