question

tristan-dionis avatar image
0 Likes"
tristan-dionis asked Jeanette F commented

assign token and check number at step on the line

The objective is to create control between M5 and M6 of the number of good products on the pallet.

1734341665889.png

If there is an order for 50 products A and we release 3 pallets of 24 (72 products). after passing through M5 there are 63 good products left, I would like to put 13 products aside (in a "stock") and 50 which continue on the line.

Thus, on the next order for product A. the stock is emptied of 13 and fewer products are sent to the start of the line.


Knowing that many product references pass through the line.


I first thought about a process flow but I don't know how to use this part of flexsim. What could be the method to use for this “stock” principle?

Thank you in advance, I remain available for more information.

Tristan DIONIS DU SEJOUR

16,12_FRIGO_gestion palette_ Finishingline1PN_autosave.fsm

FlexSim 24.2.1
process floworderscontrol
· 3
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

Allister Wilson avatar image
0 Likes"
Allister Wilson answered Allister Wilson edited

I would recommend getting familiar with lists (Lists Functional Reference), you can represent the current stock as a list, then your logic can pull from that / request products from upstream as needed.

Attached is a small example where several product types are called to a buffer in batches. Random orders come in and are fulfilled by consuming existing stock if possible, and if not additional batches are called to the buffer.

The existing stock is "consumed" by pulling it off the list, so only one order can "acquire" any given item. Then the token waits for the order to be completely fulfilled before releasing the products downstream (done here with a move object into a dedicated queue, but you could also use a single queue and release the items manually).

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