question

Joe L6 avatar image
0 Likes"
Joe L6 asked Joe L6 edited

Control the queue openoutput order, and openoutput one by one

Now I have a globaltable called 'Order' and a model as the following picture, I focus on Queue1, Queue2, Queue3.

machine-order.pngmodel.png

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

FlexSim 16.1.2
ordercloseoutputopenout
machine-order.png (3.1 KiB)
model.png (123.5 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

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Joe L6 edited

Trigger Tab of queue: On Exit: Picklist option close output > condition current subnodes.length == 1: involved object current

Same object picklist option open input > same condition: involved object next to open input by source code snippet or sampler tool.

· 19
5 |100000

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

Felix Möhlmann avatar image Felix Möhlmann commented ·

You could also do this with a simple Process Flow that opens a queue's output, waits until it is empty, closes the output and then moves on to the next queue based on the table.

1677484243714.png

queue-openoutput-order-fm.fsm

2 Likes 2 ·
1677484243714.png (9.6 KiB)
Joe L6 avatar image Joe L6 Felix Möhlmann commented ·

Hi @Felix Möhlmann ,

Thank you for your solution. It seems that I encountered an error while downloading the model file. I'm not sure if it's because the file upload failed on your end. Could you please upload the model file again? Thank you!error.png

0 Likes 0 ·
error.png (10.6 KiB)
Felix Möhlmann avatar image Felix Möhlmann Joe L6 commented ·

Sorry, the forum sometimes loses attachments when editing a post.

queue-openoutput-order-fm.fsm

1 Like 1 ·
Show more comments