question

Ryosuke S avatar image
0 Likes"
Ryosuke S asked Ryosuke S commented

Trouble resuming AGV

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.

Crossing_3way_5.fsm

FlexSim 20.1.3
processflowflexsim 20.1.3control area
capture035.jpg (255.9 KiB)
crossing-3way-5.fsm (44.1 KiB)
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

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Ryosuke S commented

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

crossing-3way-5_jl.fsm


· 5
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ryosuke S avatar image Ryosuke S commented ·

@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 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Ryosuke S commented ·

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 0 ·
Ryosuke S avatar image Ryosuke S Jason Lightfoot ♦ commented ·

@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 0 ·
crossing-3way-6.fsm (42.9 KiB)
Show more comments

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.