STE 58762
- -
2-20
2.7 REMARKS AND COMMENTS
The SCOL language allows you add comments to your program in order to make it easier to
understand (and debug). Comments can be entered by using the teach pendant to type in
whatever you want to say. However, you have to use one of the following formats so that your
comments do not get mixed in with the program itself.
(1) REMARK command
You can write what you want to say after a REMARK command. The computer will ignore
everything from the REMARK command to the end of the line. This keeps your comments
separate from the program.
Example:
REMARK THIS PROGRAM WAS WRITTEN BY ME
(2) Single quotation mark
Everything written after a single quotation mark (') until the end of the line will be ignored by the
program. The nice thing about this method is that you can write comments on the same line as a
command to keep track of what is going on.
Example)
MOVE P1 'THIS COMMAND MOVES THE ROBOT TO P1
However, the ' mark does not have to follow a command. The following will also work:
'THIS IS A MEANINGLESS EXAMPLE