question

amandaprado avatar image
0 Likes"
amandaprado asked Logan Gold commented

How to reference the flow item in Process Flow

Doubt - Load.fsmGood afternoon Community!


I am unable to perform the Load activity on the attached model.

The source is creating the items in the 3D model and I want to build logic in the Process Flow capable of transporting, loading and unloading the items that are in the queue to another queue.

In Process flow I am releasing the token every 1 hour for the load/unload mission to occur, so the process flow token is only being used to trigger the logic.

It happens that when the AGV is going to carry out the LOAD, an error appears, which I believe is due to the fact that the PF does not understand that it needs to load the boxes, as it does not understand what needs to be carried out.

I don't know how to reference the flow items in the PF.


Can anybody help me ?

The model is attached.


Extremely grateful for the help.

FlexSim 24.1.0
processs flowloadagv load
doubt-load.fsm (33.2 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.

Logan Gold avatar image Logan Gold ♦♦ commented ·

Hi @amandaprado, was one of Gustavo Teodoro's or Patrick Cloutier's or Felix Möhlmann's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. 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 comment back to reopen your question.

0 Likes 0 ·
Gustavo Teodoro avatar image
0 Likes"
Gustavo Teodoro answered

If you prefer not to use lists or a container, you can use the command mentioned by @Patrick Cloutier . Then, you should use a decision command to check if all the boxes in the queue have been collected. If they have not, the process performs the loading again. If they have been collected, the token proceeds to the next activity. To execute the decision command, use “Model.find("Queue1").subnodes.length == 0”.

1721735109703.png
doubt-load_Decide.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.

Patrick Cloutier avatar image
0 Likes"
Patrick Cloutier answered Patrick Cloutier edited

Add an Assign Labels activity which designates the label "item" as "Queue1.first".

And place that before the Travel so you can reference token.item in the Travel and in the Load.

1721650886825.png

And if you want to make this fancier, you can change the "Value" to a rule such as "Values by Case" or another predefined logic.



1721650886825.png (37.7 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.

Patrick Cloutier avatar image Patrick Cloutier commented ·

As Felix mentionned, your logic will not work if there is no item in the Queue.

To fix that, change the Source to an "Event-Triggered Source" which triggers OnEntry of your Source1 and assigns token.item to the object that triggered the event.

Or if you want the Truck to go to wherever there is a box to pick, make the Queues part of a group called "Queues" (for example) and have that group trigger the Event-Triggered Source. This way the truck will automatically go where there is something to pick.



0 Likes 0 ·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

A good way to sync a Process Flow and 3D model are lists.

https://docs.flexsim.com/en/24.1/ConnectingFlows/Lists/WorkingWithLists/WorkingWithLists.html

doubt-load_1.fsm

This also takes care of having the token wait in case there is no item available.


doubt-load-1.fsm (35.0 KiB)
· 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.

amandaprado avatar image amandaprado commented ·

Thank you very much for the answer, but how could I configure the model so that when the AGV travels to the queue every hour it picks up ALL ITENS that are within the queue?


0 Likes 0 ·
Patrick Cloutier avatar image Patrick Cloutier amandaprado commented ·

Are the items on a pallet or container and the whole container is transfered or are they all transfered one by one?

By the way, you put your comment as an Answer.

0 Likes 0 ·
amandaprado avatar image amandaprado Patrick Cloutier commented ·

Items are placed in a cart.

The AGV attaches to this cart and takes all the items to another station, so all the items are transferred at once.

0 Likes 0 ·
Show more comments
Felix Möhlmann avatar image Felix Möhlmann amandaprado commented ·

You pull multiple items from the list and load/unload them in a sub flow.

doubt-load-2.fsm

0 Likes 0 ·
doubt-load-2.fsm (39.5 KiB)