omron — Variable Classes

Variable Classes programs not having a LOCAL or AUTO b. l prog_3 declares an AUTO a and cannot use GLOBAL a. After prog_3 completes, the value of AUTO a is deleted. l prog_4 declares a LOCAL a and, therefore, cannot use GLOBAL a. Unlike the AUTO a in prog_3, however, the value of LOCAL a is stored and is available for any future CALLs to prog_4. Variable Scope Example eV+Language User's Guide, v2.x, 18318-000 Rev A Page 49