question

Willie Chung avatar image
0 Likes"
Willie Chung asked Willie Chung commented

Preempt tokens in main process

Hello,

I tried to simulate a breakdown with preemption. Like in picture 1, it can choose the "activity" to preempt the tokens in that activity.

However, I want the tokens in the "Main Process" to be preempted by "breakdown" when the breakdown happens. Is there a way to preempt the tokens in the full process flow (Main Process)?

Thank you for your help.

1701664988945.png The file:token preemption.fsm

FlexSim 23.0.0
tokensprocess flow preemptionstop tokens
1701664988945.png (65.8 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.

1 Answer

·
Arun Kr avatar image
1 Like"
Arun Kr answered Willie Chung commented

Create an MTBF-MTTR tool, and add the processor to the MTBF-MTTR tool. Add an event-triggered source that listens to the breakdown behavior in this way you can control the tokens in the main process flow.

1701672184307.png

Regards,

Arun KR


1701672184307.png (247.0 KiB)
· 8
5 |100000

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

Willie Chung avatar image Willie Chung commented ·

@Arun Kr Event-Triggered Source that I select "On break down" and it didn't work, can you tell me more detail?

and I want to generate a fault every 200 seconds. According to your method, where do I need to set it

1701674103697.png

0 Likes 0 ·
1701674103697.png (243.7 KiB)
Arun Kr avatar image Arun Kr Willie Chung commented ·

Set the uptime in the MTBF-MTTR tool to 200 seconds and downtime is the repair time which depends on the data. First failure time is also 200 seconds.

1701674766723.png

0 Likes 0 ·
1701674766723.png (58.8 KiB)
Willie Chung avatar image Willie Chung Arun Kr commented ·

@Arun Kr The results of your image are exactly what I want. However, when I follow your method, the tokens in my "Main Process" continue to operate and cannot be preempt by the "Breakdown".

Could you please tell me where the mistake might be in my approach or upload the file you do ? Thank you.


The file:token preemption.fsm



0 Likes 0 ·
Show more comments

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.