Toshiba STE 58762 Welding System User Manual


 
STE 58762
2-4
2.3 IDENTIFIERS
In the SCOL robot language, identifiers are used to express commands, program names, variable
names, and labels (which are used to specify program branches). Identifiers must start with an
alphabetic character, although alphabetic
characters, numerals, or any combination of the two may follow. There is no particular limit on
length, although the robot will only differentiate the first ten alphanumeric characters. The robot
does not care whether you use capital or small letters, since it will treat them the same anyway.
For example, as far as the robot is concerned, all four of the following are the same:
T O S H I B A R O B
t o s h i b a r o b
T O S H I B A R O B O T
t o s h i b a r o b o t
With a few exceptions, small letters cannot be input from the teach pendant. Also, you cannot use
any special symbols or include any spaces in the names for identifiers. (Instead, special symbols
or spaces are used to separate identifiers.) For example, the robot will consider the following as
different:
T O S H I B A R O B O T
T O S H I B A R O B O T
“TOSHIBA ROBOT” will be interpreted as two different identifiers, i.e., TOSHIBA and ROBOT.
Some identifiers have already been defined by the SCOL language itself. These are called
reserved words, and you as the programmer cannot use them for any other purpose except for that
already defined. (For example, PROGRAM is a reserved word used to tell the robot when a
program will follow. Therefore you cannot, for example, go and call one of your variables
PROGRAM since the robot will have no idea of what you are talking about.)
A list of reserved words is shown in Appendix B. In addition to SCOL commands, you will find
words used in the computer system and words set assigned for future expansion.
Do not use identifiers with the same name for different meanings. For example, if you decide to
call your program GEORGE, do not go and name any variables GEORGE. If you do, you may get
an error when you try to execute your program. At the very least, you will be sorry when it's time to
debug your program.