PLC programmed unit