question

wei avatar image
0 Likes"
wei asked Andrew O commented

Determine whether TRIGGER has TOKEN

充電_1.fsm在這個模型中,在35999秒,AGV1的TRAVEL會被觸發,但此時AGV1在充電站。有什麼辦法可以讓AGV1停止充電去TRAVEL嗎?

是否可以使用DEICIDE來判定TRIGGER是否有TOKEN?

I want my model to be TRVEL prior to the charging station

FlexSim 22.2.0
tokens
充電-1.fsm (66.8 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.

Logan Gold avatar image Logan Gold ♦♦ commented ·

Translation:

In this model, at 35999 seconds, AGV1's TRAVEL will be triggered, but at this time AGV1 is at the charging station. Is there any way to make AGV1 stop charging and go to TRAVEL?

Can DEICIDE be used to determine whether TRIGGER has TOKEN?

I want my model to be TRVEL prior to the charging station

0 Likes 0 ·
Andrew O avatar image Andrew O commented ·

Hi @wei, was Logan Gold'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

·
Logan Gold avatar image
1 Like"
Logan Gold answered

The way to make AGV1 stop charging is to give it a travel activity. The reason it isn't working in the current model is because AGV1 is still acquired at time 35999, so the new token that is trying to give AGV1 a travel activity is waiting at its own Acquire activity.

One option is to release AGV1 at some point after it starts charging so the new token at time 35999 can acquire it, give it a travel activity, and send it on its way.

I'm not sure what you mean by determining whether TRIGGER has a token. If you can give us some more information about what you mean by trigger, we might be able to answer that question better.

You can also see another way you can use battery recharging in the AGV Process Flow Template called "AGV with Heuristic Parking" (or Advanced AGV):

https://docs.flexsim.com/en/22.2/WorkingWithTasks/AGVNetworks/UsingAGVProcessFlowTemplate/UsingAGVProcessFlowTemplate.html#agvHeuristicParking

This template has a Parking section that uses a user customizable value to determine when an AGV needs to be recharged. So an AGV will park and recharge if there is nothing to do, but it will also park and recharge if the battery level falls below a given threshold, even if there are still things to do.

There is also a resume threshold so that the AGV will recharge up to the specified value no matter what. After reaching to that threshold, if there is still nothing to do, the AGV continues to recharge while waiting for more work. Otherwise, if there is work to do immediately, it begins that work even if it hasn't fully recharged.

5 |100000

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

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.