question

drckmtthw avatar image
0 Likes"
drckmtthw asked Felix Möhlmann commented

Batch Process - How to stop incoming batch if batch cant go through all process?

Batch Process_High-Test.fsm

1) I would need the WIP_Process1 to immediately have 24 boxes when simulation run. How do I do this?

2) How do I stop Process 1 from processing a new batch (24 boxes) if this incoming batch cannot be processed by all 3 processes? I would need to find out the idle time of Process 1 (and 2).

Background info:

- 6.51 hours of run time

- Batch must complete all 3 processes

- Process 1 cannot run a new batch unless, it is guaranteed that this batch can be completed within the shift


For the process flow, I am unsure on how to start, if anyone is able to help out, your help will be greatly appreciated. thank you

FlexSim 22.0.16
batch processing
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

Here's my approach:

- Based on the process times, calculate how long ahead of the end of shift Processor1 must not start a new batch because it wouldn't finish.

- In Process Flow react to the On Process Finish event of Processor1. Batch the tokens together so you get a single when a complete batch has finished on Processor1.

- Check if there is still enough time in the shift to start another batch. If not, close the input of Processor1 and wait for the next shift to start. Then open the input again.

1687329689455.png

You can use the DateTime class and its associated methods (hour, minute, second) to get the current time of day in the model. This can then be checked against he cutoff time for a new batch or used to calculate how long to wait until the start of the next shift.


1687329689455.png (32.5 KiB)
· 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.