question

Ryosuke S avatar image
0 Likes"
Ryosuke S asked Ryosuke S commented

FlexSim crash after operator travel to Object defined in Down function of Time

I have a layout which I have set the operator travel to specified location when going on break defined in TimeTable. The operator does travel to the specified location, but after leaving the simulation running for another approx. 30 sec, FlexSim crash silently.

Have I set something wrong? Could you please check my model? The simulation starts from 8:30 and at 8:31, the operator goes on break.

capture030.jpg

TimeShift_OnBreak.fsm

FlexSim 21.0.6
processflowtimetablesflexsim 21.0.6down function
capture030.jpg (93.0 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
2 Likes"
Felix Möhlmann answered Ryosuke S commented

Your process flow is causing an infinite loop.

The down function of the time table makes the operator travel to the floor spot. When it arrives there it switches to the down state, triggering the source to create a token. This token then dispatches a travel task to the operator, causing it to switch into the "travel empty" state. As it is already at the location, the travel ends immediately and the operator enters the down state again which creates another token and so on.

At some point this loop causes FlexSim to crash.

At this point the process flow seems superflous as you already trigger the travel to the floor spot in the down function.

If you want to use the process flow, I would suggest to have the down function of the time table send a message (See the Command Helper under "Help" for the syntax of the "sendmessage" command) to the operator and listen for that with the triggered source instead of using the state change.


· 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.

Ryosuke S avatar image Ryosuke S commented ·
@Felix Möhlmann Thank you for your reply and detailed explanation. I understood very clearly.
0 Likes 0 ·