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

Address automatic allocation method, Modbus master station and Modbus slave station and system

A technology of automatic allocation and master station, applied in the system field, which can solve the problems of long configuration time, bus conflict, configuration failure, etc.

Active Publication Date: 2018-11-02
ZHEJIANG CHINT ELECTRIC CO LTD
View PDF10 Cites 42 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Not only does it take a long time to configure, but once multiple devices are powered on at the same time, bus conflicts are prone to occur, resulting in the failure of the entire configuration

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
  • Address automatic allocation method, Modbus master station and Modbus slave station and system
  • Address automatic allocation method, Modbus master station and Modbus slave station and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The following is attached Figure 1-2 The given embodiment further illustrates the specific implementation of the method for automatic address assignment of the present invention applicable to the Modbus protocol. The method for automatically assigning addresses applicable to the Modbus protocol of the present invention is not limited to the description of the following embodiments.

[0030] The present invention provides a kind of method that is applicable to the automatic allocation of the address of Modbus agreement, comprises the following steps:

[0031] Step 1, the Modbus master station of the bus sends a broadcast setting address command, and sets the station addresses of all Modbus slave devices to the same fixed address;

[0032] Step 2, the Modbus master station of the bus sends a broadcast command to read the device serial number of the Modbus slave station;

[0033] Step 3, the Modbus slave station device receiving the command to read the serial number of ...

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 an address automatic allocation method. A Modbus master station sends broadcast address setting commands and sets station addresses of all Modbus slave station devices as the same fixed address; broadcast Modbus slave station device serial number read commands are sent; the Modbus slave station devices return messages responding to the Modbus slave station device serial number read commands; the Modbus master station broadcasts and issues slave station address setting commands carrying the slave station device serial numbers and the slave station addresses in sequence,according to a list of the received Modbus slave station device serial numbers; and the Modbus slave station devices analyze the slave station device serial numbers and the slave station addresses, and if the slave station device serial numbers are equal to own serial numbers, own slave station addresses are modified, thereby realizing address automatic allocation. The invention also provides an address allocation Modbus master station and Modbus slave station applicable to a Modbus protocol, and a system.

Description

technical field [0001] The invention relates to the technical field of bus communication, in particular to a method for automatically assigning addresses applicable to the Modbus protocol, a system, a Modbus master station, and a Modbus slave station. Background technique [0002] When the Modbus bus slave station is connected to the network, it needs to configure the slave station address. Generally, the station address configuration method mainly includes hardware setting and software setting. Perform station address configuration. [0003] Traditionally, manual setting is used to set the network address of the communication network slave node. This method not only has a large workload, but also may lead to repeated setting of the address value, resulting in artificial setting errors. [0004] There are several ways for the slave station to automatically assign addresses: [0005] (1) The distribution method of reading device ID by broadcast and setting station address a...

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): H04L29/12H04L12/40
CPCH04L12/40006H04L2012/40228H04L61/5046H04L61/5092
Inventor 封晓东孙丽娜史仍辉马海伟
Owner ZHEJIANG CHINT ELECTRIC 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