question

Liam Chiu avatar image
0 Likes"
Liam Chiu asked Liam Chiu commented

Delay item in queue and put on pickup point

Hi,

I want to let the item stay in the equipment for a certain number of seconds after it arrives at the equipment, according to the time in the "delay_table".

I have tried to add a delay function to the Item Pickup block in the AGV template, but this will cause all models with pickupPoint to be delayed, but the pickupPoint connected to Source_q does not need to be delayed.

I want to know if there is a way to make the item stay in the equipment for a certain number of seconds according to the time in the "delay_table" without adding any processors.

Thank you very much for your advice.

1690183301708.png



agv.fsm


FlexSim 22.2.0
agvagvnetworkpickuppoint
1690183301708.png (353.0 KiB)
agv.fsm (139.9 KiB)
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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Liam Chiu commented

A simple solution would be to use an await statement in the Send to Port code to delay the item getting pushed to the transportation list.

await Delay.seconds(Table("delay_table")[current.name][1]);

1690186985354.png


1690186985354.png (19.2 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.

Liam Chiu avatar image Liam Chiu commented ·

Thanks for your reply, Felix.

It works.

0 Likes 0 ·

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.