Toshiba STE 58762 instruction manual - 1-4 -

Page 11

STE 58762

If we were to write a program in SCOL for the previous example (in which we attach a part from a parts feeder to a workpiece on a conveyor), it would look like this:

PROGRAM ASSEMBLY

 

MOVE B

 

Move to Point B.

OPEN1

 

Open Hand 1.

MOVE A

 

Move to Point A.

CLOSE1

 

Close Hand 1.

DELAY

0.5

Wait 0.5 seconds before grabbing the part.

MOVE B

 

Move to Point B.

MOVE C

 

Move to Point c.

MOVE D

 

Move to Point D.

OPEN1

 

Open Hand 1.

DELAY

0.5

Wait 0.5 seconds before letting go off the part.

MOVE C

 

Move to Point c.

MOVE B

 

Move to Point B.

END

 

 

The word PROGRAM marks the beginning of a program and the word END marks the end of a program. The name of this particular program is ASSEMBLY. The commands should not be too hard to understand. MOVE A means to move to Point A. OPENi and CLOSE 1 mean to, respectively, open and close Hand 1. (There are two hands.) DELAY 0.5 means not to do anything for 0.5 seconds. Furthermore, the locations of Points A, B, C and D are defined (taught) beforehand by physically guiding the robot (in the teaching mode) to these points. (To put it another way, the location of these points is not defined by the program itself.)

By arranging a series of commands in the order that you want things done, SCOL allows you, the programmer, to express just what the robot is supposed to do in terms that the robot understands.

1-4

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