question

ahmedmedhat avatar image
0 Likes"
ahmedmedhat asked Andrew O commented

how can I add a changeover to a processor to change its state?

how can I add a changeover to a processor to change its state?

FlexSim 22.1.0
changeover
· 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.

Andrew O avatar image Andrew O commented ·

Hi @ahmedmedhat, was Felix Möhlmann'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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

You can use "object.setState()" to change the state of a fixed resource or task executer. However, objects generally have a default state logic that will overwrite the previous state. For example, a processor is always going to change into the state "processing" when it starts to process an item. So in order to set a state, you have to be aware of the timing.

A decent solution is generally to react to an event that changes the state of the processor in an Event Triggered Source in Process Flow. Then have the token wait for 0s so the default state change happens first, then change the state to whatever you want which will stick until the next event that causes the processor to switch state again.

The example model essentially replaces the "Setup" state with the "Changeover" state that way.

stateChange_fm.fsm

If you use a custom state profile like I suggested in your other question then the timing doesn't matter, since only the default state profile is controlled by the internal logic.


statechange-fm.fsm (38.6 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.

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.