CN104504889A - Collateral temperature measurement method for realizing Modbus transmission - Google Patents

Collateral temperature measurement method for realizing Modbus transmission Download PDF

Info

Publication number
CN104504889A
CN104504889A CN201510003615.4A CN201510003615A CN104504889A CN 104504889 A CN104504889 A CN 104504889A CN 201510003615 A CN201510003615 A CN 201510003615A CN 104504889 A CN104504889 A CN 104504889A
Authority
CN
China
Prior art keywords
modbus
microprocessor
temperature
message
measure method
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
Application number
CN201510003615.4A
Other languages
Chinese (zh)
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.)
Shanghai instrument and meter for automation company limited
Original Assignee
Shanghai Automation Instrumentation 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 Shanghai Automation Instrumentation Co Ltd filed Critical Shanghai Automation Instrumentation Co Ltd
Priority to CN201510003615.4A priority Critical patent/CN104504889A/en
Publication of CN104504889A publication Critical patent/CN104504889A/en
Pending legal-status Critical Current

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention discloses a collateral temperature measurement method for realizing Modbus transmission and relates to the field of thermometry. A Modbus main station receives a Modbus request interrupt message of a DCS (Data Communication System) distributed processing unit, the Modbus main station transmits the message to a microprocessor by virtue of a Modbus communication unit, and the microprocessor is capable of measuring channel selection and collecting and disposing AD according to the message; the processed message is transmitted to the Modbus communication unit according to the Modbus response frame demand by virtue of the microprocessor so as to be sent, and the microprocessor is exited and interrupted. Based on the Modbus transmission, the temperature is measured collaterally, one industrial instrument which uses the method can meanwhile measure the temperatures of multiple measuring control points, so that the cost of the instrument is further lowered, the wiring complexity is lowered, the operation is simplified, and the efficiency is improved.

Description

