beautypg.com

Robot language – Yamaha SRCP User Manual

Page 128

background image

8-

30

8

ROBOT LANGUAGE

8-5 Sample Programs

Program

Comment

[NO0]
001: L

0

; Label definition

002: WAIT

7,

1

; Waits for confirmation ON of the selected program

Handshaking

003: DO

0,

1

; Program selection start turns on

004: WAIT

7,

0

; Waits for confirmation OFF of the selected program

005: JMPF

1,

1,

0

; Jumps to L1 of NO1 when input is 0

006: JMPF

1,

2,

1

; Jumps to L1 of NO2 when input is 1

007: JMPF

1,

3,

2

; Jumps to L1 of NO3 when input is 2

008: JMPF

1,

4,

3

; Jumps to L1 of NO4 when input is 3

009: JMPF

1,

5,

4

; Jumps to L1 of NO5 when input is 4

010: JMPF

1,

6,

5

; Jumps to L1 of NO6 when input is 5

011: JMPF

1,

7,

6

; Jumps to L1 of NO7 when input is 6

012: JMPF

1,

8,

7

; Jumps to L1 of NO8 when input is 7

013: JMPF

1,

9,

8

; Jumps to L1 of NO9 when input is 8

014: JMPF

1,

10,

9

; Jumps to L1 of NO10 when input is 9

015: JMPF

1,

11,

10

; Jumps to L1 of NO11 when input is 10

016: JMPF

1,

12,

11

; Jumps to L1 of NO12 when input is 11

017: JMPF

1,

13,

12

; Jumps to L1 of NO13 when input is 12

018: JMPF

1,

14,

13

; Jumps to L1 of NO14 when input is 13

019: JMPF

1,

15,

14

; Jumps to L1 of NO15 when input is 14

020: JMPF

1,

16,

15

; Jumps to L1 of NO16 when input is 15

021: JMP

0,

0

; Returns to L0 of program NO0

[NO1]
001: L

1

; Label definition

002: DO

0,

0

; Program selection is complete (selection start OFF)

- - - - -

; Actual program operation

JMP

0,

0

; Returns to L0 of program NO0

[NO2]
001: L

1

; Label definition

002: DO

0,

0

; Program selection is complete (selection start OFF)

- - - - -

; Actual program operation

JMP

0,

0

; Returns to L0 of program NO0

:

Programs NO3–NO15 should be created in the same way

:

[NO16]
001: L

1

; Label definition

002: DO

0,

0

; Program selection is complete (selection start OFF)

- - - - -

; Actual program operation

JMP

0,

0

; Returns to L0 of program NO0