question

Ken L3 avatar image
0 Likes"
Ken L3 asked Ken L3 commented

Join object to each item packed by the previous combiner

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.

FlexSim 21.0.4
flexsim 21.0.4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Ken L3 commented

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.

packItems2steps.fsm


· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image Joerg Vogel commented ·
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 0 ·
Ken L3 avatar image Ken L3 commented ·

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 0 ·