question

Oliver H avatar image
0 Likes"
Oliver H asked Nurul Ain bt Ismayudin I commented

Average throughput time of a flow item?

Hi there,

I have a simulation of a production and assembly line. it starts with the raw material of one part being delivered to the entry of the system, and ends with the sink after the assembly line.

how can i count the throughput time of ONE flow item, the waiting time and the process time? all of these 3 numbers should have minimum, maximum and average.

thanks in advance.

Choose One
process timethroughputwaiting timesaverage
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered Oliver H commented

@Oliver H

I'll admit, I'm not quite sure why the "stats" on one single flowitem would be of much use in a simulation model. I guess that's why there isn't an "automatic" way of doing it, to my knowledge. But there is always a way to do something that may not be the "norm". Attached is a model that will track those stats as labels on each flowitem. I'm sure there are more than one way that this could be accomplished. The attached model is just one way.

In the Source, OnCreation, I create all the labels on the flowitems. Then in the Queues, I track the time into the Queue in the OnEntry trigger and calculate the wait time in the OnExit trigger.

In the Processors, after the process time is calculated I use that time to write those stats to the item's labels.

There are 2 User Commands, the WaitStats and the ProcStats. These are called from the Queues and the Processors to calculate the stats for the flowitem.

If you double click on any flowitem in the last queue (last item in stops the model run), you can see the stats for that flowitem

I hope this is what you were looking to do? If you have any questions, please let us know.

Thanks.

oneitemtracking-jn1.fsm


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

Oliver H avatar image Oliver H commented ·

@Jeff Nordgren

Thank you for your answer.

My english is not that well, maybe i caused a misunderstanding.

I have the production and assembly line, from which i have approximately 40 orders a day. i want to count the throughput time of all the flow items, and have it show me the minimum time (fastest throughput of one item), the maximum time (slowest throughput of one item) and the mean throughput time.

i have found something, but this shows me the sum of all throughput times, so if the mean throughput time is 10min, on the first day it shows me 10 min, on the second 20min, on the third 30min and so on.

i will check on your model later this day, thank you for helping out. i will soon tell you if i managed.

best regards,

Oliver

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Oliver H commented ·

@Oliver H. The throughput time or staytime is possible. The Time is often computed by the statement: time()-getentrytime(item) at the sink and then the result goes into a table or tracked variable for more statistic results. The Process Time is a bit complicated, because the Processor can get into the state breakdown. If you record only the staytime of the item at the Processor, then the breakdown is included to this time. But in the Function ProcessTime you can store the return value into a tracked variable or table in combination with the processor name and then evaluate later.

0 Likes 0 ·
Raja Sekaran avatar image
0 Likes"
Raja Sekaran answered Nurul Ain bt Ismayudin I commented

Hi,

I have attached the sample model. In the attached model you can count the throughput time for each flowitem also it shows minimum, maximum and mean throughput time .

In the Sink, On Entry Trigger, I find the difference between Entry time of the item and creation time of item, then use global table to write those throughput time for each flow item.

I hope this will help you.

sample.fsm


sample.fsm (17.8 KiB)
· 10
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Oliver H avatar image Oliver H commented ·

@Raja Sekaran

Thanks for your answer.

however, your sample file seems to be empty..

regards

0 Likes 0 ·
Raja Sekaran avatar image Raja Sekaran Oliver H commented ·

Use version 17.1.2 to Open the model

1 Like 1 ·
Marc B avatar image Marc B commented ·

I have question to Raja's solution. I copy pasted that solution to my model (the entry trigger of the sink and the exit trigger of the entry aswell as the three global tables). Now I have the problem that the Table "mytable" gets not filled out. Did I missed something?

0 Likes 0 ·
Raja Sekaran avatar image Raja Sekaran Marc B commented ·

@Marc B

Can you attach the model with changes you have made?

0 Likes 0 ·
Marc B avatar image Marc B Raja Sekaran commented ·

problemdlz.fsm

Thank you Raja!

0 Likes 0 ·
problemdlz.fsm (88.2 KiB)
Show more comments
Nurul Ain bt Ismayudin I avatar image Nurul Ain bt Ismayudin I commented ·

hello. im quite new to this software. Im having trouble to understand on how you find the difference between Entry time of the item and creation time of item, then use global table to write those throughput time for each flow item. Is it possible for you to give a clearer instruction ? thank you in advance

0 Likes 0 ·
David Seo avatar image David Seo Nurul Ain bt Ismayudin I commented ·

@Nurul Ain bt Ismayudin I

You need to upload this question as a separate question not linked.

The I will explain it in detail.

0 Likes 0 ·
Nurul Ain bt Ismayudin I avatar image Nurul Ain bt Ismayudin I David Seo commented ·
I already posted the question. Thank you
0 Likes 0 ·