question

Avantasia2012 avatar image
0 Likes"
Avantasia2012 Suspended asked Joerg Vogel answered

record the dwell time of item

hello 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

FlexSim 7.7.4
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.

1 Answer

Joerg Vogel avatar image
2 Likes"
Joerg Vogel answered

You can let stay an item after ending of the dwell time, if you don't transport the item or you don't pull the item. An other approach doesn't use a discrete dwell time. Instead the item isn't released by the dwell time option "Do Not Release Item". Then you have to execute the command releaseitem(obj item, num port) in an event of your own. Typical self created events are delayed messages. You send a delayed message and you check if the item dwell is reached then you release the item or you send another delayed message when you want to check the release again. In cases where you release an item before a pending message will be received you must prevent the later event to release the item at all. You check such situation by comparison of the object where the item actually stays with the rack.

Attached is an example in FlexSim 7.5.4, which you can open in 7.7.4

dwell-time-variable.fsm


5 |100000

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