question

Horn H avatar image
0 Likes"
Horn H asked Horn H commented

Add count in resource

Hello!

I am trying to add number of count in resource name "Truck" ,but when I added number of count "8" ,the logic is lost TaskEcecuters don't work as I need.I attempted it by putting the main TaskExcecuter in a group ,and I used event triggered source.But It didn't work .How can I solve this?

This's my attached sample model latest.fsm

FlexSim 19.0.0
add count in resource
latest.fsm (126.6 KiB)
· 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.

Joseph Gillespie avatar image Joseph Gillespie commented ·

@Horn H

Could you be more specific about what you are doing? What isn't working?

1 Like 1 ·
Horn H avatar image Horn H Joseph Gillespie commented ·

@Joseph Gillespie The process is Taskexcuters get the box from Processor ,then send them to NN7 ,and move them to Processors .I am trying to add more TaskExecuters in resource named "Truck" of ProcessFlow 1,2,3 .If I fill count equal " 1" the logic works well ,but if I fill count of number greater than 1 ,the logic does't work as I need.How can solve this ?

0 Likes 0 ·

1 Answer

Joseph Gillespie avatar image
1 Like"
Joseph Gillespie answered Horn H commented

@Horn H

There were several things that needed to be fixed for your model to be working with additional Task Executors, but the main one was this:

What you were doing here is acquiring a Task Executor, loading items onto it, releasing it, then acquiring a different Task Executor and sending that one to unload onto the processors. There is no guarantee that an "Acquire" activity will acquire the same Task Executor as the one you used before, and that is causing the problem.

Here's an updated version of your model with ProcessFlow1 working: latestanswer.fsm

Let me know if you have any questions about how it works!


capture.png (36.4 KiB)
latestanswer.fsm (85.4 KiB)
· 3
5 |100000

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

Horn H avatar image Horn H commented ·

@Joseph Gillespie As my old version I need to close harvester if has no TaskExecuter ,and open it when there has any TaskExecuter comes to get the box.I used Custom Code to close and open it.I still want to set this logic in my model.I tried several way to set it but didn't work.How can I achieve this?

0 Likes 0 ·
Joseph Gillespie avatar image Joseph Gillespie Horn H commented ·

@Horn H

Are you sure you need that? With 8 Task Executors, your Harvester will always have a Task Executor next to it. If you really want to do it, you could put an "Open Port" after Harvester1 is acquired and an "Close Port" just before it is released. You will notice that it doesn't change anything about the model.

Also, I think that you would benefit from going through all of the Process Flow tutorials if you haven't. They are very helpful!

1 Like 1 ·
Horn H avatar image Horn H Joseph Gillespie commented ·

@Joseph Gillespie It works perfectly .Thanks in advance for your helps.

0 Likes 0 ·