8-2 Robot Language Syntax Rules

8

ROBOT LANGUAGE

8-2-2 Variables

Variable are used in a program to hold data. The following variables can be used with the SRCP controller.

Point variable P

A point variable can contain a point number. It is used in movement commands such as MOVA and MOVI statements instead of specifying the point number directly. Sometimes the number of program steps can be reduced by using point variables.

Counter array variable C, Counter variable D

A counter variable can contain counter values and is used to specify the pallet work position number in a palletizing program and to count the number of runs. A counter array variable is an array of a total of 32 counter variables that can be selected by the CSEL statement of robot lan- guage.

Flag variable: memory input/output 100 to 147

A flag variable can only have a data value of 1 (ON) or 0 (OFF). It is used in a multi-task program to synchronize between tasks or in a condition judgement program.

Memory I/O from 100 to 131 can be freely turned on or off by the user or their values can be referenced. However, outputs 132 to 147 are controlled by the system so the user can only refer to their values.

Memory I/O description

Type

Memory I/O No.

Meaning

 

 

 

General-

100 to 131

Memory I/O available to the user

purpose

 

The user can freely set this with a DO statement.

 

 

 

 

132

Task 0 (main task) status

 

 

Always set to 1.

 

 

 

 

133

Task 1 status

 

 

1: Task has started. 0: Task has ended or has not yet started.

 

 

 

 

134

Task 2 status

 

 

1: Task has started. 0: Task has ended or has not yet started.

 

 

 

Dedicated

135

Task 3 status

 

 

1: Task has started. 0: Task has ended or has not yet started.

 

 

 

 

136 to 139

Reserved for system use (Always set to 0.)

 

 

 

 

140

X-axis hold status

 

 

1: Hold 0: Non hold

 

 

 

 

141 to 143

Reserved for system use (Always set to 0.)

 

 

 

 

144

X-axis constant movement status

 

 

1: Constantly moving 0: Accelerating, decelerating or in stop

 

 

 

 

145 to 147

Reserved for system use (Always set to 0.)

 

 

 

8-4

Page 102
Image 102
Yamaha SRCP manual Variables, Point variable P, Counter array variable C, Counter variable D