question

Osman Eralp avatar image
0 Likes"
Osman Eralp asked Osman Eralp commented

Need help accessing Label on Control Point using Process Flow

I want to modify the default AGV Process Flow to wait at certain control points for work items instead of traveling to the NextLookForWork point.

I thought the best way to do this is to add a label called Wait to a control point. I gave it a value of 1. Then, I added a new Decide block to the Main Control Loop. that checks each control point to see if it has the Wait label. If it does, the AGV will wait at that control point even if work exists somewhere else. However, I can't figure out the correct syntax for the Condition. What should I put in the Condition to check the value of the Wait label on the current control point?

I have attached a model that shows what I am trying to model. I want the AGV to stop and wait at Queue 1 even if work exists at Queue2.

TIA

q-about-label.fsm

FlexSim 16.2.0
agv
screenclip.png (36.7 KiB)
q-about-label.fsm (97.5 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

·
Sam Stubbs avatar image
1 Like"
Sam Stubbs answered Osman Eralp commented

The condition you want to enter for your Decide activity is the following:

getlabel(agvinfo(getlabel(token,"agv"),AGV_CURRENT_CP),"Wait")

The agvinfo() command has a lot of useful functions that can return various information about the agv. So I just used the agv label on the token (which points to the agv object) and then used the agvinfo() to get a reference to the control point and then I could grab the label off of it from there.

I've reattached your model below, with the changes.

waitpointagv.fsm


waitpointagv.fsm (97.3 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.

Osman Eralp avatar image Osman Eralp commented ·

Brilliant! That's just what I needed. Thanks!

0 Likes 0 ·

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.