8-5 Sample Programs

8-5 Sample Programs

8-5-1 Moving between two points

8

ROBOT LANGUAGE

P1 P2

Program

 

 

Comment

[NO0]

 

 

 

001: L

0

 

; Label definition

002: MOVA

1,

100

; Moves to P1

003: MOVA

2,

100

; Moves to P2

004: TIMR

100

 

; Delays for one second

005: JMP

0,

0

: Returns to L0

8-5-2 Moving at an equal pitch

P0

50mm

50mm

50mm

50mm

50mm

Point

P0 Start position

P1 Movement distance: 50mm

Program

 

 

Comment

[NO0]

 

 

 

001: L

0

 

; Label definition

002: MOVA

0,

100

; Moves to P0

003: MOVI

1,

100

; Moves five times at a 50mm pitch

004: MOVI

1,

100

; Moves five times at a 50mm pitch

005: MOVI

1,

100

; Moves five times at a 50mm pitch

006: MOVI

1,

100

; Moves five times at a 50mm pitch

007: MOVI

1,

100

; Moves five times at a 50mm pitch

008: JMP

0,

0

; Returns to L0

8-24

Page 122
Image 122
Yamaha SRCP manual Sample Programs, Moving between two points, Moving at an equal pitch