question

gust-flex avatar image
0 Likes"
gust-flex asked Jason Lightfoot commented

Unloading a basic shape on a table?

Hi, why isn't it possible to unload my screwdriver on the table? I also wonder if it is possible to let the operator do some work instead of standing still on the delay. How can you add an animation to this cycle? (like using his hands to pick up the screwdriver)

Thanks a lot!

1711623573060.png


test modeling screwdriver.fsm


FlexSim 23.2.1
animationsunloading
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

Paula LG avatar image
0 Likes"
Paula LG answered Jason Lightfoot commented

Hi,

The problem is the way you're referring to the screwdriver. Since the object is "inside" the operator (because you have previously loaded it), to access it you should use Model.find("Operator1/Cylinder1"). There are lots of other ways to do this; for example, you could initially store a reference to the object on a label so that you can always refer to it through that label, no matter where the object is.

Also, you could replace your "Delay" block with a "Run Animation" one and choose the parameters there to adjust it to the delay time and an animation of your choosing.

I hope it helps!

· 4
5 |100000

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

gust-flex avatar image gust-flex commented ·

Hi @Paula LG, thanks for the answer.

What if my operator is in a group of operators and I used a resource to pick one?

1711628417998.png

I tried Model.find("token.Operator_WPO4/boormachine_16Nm") but it doesn't work.

0 Likes 0 ·
1711628417998.png (29.5 KiB)
Paula LG avatar image Paula LG gust-flex commented ·
In this case, it should be Model.find(token.Operator_WPO4.name+"boormachine_16Nm"). However, I strongly recommend going with the other solution I suggested; use an Assign Labels activity at the start of the code where you assign Model.find("boormachine_16Nm") to a label named, for example, screwdriver. Then, on the Item field in both Load and Unload activities you can write token.screwdriver.
0 Likes 0 ·
gust-flex avatar image gust-flex Paula LG commented ·

Hi @Paula LG, I tried to assign a label at the simulation start of the basic shape:

1711630100959.png

and then in the load and unload I used "token.boormachine_16Nm". But it doesn't work?

0 Likes 0 ·
1711630100959.png (14.0 KiB)
Show more comments