question

wei avatar image
0 Likes"
wei asked Jeanette F commented

Calculate waiting line time

cp8 is the charging station,

I want to know the queue time for agv if the number of charging stations reaches the upper limit.

thanks

4.19.fsm

FlexSim 22.2.0
wating
419.fsm (176.3 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @wei, was Kavika F's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Kavika F avatar image
0 Likes"
Kavika F answered Kavika F commented

Hey @wei, you get an error in your model; you should try to fix that before sending in a model for assistance (unless the errors are the topic of your discussion of course).

The Schedule Source causes errors because you have arrival times out of order; you should reorder them so that the "Time" column has numbers in ascending order (smallest at the top, largest at the bottom):

1682350164822.png

However, this source isn't used anywhere in your model (from what I can tell), so I suggest just deleting it.

1682350269260.png

For your original question, I'll need more details. What is the upper limit of charging stations?


1682350164822.png (5.7 KiB)
1682350269260.png (13.2 KiB)
· 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.

wei avatar image wei commented ·

Sorry, that Source is wrong, I forgot to delete it. Because the current model is a simple model, it will be expanded in the future. So if there are currently 3 cars, if the upper limit of the charging station is 2, and you want to calculate the waiting time of which one needs to be charged at the same time.

Thanks!

0 Likes 0 ·
Kavika F avatar image Kavika F ♦ wei commented ·
Okay that makes sense. If you need to collect that information constantly, you could possibly make a list that keeps track of the information. For example, when an AGV arrives at a charging station, you could push it onto a list. That list can then keep track of the current battery level and, with the known charging rate, you can calculate the remaining time left as a field on the list.

You could also try using a Statistics Collector to do a similar thing.

Or another idea would be to have the AGVs themselves have labels for when they started charging so if you wanted to know how much longer it had, you could perform a calculation to determine, based on how much time is left, when it will reach full charge.

0 Likes 0 ·