question

Prateekq4 avatar image
0 Likes"
Prateekq4 asked Jason Lightfoot commented

scheduled stop and resume

I am trying to build a model. PE9 stops item when PE10 is blocked. But once PE9 stops item, it must resume the flow at fixed intervals. That is something like resume for 3 seconds, stop for 1 second, then again resume for 3 seconds, stop for 1 second. This must continue until a certain condition is satisfied. While i have not decided this final condition, i want a method to setup the stop-resume cycle. Attaching my model to make it easier to designtrial for stopper.fsm

FlexSim 22.1.4
stop and resume
· 3
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·
Is this an assignment?
0 Likes 0 ·
Prateekq4 avatar image Prateekq4 Jason Lightfoot ♦♦ commented ·
Hi Jason, i am developing a larger model, but was stuck trying to develop this concept in my model, hence just created a small model to understand how to tackle this.
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Hi @Prateekq4, 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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

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

Something like this?

trial-for-stopper-fm.fsm

A token in Process Flow stops/resumes the flow at the first photo eye. The token is allowed to enter the loop or pulled out of it via messages.


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

Prateekq4 avatar image Prateekq4 commented ·
Hi Felix, i had a doubt. The token that is initially present at message 1, needs a "on message" trigger at PE10, but such a trigger is not present at PE10. In this case how is the token moving onto the next step. I see that it does go down, but am confused as to what triggers it to move.
0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Prateekq4 commented ·
"On Message" is the name of the event the activity is listening for. The triggers on 3d objects are also named after the corresponding events but they do not have to added for the event to happen.

Instead of using triggers on 3d objects, you could always use an Event Triggered Source in Process Flow that listens to that event and then run the code you would have put into the trigger function in a Custom Code activity.

In the this, the token is released when PE10 receives a message with the first message parameter being 1. And the "Abort Token" waits for a message with that parameter set to 2.
0 Likes 0 ·