question

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

Setting AGV state while collecting item?

Hi Team,

I am modelling a process where AGV has to pick 2 items and drop them. But while waiting for 2nd item its state is shown as idle which is not correct to get right statistics.

1689259299674.png

I am trying to change its state, but it is not working.

1689259585611.png

Can you help to resolve it?

Thank you!

13.07.2023_Setting_AGV_State.fsm

FlexSim 23.1.0
idlechangetask execute state
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

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

Hi @Ankur A3,

You are very close. When the task executer finishes the Load activity, its state gets set to idle, so you just need to place the Set State to "Utilize" activity after the Load activity. You will also need to add a Breathe activity (Delay with a time of zero) in order for this to work.

1689260971964.png



1689260971964.png (48.5 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 @Natalie White;


Yes, it will working well after adding breathe activity.

But while using delay activity under task sequences, it is not working. This option contains more options to choose the state.

1689318080365.png


Can we use it?


Thank you!

0 Likes 0 ·
1689318080365.png (20.6 KiB)
Felix Möhlmann avatar image Felix Möhlmann Ankur A3 commented ·

The delay task only sets the state for as long as the delay lasts and resets is back to the previous value afterwards.

While not all states are shown in the dropdown menu for the Custom Code option, you can just start typing STATE_... in the field and you will get a list of autocomplete suggestions for the define that should include all available default states.

capture1.png

If you know the state number (49 for waiting as seen in your screenshot) you can also use it directly instead of the define.

capture2.png

0 Likes 0 ·
capture1.png (19.3 KiB)
capture2.png (11.2 KiB)
Ankur A3 avatar image Ankur A3 commented ·

Ok @Felix Möhlmann

Thank you so much for the clarification!

0 Likes 0 ·