Pull the child tokens created by parent tokens and palletize

Pull the child tokens created by parent tokens and palletize

raashid_mohammed1
Not applicable
31 Views
5 Replies
Message 1 of 6

Pull the child tokens created by parent tokens and palletize

raashid_mohammed1
Not applicable

[ FlexSim 16.1.1 ]

Hi,

My source is creating a pallet. I have an Event-Triggered Source in Process Flow for the Onentry of the processor that creates a token, which then creates child tokens of all the columns labels in the 3D Source arrival schedule. Those Child tokens split-if value is 0 they go to sink and if greater than zero they create a box at the queue. For example the parent token started off with 6 child tokens and 3 tokens got deleted. Those 3 tokens create boxes at queue and push to the list. I want the parent token to pull its remaining 3 child tokens from the list and put those 3 created boxes linked to those child tokens on its parent token linked pallet. Please help.

FYI. Mathew G The Awesome Guy 🙂 helped me on start of the model.

https://answers.flexsim.com/questions/25860/how-to-make-6-wait-events-and-assign-label-to-one.html

Thank you.

Accepted solutions (1)
32 Views
5 Replies
Replies (5)
Message 2 of 6

Matthew_Gillespie
Autodesk
Autodesk

If you're just trying to fill up a pallet with boxes, I wouldn't even bother with communicating between the parent and child tokens. In this model I use the child tokens to make the boxes on the pallet and then I let them go to a sink. You could add labels to the boxes from the child token if you still want any of the token's labels.

1719-loadpallet.png



Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 3 of 6

raashid_mohammed1
Not applicable

Actually I know how to do that. But for my model ( which is a separate big model). I want the parent token doing something else simultaneously with child tokens then the parent token waits for child tokens to finish and then the parent pulls all its respective child tokens and then does something else

Here is updated model

I still couldn't able to pull and move the boxes to pallet

model2.fsm

0 Likes
Message 4 of 6

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

You configure a few of the fields on the Push and Pull From List activities so you pull only the children of the parent token:

1768-pull-children.png

  1. Set the Request and Require Number to Token: Number of Children.
  2. Set the Partition ID to be the parent token (this will create a separate partition for each parent token so that a token doesn't accidentally pull someone else's children). Since the parent is pulling we set the Partition ID to Token: Entering and the Partition ID for the pushing children is Token: Parent.


Matthew Gillespie
FlexSim Software Developer

Message 5 of 6

Matthew_Gillespie
Autodesk
Autodesk

The reason moving boxes onto the pallet isn't working is because you're not referencing your labels correctly.

1773-arraypickoption.png

Here the pulled label is an array, but you're using it as the object. It should look like this:

1774-arraypickoptionfixed.png

That will get you one of the tokens you just pulled. You'll then need to get the boxitem label off that pulled token. See this model.

Alternatively, you could avoid looping through all the pulled tokens by just having each child token move its respective boxitem right after it's pulled. See this model.



Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 6 of 6

raashid_mohammed1
Not applicable

Thank You Mathew

Alternative parts works perfectly

0 Likes