question

Edmilson Ml avatar image
0 Likes"
Edmilson Ml asked Edmilson Ml commented

Unloading The Trailers

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?

FlexSim 21.1.1
agvflexsim 21.1.1
· 1
5 |100000

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

Edmilson Ml avatar image Edmilson Ml commented ·
0 Likes 0 ·

1 Answer

·
Eric M avatar image
0 Likes"
Eric M answered Edmilson Ml commented

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


· 1
5 |100000

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

Edmilson Ml avatar image Edmilson Ml commented ·

thank you! i will study this solution.

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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