CN102075396A - Multi-protocol coexistent MODBUS device for electromagnetic flow meter - Google Patents
Multi-protocol coexistent MODBUS device for electromagnetic flow meter Download PDFInfo
- Publication number
- CN102075396A CN102075396A CN2010105727141A CN201010572714A CN102075396A CN 102075396 A CN102075396 A CN 102075396A CN 2010105727141 A CN2010105727141 A CN 2010105727141A CN 201010572714 A CN201010572714 A CN 201010572714A CN 102075396 A CN102075396 A CN 102075396A
- Authority
- CN
- China
- Prior art keywords
- communication
- chip microcomputer
- electromagnetic flowmeter
- signal input
- electromagnetic flow
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000004891 communication Methods 0.000 claims abstract description 82
- 238000004519 manufacturing process Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 238000000034 method Methods 0.000 description 2
- 230000002950 deficient Effects 0.000 description 1
- 239000006185 dispersion Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
Landscapes
- Measuring Volume Flow (AREA)
Abstract
The invention provides a multi-protocol coexistent MODBUS device for an electromagnetic flow meter, relating to the technical field of electromagnetic flow meters. The MODBUS device is used for realizing the purpose of being convenient for users to use the electromagnetic flow meters. The device comprises a singlechip, a 485 communication chip, a first communication connecting piece, a second communication connecting piece and a plurality of dial switches, wherein the singlechip is provided with two communication interfaces and a plurality of signal input ends; the communication formats of multiple types of electromagnetic flow meters are stored in the singlechip; the two communication interfaces of the singlechip are a first communication port and a second communication port respectively; the first communication port is connected to the first communication connecting piece by the 485 communication chip, and the second communication port is connected to the second communication connecting piece; and the number of the dial switches is less than or equal to that of the signal input ends of the singlechip, and each dial switch is connected with a signal input end of the singlechip. The MODBUS device can be convenient for the users to use the electromagnetic flow meters with different communication formats.
Description
Technical field
The present invention relates to the electromagnetic flowmeter technology, particularly relate to a kind of technology of MODBUS device of the multi-protocols coexistence that is used for electromagnetic flowmeter.
Background technology
The Modbus agreement is modicon(Mo Dikang) electronic controller that is used for of company 1978 invention controls and the agreement of communicating by letter, and the control appliance that meets the Modbus agreement that different vendor produces can be linked to be industrial network, carries out centralized monitor.The Modbus protocol definition controller can be familiar with the message structure that uses, it has described the process of controller request visit miscellaneous equipment, how to respond the request from miscellaneous equipment, and how to detect wrong and record, it has formulated the common format of message field general layout and content.
Present electromagnetic flowmeter is of a great variety, there is very big difference in the different electromagnetic flowmeters that manufacturer produced in the use of Modbus agreement, such as in the use of Modbus function code, the functions of the equipments sign indicating number of the electromagnetic flowmeter of some manufacturer production adopts 03, functions of the equipments sign indicating number employing 04 of the electromagnetic flowmeter of some manufacturer production or the like; And for example requiring to read on the number of parameter, the electromagnetic flowmeter of some manufacturer production just requires to read integrated flow, the electromagnetic flowmeter of some manufacturer production just requires to read instantaneous delivery, and also the electromagnetic flowmeter of some manufacturer production requires to read more parameter such as warning message etc.; And for example the parameter storage address scope of the electromagnetic flowmeter produced of different manufacturers is different or the like.This brings very big inconvenience can for the production and the technical maintenance of user enterprise, user enterprise is necessary for the communication program that electromagnetic flowmeter that employed each manufacturer produces is respectively prepared a cover Modbus agreement, the electromagnetic flowmeter that user enterprise produces different manufacturers during production is downloaded different communication identification codes, thereby cause the dispersion in the technology production management, the situation of wrong communication identification code down takes place sometimes, brings unnecessary trouble can for the use of user enterprise.
Summary of the invention
At the defective that exists in the above-mentioned prior art, technical problem to be solved by this invention provides a kind of MODBUS device that can be user-friendly to the multi-protocols coexistence that is used for electromagnetic flowmeter of the different electromagnetic flowmeter of various communication formats.
In order to solve the problems of the technologies described above, a kind of MODBUS device that is used for the multi-protocols coexistence of electromagnetic flowmeter provided by the present invention is characterized in that: comprise a single-chip microcomputer, one 485 communication chips, two communication link fittings, a plurality of toggle switch;
Described two communication link fittings are respectively the first communication link fitting and second communication connector;
Described single-chip microcomputer is provided with two communication interfaces, a plurality of signal input part, and contain the communication format of multiple electromagnetic flowmeter at the single-chip microcomputer internal memory, two communication interface is respectively first port and second communication mouth, its first port is connected to the first communication link fitting through 485 communication chips, and its second communication mouth is connected to the second communication connector;
The quantity of described toggle switch is smaller or equal to the quantity of the signal input part of single-chip microcomputer, and each toggle switch connects each signal input part of single-chip microcomputer respectively.
The MODBUS device that is used for the multi-protocols coexistence of electromagnetic flowmeter provided by the invention, because the single-chip microcomputer internal memory contains the communication format of multiple electromagnetic flowmeter, employed communication format is consistent with the communication format of electromagnetic flowmeter in the time of by toggle switch simply is set the present invention being worked, the electromagnetic flowmeter that the user need not to produce into different manufacturers is downloaded different communication identification codes, the situation that also no longer has down wrong communication identification code takes place, and can be user-friendly to the different electromagnetic flowmeter of various communication formats.
Description of drawings
Fig. 1 is the MODBUS manipulated or operated apparatus of the multi-protocols coexistence that is used for electromagnetic flowmeter of the embodiment of the invention.
Embodiment
Below in conjunction with description of drawings embodiments of the invention are described in further detail, but present embodiment is not limited to the present invention, every employing analog structure of the present invention and similar variation thereof all should be listed protection scope of the present invention in.
As shown in Figure 1, a kind of MODBUS device that is used for the multi-protocols coexistence of electromagnetic flowmeter that the embodiment of the invention provided is characterized in that: comprise a single-chip microcomputer U1, one 485 communication chip U2, two communication link fitting J1, J2, four toggle switch K1, K2, K3, K4;
Described two communication link fittings are respectively the first communication link fitting J1 and second communication connector J2;
Described single-chip microcomputer U1 is provided with two communication interfaces, four signal input parts, and contain the communication format of multiple electromagnetic flowmeter at the single-chip microcomputer internal memory, two communication interface is respectively first port and second communication mouth, its first port is connected to the first communication link fitting J1 through 485 communication chip U2, its second communication mouth is connected to second communication connector J2, and its four signal input parts connect four toggle switch K1, K2, K3, K4 respectively.
In the embodiment of the invention, the model of described 485 communication chips is SP3485, and the model of described single-chip microcomputer is m430f147.
The embodiment of the invention can contain the communication format of 16 kinds of electromagnetic flowmeters at the single-chip microcomputer internal memory, in described four toggle switchs, when each toggle switch is closed, the signal input part that connects this toggle switch in the signal input part of single-chip microcomputer is a low level, when each toggle switch disconnects, the signal input part that connects this toggle switch in the signal input part of single-chip microcomputer is a high level, by four toggle switchs 16 codings, the communication format of each corresponding a kind of electromagnetic flowmeter of encoding can be set.
During embodiment of the invention practical application, the quantity of the signal input part of single-chip microcomputer also can be 2, more than 3 or 4, the quantity of toggle switch also can be 2, more than 3 or 4, but its quantity must be smaller or equal to the quantity of the signal input part of single-chip microcomputer.
The embodiment of the invention is installed on the electromagnetic flowmeter and uses, and its using method is as follows:
Earlier the second communication connector is connected to the communication interface of the single-chip microcomputer on the electromagnetic flowmeter main circuit board, the first communication link fitting is connected to 485 communication interfaces of electromagnetic flowmeter; Adjust four toggle switchs again, make that the set coding of four toggle switchs is corresponding with the communication format of this electromagnetic flowmeter;
Single-chip microcomputer in the embodiment of the invention carries out data by second communication connector and single-chip microcomputer on the electromagnetic flowmeter main circuit board and exchanges, and carries out data communication by 485 communication chips and the first communication link fitting and external equipment;
When the single-chip microcomputer in the embodiment of the invention receives the data that the single-chip microcomputer on the electromagnetic flowmeter main circuit board sends here by the second communication connector after, detect the level of four signal input parts earlier, thereby draw the coding of four toggle switchs, find communication format with this corresponding a kind of electromagnetic flowmeter of encoding according to the coding that obtains then, and be sent to external equipment by 485 communication chips and the first communication link fitting after with digital coding according to this form;
When the single-chip microcomputer in the embodiment of the invention receives the data that external equipment sends here by the first communication link fitting and 485 communication chips after, detect the level of four signal input parts earlier, thereby draw the coding of four toggle switchs, find communication format with this corresponding a kind of electromagnetic flowmeter of encoding according to the coding that obtains then, and be sent to single-chip microcomputer on the electromagnetic flowmeter main circuit board by the second communication connector after with digital coding according to this form.
Claims (1)
1. the MODBUS device of a multi-protocols coexistence that is used for electromagnetic flowmeter is characterized in that: comprise a single-chip microcomputer, one 485 communication chips, two communication link fittings, a plurality of toggle switch;
Described two communication link fittings are respectively the first communication link fitting and second communication connector;
Described single-chip microcomputer is provided with two communication interfaces, a plurality of signal input part, and contain the communication format of multiple electromagnetic flowmeter at the single-chip microcomputer internal memory, two communication interface is respectively first port and second communication mouth, its first port is connected to the first communication link fitting through 485 communication chips, and its second communication mouth is connected to the second communication connector;
The quantity of described toggle switch is smaller or equal to the quantity of the signal input part of single-chip microcomputer, and each toggle switch connects each signal input part of single-chip microcomputer respectively.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105727141A CN102075396A (en) | 2010-12-03 | 2010-12-03 | Multi-protocol coexistent MODBUS device for electromagnetic flow meter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105727141A CN102075396A (en) | 2010-12-03 | 2010-12-03 | Multi-protocol coexistent MODBUS device for electromagnetic flow meter |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102075396A true CN102075396A (en) | 2011-05-25 |
Family
ID=44033749
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010105727141A Pending CN102075396A (en) | 2010-12-03 | 2010-12-03 | Multi-protocol coexistent MODBUS device for electromagnetic flow meter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102075396A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110131458A (en) * | 2019-06-28 | 2019-08-16 | 郑州睿联智能科技有限公司 | A kind of valve controling circuit being adapted to multiple caliber |
CN110942614A (en) * | 2019-12-07 | 2020-03-31 | 重庆耐德能源装备集成有限公司 | Adaptive Communication Method between Electronic Controller and Flowmeter of Natural Gas Dispenser |
-
2010
- 2010-12-03 CN CN2010105727141A patent/CN102075396A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110131458A (en) * | 2019-06-28 | 2019-08-16 | 郑州睿联智能科技有限公司 | A kind of valve controling circuit being adapted to multiple caliber |
CN110942614A (en) * | 2019-12-07 | 2020-03-31 | 重庆耐德能源装备集成有限公司 | Adaptive Communication Method between Electronic Controller and Flowmeter of Natural Gas Dispenser |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102014118B (en) | Method for reading multiple electric energy meters generally | |
CN101685306A (en) | Apparatus and methods to communicatively couple field devices to controllers in a process control system | |
CN103631688B (en) | A kind of method and system of test interface signal | |
CN1964363A (en) | Configurable I/O module with multiple bus interface | |
CN102025660A (en) | Multiplexing intelligent gateway and working method thereof | |
CN103905410A (en) | Multi-channel communication protocol converter capable of converting user-defined protocol to Modbus protocol | |
EP3213276A1 (en) | Prepaid metering adaptor | |
CN102075396A (en) | Multi-protocol coexistent MODBUS device for electromagnetic flow meter | |
US8614620B2 (en) | Method for parameterizing a process automation field device by simulating the acyclic services | |
CN202025222U (en) | Communication protocol converter | |
CN208270992U (en) | intelligent network sensor device | |
CN201893802U (en) | Multi-protocol coexisting MODBUS device for electromagnetic flowmeter | |
CN203219328U (en) | Multiplex communication protocol converter | |
CN205028168U (en) | Integrated gas circuit system of intelligence and collection module thereof | |
CN207397044U (en) | A kind of cabinet environment monitoring system | |
CN101452636B (en) | Communication interface for multifunctional electrical energy meter | |
CN205921709U (en) | Accuse switch detection device in tax accuse tanker aircraft | |
CN202077051U (en) | Remote communication system | |
CN103970100A (en) | Multi-protocol reconfigurable bus-based instrument experiment system | |
CN205210872U (en) | Two buses arrive modBus's multi -protocols interface converter able to programme | |
CN210380935U (en) | Communication address self-setting system of digital weighing sensor | |
CN206959955U (en) | Diagnostic system of natural gas orifice plate flowmeter | |
CN200976600Y (en) | Configurable I/O module having plurality of bus interface | |
CN201830280U (en) | Tester for simulating PROFIBUS-DP master station communication | |
CN207732747U (en) | A kind of loom encoder interface circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20110525 |