6-
2
6
PROGRAMMING
6-1 Basic Contents
6-1
Basic Contents
6-1-1 Robot language and point data
The SRCP30 controller uses the YAMAHA robot language that is very similar to BASIC. It allows
you to easily create programs for robot operation.
In programs created with the YAMAHA robot language, the robot position data (absolute position,
amount of movement) are not expressed in terms of direct numeric values. Instead, point numbers are
used to express the position data indirectly. Point numbers and their corresponding position informa-
tion are stored as point data separately from programs. This means that when you want to change
only the position information while using the same program, all that you have to do is edit the point
data.
Example
Program
Point Data
:
005:
MOVA 0, 100
P0 = 50.00
006:
MOVI 1, 50
P1 = 100.00
:
In the above example, the robot first moves to a position (P0) 50mm from the origin point, and
then moves to another point (P1) 100mm away from that position.
To change the above operation so that the robot first moves to a position (P0) 50.5mm from the
origin point and then moves to another point (P1) 100mm away from that position, just change the
P0 point data to P0=50.50.
6-1-2 Using the TPB to enter the robot language
Robot language commands frequently used to create programs are printed on the lower part of each
number key on the TPB. When creating or editing a program, you can enter robot language com-
mands simply by pressing these keys. To select other robot language commands not printed on these
keys, use the function key matching that command.
During program editing, you can enter numbers (numerical values) with the number keys except
when the edit cursor for robot language command input appears on the TPB screen.
6-1-3 Program specifications
The SRCP30 controller has the following memory capacity:
Total number of programs
: 100 programs (NO0 to NO99)
Max. number of steps per program
: 255 steps
Max. number of steps in all programs together
: 3000 steps
Max. number of points
: 1000 points (P0 to P999)
Summary of Contents for SRCP30
Page 1: ...User s Manual ENGLISH E E104 Ver 1 02 SRCP30 YAMAHA SINGLE AXIS ROBOT CONTROLLER MF100 ...
Page 2: ......
Page 8: ...vi MEMO ...
Page 26: ...2 10 MEMO ...
Page 130: ...8 34 MEMO ...
Page 144: ...9 14 MEMO ...
Page 174: ...10 30 MEMO ...
Page 216: ...12 10 MEMO ...
Page 232: ...14 4 MEMO ...
Page 233: ...15 1 15 SPECIFICATIONS Chapter 15 SPECIFICATIONS ...
Page 238: ...MEMO 15 6 ...