question

juliategami avatar image
0 Likes"
juliategami asked Gustavo Teodoro answered

Release an item from source as soon as a queue is empty

Hello,

I have a simulation that places 15 machines that arrive on a cart (in the "caixas" queue), inside a pallet. I wanted to ensure that after processing these 15 machines, the empty cart (in the "carrinhovazio" queue) was released so that it could be taken away and so on.

Here is the simulation file I'm working on: Paletização (2).fsm

Could you help me with this issue, please?


Thank you!

FlexSim 24.0.0
open or close specific port
paletizacao-2.fsm (7.3 MiB)
5 |100000

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

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered juliategami commented

Use the option to hold the item on the send to port and then when you want the item to move release it through a non-zero port number using releaseitem(). Specifying the port number will prevent the sendtoport firing again and holding it again.

· 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.

juliategami avatar image juliategami commented ·

Is this option to hold the item configured in the source? sorry, I didn't understand

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ juliategami commented ·

You can hold (not release) on a number of objects:

1724775429088.png


0 Likes 0 ·
1724775429088.png (36.3 KiB)
juliategami avatar image juliategami Jason Lightfoot ♦♦ commented ·

And to release it after a process ends, what would be the configuration?

0 Likes 0 ·
Show more comments
Gustavo Teodoro avatar image
0 Likes"
Gustavo Teodoro answered

One option for controlling the batching is through the flow process.

Each time an item enters the queues, a token is created in the process flow. To gather the 15 items, a Batch operation was used, where a label with the collected items is added (Make Array). Next, the transporter is acquired and a Position label is added to define which item will be loaded. Loading continues until all items (15) are loaded. Then, all items are unloaded and the transporter is released. This process repeats each time 15 new items arrive in the queues. An example is attached for reference.

FX_ReleaseItem.fsm


fx-releaseitem.fsm (38.8 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.