question

Ankur A3 avatar image
0 Likes"
Ankur A3 asked Natalie White commented

Setting AGV state while unloading?

Hi Team,

I am trying to set the AGV state to "Blocked" while it is at drop point but its state is not changing to "Blocked". By default, it's "idle". I have used here breathe activity just before changing the state but still it is not working.

1690463902864.png

Can you help to understand where is the problem?

Thank you!

27.07.2023_Setting_AGV_State_While_Unloading.fsm


FlexSim 23.1.2
changeagv state
· 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.

Natalie White avatar image Natalie White commented ·

Hi @Ankur A3, was Felix Möhlmann'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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Ankur A3 commented

You are setting the state only after the token is released from the Wait For Event activity. So the state is immediately overridden when the AGV unloads the item.

You are also using state names that differ from the default states (capitalization matters!). Due to this the states are not appearing in the state chart, because they are not part of the State Table the chart is linked to. To prevent this, when you want to use default states, use the STATE_... defines.

1690464767910.png


1690464767910.png (28.1 KiB)
· 3
5 |100000

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

Ankur A3 avatar image Ankur A3 commented ·
Hi @Felix Möhlmann,

Thank you for your answer!

But I have one question here:

We are setting the state to "Blocked" when wait is over. That is not correct.

As per per the flow, state will be changed when token comes out from "wait for Queue Content 0" not when wait is happening.

Can you help me to understand?

Thank you!

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Ankur A3 commented ·

You want the state to be 'blocked' while the AGV is waiting for the queue to empty, correct? For that, the state has to be changed before the token enters the Wait for Event activity.

Maybe you are confused by the connector arrows? A block of activities is always executed from the top.

1690467524394.png

0 Likes 0 ·
1690467524394.png (27.4 KiB)
Ankur A3 avatar image Ankur A3 Felix Möhlmann commented ·
Yes, I was confused with connectors.

Thank you so much! @Felix Möhlmann

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.