question

mattias avatar image
0 Likes"
mattias asked mattias commented

Custom speed using excel

Hello!

How do I use an Excel data sheet to set different speeds on an AGV between several XYZ locations?

For reference, I have created a model that uses the same principles from Eric M's answer to the original question. Eric M's model is called "agv path by excel coordinates.fsm" and can be found here: https://answers.flexsim.com/questions/106810/agv-excel.html


The linked model above reads the XYZ locations from an Excel sheet via a process flow and makes the AGV drive to said location before going to the next one.

FlexSim 24.1.0
excelagvcontrolagvspeed
· 2
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 ·

@Mattias, do you build a free moving agent or do you have a railway bound system? You can parse in a tasktype of Travel to Location a parameter 4 as an end speed.

0 Likes 0 ·
mattias avatar image mattias Joerg Vogel commented ·

@Joerg Vogel Hello! I am using a free moving agent (no added paths). I am guessing that a railway bound system is using paths (I am quite new to FlexSim). I am currently not using any coding but I am going to try the thing you have linked. If you do not mind me asking, where do I add this code to manipulate the AGV?

Thank you for answering, have a good day :)

0 Likes 0 ·
Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered mattias commented

Based on the original answer of Eric, you can simply update the maximum speed of the task executer before every travel task.

agv-path-by-excel-coordinates_1.fsm

In more recent versions of FlexSim you'd use ".setProperty("MaxSpeed", value)" instead of the ".setVariable("maxspeed", value)" I use in the attached model.


· 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.

mattias avatar image mattias commented ·

Thank you very much, it works as intended!

Have a good day :)

0 Likes 0 ·
mattias avatar image
0 Likes"
mattias answered mattias commented

@Felix Möhlmann In your accepted answer, is it possible to add another TaskExecuter to follow the same path with the same speed but it drives away after a couple of seconds?

· 2
5 |100000

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

Felix Möhlmann avatar image Felix Möhlmann commented ·

You can simply create a second token and assign each token a different task executer.

agv-path-by-excel-coordinates-2.fsm

1 Like 1 ·
mattias avatar image mattias Felix Möhlmann commented ·
Ahh, thank you very much!
0 Likes 0 ·

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.