May 26, 2019, 10:18:53 AM
Robotforum | Industrial Robots Community

 Simple Stacking Programme

normal_post Author Topic:  Simple Stacking Programme  (Read 261 times)

0 Members and 1 Guest are viewing this topic.

May 17, 2019, 11:51:26 AM
Read 261 times
Offline

tobyhansford@wbb


Hello,

I am very new to robot programming, I am trying to create a simple stacking programme using a Fanuc m-16i . I would like 5 positions at 50mm high, I am thinking that I will need to use PR for this and the LPOS to record the height, but I am a little unsure how to write the programme for this?

Today at 10:18:53 AM
Reply #1

Advertisement

Guest

May 17, 2019, 12:43:52 PM
Reply #1
Offline

Nation

Global Moderator
While there are several ways to accomplish this, I would use the OFFSET command.

Code: [Select]
  :  !Set PR100 as LPOS, in case someone stored it as Joint ;
  :  !PR[100] was picked arbitrarily. You can use whatever free PR you want.
  :  PR[100]=LPOS ;
  :  PR[100,1] = 0 ; !X offset
  :  PR[100,2] = 0 ; !Y offset
  :  PR[100,3] = R[10:Stack Height]*50 ; !Z offset, which is your stack height*50mm. Fist part should have a stack height of 0.
  :  PR[100,4] = 0 ; !Rx offset
  :  PR[100,5] = 0 ; !Ry offset
  :  PR[100,6] = 0 ; !Rz offset
  :  ;
  :  !Move above ;
  : L P[1:Above] 500mm/s CNT25 ;
  : L P[2:Drop] 250mm/s FINE OFFSET, PR[100] ;
  : CALL OPEN_GRIPPER ;
  :  ;
  : R[10:Stack Height]=R[10:Stack Height]+1;
  : IF R[10:Stack Height]=5 THEN ;
  : !Tell PLC to release pallet ;
  : DO[100:Pallet Done]=PULSE, 1 sec;
  : R[10:Stack Height]=0;
  : ENDIF ;
  :  ;
  :  !Move above ;
  : L P[1:Above] 500mm/s CNT25 ;
Check out the position converter I wrote here!

May 18, 2019, 05:50:36 AM
Reply #2
Offline

tobyhansford@wbb


Thank you. That worked perfectly.

May 20, 2019, 04:57:02 PM
Reply #3
Offline

alive15


If I understand correctly, you used the offset command to move the robot without teaching it an actual position? I didn't know that was possible. Can you do that on R30iA or R30iB? Also, what is the recommended coordinate system to use?

Thanks

May 20, 2019, 07:04:39 PM
Reply #4
Offline

Nation

Global Moderator
I think the offset command has been around since the early days. Yep, you can do that on the latest gen controllers.

Offset works in your current user frame, whatever that is set to.


Share via facebook Share via linkedin Share via pinterest Share via reddit Share via twitter

xx
Krc 4 stacking robot

Started by owljunior on KUKA Robot Forum

1 Replies
2039 Views
Last post May 22, 2013, 04:29:55 PM
by SkyeFire
xx
Part stacking

Started by David.mms on Fanuc Robot Forum

1 Replies
424 Views
Last post July 05, 2018, 08:04:01 AM
by andreic
xx
Part stacking

Started by David.mms on Fanuc Robot Forum

2 Replies
617 Views
Last post July 06, 2018, 06:16:12 AM
by NPG92
xx
Block stacking issue

Started by M3 on Fanuc Robot Forum

0 Replies
253 Views
Last post October 23, 2018, 03:16:38 PM
by M3