question

tristan-dionis avatar image
0 Likes"
tristan-dionis asked tristan-dionis 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
· 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.

I tried to integrate it into the template but this message appears and I don't know how to handle it. Knowing that the creation of articles is done based on a portfolio of orders. And pallets of 24 identical products circulate on the line.1734354434848.png1734354216548.png1734354519823.png

TEST16,12_gestion palette_ Finishingline1PN_autosave.fsm


0 Likes 0 ·
Allister Wilson avatar image Allister Wilson tristan-dionis commented ·

My example used a numeric label called productType on the items to differentiate between them. As the error message indicates, the Push To List activity is referencing that label on an item (inside the activity's Partition ID field), but the label doesn't exist.

The example is only meant as a starting point to help put you on the right track, you will need to adapt the concept to your specific requirements.

If you haven't already, I suggest doing the process flow tutorials in the manual to start with: Tutorial 1 - Using Shared Assets.
They should give you a solid understanding of the various building blocks used in my example, but let me know if anything needs further explanation.

0 Likes 0 ·

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.