question

anon-user avatar image
0 Likes"
anon-user asked Ben Wilson commented

stop the processor when the product type is switched

The processor processes two types, Type 1 and Type 2.


I want to stop the processor for 10 seconds when the product type is switched from Type 1 to Type 2.

I want to stop the processor for 20 seconds when the product type is switched from Type 2 to Type 1.

Regardless of the variety, I want to stop for 30 seconds every 50 pieces processed.


How should I set it?


FlexSim 20.1.3
flexsim 20.1.3processoritem type
· 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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi anonymous user, was Jörg Vogel's answer helpful? If so, please click the red "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 unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

These are features of the Setup Time function. You can choose only one property at a time. But you have three. Then you will select a matching property of the pick list, copy the source code to an editor and choose another matching property. You combine the source code of several properties into one.

  • Setup by label change
  • different setup time for n-th item

It is good job to learn writing source code. I recommend to erase the template tags before you combine the source code. The icon doing this looks like a hand holding a paper with text and a red mark. You find it in the bottom window menu on the left next to the green question mark.

EDIT: here is an example

combine_setup_source_code_properties.fsm


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

anon-user avatar image anon-user commented ·

Is there a way to solve it without writing code?

Is there a function that corresponds to the FlexSim menu?

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel anon-user commented ·

you have three independent conditions, then you have to combine pre-written source code yourself or find someone who does it for you. But it is not to difficult to add two „if“-statements and an „else“ structure.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel anon-user commented ·

anonymous user, example added to answer!

0 Likes 0 ·