question

Raashid Mohammed avatar image
1 Like"
Raashid Mohammed asked Sam Stubbs commented

Pull the child tokens created by parent tokens and palletize

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.

FlexSim 16.1.1
listchild tokensparent token
model2.fsm (91.1 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.

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

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.

0 Likes 0 ·
loadpallet.png (10.0 KiB)
Raashid Mohammed avatar image Raashid Mohammed Matthew Gillespie ♦♦ commented ·

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 0 ·
model2.fsm (92.9 KiB)
model2.fsm (92.9 KiB)

1 Answer

·
Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Sam Stubbs commented

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:

  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.

pull-children.png (21.9 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.

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

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

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

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.

0 Likes 0 ·
Raashid Mohammed avatar image Raashid Mohammed commented ·

Thank You Mathew

Alternative parts works perfectly

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.