Thank for the program sample;)
It did work in a way, but it did go to DelPos1-5 at once.
It must first go to Delpos 1 and next time Delpos 2.
I see that from a other post the did it like this.
Did copy the text:
I figured out how add multiple layers to a palletize function and we can also brainstorm on how to get the separator sheet in there.
Here is how i did it.
I have a pallet pattern of the first layer of whatever i need (in my case a list).
I make 2 variables: LayerHeight (integer) and TotalHeight (integer).
In my pallet function i add an “after end”. In this function i increment LayerHeight and TotalHeight with 1.
Now to have the robot change in height for every layer, i add the following line to the after end function
“pose_1[2] := pose_1[2] + ProductHeight”
ProductHeight here is the height of you product (Not in mm but in meters!!!)
and pose_1 is the position variable used by the pallet function. You need to check whether your program uses pose_1 or some other number
Now to add the separator sheet you can do something like the following:
You want to add a sheet every 2 layers right?
In the after end function, you check if your layer height = 2, then run a program to pick a separator sheet and place it. You need to make the height variable here again. You can do this the same way, or you use the get_actual_tcp() function. be creative
Then at the end of your separator sequence you write LayerHeight back to 0 to reset the.
Obviously the names of variables can be changed to whatever your like and what fits your project.
Let me know if helped you figure it out and if you have things to add for future readers with the same problem, i’m curious!
Kind Regards,
Jan
And here is the link to the post