Realize the parallel temperature measure method of Modbus transmission
Technical field
The present invention relates to a kind of thermometry, particularly relate to a kind of parallel temperature measure method realizing Modbus transmission.
Background technology
Optimum degree is reached in order to make the performance of process automation system, must by arranging multiple temperature measuring point, strict control is carried out to the temperature spot in process, traditional method for supervising adopts instrument monitoring parameter, so, whole process automation system just needs to install a large amount of thermometric instruments, also needs to arrange a large amount of transmission lines simultaneously.If there is a kind of parallel temperature measure method based on Modbus transmission, when being applied to temperature instrumentation, the temperature instrumentation replacing multiple stage traditional with a temperature instrumentation can be made, so just greatly can reduce instrument cost, reduce routing complexity, simplify the operation, raise the efficiency.
The communication realizing between multiple equipment to allow a twisted-pair feeder, Modbus bus protocol is suggested, and thereafter, Modbus becomes automatic industrial field de facto standards soon.Modbus bus protocol is a kind of wide-open agreement, does not receive any patent fee, has countless instrument and meter for automation manufacturer to adopt this kind of agreement.Modbus bus protocol is the communication protocol of message transmission on the application layer, being a request/response protocol, specifying that it is served by providing different function codes.Modbus bus protocol is a kind of general purpose language be applied on electronic controller, and by this agreement, controller can communicate each other, and the opertaing device that different vendor produces can be linked to be industrial network, carries out Centralized Monitoring.Modbus bus protocol physical interface can be RS232, RS485, RS422, RJ45, communication media adopts Shielded Twisted Pair or optical fiber, when adopting RS232 interface twisted-pair feeder to make medium, the ultimate range of tape relay device is not 15m, maximum node number 247, communication speed 19.2Kbps.
Summary of the invention
The invention discloses a kind of parallel temperature measure method realizing Modbus transmission, during in order to realize transmitting based on Modbus, can parallel temperature measure, thus realize the temperature that multiple measuring control point measured by an industrial instrument simultaneously.
Above-mentioned purpose of the present invention is achieved through the following technical solutions:
A kind of parallel temperature measure method realizing Modbus transmission, wherein, message is interrupted in the Modbus request that Modbus main website receives DCS dispersion treatment unit, message is transferred to microprocessor by Modbus communication unit by Modbus main website, microprocessor carries out Measurement channel selection accordingly and carries out AD sampling and processing, according to Modbus response frame, the message processed is required that sending Modbus communication unit to sends by microprocessor, microprocessor exits interruption.
Realize the parallel temperature measure method of Modbus transmission as above, wherein, microprocessor carries out instrument initialization before running.
Realize the parallel temperature measure method of Modbus transmission as above, wherein, instrument initialization comprises: to microprocessor system initialization, read band EEPROM (Electrically Erasable Programmable Read Only Memo) data, communication module initialization, Measurement channel initialization.
Realize the parallel temperature measure method of Modbus transmission as above, wherein, microprocessor carries out the measurement of multiple point for measuring temperature temperature value, and by the data encapsulation of acquisition in a data response frame.
Realize as above Modbus transmission parallel temperature measure method, wherein, temperature value data through analog to digital conversion laggard enter microprocessor.
Realize the parallel temperature measure method of Modbus transmission as above, wherein, the Temperature numerical of the multiple point for measuring temperature of microprocessor Real-time Obtaining also stores in a register, after microprocessor receives parallel temperature claim frame, the Temperature numerical in multiple register is packaged into a Modbus Frame and transmits.
In sum, owing to have employed technique scheme, when the present invention realizes transmitting based on Modbus, can parallel temperature measure, make to use an industrial instrument of the method can record the temperature of multiple measuring control point simultaneously, thus reduce instrument cost further, reduce routing complexity, simplify the operation, raise the efficiency, the present invention can realize: transmitter can substitute eight traditional independent mount type instrument, temperature survey is carried out to multiple spot adjacent to each other, reduce the complicacy that measurement point is set, only need to carry out configuration to the parameter of a multi-passage temp. variable transporting device, support Modbus agreement bottom transmission mode---RS485 and UDP, can carry out temperature acquisition and request-reply in real time, reduce costs, the electronic unit total price of a multi-passage temp. variable transporting device than eight traditional single point temperature transmitters with low 5-6 doubly.
Accompanying drawing explanation
Fig. 1 is the parallel temperature measure ratio juris figure that the present invention realizes Modbus transmission;
Fig. 2 is the process flow diagram that the present invention realizes the parallel temperature measure method of Modbus transmission.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described further:
Fig. 1 is the parallel temperature measure ratio juris figure that the present invention realizes Modbus transmission, Fig. 2 is the process flow diagram that the present invention realizes the parallel temperature measure method of Modbus transmission, refer to Fig. 1, Fig. 2, a kind of parallel temperature measure method realizing Modbus transmission, wherein, message is interrupted in the Modbus request that Modbus main website receives DCS dispersion treatment unit, message is transferred to microprocessor by Modbus communication unit by Modbus main website, microprocessor carries out Measurement channel selection accordingly and carries out AD sampling and processing, according to Modbus response frame, the message processed is required that sending Modbus communication unit to sends by microprocessor, microprocessor exits interruption.
In one embodiment of the invention: Modbus asks interruption 7; be responsible for transmitter when receiving Modbus request command frame; enter serial ports receive interruption in real time; CRC check is carried out according to Modbus protocol requirement while keeping the scene intact, if correctly, then income received frame address check; if correct; then carry out function code checking, when this function code is the real-time temperature values needing to read some passage, carry out next step action.During frame check, as long as there is check errors, then directly return errored response frame.
Modbus communication unit 3 of the present invention comprises RS485 interface and UDP interface.All power needed for temperature transmitter provides by supply module 4.Tributary address selects 5 to comprise toggle switch and the prompting of corresponding pilot lamp.
Microprocessor of the present invention carries out instrument initialization before running.
Instrument initialization of the present invention comprises: to microprocessor system initialization, read band EEPROM (Electrically Erasable Programmable Read Only Memo) data, communication module initialization, Measurement channel initialization.
Microprocessor of the present invention carries out the measurement of multiple point for measuring temperature temperature value, and by the data encapsulation of acquisition in a data response frame.
Temperature value data of the present invention through analog to digital conversion laggard enter microprocessor.
The Temperature numerical of the multiple point for measuring temperature of microprocessor Real-time Obtaining of the present invention also stores in a register, after microprocessor receives parallel temperature claim frame, the Temperature numerical in multiple register is packaged into a Modbus Frame and transmits.
In concrete use procedure of the present invention, the present invention can be applied in industrial control network: this industrial control network supports Modbus protocol transmission, wherein Modbus main website, there is the translation function of Digital and analog amount, the data that dispersion treatment unit in DCS system issues by it pass to self CPU by transceiver and CPLD programmable logic device (PLD), the data assemblies issued is become data block by CPU, dual port RAM is passed to by interrupt mode, its communication module is configured to main website automatically according to being forwarded the configuration data block come by dual port RAM, module is according to protocol configuration main website and carry out periodic data exchange with the communication module being configured to main website, realize data acquisition and sending function, after Modbus main website completes initializes itself, wait for the message that dispersion treatment unit sends over, the address sending corresponding transmitter to is judged according to message content, and wait for the reply message of this address transmitter, dispersion treatment unit is returned to as response after receiving message.After supporting that the temperature transmitter of parallel temperature measure have received Modbus claim frame based on Mobus transmission, first message is delivered in input buffer register, after message receives, microprocessor carries out packet parsing, then starts and selects Measurement channel and carry out AD sampling and processing.After having processed, by message according to the requirement of Modbus response frame, pass to Modbus communication unit 3 and carry out sending and exiting interruption, one time temperature acquisition terminates.

