Timetable down function code

Timetable down function code

ddtsk
Contributor Contributor
13 Views
2 Replies
Message 1 of 3

Timetable down function code

ddtsk
Contributor
Contributor

[ FlexSim 25.0.1 ]

Hi Flexsimers,

I have a scenario where I don't want the state of the object to be same as state before down function start. I am trying to understand the default code below, could anyone help me in understanding it. In this below stop function code which variable holds the value of state of object before down function triggers
Thanks in advance.


1742191347613.png

0 Likes
Accepted solutions (1)
14 Views
2 Replies
Replies (2)
Message 2 of 3

moehlmann_fe
Observer
Observer
Accepted solution

The state before the stop is stored in the object's variables attribute nodes.

capture1.png

(MODEL:/Processor1>variables/statebeforestop)

If you were to change this value before the resumeobject command is executed, the object will be set to the new specified state. Other logic would continue as normal though. For example, a processor with an item on it would still continue to process it (though without animating).

resume-custom-state.fsm

0 Likes
Message 3 of 3

ddtsk
Contributor
Contributor
Thank you, above example solved by issue. Thanks again for your time.
0 Likes