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.

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.