There are three products (P1, P2, P3) and three machines (M1, M2, M3) at my production site. Each product has a specific machine processing order, as follows:
P1: M1> M2> M3> M2> M1
P2: M1> M1> M2> M2> M3
P3: M3> M2> M1> M2> M3
I want to control the order of operator operating the machine. For example, if I write 1, 2, 3 in the global table in order, then the order of operator operating the machine will be M1, M2, M3.
During simulation, the operator will first search for which products have M1 as their first machine to operate (currently it seems to be P1 and P2), and then the operator will move P1 and P2 to the M1 machine for processing. When M1 is finished, the remaining machine processing orders for the three products are as follows:
P1: M2> M3> M2> M1
P2: M2> M2> M3
P3: M3> M2> M1> M2> M3
In P1, Process 1's M1 has already been completed, so it is followed by Process 2's M2; while in P2, Process 1 and 2 are both M1, so they will be processed on M1 twice, and then it will be Process 3's M2.
When the operator has finished with M1, he will process M2. Similarly, the operator will search for which products currently have M2 as their machine to operate (currently it seems to be P1 and P2 again), and then the operator will move P1 and P2 to the M2 machine for processing. When M2 is finished, the remaining machine processing orders for the three products are as follows:
P1: M3> M2> M1
P2: M3
P3: M3> M2> M1> M2> M3
In P1, Process 2's M2 has already been completed, so it is followed by Process 3's M3; while in P2, Process 3 and 4 are both M2, so they will be processed on M2 twice, and then it will be Process 5's M3.
When the operator has finished with M2, he will process M3.
Similarly, the operator will search for which products currently have M3 as their machine to operate (currently it seems to be P1, P2, P3), and then the operator will move P1, P2, and P3 to the M3 machine for processing. When M3 is finished, the remaining machine processing orders for the three products are as follows:
P1: M2> M1
P2:
P3: M2> M1> M2> M3
In P1, Process 3's M3 has already been completed, so it is followed by Process 4's M2;in P2, all processes have been completed; In P3, Process 1's M3 has already been completed, so it is followed by Process 2's M2.
Once the operator have completed operating machines M1, M2, and M3 in order, the operator will no longer continue with his work. The processing of the products will resume once the order of the machines for the three products has been reset and the order in which the operator operate the machines has been reset during the next simulation. How can this scenario be implemented? I would like the order of the machines for the three products to be inputted in a global table for easy modification. I would also like the order in which the operator operate the machines to be inputted in a global table for easy modification as well. And I wish all 3 product will stay in Queue Collect, waiting the operator carry to the machine. When machine finish the process, operator will carry the product back to Queue Collect, waiting for next round. Thanks!