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

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

julia_tegami
Participant Participant
135 Views
7 Replies
Message 1 of 8

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

julia_tegami
Participant
Participant

[ FlexSim 24.0.0 ]

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!

0 Likes
Accepted solutions (1)
136 Views
7 Replies
Replies (7)
Message 2 of 8

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

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.

Message 3 of 8

julia_tegami
Participant
Participant

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

0 Likes
Message 4 of 8

jason_lightfootVL7B4
Autodesk
Autodesk

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

1724775429088.png


0 Likes
Message 5 of 8

julia_tegami
Participant
Participant

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

0 Likes
Message 6 of 8

jason_lightfootVL7B4
Autodesk
Autodesk

You use something similar to:

releaseitem(item,1);   

which releases the item through port 1 without re-triggering the sendtoport trigger

0 Likes
Message 7 of 8

julia_tegami
Participant
Participant

ok, thank you very much for your help

0 Likes
Message 8 of 8

gustavo_teodoroD8NVF
Advocate
Advocate

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

0 Likes