CN105242592B - The method and system of HART meter parameter are directly read by PROFIBUS PA active station - Google Patents

The method and system of HART meter parameter are directly read by PROFIBUS PA active station Download PDF

Info

Publication number
CN105242592B
CN105242592B CN201510579954.7A CN201510579954A CN105242592B CN 105242592 B CN105242592 B CN 105242592B CN 201510579954 A CN201510579954 A CN 201510579954A CN 105242592 B CN105242592 B CN 105242592B
Authority
CN
China
Prior art keywords
hart
profibus
active station
protocol
command number
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.)
Active
Application number
CN201510579954.7A
Other languages
Chinese (zh)
Other versions
CN105242592A (en
Inventor
田英明
张宇
赵俊奎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Chuanyi Automation Co Ltd
Original Assignee
Chongqing Chuanyi Automation Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Chongqing Chuanyi Automation Co Ltd filed Critical Chongqing Chuanyi Automation Co Ltd
Priority to CN201510579954.7A priority Critical patent/CN105242592B/en
Publication of CN105242592A publication Critical patent/CN105242592A/en
Application granted granted Critical
Publication of CN105242592B publication Critical patent/CN105242592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Communication Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention provides a kind of method and system that HART meter parameter is directly read by PROFIBUS PA active station, the communications field applied to instrument and meter for automation equipment, the present invention utilizes protocol conversion apparatus, to realize when receiving the order that active station is sent in ROFIBUS PA bus, the order is parsed according to PROFIBUS PA link layer protocol to obtain corresponding function, and it is the function is corresponding at corresponding HART protocol command number, and the output HART protocol command number, then HART protocol command number described in HART instrument response, and the parameter of a corresponding HART protocol command number is returned to the active station, complete data interaction.It cannot be directly articulated in PROFIBUS PA bus present invention efficiently solves the total HART type instrument of the prior art and carry out data exchange so that the problem of parameter in HART protocol instrument can be read directly in PROFIBUS PA bus upper workstation.

Description

By PROFIBUS PA active station directly read HART meter parameter method and System
Technical field
The present invention relates to industrial automation equipment field, refer mainly to directly read HART by PROFIBUS PA active station The technology of the key parameter of protocol-intelligent instrument is specifically to be related to one kind directly to read by PROFIBUS PA active station Take the method and system of HART meter parameter.
Background technique
One of most widely used fieldbus in the world when PROFIBUS PA fieldbus, it is that the first is digital Fieldbus.And HART protocol is then in industrial instrument using at most, it is by Signal averaging in 4-20 milliamperes of electricity of two-wire system It flows on ring, 1200Hz frequency representation number 1,2200Hz indicates number 0.PROFIBUS PA and HART currently not yet in the market The instrument product of protocol-compliant produces under only PROFIBUS PA debugging enironment, read HART protocol intelligence instrument The parameter information of product, it is necessary to design a kind of method that PROFIBUS PA agreement turns HART protocol, HART protocol is read with this Special parameter in instrument.
Summary of the invention
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide one kind is grasped by PROFIBUS PA Make the method and system that station directly reads HART meter parameter, cannot be directly articulated in for solving current HART type instrument PROFIBUS PA bus carries out data exchange, so that main website reads the special parameter of HART protocol instrument.
In order to achieve the above objects and other related objects, the present invention provides following technical scheme:
A method of HART meter parameter is directly read by PROFIBUS PA active station, including:It is operated when receiving When station is sent to the order in ROFIBUS PA bus, the order is parsed according to PROFIBUS PA link layer protocol Corresponding function is obtained, and the function is corresponding at corresponding HART protocol command number, and exports the HART protocol order Number;HART protocol command number described in HART instrument response returns to a corresponding HART protocol command number to the active station Parameter completes data interaction.
As the preferred embodiment of the above method, when receiving the order that active station is sent in ROFIBUS PA bus, Further include:The pulse signal for parsing identification is converted such commands by PA signal transmitting and receiving circuit.
As the preferred embodiment of the above method, the method for exporting the HART protocol command number includes:Pass through HART protocol The HART protocol command number is sent in the HART instrument by controller by HART protocol transmission circuit.
As advanced optimizing for the above method and its preferred embodiment, the active station is sent in ROFIBUS PA bus Order include at least:The current mode manchester encoded signals of 31.25K Hz.
In addition, being by what PROFIBUS PA active station directly read HART meter parameter the present invention also provides a kind of System, including:Protocol conversion apparatus, for when receiving the order that active station is sent in ROFIBUS PA bus;According to PROFIBUS PA link layer protocol parses the order to obtain corresponding function, and the function is corresponding at corresponding HART protocol command number, and export the HART protocol command number;HART instrument, for responding the HART protocol order Number, and a parameter for corresponding to the HART protocol command number is returned to the active station, complete data interaction.
As the preferred embodiment of above system, further include:PA signal transmitting and receiving circuit is sent to for that ought receive active station When order in ROFIBUS PA bus, the pulse signal for parsing identification is converted such commands into.
As the preferred embodiment of above system, further include in the protocol conversion apparatus:HART protocol transmission circuit, is used for The HART protocol command number is sent in the HART instrument under the control of HART protocol controller.
As advanced optimizing for above system and its preferred embodiment, the active station is sent in ROFIBUS PA bus Order include at least:The current mode manchester encoded signals of 31.25K Hz.
Compared with prior art, technical solution of the present invention has the following advantages that:
The present invention is corresponded to by being ordered accordingly ROFIBUS PA agreement and HART protocol, to realize The conversion ordered between ROFIBUS PA agreement and HART protocol, and then efficiently solving the total HART type instrument of the prior art cannot It is directly articulated in PROFIBUS PA bus and carries out data exchange so that PROFIBUS PA bus upper workstation is directly read In HART protocol instrument the problem of parameter.
Detailed description of the invention
Fig. 1 is shown as provided by the invention and a kind of directly reads HART meter parameter by PROFIBUS PA active station The schematic diagram of method in one embodiment.
Fig. 2 is shown as a kind of system for directly reading HART meter parameter by PROFIBUS PA active station of the present invention and exists Schematic diagram in one embodiment.
Fig. 3 is shown as the present invention and a kind of is directly read in the system of HART meter parameter by PROFIBUS PA active station The schematic diagram of protocol conversion apparatus in one embodiment.
Drawing reference numeral explanation
10 protocol conversion apparatus
101 PA signal transmitting and receiving circuits
102 PROFIBUS PA protocol analysis controllers
103 HART protocol controllers
104 HART protocol transmission circuits
20 HART instrument
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification Other advantages and efficacy of the present invention can be easily understood for disclosed content.The present invention can also pass through in addition different specific realities The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints and application, without departing from Various modifications or alterations are carried out under spirit of the invention.It should be noted that in the absence of conflict, following embodiment and implementation Feature in example can be combined with each other.
It should be noted that illustrating the basic structure that only the invention is illustrated in a schematic way provided in following embodiment Think, only shown in schema then with related component in the present invention rather than component count, shape and size when according to actual implementation Draw, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel It is likely more complexity.
Currently, the bus model of field instrument is single, HART type instrument cannot directly be articulated in PROFIBUS PA bus into Row data exchange, in order to make PROFIBUS PA bus Upper system (such as main website) that the certain of HART protocol instrument can be read Parameter provides a kind of method for directly reading HART meter parameter by PROFIBUS PA active station in the embodiment of the present invention, leads to The parameter that this method can allow the upper software of PROFIBUS PA bus to directly read HART protocol instrument is crossed, as shown in Figure 1, with It is described in detail by specific steps down:
Step S10, when receiving the order that active station is sent in ROFIBUS PA bus, according to PROFIBUS PA Link layer protocol parses the order to obtain corresponding function, and the function is corresponding at corresponding HART protocol life Order number, and export the HART protocol command number.
Wherein, the current mode manchester encoded signals that the order is a 31.25K Hz, it is total to meet ROFIBUS PA The signal format of line.
In specific implementation, learn whether upper workstation has by the way of detecting to ROFIBUS PA bus Order sends over, and after detecting in bus has order transmission, PROFIBUS PA link layer protocol is passed through in obtained order The command functions can be learnt after parsing, it is then that this function is corresponding at corresponding HART protocol command number, and by this command number With two byte command font formulas by sending.
In specific implementation, when receiving the order that active station is sent in ROFIBUS PA bus, can also pass through PA signal transmitting and receiving circuit converts such commands into the pulse signal for parsing identification, because the parsing identification to the order is By CPU, perhaps MCU come the pulse signal that is converted into carried out is in order to CPU or MCU can be identified.
HART protocol command number described in step S20, HART instrument response returns to a corresponding HART to the active station The parameter of protocol command number completes data interaction.
In specific implementation, HART instrument can HART based on the received after receiving the HART protocol command number Protocol command number makes corresponding response, such as reads the special parameter of HART protocol instrument.Described in HART instrument once responds HART protocol command number, which is also equivalent to upper workstation, directly to be communicated with HART instrument, and realizes the friendship of data It changes.
It should be appreciated that HART instrument after responding the HART protocol command number, is according to receiving the HART protocol The upward bit manipulation in the path of command number carries out data transmission, to complete the interaction of data.On in the prior art The problem of bit manipulation station directly cannot read data in HART instrument by PROFIBUS PA bus, realizes for HART instrument Critical data is directly read in table, substantially increases the working efficiency of instrumentation.
Embodiment 2
It is additionally provided in the present embodiment and a kind of is by what PROFIBUS PA active station directly read HART meter parameter System, incorporated by reference to Fig. 2, the principal diagram for giving the system is intended to, and the system comprises protocol conversion apparatus 10 and HART instrument 20, wherein protocol conversion apparatus 10 is used for when receiving the order that active station is sent in ROFIBUS PA bus, according to PROFIBUS PA link layer protocol parses the order to obtain corresponding function, and the function is corresponding at corresponding HART protocol command number, and export the HART protocol command number;HART instrument 20 is for responding the HART protocol order Number, and a parameter for corresponding to the HART protocol command number is returned to the active station, complete data interaction.
In specific implementation, referring back to Fig. 3, protocol conversion apparatus 10 can be by PA signal transmitting and receiving circuit 101, ROFIBUS PA protocol analysis controller 102, HART protocol controller 103 and HART protocol transmission circuit 104 are constituted, wherein for upper The detecting whether active station sends order is realized by PA signal transmitting and receiving circuit 101, and PA signal transmitting and receiving circuit 101 is used for When receiving the order that active station is sent in ROFIBUS PA bus, the pulse for parsing identification is converted such commands into Signal.ROFIBUS PA protocol analysis controller 102 can identify pulse signal, and the ROFIBUS PA protocol analysis controller Be stored in 102 parse the order existing protocol analysis program, can according to the protocol resolving program come to include order Pulse signal parsed and obtained corresponding function, it is then that this function is corresponding at corresponding HART protocol command number, and By this command number with two byte command font formulas by sending.
Then, HART protocol controller 103 will receive HART protocol command number and be sent by HART protocol transmission circuit 104 To in the HART instrument 20, i.e., be used under the control of HART protocol controller 103 will be described for HART protocol transmission circuit 104 HART protocol command number is sent in the HART instrument 20.
Followed by HART instrument 20 will respond the HART protocol command number, to complete successively data exchange.Meanwhile HART instrument 20 by the corresponding parameter of the HART protocol command number according in backtracking to PROFIBUS PA bus, for Active station identification and reading.
It should be understood that in HART instrument 20 by the corresponding parameter of the HART protocol command number according to backtracking extremely It is that the ginseng is received by HART protocol transmission circuit 104 by HART protocol controller 103 during on PROFIBUS PA Number, then be sent in ROFIBUS PA protocol analysis controller 102 by HART protocol controller 103, carry out opposite parsing Obtain corresponding pulse signal, and the arteries and veins for ROFIBUS PA protocol analysis controller 102 being exported through PA signal transmitting and receiving circuit 101 It rushes signal and is converted to current mode manchester encoded signals for the identification of upper main website, reading.
In specific implementation, in order to guarantee data transmission safety, prevent HART protocol controller 103 and ROFIBUS PA protocol analysis controller 102 will not be burned because of fortuitous event and simultaneously, can be realized by the way of light-coupled isolation Connection between HART protocol controller 103 and ROFIBUS PA protocol analysis controller 102.
In specific implementation, the active station is sent to the electric current that the order in ROFIBUS PA bus is 31.25K Hz Type manchester encoded signals.
In conclusion the present invention is corresponded to by being ordered accordingly ROFIBUS PA agreement and HART protocol, thus The conversion ordered between ROFIBUS PA agreement and HART protocol is realized, and then efficiently solves the total HART type instrument of the prior art Table cannot directly be articulated in PROFIBUS PA bus and carry out data exchange so that PROFIBUS PA bus upper workstation is direct The problem of reading parameter in HART protocol instrument.So the present invention effectively overcomes various shortcoming in the prior art and has height Spend value of industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe The personage for knowing this technology all without departing from the spirit and scope of the present invention, carries out modifications and changes to above-described embodiment.Cause This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as At all equivalent modifications or change, should be covered by the claims of the present invention.

Claims (7)

1. a kind of method for directly reading HART meter parameter by PROFIBUS PA active station, which is characterized in that including:
When receiving the order that active station is sent in ROFIBUS PA bus, according to PROFIBUS PA link layer protocol pair The order is parsed to obtain corresponding function, and the function is corresponding at corresponding HART protocol command number, and is exported The HART protocol command number;
HART protocol command number described in HART instrument response returns to a corresponding HART protocol command number to the active station Parameter completes data interaction;
Wherein, the order that the active station is sent in ROFIBUS PA bus includes at least:The current mode of 31.25K Hz is graceful thorough This special encoded signal.
2. the method according to claim 1 for directly reading HART meter parameter by PROFIBUS PA active station, special Sign is, when receiving the order that active station is sent in ROFIBUS PA bus, further includes:Pass through PA signal transmitting and receiving circuit Convert such commands into the pulse signal for parsing identification.
3. the method according to claim 1 for directly reading HART meter parameter by PROFIBUS PA active station, special Sign is that the method for exporting the HART protocol command number includes:
The HART protocol command number is sent to the HART by HART protocol transmission circuit by HART protocol controller In instrument.
4. a kind of system for directly reading HART meter parameter by PROFIBUS PA active station, which is characterized in that including:
Protocol conversion apparatus, for when receiving the order that active station is sent in ROFIBUS PA bus;According to PROFIBUS PA link layer protocol parses the order to obtain corresponding function, and the function is corresponding at corresponding HART protocol command number, and export the HART protocol command number;
HART instrument returns to a corresponding HART protocol for responding the HART protocol command number, and to the active station The parameter of command number completes data interaction.
5. the system according to claim 4 for directly reading HART meter parameter by PROFIBUS PA active station, special Sign is, further includes:
PA signal transmitting and receiving circuit, for when receiving the order that active station is sent in ROFIBUS PA bus, by the life Enable the pulse signal be converted to for parsing identification.
6. the system according to claim 4 for directly reading HART meter parameter by PROFIBUS PA active station, special Sign is, further includes in the protocol conversion apparatus:
HART protocol transmission circuit, for the HART protocol command number to be sent to institute under the control of HART protocol controller It states in HART instrument.
7. directly reading HART meter parameter by PROFIBUS PA active station according to claim 4-6 is described in any item System, which is characterized in that the order that the active station is sent in ROFIBUS PA bus includes at least:31.25K the electricity of Hz Flow pattern manchester encoded signals.
CN201510579954.7A 2015-09-11 2015-09-11 The method and system of HART meter parameter are directly read by PROFIBUS PA active station Active CN105242592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510579954.7A CN105242592B (en) 2015-09-11 2015-09-11 The method and system of HART meter parameter are directly read by PROFIBUS PA active station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510579954.7A CN105242592B (en) 2015-09-11 2015-09-11 The method and system of HART meter parameter are directly read by PROFIBUS PA active station

Publications (2)

Publication Number Publication Date
CN105242592A CN105242592A (en) 2016-01-13
CN105242592B true CN105242592B (en) 2018-11-23

Family

ID=55040272

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510579954.7A Active CN105242592B (en) 2015-09-11 2015-09-11 The method and system of HART meter parameter are directly read by PROFIBUS PA active station

Country Status (1)

Country Link
CN (1) CN105242592B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108200062B (en) * 2018-01-03 2021-01-08 杭州和利时自动化有限公司 Data management method and system for intelligent instrument equipment
CN113225382A (en) * 2021-04-07 2021-08-06 中国二十冶集团有限公司 Method and system for diagnosing state of instrument equipment through digital quantity remote communication

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262473A (en) * 2007-12-28 2008-09-10 上海自动化仪表股份有限公司 EPA industrial Ethernet and HART field bus interconnection method
CN102088444A (en) * 2009-12-03 2011-06-08 北京华控技术有限责任公司 PROFIBUS DP and PROFIBUS PA protocol conversion gateway module
CN102722975A (en) * 2012-06-25 2012-10-10 湖南大学 Method and system for reading data of electricity meter based on PROFIBUS
CN104616477A (en) * 2015-01-06 2015-05-13 上海自动化仪表股份有限公司 Profibus-PA technology-based multi-channel real-time temperature measurement method
CN205210585U (en) * 2015-09-11 2016-05-04 重庆川仪自动化股份有限公司 System for through PROFIBUS PA active station direct read HART instrument parameter

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262473A (en) * 2007-12-28 2008-09-10 上海自动化仪表股份有限公司 EPA industrial Ethernet and HART field bus interconnection method
CN102088444A (en) * 2009-12-03 2011-06-08 北京华控技术有限责任公司 PROFIBUS DP and PROFIBUS PA protocol conversion gateway module
CN102722975A (en) * 2012-06-25 2012-10-10 湖南大学 Method and system for reading data of electricity meter based on PROFIBUS
CN104616477A (en) * 2015-01-06 2015-05-13 上海自动化仪表股份有限公司 Profibus-PA technology-based multi-channel real-time temperature measurement method
CN205210585U (en) * 2015-09-11 2016-05-04 重庆川仪自动化股份有限公司 System for through PROFIBUS PA active station direct read HART instrument parameter

Also Published As

Publication number Publication date
CN105242592A (en) 2016-01-13

Similar Documents

Publication Publication Date Title
CN102354175B (en) Remote I/O (input/output) control system of Modbus fieldbus DI-16-route monitor
CN102355507B (en) Serial communication interface with functions of self-detection and conflict detection
CN106899498A (en) Embedded industry intelligent gateway and its real-time data acquisition method based on SoC
CN104008082A (en) Converter of 1553B bus remote terminal (RT) node and controller area network (CAN) bus
CN104009976B (en) A kind of real-time communication method being used between more main station systems and its equipment
CN102088444A (en) PROFIBUS DP and PROFIBUS PA protocol conversion gateway module
CN107948059A (en) EtherCAT and Modbus protocol conversion gateways based on SPARC architecture microprocessors
CN106873541A (en) A kind of EtherCAT Distributed Servo kinetic control systems based on DSP
CN105242592B (en) The method and system of HART meter parameter are directly read by PROFIBUS PA active station
CN103716092A (en) Networking system and communication method for bidirectional optical fiber communication in bus network
CN108512907A (en) The equipment communication means of half transparent transmission
CN104468301B (en) A kind of Safety output method based on MVB communications
CN103728957A (en) HART (highway addressable remote transducer) field equipment management method and system based on real-time database
CN101662369B (en) Universal network adapter
CN105922261B (en) A kind of robot controller and its control method
CN110519161A (en) A kind of gateway apparatus and the method for data protocol conversion
CN106130829B (en) Bus test method and device
CN205210585U (en) System for through PROFIBUS PA active station direct read HART instrument parameter
CN205121274U (en) Serial ports stipulations message signal testing terminal row
CN104022933A (en) Vehicle bus debugging system based on multi-mode signal conversion
CN102608480B (en) System and method for smart connection and examination of line
CN108550199A (en) Acquisition method and device, the readable medium of equipment running status data
CN204155117U (en) A kind of big-power transducer control system
CN101340357A (en) Debugging simulation system and method for remote monitoring terminal of subway safe door system
CN204287957U (en) A kind of scrap prodn. line PROFIBUS PA slave station diagnostic system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant