Toshiba STE 58762 Remarks and Comments, - 2-20 -, Remark this Program WAS Written by ME

Page 34

STE 58762

2.7REMARKS 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

2-20

Image 34
Contents Industrial Robot SR Series Robot Language Manual STE- i - Preface - ii -- iii - Variables and Constants ・・・・・・・・・・・・・・・・ Table of Contents AN Outline of Robot LanguageRemarks and COMMENTS・・・・・・・・・・・・・・・・・ Things to Watch OUT for When Writing a PROGRAM・・ Explanation of Robot CommandsThings not to do When Programming ・・・・・・・・・ Program Examples Programming Hints and WarningsAppendix a List of Commands ・・・・・・・・・・・・・・・・・HOW to Read Symbols ・・・・・・・・・・・・・・・ Appendix B List of Reserved Words ・・・・・・・・・・・・・Robot Movement Chapter AN Outline of Robot Language- 1-1 - - 1-2 - Robot movement- 1-3 - Robot Language- 1-4 - Types of Commands - 1-5 -- 1-6 - - 1-7 - Files Program ConfigurationChapter Writing Programs in Robot Language ProgramPositional Data - 2-2 -Character SET - 2-3 -- 2-4 - IdentifiersS H I B a R O B O T Scalar Data Variables and Constants- 2-5 - - 2-6 - Vector Data - 2-7 -- 2-8 - - 2-9 - STE System Variables - 2-10 -System Constants - 2-11 -Mathematical Functions - 2-12 -Computational Expressions - 2-13 -- 2-14 - AND, or- 2-15 - - 2-16 - - 2-17 - - 2-18 - Logical ExpressionsIf J1 then Goto BRANCH1 Else Goto BRANCH2 - 2-19 - LabelsLOOP1 Move P1 Goto LOOP1 - 2-20 - Move P1 This Command Moves the Robot to P1Remarks and Comments Remark this Program WAS Written by MEProgram Declaration Programs- 2-21 - STE Subprograms - 2-22 -Program Main Remark *** Sample - 2-23 -Program Subexample M1, M2, M3 Print K ENDLibrary - 2-24 -STE Multitask Processing - 2-25 -- 2-26 - - 2-27 - Global Global Variable Definition- 2-28 - END ProgramDIM D10 AS INT - 2-29 -DIM F5 AS Point