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

Layered MODBUS communication system and method

A communication system and communication method technology, applied in the field of layered MODBUS communication system, can solve the problems of redundant code structure, incompatibility between master and slave, etc., and achieve the effect of simplifying program code and improving versatility

Active Publication Date: 2019-11-26
正星科技股份有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a layered MODBUS communication system and method to solve the technical problems that the existing MODBUS communication method cannot be compatible with the master and slave, and the code structure is redundant

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
  • Layered MODBUS communication system and method
  • Layered MODBUS communication system and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] Embodiment 1: a kind of hierarchical MODBUS communication system, see figure 1 , including the communication hardware layer, protocol analysis layer, and device business processing layer; the communication hardware layer defines the electrical parameters of the device, and marks whether the connected device is a master device or a slave device. If it is a slave device, it will process the data flow of the slave device; after that is the protocol analysis layer, which is used to judge whether the data format sent and received by the communication hardware layer is legal, send the legal data to the business processing layer for execution, and discard the illegal data ,specific:

[0026] The communication hardware layer includes a hardware driver unit, a data transceiver unit, and a data organization unit. First, the hardware driver unit must provide power for the physical port of the device to enable it to start, and then set the master-slave attribute of the device. If i...

Embodiment 2

[0029] Embodiment 2: the realization of a kind of hierarchical MODBUS communication method, see figure 2 , including a case in which a device running a layered MODBUS communication method communicates with a common master and a common slave simultaneously, hereinafter "a device running a layered MODBUS communication protocol" is referred to as the present invention, and "common MODBUS master" is referred to for short Ordinary host, "ordinary MODBUS slave" is referred to as ordinary slave.

[0030] For ordinary slaves, after the physical port of the connection is determined, the present invention first drives the port at the communication hardware layer, and plans a buffer area for the physical port, writes a command flow processing function, and puts the data in a certain way. In the buffer area; then do some work bound to the hardware port: including setting the communication address, setting whether the device is a master device or a slave device, binding the hardware data ...

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 discloses a layered MODBUS communication system and a layered MODBUS communication method, and aims to solve the technical problems that an existing MODBUS communication mode cannot be compatible with a host and a slave, and a code structure is redundant. The system comprises a communication hardware layer, a protocol analysis layer and an equipment service processing layer; the communication hardware layer is used for stipulating electrical parameters of equipment and completing information interaction with the protocol analysis layer; the protocol analysis layer is used for judging the legality of the message sent by the communication hardware layer; and the equipment service processing layer is used for executing the legal message sent by the protocol analysis layer. The MODBUS communication method comprises the steps of defining parameters by a hardware layer, identifying and judging a message by an analysis layer, and executing the message by a service layer. The system and method have the advantages of being high in universality, capable of being compatible with a host mode and a slave mode and concise in code structure.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a layered MODBUS communication system and method. Background technique [0002] MODBUS is a serial communication protocol widely used in the field of industrial control communication. MODBUS adopts "master-slave mode", and there can only be one master in one communication to control multiple slaves. This method has a relatively simple network structure and is easy to deploy and maintain, but it is not flexible enough in practical application and lacks compatibility. [0003] Chinese patent document: "CN103941700B-An automated process safety monitoring system based on Modbus protocol" discloses a system that enables slaves to communicate with each other, divides multiple slaves into several clusters, and selects one in each cluster A slave that can receive data from other slaves in the cluster, that is, a local area network communication is set between the slaves under the...

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): H04L12/40H04L29/06
CPCH04L12/40H04L69/22H04L69/26H04L2012/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