question

Ryusuke T avatar image
0 Likes"
Ryusuke T asked Ryusuke T commented

Objects overlap

When I store different box sizes in the combiner, the objects overlap.

How can I prevent this from overlapping?

1632207971554.png


Can you give me some advice?

overlap.fsm

FlexSim 21.1.5
combineroverlap
1632207971554.png (830.8 KiB)
overlap.fsm (26.8 KiB)
5 |100000

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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Ryusuke T commented

The default packing logic that is set for a pallet only looks at the last item that entered to determine the position of the current one (indirectly assuming that all items have the same size).

Creating a packing logic that neither creates overlaps nor large gaps regardless of item sizes is actually quite a complex task. If the pallet has to hold varying numbers of boxes of different sizes, you will probably have to live with imperfect visuals.

If you know that the number of items of each size will always be the same, you could define a custom packing logic that assigns each item its proper position. This can be done in the FlowItem Bin.

1632214086124.png

In the attached model I created a custom packing method for the number and sizes of items in your model and made a duplicate of the pallet item use it.

CustomPacking.fsm

If you have any question about the code, feel free to ask.


1632214086124.png (161.3 KiB)
custompacking.fsm (48.3 KiB)
· 1
5 |100000

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

Ryusuke T avatar image Ryusuke T commented ·

@Felix・メン・モールマン

Thank you for your advice.

I understood that it is necessary to customize the packing in order to deal with it, and that it is difficult without some fixed information.

I would like to take advantage of the custom code I received.


Thank you.

0 Likes 0 ·
Wessel VH avatar image
0 Likes"
Wessel VH answered Ryusuke T commented

Good day,

Please refer to the following example model.

I used triggers to change the color and shape of one of the boxes before sending it to the combiner. You will see that FlexSim uses its built in packing logic to stack the boxes but it will create open spaces between the various sizes as it packs.


The stacking error can be caused by your custom objects and their reference points that are not clearly defined.

Example model.fsm


example-model.fsm (26.4 KiB)
· 1
5 |100000

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

Ryusuke T avatar image Ryusuke T commented ·

@Wessel VH ,

Thank you for your prompt reply.

I used your data as a reference.

Since the size of the box and the number of combiners are fixed, I applied that information and checked it, but it still overlaps and is displayed.

Do you have any good advice?

example-model2.fsm

0 Likes 0 ·
example-model2.fsm (27.1 KiB)