Unloading The Trailers

Unloading The Trailers

edmilson_ml
Not applicable
7 Views
3 Replies
Message 1 of 4

Unloading The Trailers

edmilson_ml
Not applicable

[ FlexSim 21.1.1 ]

Hello, I Am New To Flexsim And I Have Difficulty At Avg.

My Project Consists Of A Train That Has A Variable Number Of Trailer (Excel)

Another Table In Excel Will Define The Port Cargo Number.

Then The Train Will Go To The Trailer Parking, And After Attaching All The Trailers It Will Go To The Port From There

Will Collect The Loads, Insert The Loads On The Trailers And Return To The Starting Point,

Until This Simulation Is Ok,

But When Unloading The Loads, He Is Also Unloading The Trailers, How To Solve This Problem?

0 Likes
Accepted solutions (1)
8 Views
3 Replies
Replies (3)
Message 2 of 4

edmilson_ml
Not applicable
0 Likes
Message 3 of 4

eric_m3
Not applicable
Accepted solution

Hi @Edmilson Ml the AGV is unloading the trailers because the value of token.resource.last is the last trailer (instead of the last item on the last trailer). We can still use the ".last" part for unloading the items, but now we just need a way to reference each trailer one by one. I did this using a couple Assign Label activities and a subflow. The first assign labels gets a reference to the last trailer (subnodes[token.N_VAGAO] returns trailer 10 at first. The second Assign Labels activity will decrease the value of N_VAGAO by 1 so we can get a reference to 9 then 8, then 7, etc. The UnloadQuantity, which is how many items are on that trailer, is also recorded in the first Assign Labels to use in the subflow activity. The subflow works by creating one token for each item to unload. The tokens are created one at a time always unloading the last item on the Trailer. When the trailer is empty, the token moves on and repeats the process for the next trailer in line. Note that there will be errors when the process is complete because the loop still continues. A decide activity after the Delay could fix this. Let me know if you have any questions!

simu-maquete-v6_1.fsm

0 Likes
Message 4 of 4

edmilson_ml
Not applicable

thank you! i will study this solution.