question

Alexis B avatar image
1 Like"
Alexis B asked Alexis B commented

Priority processor V2

@Isaac Litster

Hello everyone.

Today I want a version 2 off my topic here : link

I want integrate a Dispatcher which control Operator1 and 2.

Operator1 has exactly the same behavior.

Operator2 intervenes only when the Queue 1 has 4 boxes in order to relieve Operator 1.

Operator2 only works in the Processor4.

When Operator2 finishes with his 4 boxes, he will goes in his initial place.

When the Queue1 will have again 4 boxes, same step.

Thanks for help

0002.fsm

FlexSim 18.1.2
processorpriority
15.png (81.0 KiB)
0002.fsm (42.4 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

·
Jeff Nordgren avatar image
1 Like"
Jeff Nordgren answered Alexis B commented

@Alexis B,

Attached is your model with the changes that I've made. First, because you are using Process Flow, you really don't need to use a Dispatcher at all. If you try, it will just muddy the waters and make the model more difficult.

I added a Resource for Operator2. Then I added a Decide block after the Stop Processor block. The Decide block decides if it is Processor4 being stopped and if Queue1 has 3 or more flowitems in it. I use 3 because the fourth flowitem is the one that just entered Processor4. This seems to work fine with one caveat. The decision is made right after the processor is stopped. That is the point that it decides which operator to use. If more flowitems enter Queue1 that cause it to go over the limit and Operator1 was originally acquired, it won't recalculate which operator to use again until another flowitem enters the processor. If that will work for your situation then the attached model should work. Take a look at the model and see if this is what you had in mind.

Thanks.

isaac-0002-jn1.fsm


isaac-0002-jn1.fsm (43.4 KiB)
· 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.

Alexis B avatar image Alexis B commented ·

@Jeff Nordgren

Thank you for your answer.

We are almost there.

At ~ 588, Operator2 stop his activity. He should continu to use Processor4 until the Queue1 is empty.

When the Queue1 will be empty, Operator2 will go at his initial position and Operator1 will have his initial behaviour with same priority. ( Processor1 - priority 1 / Processor2 - priority 2 / etc...)

Finally, when Queue1 will have again 4 boxes , Operator2 will intervenes

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.