Advanced PLC programming for defective parts sorting to distinguish between good and bad parts and then transport them via conveyors.