question

ahmedmedhat avatar image
0 Likes"
ahmedmedhat asked Jeanette F commented

Turning into idle state after cleaning

In the model I attached below I managed to add a cleaning time between each item flow item and name it cleaning time, i did this through a process flow that closes and opens the processor's input port because I need the processor to be empty of any flow items during the cleaning process so I can't do it in the setup time box as the flow item acquires the processor during the setting.

However, I need after the exit of the last flow item, the processor's state to be "idle" not cleaning, as seen in the State Gantt Chart in the dashboard.

I cannot seem to make this work. any help?

Cleaning Time.fsm

FlexSim 23.0.0
statesetup timestate ganttidle statecleaning time
cleaning-time.fsm (41.2 KiB)
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @ahmedmedhat, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

Just put the state code into your process flow.

cleaning-time_jl.fsm1678404669768.png


1678404669768.png (10.4 KiB)
· 2
5 |100000

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

ahmedmedhat avatar image ahmedmedhat commented ·
the process flow tab doesn't want to open, the file seems a bit corrupted.

Can you resend it or screenshot the codes you entered?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ ahmedmedhat commented ·

Re-download the model as there's no problem with the version stored on this site.

The state changes are just the standard option in the custom code activity.

1678438587099.png

The difference in the model I uploaded is that I changed the process flow to an Object Process Flow - which you define once for all the processors that need it, and add them as member instances. The each is referred to using 'current' as shown above.

0 Likes 0 ·
1678438587099.png (20.2 KiB)

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.