I am experiencing a possible bug that does not allow a state to be set for only a specific state. I am trying to specify a state using a custom code block. All other states held in this custom code block get allocated correctly. But for some reason cleaning is not a state that can be set and gets noted as idle. I made an example model that does the same thing.
In my model I have it set the state and color first as "FillRunning." This gets collected correctly.
I then change the state and color to "Cleaning" and orange, respectively. This state does not get collected correctly. The color changes and for the correct amount of time.
I then change the state and color to "Clean" and white, respectively. This all gets collected correctly.
Does anyone know what is happening here?
FlexSim Cleaning State Capture Issue.fsm