Naming a program
A program can be given a descriptive name in addition to the program number that the LinStep+ assigns it. Program names must be put inside of square brackets, [program name], at the start of a program. The name can be up to 14 characters, but the first 10 must be unique. Like variables, the name can be any combination of characters.
Programs or subroutines are often named to help “self document” a program. It is usually easier to remember and understand a name than a number. You may call or branch to a program by name.
Suppose your program has 20 different parts and each part has a different program name. Simply name each program so an operator will easily recognize them. When the keypad RUN key is pressed, instead of entering a number, simply scroll through the list of program names until the desired program is displayed. Then press ENTER to run the program.
Example of Naming a Program
Add a name [MINE] to the program.
To insert [MINE]:
1.Press F3.
2.Press 0 (zero) key. Insert brackets.
3.Press ALPHA. Move to next character.
4.Press #5 key. Insert M.
5.Press ALPHA. Move to next character.
6.Press #3 key three times. Insert I.
7.Press ALPHA. Move to next character.
8.Press # 5 key two times. Insert N.
9.Press ALPHA. Move to next character.
10.Press #2 key two times. Insert E.
11.Press the → key to move cursor to the right of the bracket. The program name will be as shown in Figure
Figure
[MINE] AC.3 VE2 DI1 GO
12.Press ESC. You will be prompted as shown in Figure
Figure
Save Program_?
YESNO
MN1853 |