EasyManua.ls Logo

Panasonic VR2 Series - Page 230

Panasonic VR2 Series
236 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
18-11
Sample program 1 (Pallet01.prg )
Program Description
TOOL 1:TOOL001 Specify a tool
JUMP START Jump to START
MOVEL P1 5.00m/min Specify the shunting point (Before insertion)
MOVEL P2 5.00m/min Specify the inserting point
MOVEL P3 5.00m/min Specify the row pitch (P2-P3 distance)
MOVEL P4 5.00m/min Specify the column pitch (P2-P4 distance)
:START Operation starting point
SET GI001 =5 Specify the number of rows.
SET GI002 =4 Specify the number of column.
SET LI001 =0 Reset the row counter.
SET LI002 =0 Reset the column counter.
CNVSET GD002 P2 Get coordinates only.
CNVSET GD003 P3 Get coordinates only.
CNVSET GD004 P4 Get coordinates only.
SUB GD003 GD002 Calculate row pitch.
SUB GD004 GD002 Calculate column pitch
:LOOP2 For row loop
:LOOP1 For column loop
[C ]CALL PICK_UP.prg Pick up a work.
SET GD001 GD003 Assign the row pitch value to the shift variable.
CNVSET LR001 LI001 Convert the row counter into a real number.
MUL GD001 LR001 Multiply the row pitch by (the row counter value –1).
SET GD005 GD004 Assign the column pitch to the shift variable.
CNVSET LR001 LI002 Convert the column counter into a real number.
MUL GD005 LR001 Multiply the column pitch by (the column counter value –1).
ADD GD001 GD005 Row shift value + Column shift value.
SHIFT-ON ROBOT =GD001 Shift (on the robot coordinate system).
MOVEL P1 15.00m/min Move to the shunting point before insertion.
MOVEL P2 0.50m/min Move to the inserting point.
[C ]CALL WORK_Rel.prg Release the work.
MOVEL P1 5.00m/min Move to the shunting point.
SHIFT-OFF End shift
INC LI001 Add to the row counter.
IF LI001 <GI001 THEN JUMP LOOP1 ELSE NOP If the row counter is less than the preset number of rows,
then jump to LOOP 1.
SET LI001 =0 Reset the row counter.
INC LI002 Add to the column counter.
IF LI002 <GI002 THEN JUMP LOOP2 ELSE NOP If the column counter is less than the preset number of
columns, jump to LOOP 2.
GOHOME MOVEP GPHOME 15 m/min
Move to the shunting point.
STOP End of operation.

Table of Contents

Related product manuals