I am using a PickAndPlace robot to put tires from a conveyor on a pallet.
The pallet is a custom simulation object which derives from the store object.
The problem I have is that I cannot tell the PickAndPlace robot to put the tire on a specific place in the store.
I always get an error saying that i can use indices only on lists, arrays and objects with a capacity with more than 1.
This is where i get the error inside the method where i set the robot's target.
It works fine when I use a store object. But with my custom simulation object which derives from the store it doesn't work.
Hope you can help me.
Greetings Johnny Camenzind
Thanks for your fast reply.
No it's not an MU, it's a custom simulation object.
I created it according to the Plant Simulation help page (Step-by-Step Help > Modeling in the 3D Viewer > Creating an Animatable Object > Create the Required Simulation Object)
Since it's a simulation object I can place it anywhere (like a conveyor or a pick and place robot).
The only difference is that it's not a built in simulation object.
It's custom and based on the Store object.
I added the model to the attachements.
Be aware that the palletizing process starts as soon as a stock contains more than 50 tires.
In the model I am currently using a pallet is based on a PickAndPlace robot.
This is because at first I thought that the PickAndPlace robot is the only simulation object where the exact positions for each MU can be specified.
You see my goal is to get the robot to move its arm exactly to the position where the tires will be placed on the pallet.
The problem with using a PickAndPlace as the base is that my palletizer robot isn't moving to the exact position where the tires should be placed.
Thanks in advance!
Oh yes I'm sorry the code should ofcourse refer to pallet1a.
The model is maybe a little bit confusing since I tried a few things and didn't propperly cleanup before i sent it to you.
I made a new simple model which should make my question a little bit more clear.
In this model I can tell the P&P exactly where to place the elements by configuring the MU animations on the store.
Now how could I do something like that in my model with the tires?
The P&P should move the tires exactly to the position where they appear on the pallet.
I hope you can now better understand my question.
Thank you for your time