question

Mathilde DOUSSET avatar image
0 Likes"
Mathilde DOUSSET asked Joerg Vogel commented

How to put a stay time for a pallet in a queue?

Hi!

I have pieces on the pallet and I must have a stay time when I load it on the queue (in production line) then they go to the sick.

But I don't arrive to make it.

Thank you for your help.

Mathilde DOUSSET

I've shared my model: 100uagvtoutespieces.fsm

FlexSim 16.2.0
stay 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.

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Joerg Vogel commented

OnExit Trigger

  1. double staytime_queue = time() - getentrytime(item);

Another approach:OnEntry Trigger set a label on the item to store the entering time, on Exit you compute the difference

  1. setlabel(item,"QueueStaytime",time());

OnExit Trigger

  1. double staytime_queue= time() - getlabel(item,"QueueStaytime");
· 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.

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

@Jörg Vogel

Hi!

Your solution doesn't start in my model, I just try in the queue 483.

Or maybe , I don't understand yous answer.

Thank you for your help!

I join you my model:100uagvtoutespieces.fsm


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