Yamaha SRCP manual 12 P, 13 P+, 14 P, Format Example Explanation

Models: SRCP

1 246
Download 246 pages 58.82 Kb
Page 110
Image 110

8-4 Robot Language Description

8-4-12 P

Function:

Sets a point variable P.

Format:

P

<point number>

Example:

P

200

 

Sets a point variable P to 200.

Explanation:

The point variable can contain a point number as a variable, which can

 

be from 0 to 999. By using a movement command such as MOVA with

 

a P+ or P- statement, the number of steps required to create a repeating

 

program can be reduced.

Other:

• The contents of point variable P are retained even when the controller

 

 

power is turned off, but when the program is reset or when the pro-

 

 

gram reset is applied for example by switching the execution program,

 

 

the point variable P will be initialized to 0.

 

Point variables P in a task are independent of those in other tasks. For

 

 

example, the definition and edited contents of a point variable used in

 

 

task 1 do not affect the point variable used in task 0.

8-4-13 P+

 

 

Function:

Adds 1 to a point variable P.

 

 

Format:

P+

8

 

 

Example:

P+

 

Explanation:

Adds 1 to a point variable P. (PP+1)

 

 

Adds 1 to a point variable P.

 

 

ROBOT LANGUAGE

8-4-14 P-

Function:

Subtracts 1 from a point variable P.

Format:

P-

Example:

P-

 

Subtracts 1 from a point variable P. (PP-1)

Explanation:

Subtracts 1 from a point variable P.

8-12

Page 110
Image 110
Yamaha SRCP manual 12 P, 13 P+, 14 P, Format Example Explanation