question

hoooo avatar image
0 Likes"
hoooo asked hoooo commented

MTTR/MTBF rerume operation

運転再開.png


Hello!

I have some questions about the restart behavior of MTTR/MTBF.

I would like to have the behavior shown in the image when MC4 restarts from breakdown.


1.MC4 down

 ⇒source1 & MC1~4 & conveyor2.3.8.9 stop for 3min

2. after 3min

Source 1 remains stopped(A and B start at the same time)

a.Transfer items on conveyor 8 to sink 2

b.Transfers items on conveyor 8 /9 downstream(Conveyor speed changed to 667)

 When the last item passes mC4, there is a 1 minute delay and source 1 is restarted.

(Return conveyor speed to original value


Is it possible to restart such complex behavior?

Please tell me.

Thank you.

1124.fsm

FlexSim 23.0.8
mtbf mttrresume
1124.fsm (61.2 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.

Joerg Vogel avatar image Joerg Vogel commented ·

@hoooo, this is a sequence for a process flow. Your resume event of a MTBF/MTTR should start a process flow.

For example you can call to execute a process flow sub flow: ( @Felix Möhlmann: Thank you for reminding me about calling subflow with runtime to finish instantly.)

0 Likes 0 ·
hoooo avatar image hoooo Joerg Vogel commented ·

@Joerg Vogel

Thank you for your advice.

Although not completed, I was able to change some settings in the subflow.

0 Likes 0 ·

1 Answer

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

I concur with Jörg's suggestions to use a Process Flow. There you can stop/resume objects as needed, set conveyor speeds and change the destination of Conveyor8's exit transfer as needed (Create a label on the exit transfer that determines where items are send and change that label's value in the Process Flow).

However, using "executesubflow()" might not be ideal, since it will throw an error if the subflow doesn't finish in 0 time and your logic involves waiting for conveyors to clear.

You can instead create a token in a general Process Flow with "Token.create()".

· 5
5 |100000

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

hoooo avatar image hoooo commented ·

@Felix Möhlmann

Hello!

I still don't understand why "executesubflow()" isn't ideal.

Is difficult.I will study.

I couldn't figure out how to write custom code to change multiple settings at the same time in a subflow.

Now stop the source1 conveyor and change its speed at the same time.


0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann hoooo commented ·

"executesubflow()" expects a return value to be provided when the created token enters a Finish activity. If this does not happen without delay, an error is thrown. Start a run in the attached model below and then run the code in the script window to see the error message.

subflow-error.fsm

Stopping a conveyor and changing its speed is the same thing (setting its speed to 0).

There are pck options for every change you have to make (setting conveyor speed, opening/closing output of objects, setting a label).

1700813594166.png

0 Likes 0 ·
1700813594166.png (26.6 KiB)
subflow-error.fsm (28.7 KiB)
hoooo avatar image hoooo Felix Möhlmann commented ·


Thaks for the sample!

I confirmed that there is an error.

I used "Token Create".

There is one more thing I would like to ask you.

I don't know how to set the circle part of the image.

My model has a delay setting of 450 seconds.

This is a temporary measure at this time.


Please tall me.

Thank you.1125.fsm


1700886318140.png


0 Likes 0 ·
1700886318140.png (101.7 KiB)
Show more comments