question

Zhun Z avatar image
0 Likes"
Zhun Z asked Julie Weller commented

why treenode like AGV 's father point cannot be change?

I can not change the father point of AGV.2.fsm

FlexSim 21.0.10
agv
2.fsm (67.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.

Julie Weller avatar image Julie Weller commented ·

Hi @Zhun Z, was Jeanette F'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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jeanette F avatar image
0 Likes"
Jeanette F answered Felix Möhlmann commented

Hello @Zhun Z,

When the Task Executer is attached to the control point is a part of the AGV network and cannot be moved from it with your command. Your command does work if you remove the connection between the Task Executer and the AGV control point.

1692157479733.png

Are you trying to use code to set what control point the AGV resets at?

You can do that with something like the following.

Object cp = Model.find("CPname");
AGV agv = AGV(Model.find("TaskExecuter"));
agv.resetCP = cp;

2_1.fsm


1692157479733.png (5.2 KiB)
2-1.fsm (66.3 KiB)
· 7
5 |100000

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

Zhun Z avatar image Zhun Z commented ·
Thank you for your quickly answer. But my flexsim vision is 2022.1. I cannot get the agv.resetCP, could i have other solution?
0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Zhun Z commented ·
Hello @Zhun Z,

When I try to open the model you attached in an earlier version of FlexSim it says that it was last saved in 23.0. If you provide me with a new model in the earlier FlexSim version then I can alter it. However I provided everything that I did in the text of my answer, so you should be able to implement without a model. All that is in the saved model is a script window with the code snippet.

0 Likes 0 ·
Zhun Z avatar image Zhun Z Jeanette F ♦♦ commented ·

3.fsmsorry , i upload the wrong file, the file named 3.fsm is saved in 22.1. the AGV.resetCP, cannot work in this version.

0 Likes 0 ·
3.fsm (65.8 KiB)
Show more comments

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.