Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for rapid communication transmission and data processing between PLC and upper computer

A data processing and controller technology, applied in the PLC application field, can solve the problems of slow refresh of changing data, increase, waste of time, etc.

Active Publication Date: 2020-09-15
NARI TECH CO LTD +1
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the number of registers contained in the data packet is increased, although the number of data packets can be reduced, the number of communication links established and the link time will be reduced accordingly, but the increase in the length of the message will greatly increase the possibility of communication failure, resulting in the need for repeated communication. , wasting communication time
[0004] In the traditional method, the upper computer still reads each data packet sequentially even if there is no changed data, which is a waste of time. Under unfavorable circumstances, the host computer has just finished reading a data packet, and the data packet changes, and the host computer needs to poll the data packet for a circle before it can read that the changed data is a data packet. If the data packet has more than a dozen , the time delay for the host computer to feed back the changed data is the time to read more than a dozen data packets, resulting in slow refresh of the changed data

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
  • Method for rapid communication transmission and data processing between PLC and upper computer
  • Method for rapid communication transmission and data processing between PLC and upper computer
  • Method for rapid communication transmission and data processing between PLC and upper computer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] combine Figure 1 to Figure 5 As shown, the present invention discloses a method for rapid communication transmission and data processing between a PLC controller and an upper computer, including figure 1 The PLC controller data processing logic shown, such as figure 2 The host computer data processing initialization logic shown.

[0055] and, if image 3 In the data reading logic of the host computer shown, the task of the host computer to read PLC data is located in the highest priority process of the host computer.

[0056] Such as Figure 4 In the data processing logic of the host computer shown, the task of the host computer to process all data packets with changed data is located in the second highest priority process of the host computer. That is, after all the tasks of the highest priority process are completed, the upper computer in the second highest priority process is executed to process the task of fetching all data packets with changed data.

[0057]...

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 method for rapid communication transmission and data processing between a PLC and an upper computer. In an application occasion where the monitored data volume of the PLC is large and the data change is little, in each communication data packet, a plurality of data registers are occupied as state registers and are used for transmitting changed data information of the datapacket to the upper computer; in the PLC, a space is opened, and a temporary storage data packet is placed; the temporary storage register in the temporary storage data packet is compared with the register corresponding to the current data packet, and the status bit of the current data packet with the changed data is negated, so that the data packet with the changed data is read emphatically, andthe reading speed and the processing speed for the changed data by the upper computer are remarkably improved; and time delay caused by the fact that the upper computer issues the data packet and reads the information is avoided, and recording errors of the action sequence of remote signaling displacement in a traditional method are avoided.

Description

technical field [0001] The invention relates to a method for improving PLC transmission and processing efficiency, belonging to the PLC application field. Background technique [0002] PLC has a very wide range of applications where the amount of monitoring data is large and the data changes little, such as the wind and hydropower system of a subway station. Its monitoring of wind and hydropower is based on the BAS (Building Automation System, hereinafter referred to as BAS) Controller, hereinafter referred to as PLC) to monitor. [0003] The data monitored by the PLC is stored and transmitted by registers, and a register usually occupies two bytes. PLC communication is usually based on the MODBUS communication protocol. A packet of data in a normal message has 125 registers, that is, 250 bytes. There are usually three packets of digital input data monitored by PLC in a subway station, and more than ten packets of analog input data. It takes 300 milliseconds to query one p...

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 Applications(China)
IPC IPC(8): G05B19/05
CPCG05B19/054G05B2219/1103
Inventor 李钢金辉曲小平郝明明张伟峰
Owner NARI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products