question

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

Agvreassigncp goes wrong when attaching trailers at the back

Hi

We have a problem using agvreassigncp (or AGV.currentCP) in combination with trailers attached to the back of the AGV. We have made a simple example model that shows the problem. What is not normal in this situation is that we don't reassign the AGV when it is on a control point, it is on its way to a control point, but before it gets there we remove the task sequence and reassign it to another cp. When the AGV starts traveling again you can see it makes a small jump. The AGV is not at the start cp, but its last trailer is at the cp. When the trailer is at the front of the AGV everything works fine.

The model:
test.fsm

Thanks for your time,

Patrick

FlexSim 19.0.2
agvtrailerreassigncp
test.fsm (27.0 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.

Joseph Gillespie avatar image Joseph Gillespie commented ·

@Patrick Zweekhorst Just to clarify, are you mostly interested in why this happens, or are you trying to get around this problem for something you are working on? Why not just make the AGV stop at a control point before using agvreassigncp?

0 Likes 0 ·
Patrick Zweekhorst avatar image Patrick Zweekhorst Joseph Gillespie commented ·

Hi @Joseph Gillespie,

Thank you for your time. We would like to know why this is happening. In the actual model we worked around this by having the trailers at the front. Your suggestion of having the AGV stop at a control point wont work because there is no control point at the moment we want to reassign the AGV. If we would let the AGV continue to the next control point we would lose a lot of time.

0 Likes 0 ·
Patrick Zweekhorst avatar image Patrick Zweekhorst Joseph Gillespie commented ·

Hi @Joseph Gillespie,

Is it clear for you what is the problem in this model?

0 Likes 0 ·
Joseph Gillespie avatar image Joseph Gillespie commented ·
@anthony.johnson

Could you take a look at this and see if Patrick's problem is a bug?

0 Likes 0 ·

1 Answer

Joseph Gillespie avatar image
0 Likes"
Joseph Gillespie answered Patrick Zweekhorst commented

@Patrick Zweekhorst

Sorry for not responding to you until now, this was a difficult question to answer. I'm still not entirely sure why this problem occurs, though I could add some of the developers to this question to see if they know what is going on.

I did find a workaround that does what you want it to do without using control points or putting trailers in front. It works by detaching the trailers from the AGV, changing its' control point, having it begin to travel (with wait until complete unchecked), breathing (break of 0 seconds), and then reattaching the trailers. Visually you can't even tell that the trailers were detatched.

Here is your model with this fix working: agvreassigncpanswer.fsm

Let me know if you have any questions!


· 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 ·

Hi @Joseph Gillespie,

This seems to be a good work around.
Thanks for the help.

0 Likes 0 ·