question

GabrielTorres avatar image
0 Likes"
GabrielTorres asked GabrielTorres edited

I'm Having Trouble Trasporting Objects Created by Children Tokens

I am making a processflow that creates trucks with its contents as labels. Afterwards the truck is filled with pallets. There is only three ports and transporters available so there is a list for each of these. When the trucks arrive, they wait until a port is available to create the objects in it. The trucks act as parent tokens and the pallets as child tokens. I am having trouble when it comes to transporting these pallets from the trucks to a sink. The trasnporters move correctly and the labels seem to work, but afeter the trasnporter gets to the first pallet it stops. The labels for each pallet are stored in an array inside a label of the parent token as well as the taskSequence labels. I need the port to be empty before another truck enters the port, that is why I am unloading the trucks during the process. I've been stuck on this for a while and don't know how to fix it.

Creacion.fsm

FlexSim 23.2.2
proces flowtasksequenceschild tokens
· 3
5 |100000

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

Felix Möhlmann avatar image Felix Möhlmann commented ·
Your model didn't upload successfully. Could you try again?
0 Likes 0 ·
GabrielTorres avatar image GabrielTorres Felix Möhlmann commented ·

Sure! Here it is. Please let me know if it works now.Creacion.fsm

0 Likes 0 ·
creacion.fsm (48.8 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Diagnostic tips: Check all your references to objects in the pointer labels and arrays. Click on each token in subflows and check the values for activities you think are not happening. Use the 'step' button to go through the process steps - if too many are being skipped in one step add a Breathe activity.

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered GabrielTorres edited

The issue is caused by the way you are handling the task sequence label. The first token (NUM == 1) creates a new task sequence and starts the load task. Afterwards the other tokens create more task sequences and insert them in front of the sequence of the first token. When the first token then starts the unload task it is assigned to the first sequence in the array label which is the last one that was created and not the one belonging to that first token.

1699514266445.png

The logic becomes less complex and easier to follow if you use the option to run the sub flow tokens one at a time. That way you only have a single task sequence per transporter at a time and don't have to deal with an index for the sequence at all.

1699514399771.png

creacion_1.fsm


1699514266445.png (13.6 KiB)
1699514399771.png (1.9 KiB)
creacion-1.fsm (47.6 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.

GabrielTorres avatar image GabrielTorres commented ·

Thank you so much! It's working now! Thank you for taking the time of explaining what was wrong.

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.