About PLC principle and application