Now I have a globaltable called 'Order' and a model as the following picture, I focus on Queue1, Queue2, Queue3.
I hope that when the model starts simulating, Queue1, Queue2, Queue3 were 'Closeoutput'. And I can determine the order of 'Openoutput' of Queue1, Queue2, and Queue3 based on the values in the Order table. And only one queue is allowed to openoutput at a time.
For example, the values in the order table are as shown in the upper picture, left to right were 1, 2, 3. So the order of 'Openoutput' of Queue1, Queue2, and Queue3 were:
Queue1 Openoutput
\/
Queue1 Closeoutput
\/
Queue2 Openoutput
\/
Queue2 Closeoutput
\/
Queue3 Openoutput
\/
Queue3 Closeoutput
After Queue3 Closeoutput, it goes back to Queue1 Openoutput again, and this process repeats until the simulation ends.
In addition, I also hope that when a Queue is Openoutput, it can remain open until all the items in the Queue are shipped before Closeoutput.
The scenario I described above is that I hope to simulate the operation of one machine at a time, and be able to control the order of machine operations based on the table.
May I know if it is possible to achieve the scenario described above? Thank you!Queue Openoutput Order.fsm