plc program for a concentrator plant