Thanks for the suggestions everyone.
As SteveBailey said, the problem is probably not in the PLC, which i agree. But, in order to determain which part of the machine is faulty we need to check it during work to see which operation does not get carried out and why. Otherwise its just like looking...