27.01.2015 Views

Robotique Modélisation et commande des robots manipulateurs - AVR

Robotique Modélisation et commande des robots manipulateurs - AVR

Robotique Modélisation et commande des robots manipulateurs - AVR

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Contrôleur de robot : programmation<br />

; Define a simple transformation<br />

SET loc_a = TRANS(300,50,350,0,180,0)<br />

; Move to the location<br />

MOVE loc_a<br />

BREAK<br />

; Move to a location offs<strong>et</strong> -50mm in X, 20mm in Y,<br />

; and 30mm in Z relative to "loc_a"<br />

MOVE loc_a:TRANS(-50, 20, 30)<br />

BREAK<br />

; Define "loc_b" to be the current location relative<br />

; to "loc_a"<br />

HERE loc_a:loc_b ;loc_b = -50, 20, 30, 0, 0, 0<br />

BREAK<br />

; Define "loc_c" as the vector sum of "loc_a" and "loc_b"<br />

SET loc_c = loc_a:loc_b ;loc_c = 350, 70, 320, 0, 180, 0<br />

; Once this code has run, loc_b exists as a<br />

; transformation that is compl<strong>et</strong>ely independent<br />

; of loc_a. The following instruction moves the<br />

; robot another -50mm in the x, 20mm in the y,<br />

; and 30mm in the z direction (relative to loc_c):<br />

MOVE loc_c:loc_b

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!