Hi Sim Superusers,
I am trying to process parts based on weight of the part. A heat treat furnace can handle 1000 pounds of parts at a time. But each part type has different weight. No matter what the part type is, the total weight should add upto 1000 pounds to start processing.
Please share your thoughts on this scenario.
Solved! Go to Solution.
Thanks for the reply. I tried as per your method, but I am getting some error. Obviously my coding is wrong and I have attached model here for your reference.
I am using buffer to represent a Heat Treat. So when first part arrives, the exit is locked and parts are loaded until weight becomes 60 pounds and entrance is closed. Now the loaded parts stay in buffer for a given time and then unloads together at once.
The reason to use buffer for Heat Treat is for flexible lot size. Please let me know if there are any other easy way to simulate this. Attached is my model with few errors am i am not able to fix.
Appreciate your help!
- creation table of the source: the column no 4 needs to be table, just type someting into this column and press F2 (or double click into the cell) --> sub table; here you define the attributes of the MUs: first column --> name (weight is reserved for the data type weight) and the value in the same row and the column with the right data type
- I have changed your entrance control: I included a global variable to calculate the total weight, so you only need to handle the case, that the batch is full
- you cannot change the dwell time, if the part is already on the station; you need to set it before --> I have included a wait command to model the dwell time in the heat threatment
- you need to close/open both: the entrance and exit
- you need an init method to start with an open entrance and closed exit
you could also consider using the Parallel Station for such an application, as with a buffer you would have later onwards an issue getting a proper statistical evaluation of your model, as a buffer per se is not “working”. Attached you can find a model where something similar is implemented using a Parallel Station. This is a rough setup where parts get a random number assigned to their user-defined attribute "weight". This attribute is added to a global variable which keeps track of how much weight has been already loaded into the station. Should there be a part waiting in line which would make the batch exceed the weight of here 1000, then process gets started. The part in the meantime waits until the previous batch is finished before being loaded into the station. Otherwise the part is moved into the Station and its weight added to the global variable. Here you can see that there are several points which you would have to specify according to your use case. For example whether your process load definitely must not exceed 1000 pounds or whether you have some tolerance and can start your process. You also would have to use only one part type here, as the Parallel Station does not process different types in a batch at once. You could still introduce another user-defined attribute like "part-type" to distinguish your parts and if need be write methods to e.g. record the throughput for each part type.