question

Arun Kr avatar image
0 Likes"
Arun Kr asked Vinay S answered

Attach Items to AGV at front end

Hi,

Need a modeling idea here. How to attach the loaded item to the front end of the AGV and the loaded item have to behave like an attached trailer following the curves of the AGV network. In other words, like a push train. Set location didn't work for me here, maybe it is because the attach as trailer option is overrunning it.agv-help.fsm

Thanks and Regards, @phil.bobo, @Sam Stubbs, @anthony.johnson

Arun KR

FlexSim 18.0.3
agv module
agv-help.fsm (28.4 KiB)
· 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.

Joerg Vogel avatar image Joerg Vogel commented ·

An stupid approach is to set the agv in the front invisible and verry small and change the shape of the last trailer to look like the agv. The Train behaves in the model like a standard train, only the visual looks different.

1 Like 1 ·
Arun Kr avatar image
2 Likes"
Arun Kr answered Arun Kr commented

It's working when I changed the trailer attach rule node value to greater than 1. A value of 0 places the item on top of the AGV.

Regards, agv-help.fsm

Arun KR


rule-value.png (13.7 KiB)
agv-help.fsm (28.5 KiB)
· 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.

Arun Kr avatar image Arun Kr commented ·

Would have been easy, if the attach rule node value can be changed from the network properties GUI window.

0 Likes 0 ·
Vinay S avatar image
0 Likes"
Vinay S answered
For reference for current users.

Now we can use this code to attach trailer ahead.
agv.attachTrailer(trailerObj, 0.1, 0, 0);

If 3rd parameter is 0, the trailer will attach to ahead, if 1 attaches to behind.

Refer this link from documents for more details.

(flexsim.com)https://docs.flexsim.com/en/23.0/Reference/CodingInFlexSim/FlexScriptAPIReference/AGV/AGV.html#Method-attachTrailer


5 |100000

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