Claims (6)

1. one kind realizes the parallel temperature measure method of Modbus transmission, it is characterized in that, message is interrupted in the Modbus request that Modbus main website receives DCS dispersion treatment unit, message is transferred to microprocessor by Modbus communication unit by Modbus main website, microprocessor carries out Measurement channel selection accordingly and carries out AD sampling and processing, according to Modbus response frame, the message processed is required that sending Modbus communication unit to sends by microprocessor, microprocessor exits interruption.
2. the parallel temperature measure method realizing Modbus transmission according to claim 1, is characterized in that, microprocessor carries out instrument initialization before running.
3. the parallel temperature measure method realizing Modbus transmission according to claim 1, it is characterized in that, instrument initialization comprises: to microprocessor system initialization, read band EEPROM (Electrically Erasable Programmable Read Only Memo) data, communication module initialization, Measurement channel initialization.
4. the parallel temperature measure method realizing Modbus transmission according to claim 1, it is characterized in that, microprocessor carries out the measurement of multiple point for measuring temperature temperature value, and by the data encapsulation of acquisition in a data response frame.
5. according to claim 4 realize Modbus transmission parallel temperature measure method, it is characterized in that, temperature value data through analog to digital conversion laggard enter microprocessor.
6. the parallel temperature measure method realizing Modbus transmission according to claim 1, it is characterized in that, the Temperature numerical of the multiple point for measuring temperature of microprocessor Real-time Obtaining also stores in a register, after microprocessor receives parallel temperature claim frame, the Temperature numerical in multiple register is packaged into a Modbus Frame and transmits.
CN201510003615.4A 2015-01-06 2015-01-06 Collateral temperature measurement method for realizing Modbus transmission Pending CN104504889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510003615.4A CN104504889A (en) 2015-01-06 2015-01-06 Collateral temperature measurement method for realizing Modbus transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510003615.4A CN104504889A (en) 2015-01-06 2015-01-06 Collateral temperature measurement method for realizing Modbus transmission

Publications (1)

Publication Number Publication Date
CN104504889A true CN104504889A (en) 2015-04-08

Family

ID=52946462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510003615.4A Pending CN104504889A (en) 2015-01-06 2015-01-06 Collateral temperature measurement method for realizing Modbus transmission

Country Status (1)

