12-2-7

Creating a New Program

Configuring Parameter Variables and Inputting Their Values

If you input the names of variables used in a program into the parameter variable box when inputting or editing a program on the Program Editor window, you will be able to input values for the variables on the Program Loader window when you run the program.

Example

Parameter variable box

Indicates variables named “A” and “B” are used within the program.

When running the program, inputting values for “A” and “B” calculates the total of the two values.

Program Input

Parameter value input box

Inputting 1, 2 before running the program assigns

A = 1 and B = 2.

Executing the program produces the result

A + B = 1 + 2 = 3.

Program Loader window

Tip

When running a program that includes parameter variables, be sure to correctly specify the values of the parameters. An error will occur if the number of values you input is not consistent with the number of parameter variables.

20060301