question

dougdurbin avatar image
0 Likes"
dougdurbin asked Jason Lightfoot commented

Help with Transporter Request from Queue

I'm building the attached model based off of Tutorial 3.1 - Use Sub Flows and Arrays in which the first station is working perfectly fine. I get to a point of needing to assign transporters based on which queue (outbox) has a flowitem waiting. The idea is that a flowitem would be finished processing and then wait in the queue, to which a transporter would pick up the number of flowitems in that queue and transport them to the inbox of the next station. I'm not quite sure what the best way is to approach this. I've thought about adding the flowitems to a list when it reaches an outbox, and the transporter would pull from that list but I'm stuck at the point of sinking that particular token. I have a split activity to solve this issue but I get stuck at this point. I'm trying to avoid the transporter going to each outbox in a round robin fashion if nothing is there and the transporter only going to the outbox that has flowitems in it.

Airplane Exercise Simulation (Push) - Flow.fsm

FlexSim 20.2.2
queuetransporterflexsim 20.2.2subflow
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

Jason Lightfoot avatar image
2 Likes"
Jason Lightfoot answered Jason Lightfoot commented

In the attached model I've created outbox jobs that are then picked up by the operators.

I've put the station in its container and the process for that in a "Station" process flow which now has four members or instances.

To allow the single station process to be generic I've used the standard connections to determine where items should go next. I've also put those connections through the container ports, so it you wanted to create a new station, you just copy one (suggest station 2 or 3), connect it and that's all you should need to do.

So the station logic just looks like this:

And this is the transport logic:

You'll notice the two pulls - the first is to detect a job but the second is to pull it from the list when done, which tells the station that transporters are no longer taking items so if there are more to take it should post another job.


airplane-exercise-simulation-push-flow_jl.fsm



· 5
5 |100000

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