question

Patrick Zweekhorst avatar image
0 Likes"
Patrick Zweekhorst asked Patrick Zweekhorst commented

cpdeallocate does not work correctly

Hi,

I have made a small example model to show my problem. One AGV (top one) arrives at a cp, at which point I use cpallocate to allocate a controlpoint on a separate network. After 100 seconds I use cpdeallocate to release the cp. This works fine, as can be seen in the tree, but my second AGV which is waiting for that same control point does not start driving.

How can I make this work? Is there some function I need to call to let the second AGV know that it is able to travel again?

Many thanks for your time,

Patrick

cpallocate.fsm

FlexSim 18.2.2
agvcpallocatecpdeallocate
cpallocate.fsm (31.9 KiB)
· 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.

tannerp avatar image tannerp commented ·

Is it a timing issue? Maybe the second AGV is trying to acquire the control point before it is made available and thus it can't successfully allocate it?

0 Likes 0 ·
Patrick Zweekhorst avatar image Patrick Zweekhorst tannerp commented ·

Hi @Tanner Poulton,

That is more or less the point in this example. The second AGV is trying to acquire the controlpoint before it is made available. But after the cp is made available by using cpdeallocate the agv does not start driving again. Do you know how to let the second agv start again after the cp that he need is released?

0 Likes 0 ·
Patrick Zweekhorst avatar image Patrick Zweekhorst tannerp commented ·
@jordan.johnson

Do you know how to get this working? Thanks for your time

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ Patrick Zweekhorst commented ·

cpdeallocate() should be alerting the other AGV that it can go now. I'll debug it to see what is happening and let you know.

1 Like 1 ·

1 Answer

·
Phil BoBo avatar image
3 Likes"
Phil BoBo answered Patrick Zweekhorst commented

This is a bug. I've fixed it for the next bugfix releases.

To fix it in the meantime, you can replace C:\Program Files\FlexSim 2018 Update 2\modules\AGV\AGV.dll with the attached AGV dll.


agv.zip (363.5 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.

Patrick Zweekhorst avatar image Patrick Zweekhorst commented ·

Perfect Phil. This indeed solves the problem. Also thanks for the updated dll

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.