question

shanice.c avatar image
0 Likes"
shanice.c asked Felix Möhlmann answered

AGV trailer problem

Hello, I'm using agv.attachTrailer in AGV transporting parts. When AGV arrive at destination, I'd like agv unload pallet as well as box above pallet.

I tried to look for the trailer object from tree, may I ask how could I combine the trailer and box as an object, then assign this object to label "thingsToUnload".

Is "agv.attachTrailer" a possible way if I want to unload both pallet and box above? Or I have to to use "move object" activity instead? Then I could see pallet and the box are subnodes of agv from tree. Thank you for your time.

test agv with trailer.fsm

FlexSim 21.2.0
agv
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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

Attaching the pallet as a trailer doesn't actually move it out of the queue as far as the model tree structure is concerned. I would move the pallet into the agv before attaching it, so what is happening the 3D view is consistent with what is happening in the tree.

To "combine" the box and pallet I would simply move the box into the pallet. Either in process flow after loading the item or in the task executers "On Load" trigger. They will still be separate objects but when you move the pallet, the box will move with it.

Since you already have a reference to the pallet (token.trailer), you can use that to unload it. Just remember to detach it as the trailer as well.

test-agv-with-trailer-fm.fsm

Another tip: Since you are using an instanced process flow with the task executer as instance object, you can reference it anywhere in the process flow through "current". So the "token.agv" or "Model.find()" methods aren't actually necessary.


5 |100000

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

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.