question

mulan avatar image
1 Like"
mulan asked mulan commented

Trigger at Process Flow and 3d model

How do I trigger my dispensing counter such that when there is a long queue at reception, a dispensing counter will change to a reception counter?

FlexSim 16.1.2
process flowflexscripttrigger
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

Axel Kohonen avatar image
5 Likes"
Axel Kohonen answered mulan commented

Hi Mulan,

Can you check the reception queue length in the onEntry trigger of the reception queue and if it is above some threshold then you perform your code that changes the counter type? Or is the problem with how to change the type?

Hope this helps!

Axel

· 4
5 |100000

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

shawn.k avatar image shawn.k commented ·

You would also want to have your OnExit trigger do the same check to see if the shape needed to be changed back when the queue size is below the threshold.

1 Like 1 ·
mulan avatar image mulan commented ·

Hello,

The counter on the left-hand side is the dispensing counter whereas the counter at the right-hand side is the reception counter. When the input in the Queue reaches 10 (to show a long queue), the dispensing counter would be transformed into a reception counter to help solve the influx at the queue. Is there a code to trigger this?

Thank you for your help!

0 Likes 0 ·
Axel Kohonen avatar image Axel Kohonen mulan commented ·

One option to make the change happen is to have one extra reception counter next to the three and have its input closed normally. When the queue gets too long then you open the input of the reception and close it for one dispensing counter. Then you might need to get the operator from the dispensing counter to the reception counter.

Axel

1 Like 1 ·
mulan avatar image mulan Axel Kohonen commented ·

Yep, it works! Thank you for your help! (:

1 Like 1 ·