question

davidchann avatar image
0 Likes"
davidchann asked davidchann commented

About the update of AGV in Version 23.0

I didn't use the script about AGV before, so i don't know how to use the scripts below:


  • Added user-customizable deadlock recovery. Added parameters to the OnAllocationFailed trigger that lets the user know if the allocation request represents a deadlock, as well as an array that is the deadlock cycle. The user can thus implement logic if the allocation failure is a deadlock, and return 1 to tell the system that the deadlock has been handled.
  • New features for AMR simulation:
    • Added an OnNavigationFailed trigger that is fired when the AGV can't resolve a valid path to a destination. This is to give the user the ability to handle the error. Returning 1 means try again, returning 2 means end the task.
    • Added parameters to the Custom Path Cost: a forward/backward boolean and a reference to the AGV if there is one.
  • Added AGV.traversalPoints property and AGV.TraversalPoint class.
  • Made AGV.AllocationPoint.stopDist writable.
  • Added AGV.stopRecharge() and AGV.addAllocationPoint() methods.
FlexSim 23.0.0
agv23.0
· 4
5 |100000

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

Patrick Zweekhorst avatar image Patrick Zweekhorst commented ·

Hi @Davidchann ,

Maybe you can also take a look at:
Kiva System Demo Model - FlexSim Community

In this model all the new features are used.

3 Likes 3 ·
davidchann avatar image davidchann Patrick Zweekhorst commented ·
ok, thx!
0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel commented ·
@Davidchann, then it is up to you to acquire this knowledge. You can contact a FlexSim distributor and ask for a course about self defined content. Sorry, there aren’t tutorials available right away if new features are introduced.
0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @davidchann, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered

You can start by reading through the AGV class reference page in the manual. It explains the meaning of each property and function of the methods.

https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/AGV/AGV.html

In the bug report linked below I uploaded a test model that I build which uses the new properties to allocate additional control points or change the timing of the allocation/deallocation to account for the geometry of the vehicle. You can have a look at this as an example.

https://answers.flexsim.com/questions/134645/agv-not-finishing-travel-on-code-generated-path-gr.html

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.