Yamaha SRCP User Manual page 120

Single-axis robot controller
Hide thumbs Also See for SRCP:
Table of Contents

Advertisement

8-4 Robot Language Description
8
22
8-
8-4-28 C+
Function:
Format:
Example:
Explanation:
8-4-29 C-
Function:
Format:
Example:
Explanation:
8-4-30 D
Function:
Format:
Example:
Explanation:
Others:
8-4-31 D+
Function:
Format:
Example:
Explanation:
Adds a specified value to the counter array variable C.
C+
[<addition value>]
C+
100
Adds 100 to the counter array variable C. (C←C+100)
C+
Adds 1 to the counter array variable C. (C←C+1)
This command adds a specified value to the counter array variable C
specified with the CSEL statement. The addition value can be set to any
value from 1 to 65535. If the addition value is omitted, then 1 is added to
the counter array variable C.
Subtracts a specified value from the counter array variable C.
C-
[<subtraction value>]
C-
100
Subtracts 100 from the counter array variable C. (C←C-100)
C-
Subtracts 1 from the counter array variable C. (C←C-1)
This command subtracts a specified value from the counter array vari-
able C specified with the CSEL statement. The subtraction value can be
set to any value from 1 to 65535. If the subtraction value is omitted, then
1 is subtracted from the counter array variable C.
Sets the counter variable D.
D
<counter value>
D
200
Sets the counter variable D to 200.
The counter variable D can be set to any value by the user from 0 to
65535. This command can be used with a D+ or D– statement and a
JMPD statement for a repeating program, and also with a MOVM state-
ment for a palletizing program.
• The counter variable D is not initialized even if the program is reset or
the controller power is turned off. To initialize, rewrite the program.
• The counter variable D is a variable shared with all tasks.
For example, task 0 and task 1 use the counter variable D, the edited
contents of task 1 affect task 0.
Adds a specified value to the counter variable D.
D+
[<addition value>]
D+
100
Adds 100 to the counter variable D. (D←D+100)
D+
Adds 1 to the counter variable D. (D←D+1)
This command adds a specified value to the counter variable D. The
addition value can be set to any value from 1 to 65535. If the addition
value is omitted, then 1 is added to the counter variable D.

Advertisement

Table of Contents
loading

Table of Contents