question

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

How can I set up time breakpoints to collect information from AGVs?

Hi,

In my model setup, there are two distinct areas, and I am wondering if it is possible to configure data collection every five minutes and write it into a global table.

螢幕擷取畫面-2024-02-26-150027.png

I aim to record the current timestamp, the area number, the quantity of AGVs in that specific area, and the number of completed tasks in that area every five minutes. Could you guide me on how to configure this?

螢幕擷取畫面-2024-02-26-150300.png

Thank you very much for your assistance.

agvv.fsm

FlexSim 22.2.0
agvglobaltableagv paths
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 Felix Möhlmann commented

First, track the current values of the statistics you want to collector somewhere in the model.

The number of AGVs per area could be global variables that get incremented/decremented when an AGV passes certain control points ("On Pre-Arrival" trigger).

Similarly, the number of completed tasks could be global variables as well or (as long as there is only one per area) a label on the queues to which the items are unloaded.

Then use timer events in a Statistics Collector to record (and in the case of completed tasks also reset) the values every 5 minutes.

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

Hi @Felix Möhlmann
I am currently using a process flow where the AGV performs numerical addition and subtraction when passing through ControlPoint16 and ControlPoint17(red). This is done to determine the quantity of AGVs in area2 at that moment. However, it doesn't seem to be working as expected. Could you please help me take a look? Thank you for your assistance.

螢幕擷取畫面-2024-02-27-163744.pngagv_v2.fsm

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Liam Chiu commented ·
You need to use the Pre-Arrival event. The Arrival only fires if the AGV comes to a stop at the CP, not when it passes over it.
0 Likes 0 ·
Liam Chiu avatar image Liam Chiu commented ·

Hi @Felix Möhlmann

I also have another question. When I use a statistical collector, it updates the data every 30 seconds. However, when exporting the data, it only records the data from the last update. How can I collect data from each update? Thank you for your help.

1709136685521.png
agv_v3.fsm

0 Likes 0 ·
1709136685521.png (119.5 KiB)
agv-v3.fsm (198.3 KiB)
Felix Möhlmann avatar image Felix Möhlmann Liam Chiu commented ·

A calculated table is not useful here. It filters/aggregates/sorts data from other tables and doesn't collect information itself.

You need to setup a Statistics Collector that periodically stores the values of the global table.

You can check out the tutorial if you haven't already done so.

https://docs.flexsim.com/en/22.2/Tutorials/AdditionalTools/Tutorial2StatsCollector/StatsCollectorOverview/StatsCollectorOverview.html

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.