Dear community members,
i want to model an assembly station that assembles parts coming from two sources:
- source A generates two variants of the product A
- source B generates three variants of the product B
The parts "A" carry the info of their own variant (A1 or A2)
The parts "B" carry the info of their variant (B1, B2 or B3) and which variant of A they have to be assembled with (example of the premid coding: B1_A2)
I would like the assembly station to check the premid of the part B that arrives, and choose the right variant of part A from the source A. How can i do this?
Is there an already existing component for it?
If not and if i should write the code myself, can you tell me where to write it/ how to link it to the station?
The answer may be too obvious, but I am still a very beginner. Thank you very much for your help!
Solved! Go to Solution.
to simplify the modeling you should use the variant as name; the assembly station "pulls" the right parts from its predecessors by name (A1,A2,A3).
The part to assemble is controlled by the assembly list. Each different part need to be connected by a connector. Starting from version 13.2 you can connect a store with the assembly block and fill all parts (except of the main part) into the store. The assembly will pull all parts from the store (by their names).
For older versions you need to distribute the variants of A into different buffers and connect all buffers with the assembly block.
If you want to assembly different parts, you need to change the assembly list dynamically. The best place is the entrance control of the assembly station (before actions). Here you can split your premid (see help --> splitString), create a table with name and quantity of the parts and set the table as assembly table of the assembly station (see help --> AssemblyList)
freelance simulation specialist