Join object to each item packed by the previous combiner

Join object to each item packed by the previous combiner

ken_l3
Not applicable
44 Views
3 Replies
Message 1 of 4

Join object to each item packed by the previous combiner

ken_l3
Not applicable

[ FlexSim 21.0.4 ]

DoubleCombinerEx.fsmI have attached an example. I would like to try to join or simulate the joining of two objects. The one object that was previously packed in a container will be what the second object is attached to. I am trying to simulate a part being placed on a pallet and moving to the next workstation that attaches another part. I have been unsuccessful in trying to join the objects as well as changing the 3D shape of the object in the flow bin.

0 Likes
Accepted solutions (1)
45 Views
3 Replies
Replies (3)
Message 2 of 4

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

It is question of pointers. The item in a combiner is a container item entering him from entry port number one. Any object on this container is a subnode. If you pack an item on already packed container, then this item gets onto the same level of the previous packed item. If you want to pack it on the previously packed item you have to move it by your own logic. Or in your case you have to change every shape of the items in the container by a loop. You find such a loop in the queue On Message trigger.38789-packing-on-packed-top.gif

packItems2steps.fsm

0 Likes
Message 3 of 4

joerg_vogel_HsH
Mentor
Mentor
int steps = current.first.subnodes.length; // items in container
for (int index = 1; index <= steps; index++)
{
   setobjectshapeindex(current.first.subnodes[index],1);// convert to box
}
0 Likes
Message 4 of 4

ken_l3
Not applicable

Thank you, this will get me what I need. I will be "attaching" a box on the side of a cylinder and they will be this way through the rest of the simulation. In your model, I was able to separate the objects from the pallet and send them down a conveyor individually. Visually this is what I was looking for.

0 Likes