question

Jai avatar image
0 Likes"
Jai asked Jai commented

I want to send specific part & quantity to Assembly station (Combiner).

I want to send Specific sub part from buffer (queue) to assembly station (Combiner) for specific main part. I give names as main parts PartA, PartB, PartC and subassembly Parts names as SubpartA, SubpartB, SubpartC. when the assembly station having partA, Queue needs to send SubpartA only with some required quantity like as for variant b and varinat c also.

FlexSim 25.0.1
assembly stationpush to list pull from listinput pulloutput push
parts-assembly.fsm (34.9 KiB)
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

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Jai commented

The Send to Port code gets executed once for each item, as soon as it enters the queue. It is not suited to control the batching of items.

Instead you want to control what the combiner pulls. The On Entry trigger of the combiner has an option that allows to change the required number of items depending on the type of the container item that entered through port 1. In the code that gets generated by that option you can look up the required actions to change how many items are pulled.

To only pull matching items, use the Pull Requirement to match the type label on the prospective pulled item with what is needed by the container item.

parts-assembly_1.fsm


· 6
5 |100000

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

Jai avatar image Jai commented ·

Thank you@Felix Möhlmann.

but I can't be able make changes the code as of requirement.
when I'm trying to do, I got this error 1744706763521.png
can please help me on it.
like when item type PartA is at the combiner (Assembly Station) then combiner needs to pull 1 part of SubpartA, when item type PartB is at the combiner (Assembly station) then combiner needs to pull the 5 parts of subpartB & when item type partC is at the combiner (Assembly station) then combiner needs to pull the 4 parts of SubpartC.

From the single port (Subassembly parts Buffer) assembly station needs to get different quantity of parts based on part type at combiner (assembly station) by the pull logic of combiner or push logic of queue. can you please on it.

0 Likes 0 ·
1744706763521.png (76.8 KiB)
Felix Möhlmann avatar image Felix Möhlmann Jai commented ·
The model I uploaded already works like you describe though?

Why did you duplicate the code? If all subparts are pulled from the same port, then you only need to set one list quantity and the total quantity. (And if there were multiple ports then you would still only set the total quantity once and use a for-loop to set the quantity per port. As the error tells you, you can't have multiple variable with the same name in the code).

Which type of item is pulled is handled in the Pull Requirement field.

0 Likes 0 ·
Jai avatar image Jai Felix Möhlmann commented ·

yes, Thank you it is working perfect.

0 Likes 0 ·
Show more comments