Implemented some item of PLC logic