display process time

display process time

ahmad_zulfy_a
Not applicable
250 Views
9 Replies
Message 1 of 10

display process time

ahmad_zulfy_a
Not applicable

[ FlexSim 23.0.0 ]

shanghai current.fsmHello..
Could you help me to inform how to display the processing time per processor below the processor ?

0 Likes
Accepted solutions (1)
251 Views
9 Replies
Replies (9)
Message 2 of 10

moehlmann_fe
Advocate
Advocate

In his comment below the answer to this question, Phil demonstrates how to edit what is shown in the text box of 3d object.

If the process time is a fixed value, you can read it as a property of the processor
("string.fromNum(current.getProperty("ProcessTime"), 2)").

If the value is determined individually for each item, you have to store the value that is determined in the process time field somewhere else (for example a label), so that the OnDraw trigger has access to it.

ShowProcessTime_fm.fsm

0 Likes
Message 3 of 10

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

Individual_statistics_processor.fsm

individual-statistic-processor.jpgProcess Time and PreDraw Trigger evaluating a number label value.

0 Likes
Message 4 of 10

ahmad_zulfy_a
Not applicable

OK thankyou. can be shown like time elapse from the start until the end of the process ?

0 Likes
Message 5 of 10

ahmad_zulfy_a
Not applicable

But why when start run the simulation it change to show %idle, not always show avgStayTime1678242257570.png

0 Likes
Message 6 of 10

ahmad_zulfy_a
Not applicable
0 Likes
Message 7 of 10

ahmad_zulfy_a
Not applicable

Here is the picture

1678242526649.png

0 Likes
Message 8 of 10

moehlmann_fe
Advocate
Advocate
The processors that show processing and idle percentage don't have anything set in their Pre Draw trigger.
0 Likes
Message 9 of 10

moehlmann_fe
Advocate
Advocate

You can get the elapsed time since the item entered the processor with this expression:

"current.subnodes.length>0 ? (Model.time - getentrytime(current.first)):0"

It functions like this: Are there any items in the processor? If yes, return the difference between the time of entry and the current model time. If not, return 0.

0 Likes
Message 10 of 10

joerg_vogel_HsH
Mentor
Mentor
@Ahmad_zulfy A, current elapsed process time is not as easy to calculate as it seems on the first hand. Yes, you can assume a processing start, when an item has entered a processor. There are other events that can delay this type of information. A setup time occurs before processIng start. A call for operators delays a start until enough operators have arrived. A breakdown could timely happen at the same time, when an item enters a processor. If you then updates the elapsed process time upon entering of an item, the value is possibly wrong. You can only be certain about a stored process time store in a node as a value like a label, Or you can evaluate the process time after finishing processing in processor statistics.
0 Likes