question

Idoia A avatar image
0 Likes"
Idoia A asked Joshua S edited

Stop Task Executer Process Flow

Hello,

In the model I am working on, items are created in a queue and then transported by forklift1 to the sink in the first plane. Every time an item enters the sink, the size of the pile in the plane is incremented by 0,1 (there are 2 piles in the first plane).

Forklift2 travels to the first plane depending on a set schedule, deducts the size of the pile by 0,3 and then travels to the second plane. When forklift2 gets to the second plane, the size of the pile is incremented by 0,3 (there are 2 piles in the second plane).

My question is, is it possible to stop forklift1 whenever the piles in the first plane have reached their maximum volume (v=2,3)? And then, resumed when one of the piles' volume is reduced to 0? I have tried to use Custom Code activity, but I don't know how to use it properly. I attach model. stopforklift.fsm

Any suggestions would be appreciated.

Thank you in advance,

Idoia

FlexSim 19.0.2
custom codestop object
stopforklift.fsm (504.7 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

·
Joshua S avatar image
0 Likes"
Joshua S answered Joshua S edited

This should work, but as soon as they both reach 2.3, then something is pulled and it isn't fired, and there are some other exception and issues that pop up in your model that were there when i opened it up. The idea behind it is the list acts like a decision where it checks to see if both piles have reached 2.3, then it sends the token into a loop with a list that attempts to pull any of the piles that reaches 0, then resumes the transporter's operation again if it pulls a pile.

17865-stopforklift.fsm


5 |100000

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

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.