question

Mark S3 avatar image
0 Likes"
Mark S3 asked Joerg Vogel commented

How do I know when an agv is leaving the currentCP ?

How do I know when an agv is leaving the currentCP ? I set CP to be a resource point, and as soon as the agv leaves the CP, I release the resource

pp.png

problem.fsm

FlexSim 22.1.4
agvcontrolpointcurrentcp
pp.png (31.7 KiB)
problem.fsm (32.9 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.

Joerg Vogel avatar image Joerg Vogel commented ·
@Mark S3, I would test any involved events by printing parameters of triggers to an output console. There are events for allocation, vehicle and control points. My test would be on vehicles traveling over a control point, stopping and resuming at or from a control point.
0 Likes 0 ·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Felix Möhlmann edited

You can't detect this - but you can detect deallocation event.

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

Mark S3 avatar image Mark S3 commented ·

if I detect deallocation event,the agv need travel to next CP.It doesn't meet my needs

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Mark S3 commented ·

That will depend on the deallocation setting of the CP. You could configure it to coincide with the AGV moving past the control point.

If you need it to only deallocate when at the next control point, then the closest event would be the allocation of that next CP along the AGVs path. It will happen before the AGV actually drives past the current CP, but if you are not using accumulation, you can be sure that the AGV will continue past the CP in the very near future.

0 Likes 0 ·
David Seo avatar image
0 Likes"
David Seo answered Mark S3 commented

AGV.recentCP

Object recentCP

Description

Gets the control point that was most recently the agv's currentCP.

This is useful if the agv has moved past its last currentCP (and therefore currentCP is null) but you still want to be able to access that most recent control point.

Object cp = agv.recentCP;

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

Mark S3 avatar image Mark S3 commented ·

currentCP is not null,currentCP is still the same.

pp1.png

0 Likes 0 ·
pp1.png (121.3 KiB)