question

joey avatar image
0 Likes"
joey asked tannerp commented

Why is the item in the queue not equal to the maxcontent value set?

Hello everyone, I have a problem that needs help from everyone. It looks like my model is not what I thought.I want the transporter to complete 40 items in Q 1.But it looks like in my model, when the items in the maxcontent queue as already specified, then people move to go to the next queue as the picture that I attached.

What I want is to give the maxcontent and curcontent values equal.Or when the transporter takes the item out of the queue, then the transporter takes the item from Queue In to put in the queue to reach the specified value.

I think I have to fix this, but I have tried it and the result is unsuccessful.

Please help me and this is my model.21053-22answer-2-1.fsm

FlexSim 19.1.2
FlexSim 19.0.0
queue
11.png (232.3 KiB)
2.png (12.9 KiB)
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

tannerp avatar image
1 Like"
tannerp answered tannerp commented

Hi @joey,

The simple answer is that your Process Flow is acting separately from the logic in your 3D model. This means that Process Flow ignores (for the most part) the logic in the 3D queue objects. If you have a max content set in the 3D queue, the Process Flow will still move the item into the queue. I've created a small example to show this.

One way to work around this behavior in Process Flow is to have a Decide activity in PF that checks the content of the queue. If the content of the queue is greater than or equal to the max content of the queue, then the token will go a different direction and not place that item in the queue. Also included in my attached model is an example that demonstrates how this can work. Note that the Max Content setting in the queue does not matter on QueueMax5, but rather the Decide activity handles this logic.

Hopefully I've understood everything correctly and that this helps. It's up to you to implement it in your model, but let me know if you have any specific questions.

max-content-pf.fsm


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

joey avatar image joey commented ·

@tanner.p Thanks for the advice, I understand what you recommend. But since my model has a lot of queues if I use the method you suggest, I must use Decides.and another thing, the entry logic in the queue has its associated conditions for example, I have 2 types of lists, which will enter in both types of queues but will not enter at the same time.. Is there an easier way than this?

0 Likes 0 ·
tannerp avatar image tannerp joey commented ·

I guess an alternative would be to use your Assign Labels activities instead of Decide activities. For example, when assigning the labels, you can assign the destination queue label based on which queue has capacity (i.e. where the number of subnodes on the queue is less than the "maxcontent" property.)

It sounds like if you have 2 types of lists that will each enter the queues at different times, you could use the same flow with different labels. I'm not entirely sure what you're looking for in terms of alternatives. Could you maybe come up with a smaller example that focuses on exactly what you mean? Then I'd be happy to come up with some logic for it. I guess I just don't yet understand the current Process Flow in your model.

0 Likes 0 ·