System and method for realizing plc high-speed pulse counting based on fpga

A high-speed pulse and system realization technology, applied in the field of PLC counting, can solve the problem of consuming large FPGA lookup table resources, etc.

Active Publication Date: 2016-02-10
SHENZHEN INOVANCE TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is to provide a FPGA-based PLC high-speed pulse counting implementation system and method for the above-mentioned problem that PLC counting consumes a large amount of FPGA lookup table resources

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • System and method for realizing plc high-speed pulse counting based on fpga
  • System and method for realizing plc high-speed pulse counting based on fpga
  • System and method for realizing plc high-speed pulse counting based on fpga

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0025] Such as figure 1 Shown is a schematic diagram of the first embodiment of the FPGA-based PLC high-speed pulse counting realization system of the present invention. The system includes an FPGA 10 including a dual-port block RAM 11 , a comparison control state machine 12 and a counter stack 13 . The above-mentioned dual-port block RAM11 has two ports, and the two ports are respectively connected to the micro-control unit of the PLC and the comparison control state machine 12 .

[0026] The dual-port block RAM 11 includes multiple sets of compare registers. For example, the dual-port block RA...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a programmable logic controller (PLC) high speed pulse counting implementation system based on a field programmable gate array (FPGA). The PLC high speed pulse counting implementation system based on the FPGA comprises the FPGA. The FPGA comprises a dual-port block random access memory (RAM), a comparison control state machine and a counter pile, wherein the dual-port block RAM comprises multiple groups of comparison registers, the counter pile comprises multiple counters which are used for counting input pulses, each counter in the counter pile corresponds to one group of comparison registers in the dual-port block RAM, and the comparison control state machine is used for reading the value of each comparison register from the dual-port block RAM in a cyclic mode and comparing the value of each comparison register with the value of one corresponding counter in the counter pile. The invention further provides a method corresponding to the PLC high speed pulse counting implementation system based on the FPGA. According to the PLC high speed pulse counting implementation system based on the FPGA and the corresponding method, comparative data are stored in the dual-port block RAM inside the FPGA, the comparison control state machine is used for comparing the comparative data in the dual-port block RAM with the values of the counters in a cyclic mode, and therefore counting and comparison of the high speed pulses through a PLC are realized.

Description

technical field [0001] The invention relates to the field of PLC counting, and more specifically, relates to an FPGA-based PLC high-speed pulse counting comparison system and method. Background technique [0002] PLC (Programmable Logic Controller, Programmable Logic Controller) is widely used in various automation control fields. One of the main functions of PLC is to realize the counting and comparison of different forms of high-speed pulses. [0003] In order to realize the counting comparison function of PLC, most of them are implemented by FPGA (Field-Programmable Gate Array, Field Programmable Gate Array) at present. Design multiple counters and comparison registers in the FPGA. The counter realizes the pulse counting of different modes according to the user's settings. Values ​​are compared to determine whether the count reaches the comparison value. [0004] In order to meet the user's need to set the size of the comparison data value, the counter and the compariso...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): H03K21/00G05B19/05
Inventor 郭福坤
Owner SHENZHEN INOVANCE TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products