question

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

Traveler Agv BY custom code

Hello, I Have Two Questions,

Is It Possible To Insert A "Task Executer" Using A "Custom Code" Or "Create Object"? And Beyond That

Is It Possible To Make "Traveler Agv" Programming With A Custom Code?

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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Edmilson Ml, was Luis Gustavo Freitas 's answer helpful? If so, please click the red "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

·
Luis Gustavo Freitas avatar image
0 Likes"
Luis Gustavo Freitas answered

Hello,


About insert task executers while the model is running, is not usual as the task executers are inputs to the model, but there are some ways you may try, as in this post:

https://answers.flexsim.com/questions/97360/duplicate-objects-multiprocessor-processor-operato.html

and this one:

https://answers.flexsim.com/questions/29273/how-to-connect-the-tes-to-a-control-point-on-agv-p.html

this command is appointed as not recommended for some resources, however you can use some AGV methods, if you face some difficulty, like this one (where the code will recognize the task executer as a AGV):

1628174921149.png


for other methods to control the AGV via custom code and about programming the AGV you can access :

https://docs.flexsim.com/en/21.2/Reference/CodingInFlexSim/FlexScriptAPIReference/AGV/AGV.html#top

where you can find properties like AGV.destination to get the current destination and the method AGV.redirect() to change its destination, but i strongly recommend you to use as much is possible the process flow for this programming, take a look at the Custom Process Flow modules available, they will make your logic much simpler e easier.

1628175515387.png



1628174921149.png (32.9 KiB)
1628175515387.png (122.7 KiB)
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.