question

shanice.c avatar image
0 Likes"
shanice.c asked Kavika F commented

How to synchronize two objects flows using send message?

Hello, I would like to solve AGV traffic control problem for bidirectional problem. For simple model, I have only AGV object flow in model, traffic problem could be solved using control Area in flexsim. For more complicated models, our country distributor suggests to use another object flow(the instance object is a cp, it's function is like a central controlling brain of the intersection or place that need to be controlled.)

Now my problem is how to synchronize two objects flows? When there are more than 1 agv travel face to face on the same path, I need traffic object process flow instance send message to AGV object process flow to ask agv to travel to a parking point nearby(like A, B in the picture), waiting there temporarily until control area empty.

1653883519229.png


If first problem could be solved, then there would be 2 process flows control AGV. Although the traffic object process flow instance is a cp, but in it's subflow it create token that is assigned to AGV in 3D world. So my second problem is that it's hard to control AGV from two process flows. I actually want to build logic from AGV's point of view. I think this would be easy to control and debug.


testtraffic control.fsm

FlexSim 22.1.0
agvsend message
· 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.

Kavika F avatar image Kavika F ♦ commented ·

Hi @shanice.c, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered

You can have AGV based object flows in addition to a central controller. I think the best way to communicate and sychronize between process flows is not through messages but by pushing to and pulling from global lists.

5 |100000

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

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.