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.

CN105511394AActive Publication Date: 2016-04-20GUILIN UNIV OF ELECTRONIC TECH
4 Cites 9 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2016-04-20

Smart Images

  • Figure 1
    Figure 1
Patent Text Reader

Abstract

The invention discloses a method and device for achieving PLC controlling in an FPGA platform. The method is converted into Verilog HDL programs through an ST2FP resolver, not only can input and output logic of a PLC be correctly achieved, but also the programs can run in the FPGA platform in parallel, therefore, the mode that a traditional PLC only can sequentially scan executive programs is fundamentally changed, the PLC program execution time is not related to the size of the programs but only related to the depending level of the programs, and the program execution efficiency of an FPGA-PLC is incomparable for the traditional PLC. According to the device, an IEC-61131-3 standard is applied to the FPGA-PLC, the defects that the traditional PLC is poor in closing property and compatibility are overcome, breaking of the monopoly situation of high-end PLC manufacturers is facilitated, the characteristic that the FPGA executes the programs in parallel is also facilitated, therefore, the FPGA-PLC can execute the PLC programs in parallel, and the real-time performance of the PLC is significantly improved; processing of the FPGA is the implementation process of pure hardware, and therefore the FPGA-PLC system has the very high stability.
Need to check novelty before this filing date? Find Prior Art

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...