question

mark zhen avatar image
0 Likes"
mark zhen asked Jeanette F commented

agvnetwork

FlexSim 20.0.10
agvnetworkflexsim 20.0.10
agv-1m.fsm (80.0 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @霈倫 , was Tomasz MG's answer helpful? If so, please click the red "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

Tomasz MG avatar image
0 Likes"
Tomasz MG answered Eric M edited

Hi

Try something like this in decide block

value of pallet label Type will be number of connector going from decide block


1622550596439.png (12.0 KiB)
· 2
5 |100000

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

mark zhen avatar image mark zhen commented ·
I would like to ask what is the principle
0 Likes 0 ·
Eric M avatar image Eric M mark zhen commented ·

This is kind of a double label. It works by looking at the token, then the label "PulledItem" on the token, then the label "Type" that is on the "PulledItem." If you click on the token, you can see the labels in the properties window.

So here, the token.PulledItem label is a pointer to the Pallet that's being carried by the TaskExecuter and MOM Car.

When we add token.PulledItem.Type, we are now looking at a label on the PulledItem (or the pallet in the reference). If we click on the pallet, we can see its labels in the property window (Type has a value of 2).

So the "Send to Token" in the decide activity will either have a value of 1 or 2. The Decide activity will then send the token out one of its connectors, either 1 or 2 depending on what the item Type is.

0 Likes 0 ·
1622837826384.png (3.5 KiB)
1622837972130.png (2.5 KiB)
1622838129382.png (7.8 KiB)