Method and device for achieving PLC controlling in FPGA platform
A platform and logic technology, applied in the field of microprocessor control, can solve the problems of low real-time performance of soft PLC, achieve high stability and improve real-time performance.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2016-04-20
Smart Images

Figure 1
Abstract
Description
technical field
[0001] The invention belongs to the technical field of microprocessor control, in particular to a method and device for realizing PLC control on an FPGA platform. Background technique
[0002] Programmable logic controller PLC (Programmable Logic Controller) has been widely used in manufacturing systems for many years. After decades of development, traditional hard PLC has become a mature technology. It is used in industrial control with its high speed, high performance and high reliability. field has been widely used. However, the traditional hard PLC has great disadvantages: the products of manufacturers are incompatible with each other, lack of clear and consistent standards, and it is difficult to build an open hardware architecture; the programming methods of each manufacturer's products are very different, and the technology is more proprietary Strong, the staff must go through a long period of professional training to master the programming method of ...
Examples
Embodiment
[0053] A method for realizing PLC control on an FPGA platform, comprising the steps of:
[0054] 1) Generate PLC ladder diagram;
[0055] 2) Generate a structured text file of the IEC61131-3 standard;
[0056] 3) Determine the logical dependencies in each line of structured text of the PLC;
[0057] Analyze the structured text file obtained in step 2 to obtain the dependencies between PLC logic;
[0058] 4) Establish a concurrent scanning model of the FPGA process;
[0059] Obtain the concurrent scan model of the FPGA process by the dependencies generated in step 3;
[0060] 5) Realize the conversion from structured text to FPGA;
[0061] Realize structured text to FPGA conversion according to the concurrent scanning model of step 4;
[0062] 6) Synthetically generate FPGA firmware;
[0063] Use the FPGA tool set to carry out the IEC61131-3 basic function module library realized by the FPGA module in step 5)
[0064] Synthetically generate FPGA firmware.
[0065] Defin...