question

Boey TS avatar image
0 Likes"
Boey TS asked Boey TS commented

How to set a chemical change downtime for a processor after it produced 200 runs

Hi, my processor will need to change chemical 1 hour after it produce 200 runs (every run take 30 minutes), how to setup a downtime for chemical change by runs not by a fix time table?

@Boey TS

FlexSim 17.0.13
downtime
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

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Boey TS commented

You can use a setup time that is different for each 201th item. All other items have a setup time of 0, the 201th item has a time of an hour.

Alternatively you count or use a modulus division in the On Exit trigger that will close the input after 200th leaving item, set the State of the processor and sends a delayed message to himself by an hour. The On Message trigger opens the input again. The output of an object is a statistical value of

current.stats.output.value

or you can try the input statistical value. Alternatively

current.stats.input.value%200 == 0  

is logical expression that is true if the rest of the modulus division gets 0.

· 4
5 |100000

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

Boey TS avatar image Boey TS commented ·

Hi Jorg Vogel, i should add the down time is happen at every 200 runs?
Does the setup or On Exit trigger able to set repeated 1 hour additional downtime/delay at the end of every 200 runs?

Best regards

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Boey TS commented ·

Try it, and then if you have further questions ask them!

0 Likes 0 ·
Benjamin W2 avatar image Benjamin W2 Boey TS commented ·

Hi @Boey TS, Yes, the On Exit trigger should be able to trigger a state change of your processor. Try implementing the code that Joerg gave in his answer in this trigger.

0 Likes 0 ·
Boey TS avatar image Boey TS commented ·

Hi, Sorry for the late reply, I try with setup, it is work.

For the second option, first trial not success may need more time to learn!

thanks a lot!

Best regards

Boey

0 Likes 0 ·

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.