question

Mike avatar image
0 Likes"
Mike asked Mike commented

How to make operator push the cleaner trolley

Hello,

Could someone teach me how to do step by step to make the operator walking along the network note pushing the cleaner trolley? Then, operator should stop to at each of the network note for sometime acting of performing cleaning (it would be great if we can do some minor animation) then walk to the next note as long as the model is running. Thank you so much.

Operator to perform cleaning.fsm

FlexSim 23.1.1
operator pushing cleaning trolley and perfom cleaning
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 Mike commented

To get the cleaner to walk from node to node you can use a simple process flow. The network nodes he is supposed to visit are part of a group (in the correct order). The token has a Counter label that determines which node is visited next. This label is incremented before starting the next travel task.

capture1.png

WalkNodeToNode_fm.fsm

To get him to push the cart see the answer of Clair in the link below (the part about hiding the shape would not be used here). Add the cart as a component to the operator, set the walk animation to PushCart (maybe Push or Push2 can also work) and position the cart relative to the operator so that it looks good.

https://answers.flexsim.com/questions/37752/operator-pushing-a-trolley-taskexecuter-and-doing.html

You can also add animations for the cleaning time in Process Flow with the Start Animation and Stop Animation options in the Custom Code activity (under Visual).


capture1.png (7.9 KiB)
· 3
5 |100000

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

Mike avatar image Mike commented ·

walknodetonode with animation.fsmHi Filex,

May I know how I can refer to the operator to do animation in custom code? Thanks.

Image Caption

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Mike commented ·

The way you do it is correct. (Though as the reference is also already present as a label on the token (assigned in the source), you could also just use token.Cleaner).

The animation WalkLoaded you are starting/stopping is distance based though, so you won't see any change without the operator moving to a different location. You might have already noticed the list of animations in the Visuals/Animations editor window where you added the trolley. You can look through them to see if any fit what you need.

When I just want visual feedback that an operator is doing 'something'; I often use UseTablet, FilingCabinet or FaxMachine.

capture1.png

1 Like 1 ·
capture1.png (7.5 KiB)
Mike avatar image Mike Felix Möhlmann commented ·
Thanks. token.Cleaner works.

Regards,

Mike

0 Likes 0 ·

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.