question

Lars Jacobsen avatar image
0 Likes"
Lars Jacobsen asked Lars Jacobsen commented

Inconsistent TE in TE behavior

When I embed a TE within another TE, sometimes the embedded TE it will be thrown out on reset - but sometimes the embedded TE will stay within the parent TE - which is what I would like to happen. Is it a bug?

EmbeddedAGVRobotTest_1.fsm

In the attached example, the first 2 situations functions as exepected, i.e. the embedded TE stays within the parent TE on reset. In the third situation, when ever I embed Robot1 in TaskExecuter3, it will throw out Robot1 of TaskExecuter3 on reset.

FlexSim 22.2.2
bugtaskexecutor
· 5
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·
How are you 'embedding' them? If I use the "Highlight Selected Object" tool, the resetposition points to Taskexecuter3 not the model (look in the variables tree)
0 Likes 0 ·
Lars Jacobsen avatar image Lars Jacobsen commented ·
Ok. I kind of get it, but I am not sure it is logical. So, when I drag a robot into the 3d model I have to clear the reset position of the robot before I can embed it into another TE.
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Lars Jacobsen commented ·
Not sure where you're getting that from - I drag in a robot and use the EditSelectedTool to move into highlighted and the reset location is updated to the new container.
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Lars Jacobsen commented ·
We looked at this again and it seem a wiggle after moving into highlighted might be needed - I may have done that without realizing. It seems that at time zero, moving into highlighted should update the reset location container node.
0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Lars Christian J2,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

1 Answer

Logan Gold avatar image
0 Likes"
Logan Gold answered Lars Jacobsen commented

Hey Lars. I'm assuming you are embedding Robot1 into TaskExecuter3 by using "Edit Selected Objects". If that is the case, then I think the problem is the reset position of Robot1 is not automatically set during the "Move into Highlighted" logic. If you look at Robot1's resetposition node in the tree:

MODEL:/Robot1>variables/resetposition

When the move into highlighted happens, resetposition's subnodes don't change values, including the last subnode, which looks to be the container object where Robot1 is located - MAIN:/project/model by default.

However, if you move Robot1 around a little after it has been embedded into TaskExecuter3, the last subnode should update to /TaskExecuter3, and the rest of the values should change to be relative to TaskExecuter3.

You can also right-click on Robot1 and choose Edit > "Set Object Reset Position" after embedding Robot1 to update the resetposition subnodes.

· 5
5 |100000

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

Lars Jacobsen avatar image Lars Jacobsen commented ·
It will update the reset position in the tree, but when I reset the model it will still move the object out of its parent and into model()
0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Lars Jacobsen commented ·

@Lars Christian J2 This model is working fine after I made sure the robot's reset position is set correctly.

embeddedagvrobottest-2.fsm

0 Likes 0 ·
Lars Jacobsen avatar image Lars Jacobsen commented ·

Will you invite me to a zoom meeting?

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Lars Jacobsen commented ·

@Lars Christian J2 The Network Navigator is moving the embedded TE out on reset. Look at this example model. If you reset while Robot1 is connected to the network it will be moved out. But if you disconnect Robot1 from the network then he won't be.

EmbeddedTENetwork.fsm

Do you need to have the embedded TE connected to the network?

0 Likes 0 ·
Lars Jacobsen avatar image Lars Jacobsen commented ·

I don't need to have the embedded TE connected to the network, so my problem is solved. Thanks!!!

0 Likes 0 ·