question

Pienbol avatar image
0 Likes"
Pienbol asked Pienbol commented

combine all items with the same label

Hi! I am trying to simulate a piping production process. A pipe (Spool ID) is connected to a job number. The job number represents one long pipe and Spool IDs with same job number all are sawed from that pipe. For the simulation I want to combine all the pipes with the same job number and than separate them again before they go in the production proces.

screenshot-2025-04-17-110346.png

screenshot-2025-04-17-111609.png

How can I pull and combine the SpoolIDs with the same job number?

In the example I just set the combiner on 5 but the amount of SpoolIDs with the same job number can vary. The table with the SpoolIDs and job number is the input for the source.

Thank you in advance for your help!

Example combine on jobID.fsm

FlexSim 25.1.0
labelpull itemscombiner pull
5 |100000

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

1 Answer

martin.j avatar image
0 Likes"
martin.j answered Pienbol commented

I find problems like this is most easily solved using processflow:

example-combine-on-jobid_PF.fsm1745312820288.png

In the attached model i have created a small flow that

  1. Reads a copy of your arrivals table and creates a token for each line.
    • Using the popout arrow I simply copied the tabel into the Arrival Source activty
  2. Creates a 3D pipe item in the model for each token (could manually have copied the labels over)
  3. Copies all labels from the token to the item.
    • Done with code because I am too lazy to manually add all the labels in the Create Pipe activity
  4. Batches all tokens based on Job Number co combine Spool-IDs on tokens by Job Number
    • The batch process creates an items label on the batch token with a list of all the pipe-items that whent into that batch.
    • The batch process has a very short timeout to await all Job Numbers and then release the batch.
  5. Create a Pallet object for each batch / Job Number in a Queue (Queue5)
  6. Moves all the items onto the Pallets
  7. Destroy the bacth token... for now.

Now the Saw should be able to unpack the pallet with all the pipe items onn it.

EDIT: I forgot to attach the model


· 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.

Pienbol avatar image Pienbol commented ·
Thank you so much, it works perfectly!
0 Likes 0 ·