Problem
Draw a PLC ladder logic programme that would select high out power between solar panel and wind turbine to feed a food processing company's inverter. The program will also switch on the factory lights at commencement of work, after 15min start the conveyors, robotic arm, raw materials input feeder, processing plant, packaging plant and switch off all appliances and lights at close of work.