Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

"Wait for Part" Python Program

#1
Attached is the current palletizing workspace I have. Where would I be able to get assistance writing the python program that will make the robot wait at the approach position above the conveyor feeding the boxes until the box gets within range of the robot? This is my first time using robodk for palletizing. I copied the current pythos program from the "Example-06.e-Conveyor with 2 UR robots" as it is very similar to what I need my robot to do.


Attached Files
.rdk   PewPallet.rdk (Size: 1.87 MB / Downloads: 407)
#2
Hi Tsmpson3, 

Instead of trying to detect the next part, I would recommend you to start with something a bit simpler. 

I attached two python macros that you can add to your station and call when you need it. 
The "NextBox" will move the conveyor forward a certain distance each time it's called. 
And "InitConvPosition" will bring back the conveyor to "Zero".
Make sure to edit the conveyor name and distance traveled before running the macro. 

Hope it helps. 
Jeremy


Attached Files
.py   NextBox.py (Size: 636 bytes / Downloads: 410)
.py   InitConvPosition.py (Size: 562 bytes / Downloads: 385)
Find useful information about RoboDK and its features by visiting our Online Documentation and by watching tutorials on our Youtube Channel


  




Users browsing this thread:
1 Guest(s)