question

JacksonG avatar image
0 Likes"
JacksonG asked Jason Lightfoot answered

Equipment State Not Being Tracked Correctly

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


FlexSim 22.2.2
customcodeequipment state
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

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered

You are testing newState ==44 instead of assigning it newState=44. The same mistake is on other lines.

5 |100000

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