Country Link
CN (1) CN104504889A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411870A (en) * 2016-09-20 2017-02-15 中国核动力研究设计院 Digital reactivity meter

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008117306A2 (en) * 2007-03-23 2008-10-02 Icsa India Limited Distribution transformer monitoring system
CN102820959A (en) * 2011-06-10 2012-12-12 哈尔滨工业大学 Method for performing large data volume communication between Modbus master station and Modbus slave station
CN103019280A (en) * 2012-11-23 2013-04-03 安徽鑫龙电器股份有限公司 Temperature monitoring device for multi-contact temperature measurement
CN202869661U (en) * 2012-09-13 2013-04-10 珠海赣星自动化设备有限公司 Electric joint temperature measurement apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008117306A2 (en) * 2007-03-23 2008-10-02 Icsa India Limited Distribution transformer monitoring system
CN102820959A (en) * 2011-06-10 2012-12-12 哈尔滨工业大学 Method for performing large data volume communication between Modbus master station and Modbus slave station
CN202869661U (en) * 2012-09-13 2013-04-10 珠海赣星自动化设备有限公司 Electric joint temperature measurement apparatus
CN103019280A (en) * 2012-11-23 2013-04-03 安徽鑫龙电器股份有限公司 Temperature monitoring device for multi-contact temperature measurement

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李柏榕等: "基于MODBUS网络的温度控制模块的研究", 《江苏电器》 *
李鹏飞等: "基于Modbus总线协议的并行通信模块设计", 《西安工程大学学报》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411870A (en) * 2016-09-20 2017-02-15 中国核动力研究设计院 Digital reactivity meter

Similar Documents

Publication Publication Date Title
CN103828305B (en) For parametrization automated system or the system and method for the field apparatus of control system
US9697164B2 (en) Method and control device for the operation of a contact-free transmission system for an IO link
CN106131056B (en) Industrial wireless adapter and working method thereof
US20120230446A1 (en) Method and Apparatus for Incorporating a WirelessHART-Enabled Device into a Wired HART Network
CN103428005A (en) Interface module with power over ethernet function
CN108777649B (en) Network interception device, system and method
US8995915B2 (en) Method for servicing a field device of automation technology in a radio network
CN101719922B (en) Device and method of protocol conversion between PROFIBUS-DP industrial fieldbus and wireless ZIGBEE
CN104486783B (en) Polymorphic wireless gateway system and control method for polymorphic wireless monitor network
EP3543815B1 (en) Gateway system for heterogeneous fieldbus
CN108512907A (en) The equipment communication means of half transparent transmission
CN108345558B (en) RS485 centralized configuration unit supporting multiple protocols
CN104426605B (en) Remote equipment failure localization method, system and relevant device based on optical fiber transmission
CN103746984A (en) Method for realizing transparent transmission between WIA-PA (wireless network for industrial automation - process automation) industrial wireless protocol and Modbus protocol
CN104504889A (en) Collateral temperature measurement method for realizing Modbus transmission
CN104243246A (en) Method and device for Zigbee technology-based FlexRay bus test and optimization
CN102576222B (en) For the method for operation site bus interface
CN114238193B (en) Device for data interaction between PROFIBUS-DP bus and BLVDS bus
CN107229586B (en) Communication means based on RS485 bridge circuit device
KR101426050B1 (en) Programmable Fieldbus Internet Gateway system.
CN104950880A (en) Industrial control equipment debugging system and method
US10264418B2 (en) Method and system for wireless transmission of information in automation technology
US11500355B2 (en) Terminal module, head module, and system for collecting data from an automation system
CN210488282U (en) Multi-protocol data acquisition board card
KR101368791B1 (en) Programmable fieldbus internet gateway control method.

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SHANGHAI AUTOMATION INSTRUMENTATION CO., LTD.

Free format text: FORMER OWNER: SHANGHAI AUTOMATIC INDUSTRUMENT AND METER CO LTD

Effective date: 20150615

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20150615

Address after: Zhabei District Shanghai City 200072 West Guangzhong Road No. 191 Building No. 7

Applicant after: Shanghai instrument and meter for automation company limited

Address before: Zhabei District Shanghai City 200072 West Guangzhong Road No. 191 Building No. 7

Applicant before: Shanghai Automatic Industrument and Meter Co., Ltd.

WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150408