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

Rapid communication structure and rapid communication method for multiple upper computers and controller based on RS485 bus

A communication method and controller technology, applied in the field of industrial communication, can solve the problems of slow system response, poor real-time performance, and large differences in controller data, and achieve the effect of saving bus resources, improving communication speed, and ensuring consistency

Active Publication Date: 2022-03-25
上海繁易信息科技股份有限公司
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, based on the 485 bus request response communication, the most common and mature one is the modbus protocol. The modbus protocol is a master / slave architecture protocol. The master-slave protocol strictly follows the request response mechanism. When there are multiple modbus host computers, the host computer The instructions for reading and writing the controller cannot be used at the same time. Only after the instruction of the previous upper computer is executed, the control right is delivered to the next upper computer, and the instruction of the next upper computer can be executed, even if only the same frame of data of the controller is read. , each host computer has only one read command, if there are 100 host computers, the average time for each host computer to finish reading is calculated as 20ms, then the cycle of polling once is also 20*100=2000ms; The read and write cycle of the controller to the controller is much longer than 20ms. Therefore, the polling cycle is too long, the controller data collected by the host computer is quite different, the real-time performance is not good, and the response of the whole system is slow.

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
  • Rapid communication structure and rapid communication method for multiple upper computers and controller based on RS485 bus
  • Rapid communication structure and rapid communication method for multiple upper computers and controller based on RS485 bus
  • Rapid communication structure and rapid communication method for multiple upper computers and controller based on RS485 bus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The present invention will be further described below in conjunction with the accompanying drawings.

[0051] This application discloses a plurality of upper computers and controller fast communication structures based on RS485 bus, such as figure 1 As shown, it includes: a controller 1 and a plurality of upper computers 2, the upper computer 2 is used to display the data in the controller 1, and can change the data of the controller 1, the upper computer 2 and the control The device 1 is connected through the 485 bus 3, and the data is transmitted on the 485 bus 3. All the upper computers 2 have corresponding unique numbers, which are called the station numbers of the upper computer 2. The rapid communication structure between multiple upper computers and controllers based on the RS485 bus provided by this application can realize:

[0052] After the controller 1 is powered on, it broadcasts all data to the host computer 2;

[0053] Controller 1 actively broadcasts th...

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 relates to the field of industrial communication, and discloses a rapid communication structure and a rapid communication method for multiple upper computers and controllers based on an RS485 bus, the controllers are powered on for the first time, data are sent to the upper computers in a broadcast mode, the data are transmitted in one step, and the time for polling the controllers one by one by the upper computers is saved; in the subsequent operation process, the controller only broadcasts changed data, and a large number of bus resources occupied by unchanged data communication are saved; meanwhile, the controller can respond to a request command and a value writing command of the upper computer to all data, and value writing of the upper computer adopts a message queue to ensure that the value writing command is not lost; most importantly, the controller and the upper computer respectively carry out CRC verification on all data of the computer, if the data are not consistent, the controller broadcasts all data again, and the consistency of the data of the controller and the upper computer is ensured. By using the communication method, on the premise of ensuring the data consistency, the communication speed of the upper computers and the controller can be greatly improved, and the more the upper computers are, the more obvious the effect is.

Description

technical field [0001] The invention relates to the field of industrial communication, in particular to a fast communication structure and method for a plurality of upper computers and controllers based on RS485 bus. Background technique [0002] At present, based on the 485 bus request response communication, the most common and mature one is the modbus protocol. The modbus protocol is a master / slave architecture protocol. The master-slave protocol strictly follows the request response mechanism. When there are multiple modbus host computers, the host computer The instructions for reading and writing the controller cannot be used at the same time. Only after the instruction of the previous upper computer is executed, the control right is delivered to the next upper computer, and the instruction of the next upper computer can be executed, even if only the same frame of data of the controller is read. , each host computer has only one read command, if there are 100 host compu...

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): H04L43/10H04L1/00H04L12/40
CPCH04L43/10H04L1/004H04L12/40013H04L2012/40228
Inventor 段昌茂董文超梁喜东
Owner 上海繁易信息科技股份有限公司
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