question

shanice.c avatar image
0 Likes"
shanice.c asked Eric M edited

How to know which CP AGV is heading to, and get the label value of that CP?

In my cases, AGV has to do rotate and crab moving when loading/unloading at some bays. To simplify this model, AGVs have to do rotation and crab moving to arrive some input buffer(Queue), while in others Queues don't.

I gave each dropoff controlpoint a label(A_value). While A_value=1, AGVs have to do rotation an crab moving at main path, AGVs will leave from main path and stop next to Queue, then start to do load/unload tasks. If A_value=2, AGVs simply move like they originally work, directly travel to control point and execute load/unload tasks.

I add a new field in "Dropoffpoint" list, which is "A value". Now I would like to read this A_value to determine if AGV should do rotation. My problem is how can I get this A_value in decide activity. In AGV process flow, the activity after "Unloading: Get a dropoff point", I would like to know which control point the AGV is ready to go, then get the label value(A_value) of this controlpoint. If A_value=1, AGV would do Run Rotation & crab moving Sub Flow first, later on they start to load/unload.


At cp49,51,53, A_value=1

At cp30,28,16, A_value=2

AGV rotation and crab moving.fsm

FlexSim 21.1.4
agvdestination pointagv task
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

·
Eric M avatar image
0 Likes"
Eric M answered Eric M edited

Hi @Fiona C, nice set up. You just needed to change one thing in the decide activity. Because the value is either 1 or 2, you can have that value go right in the "Send Token To" box. The token will then go out connector 1 or 2 depending on the value of the A label. The right syntax to reference that value is also shown below:

1626460235845.pngI'll explain a little more how I was able to find out what the syntax should be to get that label value. I first looked in the list and noticed that whatever is pulled will be assigned to the label "token.dropoffCP."

1626460086405.png

You can also double check this value by looking at the token once it has pulled something from the list. Below you can see in the token properties that the reference to ControlPoint4 is stored in the label dropoffCP. So token.dropoffCP gets us the control point, and adding the "A" at the end will get us the label value of A on that control point (as a note, the label is not called "A value" like the column header in the list. It is just "A" because that's what the actual label is on the control point).

1626459829196.png

One other note, it looks like there is no A label on control point 4, so the model is returning errors.

agv-rotation-and-crab-moving_1.fsm


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.