This is the PLC program for the automatic bottle rejection system. Learn the ladder logic with this PLC exercise and…