question

Diva avatar image
0 Likes"
Diva asked Jason Lightfoot commented

Setting of source

Good afternoon to everyone,

I´m a member of a new group using flexsim, and I have a problem, the arrival time are a statistic distribution and came by batching and this one are fill with a certain amount, therefore, we use a combiner with two source (the first with boxes and the second with pallets) but at the time to came these objects came in different times, How can I do that the boxes came at the same time of the pallets?

Thanks for your attention.

FlexSim 23.2.2
sourcesettings
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Hi @Diva, was one of Jason Lightfoot's or Joerg Vogel's or Kavika F's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

Here's the onCreation trigger to create a packed pallet at the time of the creation event.

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);
}
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 edited

Creating two types of products at the same time statistical distributed consists of a logic to put next creation time into a label and read this label in two sources. I would try to say one source act as a server, which puts next creation time first into a label and then returns the value to itself. The second or client source reads this value as next creation time and returns it.
You get this working much faster in process flow by adding two Create Objects activities in a row. You create both products in your model and move them to queue objects.

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

Joerg Vogel avatar image Joerg Vogel commented ·

here is an example: Color setting in On Creation Trigger. Code to set label value on Source1. Source2 reads label value.create_prducts_simultaneously.fsm

with a combiner

create_products_simultaneously_combined.fsm

0 Likes 0 ·
Kavika F avatar image
0 Likes"
Kavika F answered

Hey @Diva, the Combiner will take in pallets from the first input and boxes from the second input. Boxes will not enter the combiner until a pallet is on the combiner.

Do you have a model that demonstrates what you're trying to do? I'm confused about what you're asking. Please provide more details, thanks.

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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