pull items and transport them when content is less than a quantity

pull items and transport them when content is less than a quantity

noucaiba_s
Not applicable
4 Views
2 Replies
Message 1 of 3

pull items and transport them when content is less than a quantity

noucaiba_s
Not applicable

[ FlexSim 22.2.2 ]

Hello, I would like to move objects from a queue to another queue but I want to the queue to pull objects until the number of items is less than a certain quantity let's say 5 for example. also I have the operator moving the items between both queues. I want also to model the time between the two queues . which means the transportation time between both queues and that is why i tried to mel it by the operator. the problem is that i don't know how to model the fact that the operator picks the products just when the quantity in the queue is less than a certain number. please find below my model . i would appreciate it if somebody can help me with that.

transport code.fsm

0 Likes
Accepted solutions (1)
5 Views
2 Replies
Replies (2)
Message 2 of 3

moehlmann_fe
Observer
Observer
Accepted solution

You can use a simple loop in the process flow to wait until there is a certain quantity of items on the list. A "Decide" activity compares the content to the target value. If it is larger the token can continue. Otherwise it is send to a "Wait for Event" activity, where it waits until a new item enters the queue and then it checks the quantity again.

1663765754159.png

The code to read the list content can be gotten by using the sampling tool on the list and changing "Output" to "Content".

1663765816578.png

Another tip: The queue can push the items directly to the list in its "Send to Port" field.

1663765869889.png

transport-code-fm.fsm

0 Likes
Message 3 of 3

noucaiba_s
Not applicable

Thank you for your answer. Actually I used your suggestion and made some changes and it is working ... thanks a lot

0 Likes