Hierarchical modbus communication system and method
The technology of a communication system and communication method is applied in the field of hierarchical MODBUS communication system, which can solve the problems of code structure redundancy, incompatibility with host and slave, etc., and achieve the effect of simplifying program code and improving versatility
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com