Trouble resuming AGV

Trouble resuming AGV

sakamoto_ryosuke
Collaborator Collaborator
12 Views
6 Replies
Message 1 of 7

Trouble resuming AGV

sakamoto_ryosuke
Collaborator
Collaborator

[ FlexSim 20.1.3 ]

I have a layout where I want control the AGV entering Control Area using matrix(TEMatrix and TEStatus) defining which AGV can enter at the same time and which can not. TEStatus tells you which TE is in the CA. The logic itself seems OK, but when I want to make the agv resume after stop, it doesn't resume. What maybe the problem here?

In the attached file, when you start simulation, TE3 starts moving, then TE1 starts to move, but stops at the CA because TE3 is still in the area. After TE3 is out of CA, the token for TE1 goes through the "CustomCode: Resume", but TE1 doesn't resume.

36359-capture035.jpg

Crossing_3way_5.fsm

0 Likes
Accepted solutions (1)
13 Views
6 Replies
Replies (6)
Message 2 of 7

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

I think you'll find this is a simpler solution.

crossing-3way-5_jl.fsm

0 Likes
Message 3 of 7

sakamoto_ryosuke
Collaborator
Collaborator

@jason.lightfoot Thank you for your support. This is simple and great. But I suppose this processflow works only for this particular layout, am I correct? I wanted to make it generic because in customer layout, there are several control area, and at each control area, the agvs doesn't necessarily cross in this manner. And if possible customer want to reuse the processflow once made.

0 Likes
Message 4 of 7

jason_lightfootVL7B4
Autodesk
Autodesk

Okay. Welll the reason your TE1 doesn't resume is because your 'scanning' technique is stopping TE1 every 0.1 seconds or so and the stops accumulate. Instead of scanning I suggest you wait for an event like a deallocation from the control zone (any TE - doesn't have to match).

0 Likes
Message 5 of 7

sakamoto_ryosuke
Collaborator
Collaborator

@jason.lightfoot Thanks to your advice, I think I got the behavior I want. However, I keep getting error at Wait for Event activity, and could you help me how to solve it?

Crossing_3way_6.fsm

0 Likes
Message 6 of 7

jason_lightfootVL7B4
Autodesk
Autodesk

Just add a zero time (breathe) delay before the Stop AGV Custom Code activity.

0 Likes
Message 7 of 7

sakamoto_ryosuke
Collaborator
Collaborator

@jason.lightfoot Thank you so much!!

0 Likes