question

Avantasia2012 avatar image
-1 Like"
Avantasia2012 Suspended asked Joerg Vogel commented

dwell time

i want to get every flowitem's dwell time on the rack,how could i

achieve this data. I want to use some command to achieve and setlabel on the item. thanks

FlexSim 7.5.4
tiem
5 |100000

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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

You get the entry time of an object by a function. Then you can evaluate the staytime in the Rack alone in the OnExit trigger. The Minumum Dwell time might be a bit smaller, because the item is perhaps ready for release but it is blocked or is waiting for transport. This adds some more time to the staytime.

addlabel(item,"dwellRack",time()-getentrytime(item)); // staytime in object

If you need the exact minimum dwell time, then you have to edit the source code of the Minimum Dwell Time function and store the return value in a label before the return line is executed.

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

Avantasia2012 avatar image Avantasia2012 commented ·

thanks a lot. i want achieve that when the dwell time of the items

on the rack reached the certain time,such as 30minites, i will pull the items out of the rack.

i need to set the dwell time into the label before trigger the OnExit trigger. would you help me achieve it.

thanks in advance

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

liu bs' question can be answered at record the dwell time of item.

0 Likes 0 ·
Sebastian Hemmann avatar image
0 Likes"
Sebastian Hemmann answered

Use the OnEntry and OnExit trigger and the "time" command to write value to the label.

So you can set the time the Item enters (OnEntry) and as soon as it leaves (OnExit) you can calculate the actual time - the Entry time.

5 |100000

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

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.