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