question

EdsonAstorga avatar image
0 Likes"
EdsonAstorga asked EdsonAstorga commented

Why consult of Global Table stop working during when I use transport?

0. I create a Global table with only 2 columns SKU and QUANTITY

1. I have 1 queu (let's call it QUEU GENERATOR) wich receives several boxes that have some tags (important one is SKU)

2. I have 1 queu (let's call it QUEU RECEIVER) that receives an specific SKU i've set on the global table with the condition that the QUANTITY is over 0.

3. The QUEU RECEIVER has an on entry event that each time it receives an SKU it updates de global table and reduces the QUANTITY by 0.


The Issue:

1.- the last process works when i don't use a operator as transport, in the QUEU RECEIVER i only get the quantity i set on the global table, if a set 5 i get 5.

2.- the process doesn't work when i use the operator, the QUEU RECEIVER keep receiving even when i've set 5 on the gobal table. And the table keep updating and set negative numbers.


FlexSim 21.1.5
global tableerrorssortqueu
· 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.

Jacob W2 avatar image Jacob W2 ♦ commented ·

Hi @EdsonAstorga,

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @EdsonAstorga, was Carlos Reyes's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Carlos Reyes avatar image
0 Likes"
Carlos Reyes answered EdsonAstorga commented

Hi Edson, I didn't understand 100% you question, but here is a model to limit the product using labels:


EdsonAstoraga question.fsm


In this case, my receiving queues have a label call "Content" which is going to decrease every time a box is sent to the queue, once the content arrives to 0, I close the input port of the queue with the trigger to stop receiving items,

Label Content in receiving queues

1684534635596.png

Triggers to decrease Content label of the receiving queues and to close the input (this triggers are within the generating queue)


1684534744196.png


Best regards


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

EdsonAstorga avatar image EdsonAstorga commented ·

Thank you all, your answers were all good however i've decided to stop working with a pull requirement due to lack of efficiency of this. The solution was the creation of costum codes on the output.


Regards!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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