question

cyc avatar image
0 Likes"
cyc asked Jeanette F commented

How should I set the Label of Duration so that Statistics Collector can read it?

Hello experts, I'm sorry that my last explanation was not complete, so I will restate my question.

This is my model: Problem_Model.fsm

My model is illustrated based on the image below:problem-image1.png

First, I created a Time Table1, which set the rest time of the Operator. Then (please ignore Combiner1, Separator1, and Separator2), I collected the EntryTime, ExitTime, ScheduledDownTime, and Staytime of the three processors through Statistics Collector, where Staytime = ExitTime -EntryTime - ScheduledDownTime. The reason for this is that Staytime should not include the rest time according to the Operator in Time Table1, so I must record ScheduledDownTime.

The problem I want to solve is explained according to the following figure:problem-image2.png

ScheduledDownTime cannot be collected correctly, so I followed the method suggested by Joerg Vogel below: use the Downfunction's Duration.

The difficulty I have is that I don't know how to set the Label in DownFunction and read the value of this Label in ScheduledDownTime of Statistics Collector.

In Time Table1, I set 7 scheduled downs, so I went to query Time Table1 in Tree. These 7 scheduled downs should all be recorded in Time Table1 (the numbers 1~7 I marked in the picture).

How should I set the Label of Duration so that the Event Value in ScheduledDownTime of Statistics Collector can read the value of Duration?

Thank you all very much for your help.


FlexSim 24.0.0
staytimecycle timevaluestatisctis collectorevent
problem-image1.png (118.3 KiB)
problem-image2.png (134.1 KiB)
problem-model.fsm (715.6 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @cyc, was one of Jeanette F's or Joerg Vogel's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·
Jeanette F avatar image
0 Likes"
Jeanette F answered Felix Möhlmann commented

Hello @CYC,

I addressed this in a recent post, exclude-certain-states-from-a-stay-time-chart. When the object goes down the downtime is set on a label on the item so when it finishes the statistics collector and remove that time from the staytime.

· 6
5 |100000

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

cyc avatar image cyc commented ·

@Jeanette F Thanks for your help, This works with downtime from MTBF MTTR.

However, in my case, I ran into another problem. I'd like to see Scheduled Down Time From Operator's state of Time Table, not Downtime from MTBF MTTR.

Because in my situation, the machine does not need to be down, but the Operator needs to rest (according to working hours).

Because my Model has a Time table set up, and the function I want to achieve is that when my material stays on the processor, it must not be in the Scheduled Down state in order to calculate the Staytime.

If you can help me explain it using a model file, it will be better for me to understand. Thank you very much.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ cyc commented ·
Hello @CYC,

From your description, you are removing the time that the object is "waiting for operator". At that point, it is just the processing time that you are reporting. Which in the model you shared this time does not vary, so I do not understand what you are trying to accomplish with tracking this.

0 Likes 0 ·
cyc avatar image cyc Jeanette F ♦♦ commented ·

Hi @Jeanette F .

Sorry, my explanation seems to be unclear. I want Scheduled down time to be recorded, because when Scheduled down time is not recorded, Staytime will include Scheduled down time. This is a result I don't want, because I want to calculate The Stay time is equal to Cycle time. In other words, I need the Scheduled down time to be recorded, Staytime = ExitTime - EntryTime - ScheduledDownTime. When the Operator does not enter the Scheduled down state, ScheduledDownTime=0.

0 Likes 0 ·
Show more comments
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

You will build or enhance a statistic collector to evaluate a label at involved item, which stores scheduled downtime in this label. Each item, wether it is experiencing a downtime or not, has a label, which stores a possible downtime.
Your timetable function can store at items in involved member objects the downtime as a label value.
When an item is leaving an object you update your statistical collector to compute your staytime by entry time, current time and label value. Your label value can store a value of zero, if there hasn’t occurred a downtime for this item while being processed.

· 4
5 |100000

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

cyc avatar image cyc commented ·

@Joerg Vogel Thank you for your help. But I still don't understand how to set the value of the label?

In On Down in Functions of Time table properties, set the value of one label to Object.stats.state().getTotalTimeAt(STATE_SCHEDULED_DOWN), and in On Resume in Functions of Time table properties, set the value of another label to Object. .stats .state().getTotalTimeAt(STATE_SCHEDULED_DOWN), but there is a problem.

If you can help me explain it using a model file, it will be better for me to understand. Thank you very much.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel cyc commented ·

@CYC, please take a look into downfunction source code editor duration local variable. You are able to assign this value to label at an item, which is staying as a subnode in your time table member object.

Edit: seldomly I provide source code to models attached by students to questions. It violates the code of academic integrity at this site. If you run in a problem, then you can attach a model especially containing only exactly the problem of your question. It is simplified to the core then,

0 Likes 0 ·
cyc avatar image cyc Joerg Vogel commented ·

@Joerg Vogel

Thanks again, can you provide the source about "downfunction source code editor duration local variable"? I can't find anything to read.

In addition, I originally included a model of the problem I encountered in the article.

0 Likes 0 ·
Show more comments

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.