question

Herwina Richelle Andres avatar image
0 Likes"
Herwina Richelle Andres asked Sam Stubbs commented

Opening/Closing Output via Sending Message

sample-plane2-autosave.fsm

Hi!

The process flow is as follows:

Entities are coming in as units from "Source_Job" going into "Queue3" then to combiner "Pre". Pallets are coming in from a separate source, "Source_Pallet". 10 minutes will be spent in packing the units then will be separated by "Separator2" where each unit will be processed individually on "Processor3". All processed units will be accumulating in "Queue4" and will be packed again in "Post" for 10 minutes then proceed to "Sink_Jobs".

"Pre" would only accommodate a new batch of entities once the previous batch has exited on "Post" and that "Post" would only accept a pallet once all the units has accumulated in "Queue4". This is to eliminate accumulating period on Post and prevent Pre from accepting new jobs while the previous is still being completed. The constraint is that there is only one job at a time existing in the whole plane.

I am trying to control the port on "Source_Pallet", wherein it would only release a pallet once triggered. Triggers would be for "Pre" after the previous job has exited the "Post" and for "Post" once the desired units have been accumulated in "Queue4".

This is how I'm looking to approach the situation. There could be other efficient ways to achieve the same objective.

Hope to hear from you!

Thank you.

Best,

Herwina

FlexSim 7.5.4
openoutput
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

Sam Stubbs avatar image
1 Like"
Sam Stubbs answered Sam Stubbs commented

I tried to create an example model that accomplishes what you are asking. I apologize, I had to separate out your objects from the plane to understand the connections. I also removed any logic that was on them and am only simplifying to the triggers you were talking about.

I'm attaching my example below. Essentially what I did, was put an OnExit trigger on your Source_Pallet, that closes the output after every pallet. That port is then reopened by triggers on Pre and Post as you described. Finally in order to get the batching, I simply added batching (of 5) to Queue4. Let me know if this is along the lines you were thinking, or if it still did not address your question.

sample.fsm


sample.fsm (30.4 KiB)
· 4
5 |100000

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