question

K_yun avatar image
0 Likes"
K_yun asked K_yun edited

change TE's state from travel_loaded into travel_empty

As you can see in both two models, there is a FR inside TE. When the TE gets a transfer task and before it arrives at the loadstation, i want it hold the state "TRAVEL_EMPTY".

In model 001, at about 57sec, the te'state shortly turn into "TRAVEL_EMPTY" and then back to "TRAVEL_LOADED". But in model 002, the state changing code works fine.

Can't figure it out, and look for some suggestions.

001.fsm002.fsm

FlexSim 22.2.0
te state
001.fsm (55.5 KiB)
001.fsm (55.6 KiB)
002.fsm (39.4 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.

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered K_yun commented

I would suggest to place the BasicFR inside the TE's drawsurrogate attribute tree and not as a subnode (through the Animation Editor).

Then, instead of moving the item into the FR, move/load it into the TE as normal and add an OnPreDraw trigger that sets the item's location relative to the gripper.

This way the item will visually appear where you want it, but you retain all default statistics (state, input, output).

001_fm.fsm


001-fm.fsm (56.7 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.

K_yun avatar image K_yun commented ·

Thanks for your suggestion. Your model works well.

I will make a change.

0 Likes 0 ·