question

eric avatar image
0 Likes"
eric asked Jeanette F commented

Use custom code to stop processing by my label(CarbonEmission)

1728751521406.png

Now I want to set that when my carbon emission data is greater than 80, my equipment will stop operating for 80 seconds. After 80 seconds, my equipment will resume its original state and continue production.

FlexSim 24.2.1
customcodestopobject
1728751521406.png (401.9 KiB)
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @eric, 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

Call "stop" on the processor to stop it. Then you could use a delayed message to resume it after a predetermined amount of time.

In the attached example the processor is stopped for 80s each time an item with type 3 (blue) finishes processing.

pause-processor.fsm


pause-processor.fsm (27.1 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.