question

Rambabu avatar image
0 Likes"
Rambabu asked Jason Lightfoot answered

Packing four boxes in one pallet?


Hi all,

Today I have got one query regarding packing output. Actually we know source output gives one item like a Box or pallet or cylinder etc. But I need one packed output from source like(Four boxes packed in one pallet) is there any possibility to get the output ???

Thankyou

packing model.fsm

FlexSim 23.1.3
sourceoutputpackingpacking method
packing-model.fsm (38.6 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.

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered

Here's a code snippet you can put on a pallet source's creation trigger:

string fiName="Box";
int numItems=4;
Object flowitem=Model.find("Tools/FlowItemBin/"+fiName).first;
Object packedItem;
for (int n=numItems;n>0;n--) {
    packedItem=flowitem.copy(model());
    moveobject(packedItem,item);
}

packing-model_jl.fsm


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
0 Likes"
Joerg Vogel answered Joerg Vogel commented
  1. You can create or move such a designed flow item into flowitem bin library like tree.
  2. you can replace a 3D source by a queue and transfer a creation process into process flow.
· 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.

Rambabu avatar image Rambabu commented ·

I did not get what you mean by 3D source by a queue and transfer a creation process into process flow

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Rambabu commented ·
@Rambabu, a process flow can create items anywhere in a model. Sometimes you need a centralized object that behaves like a source in a 3D model, but it is not actually a source. Then you can replace a source by a queue object and let a process flow logic unit do all necessary steps of creating items in a model. Lastly you move such items into your queue to let them be distributed by this queue.
0 Likes 0 ·