question

ernesto daniel AG2 avatar image
0 Likes"
ernesto daniel AG2 asked Matthew Gillespie commented

how to set a "setup time" only for first item

Hello everyone, I already made a model with a "setup time" only for the first piece with process flow and I think I did it in a complicated way.

Is there a simpler way to do it? maybe with 3D or process flow

I attach the model

setup-time-first-piece.fsm

FlexSim 18.2.0
process flowsetup time
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

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered tannerp commented

Since the Processor already has a Setup Time function, I would just use the built-in feature, but change the time to 0 after the first time. I did this by putting a piece of conditional code in the Setup Time field:

getoutput(current) ? 0 : 15

That code returns 15 when the output of the processor is 0 (i.e the first time) and then returns a 0 whenever the output is not 0 (every time after).

setup-firsttime.fsm


setup-firsttime.fsm (31.7 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.

ernesto daniel AG2 avatar image ernesto daniel AG2 commented ·

@Matthew Gillespie

thank you, and I managed to do it, your answer was very useful another question, how could I set a "set up time" for the first item, according to the item.Type?

I did this, although it seems that I am doing it in a general way, could you help me to do it for the item. Type?

I attach the model, thank you

setup-firsttime-foro.fsm

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ ernesto daniel AG2 commented ·

I'm not sure what you're asking. Are either of these interpretations correct?

1. The very first item should have a setup time and no other items should. The setup time for that first item should vary based off the item type of the first item.

2. The first time an item with a certain item type is processed the processor should do a setup time for that item. For example:

Item Type Setup Time
1 1 5
2 1 0
3 2 10
4 1 0
5 2 0
6 3 7
1 Like 1 ·

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.