PLC code for RO4