question

Sandeep Kumar I avatar image
0 Likes"
Sandeep Kumar I asked Sandeep Kumar I commented

Defining setup time for processor with max content value

setuptime.fsm

In my use case, I have to add a setup time to my processor when part variant changes(label Type). The processor processes 10 items at once( max content = 10). Defining setup time based on item type changes doesn't work well as per the use case requirements because of max content being 10. When item type changes, it lets the remaining 9 items to pass through, delaying 1 item for setup.

I want to stop all the items from flowing through if part variant changes, completing setup and then resume processing all parts.

Please help to model this use case. Thank you.

Attached is a sample model of use case discussed.

FlexSim 18.2.2
setuptimemaxcontent
capture.jpg (298.6 KiB)
setuptime.fsm (17.6 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.

1 Answer

Logan Gold avatar image
0 Likes"
Logan Gold answered Sandeep Kumar I commented

Hey @Sandeep Kumar I,

You'll want to do something in the Processor's On Entry trigger to close its input ports when there is an item type change - similar to the logic in Setup Time. I am including your model with same changes (setuptime.fsm) to show you what I mean.

The changes include:

1. A label with a reset value of 0 on the Processor named lastItemType.

2. The On Entry trigger on the Processor uses Set Label to set the lastItemType label when the first item arrives at the Processor. This is done with a ternary operator (the question mark). This operator basically says check the statement before the question mark, if it's true, then use the first value after the question mark (and before the colon). If the statement is false, then use the second value (after the colon). So we check the input statistic on the Processor and if this is the first item to enter (input == 1), then we set the label to the Type of that item. If it is any other item besides the first one, then the label is set to the same value - essentially nothing changes.

3. The On Entry trigger on the Processor uses Close and Open Ports to close its input ports if the entering item's Type is different from the last item's type - the same thing that is done in the Setup Time logic.

4. The On Entry trigger on the Processor sets the lastItemType label to the entering item's type. So if the next item's type is different, the Close and Open Ports logic will trigger.

5. The On Setup Finish trigger on the Processor opens the input ports on the Processor. Technically, this will open the input ports every time an item finishes setup time (even if the setup time is 0), but that's okay because it will only do something if the input ports have been closed. If they are already open, then nothing happens.


setuptime.fsm (179.0 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.

Sandeep Kumar I avatar image Sandeep Kumar I commented ·

@Logan Gold: Thank you for your detail explanation of the logic you have defined. I appreciate your support with this model. It helps much.

0 Likes 0 ·