Plc learning simulation