Conditioning the machine product route

Conditioning the machine product route

harikaumutergun
Explorer Explorer
1,623 Views
9 Replies
Message 1 of 10

Conditioning the machine product route

harikaumutergun
Explorer
Explorer

[ FlexSim 24.0.8 ]

1742900949860.png

In real life production, the card enters 1 machine (called seho) and goes through 3 processes. The operations in seho are flux preheating and soldering, respectively. However, there is a feature in the machine: there are 2 heads in the soldering stage, meaning that soldering can be done to 2 cards at the same time. But there is a condition for this. After the card goes through the flux preheating soldering stages, it goes to the 1st head of the solder and solders are made. If the card coming from behind has not finished the preheating step (flux may be empty, preheating may be empty or preheating may be in progress etc.), the previous card continues the soldering process in the soldering1 head. However, if the card coming from behind has left the preheating, meaning it is waiting in line for soldering, the card in front goes to soldering2 and continues the soldering process from where it left off. The card coming from behind also goes to soldering1 and starts the soldering process. In other words, soldering can be done in both heads at the same time. But there are cases where this does not happen. In other words, while the soldering process of the card in front is about to finish in soldering1, the card coming from behind may still be in the flux step. Therefore, the card in front may come out without any soldering process in soldering2.

What I want from you is to create this environment in flexsim. I added a queue after preheating. In this way, when there is a card in the queue (maximum can be 1 card), the card in solder1 should immediately switch to solder2. But I could not fulfill this condition.

0 Likes
Accepted solutions (1)
1,624 Views
9 Replies
Replies (9)
Message 2 of 10

FelixMoehlmann
Collaborator
Collaborator
Accepted solution

Functionally, I don't see how this is different from using a single processor with a maximum capacity of 2. If you need the utilization of the two soldering heads separately, I would use a dummy processor whose state is set to processing whenever there are two items on the main processor. That is overall much easier than managing a premature release of items.

soldering-example.fsm

0 Likes
Message 3 of 10

harikaumutergun
Explorer
Explorer

First of all, thank you for your answer. I need to update the product route according to the queue at the preheating exit. Both soldering heads on the machine are not filled with product at the same time. If the total soldering time of 1 pcb is 30 seconds (for example), if there is no card in the queue at the preheating exit, it spends the entire 30 seconds in solder1. Therefore, that card does not stay in solder2. In other words, the 2 heads are not used at the same time. But let's say that when the card is at the 15th second in solder1, if there is a card in the queue at the preheating exit, the card in solder1 will move to solder2 and complete the remaining 15 seconds here. However, I do not know numerically how much processing time the card spends in solder1 and solder2. Because the time changes depending on the situation at the preheating exit.

1742908298067.png

While the product coming from behind is in bacaklı dizgi 4, the product in front is processed in solder 1. But what I want is for the product in front to be sent to solder2 machine as soon as it arrives in bacaklı dizgi 4.

0 Likes
Message 4 of 10

FelixMoehlmann
Collaborator
Collaborator

As I said, functionally, as far as throughput and utilization are concerned, my model does exactly that. The second processor is only 'used' while there are two items.

You can also actually move the item. But I just find the necessary coding more complex and thus wanted to present the easier solution first.

soldering-example_1.fsm

0 Likes
Message 5 of 10

harikaumutergun
Explorer
Explorer

I think I ran your code properly this time. But I regret to inform you that this is not what the company wants. Soldering2 should work as a machine depending on the condition, not as a symbolic machine. If the total soldering time is 520, and the card remains in Soldering1 for 500 seconds, Soldering2 should remain for 20 seconds. (I don't know the times because they change). We managed to get the product directly to Soldering1 without waiting for any product in the Bacaklı Dizgi4. What I want now is to reduce the max content in Soldering1 to 1 and activate Soldering2.

1743063670800.png.

0 Likes
Message 6 of 10

harikaumutergun
Explorer
Explorer

I just realized I didn't add the triggers. After adding them, I got these two situations. They happen sequentially. In the first case, the product is still waiting in Bacaklı Dizgi4, which is not what we want. In the second case, as soon as the product arrives in Bacaklı Dizgi4, the product in solder1 goes to Bacaklı Dizgi. Which is not what we want, because it should go to solder2 and continue processing there. @Felix Möhlmann

1743065300615.png

Image.png


0 Likes
Message 7 of 10

FelixMoehlmann
Collaborator
Collaborator
The port connections order is still wrong. The first connections needs to go to the queue and the second to the second processor (or you swap the return values in the Send to Port code of Soldering 1)

If there are still issues after swapping the connections, please upload the model so I can better check what might still be missing.

0 Likes
Message 8 of 10

harikaumutergun
Explorer
Explorer
0 Likes
Message 9 of 10

FelixMoehlmann
Collaborator
Collaborator

Swap the order of the output connections of soldering1

capture1.png

soldering1-2-example_1.fsm

0 Likes
Message 10 of 10

harikaumutergun
Explorer
Explorer

Çok teşekkür ederim, tam istediğim şeydi!!!

0 Likes