Hello, I am doing a model which is based on the production of axes. There are 25 types of axes which are processed on different processors depending on the kind and they are moved in batches. Every piece is evaluated at the exit of the processor to check the quality, deeming it correct or incorrect depending on a probability. If the piece is correct, it goes with the rest of the pieces of the same kind and, if it is incorrect, it is stored in a different combiner and the size of the batch is updated.
My problem is when the last piece of the batch is incorrect, because, despite updating the target size of the combiner, the correct pieces don't go to the next machine. To solve it, I have used the moveobject function (in an exit trigger in every processor) to force the batch to exit the combiner and go to the next machine (I have also considered the case in which the destination separator is full and used the moveobject function when the separator becomes free). Before the moveobject is used in the simulation, if the processor a batch has to go to is blocked, it waits until it is free again and then it goes there. However, after using the moveobject function, if the destination is full at the moment the batch is released, it won't go there once it is free again (it is as if it lost the ability to wait for it to get free). It can be seen around the 5400 minute in the "Combiner T2" with the purple pieces, which don't exit the combiner once the destination separator ("Separador R1") is free again.
I know the moveobject is not the best option, but I would like to be able to see the defective pieces at the exit of each processor. Therefore, I would appreciate if anyone knows any way to solve the problem and make Flexsim work the same way before and after using the function.
Thank you in advance.