Abstract:In order to ensure that the instruction program generated by the host computer at the PC side meets the PLC control principle, ensure the logic compilation ability of the PLC programmer, and improve the accuracy of instruction coding, a distributed control system based on embedded soft PLC is designed. According to the definition standard of soft PLC, determine the composition form of the system structure, and then complete the technical basic research of the embedded soft PLC system by analyzing the work execution mechanism. In the distributed system, the I/O driver and the PLC execution program are developed at the same time, and the real-time operation state of the CODESYS engineering components is determined in conjunction with the lower level PLC programmer equipment to complete the I/O component design of the distributed control system. According to the entry and exit modes of the real-time kernel, the value range of the time-sharing image area is defined. With the help of the control instruction execution program stored in the database host, the instruction logic stack expression is solved, the specification of the soft PLC drive mode is realized, and the design of the distributed control system based on the embedded soft PLC is completed. The experimental results show that the PC output results of the 10 instruction programs selected in this experiment all meet the PLC control principles, have outstanding value in ensuring the logic compilation ability of the PLC programmer, and can effectively improve the accuracy of instruction coding.