question

ernesto daniel AG avatar image
0 Likes"
ernesto daniel AG asked Joerg Vogel answered

how to order an arrival sequence based on a global table?

Hello everyone, I have a problem when ordering a sequence of arrivals I would like that based on a global table, my main source will create objects according to the type, the quantity and the order specified in the global table.

I attach the model of my problem and an image of it

I hope you can support me

Thank you

production-plan.fsm

FlexSim 18.1.2
orderproductionplan
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

You set the type of the source to interarrival time. In the on creation trigger you increment a label at the source that counts the number of the order to get the right row of your global table. Then you transfer the data from the table row to labels at the item. In an OnExit trigger you read the quantity label, reset the quantity label to 1 and then you create copies of the item in the amount of the quantity in the source. if you want to start the order table from the beginning you set the right starting value of the value to read the table row.

In cases you need the quantity value at the items created at an order point, you put them at a label that you don’t evaluate in the source otherwise you can create an infinite loop of creating items.

The interarrival time value creates the items, set by wether a constant value or a statistical distribution.

If you have the order time point in your table, FlexSim can only evaluate the time of the next order not the current. This means you have to set the order time for the first order discrete in the source code and then after run start for the next order by reading the value of the following order row at the interarrival time function. The current creating item event defines already the arrival time of the next item creation.

5 |100000

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

Steven Hamoen avatar image
0 Likes"
Steven Hamoen answered ernesto daniel AG edited

@ernesto daniel AG

Why can't you just use the arrival sequence table in the source and forget about the globale table? You can even put the arrival sequence table in the Excel importer and import it that way if necessary.

What I would do if you really needed the global table, you could create a small script in the OnModelReset trigger and copy the global table to the arrival sequence table.

Or another option would be to create a small process flow and create a token for each row that reads out the global table and creates all the correct amount of object in 3D

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

ernesto daniel AG avatar image ernesto daniel AG commented ·

thanks for your comment,

I use the global table to facilitate the feeding of the data, what I would like is to support me with a way for the table to accommodate the arrival of my items by type as I specify for example:

if you consider that I am doing it in a more complicated way I would appreciate if you could apoyrme with any alternative I would only like to create a production plan based on a global table where you have the type of item, the quantity and the order in which the items are created.

Thanks!!

production-planning.fsm

0 Likes 0 ·
pp.png (3.2 KiB)