Principle and application of plc programmable controller