Abstract To explore the application of programmable logic control (PLC) in the automatic control of nonlinear machine tools, the application of PLC in the nonlinear electronic system control is studied. First, the author takes PLC technology in the numerical control machine tool electrical control application as the research equipment, PLC technology in the numerical control machine tool electrical control application is divided into four types. Then, according to the need of management number, the overall structure of PLC is designed and developed, and the concept of operation modularization is adopted to realize the decentralized development of PLC. There are three functional modules: repair, compile, and simulate. Finally, the machining performance of the nc system is evaluated experimentally. The processing time difference of two kinds of machine tools is compared. The average processing time of the original (Numerically controlled) NC system is 3.06 s, and the average processing time of the embedded soft PLC system is 2.01 s, with a gap of 1.04 s between the two systems. The Computer Numerical Control (CNC) machining improvement of 1 s is significant in the processing efficiency of CNC machine tools. The numerical control system embedded in the PLC system is more stable in the machining time, so it can be concluded that the numerical control-embedded soft PLC system has carried on some improvements and upgrades to the operation of machine tools. PLC has relatively strong reliability, stability, and flexibility and is widely used in industrial control systems. In the production process of CNC machine tools, the application of PLC can improve the automatic control level of machine tools. The application of PLC can improve the automatic control level of machine tools and realize the effective control of each link in the production process of CNC machine tools, such as the start-stop program, the automatic replacement of cutting tools in the production process, the automatic diagnosis, and treatment of various faults in the production process, which can be realized through the application of PLC technology.