PLC coding with its ups and downs