Method for avoiding modbus real-time database access conflict

A technology of access conflicts and databases, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve problems such as control failure, and achieve the effect of solving validity problems and solving access conflicts

Inactive Publication Date: 2012-10-10
周明 +1
View PDF3 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method can effectively solve the problems of avoiding contro

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 avoiding modbus real-time database access conflict
  • Method for avoiding modbus real-time database access conflict
  • Method for avoiding modbus real-time database access conflict

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] In order to make the technical means, creative features, goals and effects achieved by the present invention easy to understand, the present invention will be further described below in conjunction with specific illustrations.

[0052] Such as Figure 5 As shown, the modbus master station system of the multi-console involved in the method of the present invention. It includes a plurality of consoles such as a first console 510 and a second console 520 . Wherein each console (510,520) is all connected with the real-time database 531 of modbus master station 530; The inside of modbus master station 530 is also provided with the instruction buffer zone ( 532, 533). The modbus master station 530 is also connected to several modbus slave stations 540 respectively.

[0053] The specific method of the whole invention is: in the modbus master station, the update operation of the console to the database (corresponding modbus function codes are: 5, 6, 15, 16), the instructions...

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 method for avoiding modbus real-time database access conflict. The method comprises the following steps of: performing update operation on a database by a console in a modbus master station, caching an instruction of the update operation in an instruction buffer area, and comparing the instruction with the previous buffer instruction. Only when the instruction is changed, the instruction is updated to the database; the instruction is stored by an instruction buffer; and in a cyclic list of the modbus master station, each update operation instruction aiming at the database has the corresponding instruction buffer, and the buffers are cleared when starting and before entering a cycle. The method can ensure that the sent instruction is accurately executed when two consoles have only one sending instruction in a multi-console modbus system, and the real-time database access conflict is solved.

Description

Technical field: [0001] The invention relates to equipment communication and data processing, in particular to a method for avoiding modbus real-time database access conflicts. Background technique: [0002] In the field of industrial control, modbus has been widely deployed and applied as a mature application protocol. It is very mature in the application of instruments, sensors, electric actuators, etc. Modbus is a request / response protocol that can be implemented on Ethernet, RS232, RS422, RS485, fiber optic, etc. lines. [0003] In field application, generally one or more modbus master stations are connected to field devices (slaves) through RS232, RS422 or RS485 asynchronous serial bus; the console is connected through Ethernet or other bus technology modbus master. On the modbus master station, there is a real-time database, and the commands issued by the console are updated to the real-time database, and the modbus master station will periodically send these comman...

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
IPC IPC(8): G06F17/30
Inventor 周明王可中
Owner 周明
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products