omron — AUTO program instruction

AUTO program instruction AUTO program instruction Syntax AUTO type variable, ..., variable Function Declare temporary variables that are automatically created on the program stack when the program is entered. Usage Considerations AUTOmatic variables have an undetermined value when a program is first entered (but they are not necessarily undefined), and they have no value after the program exits. AUTO statements must appear before any executable instruction in the program-only the .PROGRAM statement, comments, blank lines, GLOBAL and LOCAL statements, and other AUTO statements may precede this instruction.

If a variable is listed in an AUTO statement, any global variables with the same name cannot be accessed directly by the program. The values of AUTOmatic variables are not saved by the STORE or restored by the LOAD monitor commands. Parameters type Optional keyword REAL, DOUBLE, or LOC, indicating that all the variables in this statement are to be single precision, double precision, or location variables. (A location can be a transformation, precision point, or belt variable.) If this keyword is omitted, the type of each variable is determined by its use within the program. An error is generated if the type cannot be determined from usage.

variable Name of a variable of any data type available with eV+ (belt, precision point, real-value, string, and transformation). Each variable can be a simple variable or an array. If the type parameter is specified (see below), all the variables must match that type. Array variables must have their indexes specified explicitly, indicating the highest valid index for the array. eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 73