Debugging a GRIP Program


Set Variable

Allows you to set a variable one value at a time; you cannot set a range using this option. When you choose this option, the system displays the following options:

PROG_NAME allows you to enter the name of the subprogram in which you wish to set the variable. If no name is entered, the system defaults to the current subprogram.

VAR_NAME allows you to enter the name of the variable you wish to set.

If the specified variable is a number, the system sends the subprogram name, variable name, and its original value to the listing device. If the variable is a numerical or string array, the system sends the variable name, index, and original value of that index. The system then prompts you to enter a new value.

If the specified variable is a string, the system sends the subprogram name, variable name, its original value, and (for arrays) any indices and their values to the listing device. The system then prompts you to enter a new string.

After specifying the new variable, the system sends the new value to the listing device and returns to the Set Variable menu.