CN103791925B - Reconfigurable temperature transmitter and reconfiguration method - Google Patents
Reconfigurable temperature transmitter and reconfiguration method Download PDFInfo
- Publication number
- CN103791925B CN103791925B CN201410075095.3A CN201410075095A CN103791925B CN 103791925 B CN103791925 B CN 103791925B CN 201410075095 A CN201410075095 A CN 201410075095A CN 103791925 B CN103791925 B CN 103791925B
- Authority
- CN
- China
- Prior art keywords
- sensing element
- temperature sensing
- external temperature
- reconfigurable
- reconstruction
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000012545 processing Methods 0.000 claims abstract description 32
- 238000006243 chemical reaction Methods 0.000 claims abstract description 30
- 238000005259 measurement Methods 0.000 claims abstract description 29
- 238000001514 detection method Methods 0.000 claims abstract description 23
- 238000010586 diagram Methods 0.000 description 6
- 208000016381 Brown-Vialetto-van Laere syndrome 1 Diseases 0.000 description 5
- 208000033312 RFVT2-related riboflavin transporter deficiency Diseases 0.000 description 5
- 102100034068 Monocarboxylate transporter 1 Human genes 0.000 description 4
- 208000033313 RFVT3-related riboflavin transporter deficiency Diseases 0.000 description 4
- BEOLWJVNPROZQJ-AQSKNYQYSA-N rtd-1 Chemical compound C([C@@H]1NC(=O)CNC(=O)[C@H](CCCNC(N)=N)NC(=O)[C@H]([C@@H](C)O)NC(=O)[C@@H]2CSSC[C@H](NC1=O)C(=O)N[C@@H](CCCNC(N)=N)C(=O)N[C@H]1CSSC[C@H](NC(=O)[C@H](CCCNC(N)=N)NC(=O)[C@@H]3CSSC[C@@H](C(N[C@@H](CCCNC(N)=N)C(=O)N[C@@H](CCCNC(N)=N)C(=O)NCC(=O)N[C@H](C(=O)N3)C(C)C)=O)NC(=O)[C@H](CC(C)C)NC1=O)C(=O)N[C@H](C(N2)=O)[C@@H](C)CC)C1=CC=CC=C1 BEOLWJVNPROZQJ-AQSKNYQYSA-N 0.000 description 4
- 101710137760 Malonyl-CoA-acyl carrier protein transacylase, mitochondrial Proteins 0.000 description 3
- 101000577126 Homo sapiens Monocarboxylate transporter 4 Proteins 0.000 description 2
- 102100025276 Monocarboxylate transporter 4 Human genes 0.000 description 2
- 238000004220 aggregation Methods 0.000 description 2
- 230000002776 aggregation Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 101000937642 Homo sapiens Malonyl-CoA-acyl carrier protein transacylase, mitochondrial Proteins 0.000 description 1
- 101000590830 Homo sapiens Monocarboxylate transporter 1 Proteins 0.000 description 1
- 101000577115 Homo sapiens Monocarboxylate transporter 2 Proteins 0.000 description 1
- 101000577121 Homo sapiens Monocarboxylate transporter 3 Proteins 0.000 description 1
- 101000577129 Homo sapiens Monocarboxylate transporter 5 Proteins 0.000 description 1
- 101000628647 Homo sapiens Serine/threonine-protein kinase 24 Proteins 0.000 description 1
- 101000701393 Homo sapiens Serine/threonine-protein kinase 26 Proteins 0.000 description 1
- 101000880439 Homo sapiens Serine/threonine-protein kinase 3 Proteins 0.000 description 1
- 102100025272 Monocarboxylate transporter 2 Human genes 0.000 description 1
- 102100026764 Serine/threonine-protein kinase 24 Human genes 0.000 description 1
- 102100030617 Serine/threonine-protein kinase 26 Human genes 0.000 description 1
- 102100037628 Serine/threonine-protein kinase 3 Human genes 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000007789 gas Substances 0.000 description 1
- 239000007788 liquid Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Landscapes
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
本发明提供了一种可重构温度变送器及重构方法,其中变送器包括参考感温元件,用于提供参考信号;检测接口模块,与外部感温元件和参考感温元件连接,用于检测外部感温元件的接线方式,以及将参考感温元件的参考信号和外部感温元件的测量信号进行AD转换;可重构模块,用于将经AD转换后的参考信号和测量信号分别转换为参考值和测量值;和处理模块,用于获取检测接口模块检测到的外部感温元件的接线方式以及根据可重构模块输出的参考值和测量值,确定外部感温元件的类型;以及用于根据外部感温元件的接线方式和类型,对可重构模块的温度处理逻辑进行重构,使可重构模块能够处理外部感温元件测量的信号,本发明实施例,可以提高温度变送器的易用性。
The invention provides a reconfigurable temperature transmitter and a reconfiguration method, wherein the transmitter includes a reference temperature sensing element for providing a reference signal; a detection interface module is connected with an external temperature sensing element and a reference temperature sensing element, It is used to detect the wiring mode of the external temperature sensing element, and perform AD conversion on the reference signal of the reference temperature sensing element and the measurement signal of the external temperature sensing element; the reconfigurable module is used to convert the reference signal and measurement signal after AD conversion respectively converted into reference values and measurement values; and a processing module, used to obtain the wiring mode of the external temperature sensing element detected by the detection interface module and determine the type of the external temperature sensing element according to the reference value and measurement value output by the reconfigurable module and for reconfiguring the temperature processing logic of the reconfigurable module according to the wiring mode and type of the external temperature sensing element, so that the reconfigurable module can process the signal measured by the external temperature sensing element, the embodiment of the present invention can improve Ease of use for temperature transmitters.
Description
技术领域technical field
本发明涉及工业自动化领域,尤其涉及一种可重构温度变送器及重构方法。The invention relates to the field of industrial automation, in particular to a reconfigurable temperature transmitter and a reconfiguration method.
背景技术Background technique
在工业过程中,温度变送器主要用于对各种气体、液体或者固体的温度进行测量以及将测得的温度信号进行远距离传输,传统对温度变送器的研究主要集中在提高其测量精度方面,而忽略了其易用性的提高,导致其易用性十分的差,这具体表现在:温度变送器在连接上感温元件时,需要进行“调零量程操作”和“调满量程操作”,待调试完成后才能安装到应用现场投入使用,并且在选择感温元件时,对于某一温度变送器只能选择某些热电阻作为其感温元件,这极大的限制了温度变送器的使用场合,另外在进行校准操作时,需要重复繁琐的“调零量程操作”和“调满量程操作”,严重的降低了温度变送器的使用灵活性,另外当选择的感温元件变化时,需要重新进行“调零量程操作”和“调满量程操作”,甚至可能会重新选择另一类温度变送器,另外当用新温度变送器替换老旧的温度变送器时,也需要重新进行“调零量程操作”和“调满量程操作”,这些都降低了温度变送器的易用性。In industrial processes, temperature transmitters are mainly used to measure the temperature of various gases, liquids or solids and to transmit the measured temperature signals over long distances. The traditional research on temperature transmitters mainly focuses on improving their measurement In terms of accuracy, the improvement of its usability is ignored, resulting in its very poor usability. This is specifically manifested in: when the temperature transmitter is connected to the temperature sensing element, it needs to perform "zero adjustment operation" and "adjustment range operation". Full-scale operation", it can only be installed on the application site and put into use after the commissioning is completed, and when selecting a temperature sensing element, only certain thermal resistors can be selected as its temperature sensing element for a certain temperature transmitter, which is a great limitation In addition, when performing calibration operations, it is necessary to repeat the cumbersome "zero-scale operation" and "full-scale operation", which seriously reduces the flexibility of the temperature transmitter. In addition, when selecting When the temperature sensing element changes, it is necessary to re-perform the "zero-scale operation" and "full-scale operation", and may even re-select another type of temperature transmitter. In addition, when replacing the old temperature transmitter with a new temperature transmitter When using a temperature transmitter, it is also necessary to perform "zero-scale operation" and "full-scale operation" again, which reduces the ease of use of the temperature transmitter.
发明内容Contents of the invention
有鉴于此,本发明提供了一种可重构温度变送器及重构方法,可以解决现有中温度变送器易用性低的问题。In view of this, the present invention provides a reconfigurable temperature transmitter and a reconfiguration method, which can solve the problem of low usability of existing medium temperature transmitters.
本发明提供一种可重构温度变送器,包括:The present invention provides a reconfigurable temperature transmitter, including:
参考感温元件,用于提供参考信号;A reference temperature sensing element is used to provide a reference signal;
检测接口模块,与外部感温元件和参考感温元件连接,用于检测外部感温元件的接线方式,以及将所述参考感温元件的参考信号和所述外部感温元件的测量信号进行模拟数字AD转换;The detection interface module is connected with the external temperature sensing element and the reference temperature sensing element, and is used for detecting the wiring mode of the external temperature sensing element, and simulating the reference signal of the reference temperature sensing element and the measurement signal of the external temperature sensing element Digital AD conversion;
可重构模块,用于将所述检测接口模块经AD转换后的参考信号和测量信号分别转换为参考值和测量值;A reconfigurable module, used to convert the reference signal and measurement signal after the AD conversion of the detection interface module into a reference value and a measurement value respectively;
和,处理模块,用于获取检测接口模块检测到的外部感温元件的接线方式,以及根据所述可重构模块输出的参考值和测量值,确定所述外部感温元件的类型;and, a processing module, configured to acquire the wiring mode of the external temperature sensing element detected by the detection interface module, and determine the type of the external temperature sensing element according to the reference value and measurement value output by the reconfigurable module;
所述处理模块,还用于根据所述外部感温元件的接线方式和类型,对所述可重构模块的温度处理逻辑进行重构,使所述可重构模块能够处理所述外部感温元件测量的信号。The processing module is further configured to reconfigure the temperature processing logic of the reconfigurable module according to the wiring mode and type of the external temperature sensing element, so that the reconfigurable module can process the external temperature sensing element The signal measured by the component.
进一步,所述检测接口模块包括:模拟选择开关、第一AD转换单元和第二AD转换单元,所述参考感温元件的输出连接至所述第一AD转换单元的输入,所述第一AD转换单元的输出连接至所述可重构模块;所述外部感温元件的输出连接至所述模拟选择开关的输入,所述模拟选择开关的输出部分直接连接至所述处理模块,部分连接至所述第二AD转换单元的输入,所述第二AD转换单元的输出连接至所述可重构模块。Further, the detection interface module includes: an analog selection switch, a first AD conversion unit and a second AD conversion unit, the output of the reference temperature sensing element is connected to the input of the first AD conversion unit, and the first AD conversion unit The output of the conversion unit is connected to the reconfigurable module; the output of the external temperature sensing element is connected to the input of the analog selection switch, and the output of the analog selection switch is partially connected to the processing module and partially connected to the The input of the second AD conversion unit and the output of the second AD conversion unit are connected to the reconfigurable module.
进一步,所述外部感温元件和参考感温元件均为热电阻。Further, both the external temperature sensing element and the reference temperature sensing element are thermal resistors.
进一步,所述外部感温元件的接线方式包括:两线制、三线制或四线制。Further, the wiring mode of the external temperature sensing element includes: two-wire system, three-wire system or four-wire system.
进一步,所述可重构模块为可编程器件。Further, the reconfigurable module is a programmable device.
进一步,所述处理模块,具体用于根据外部感温元件的接线方式和类型,判断本地是否预存与所述接线方式和类型对应的重构方案,若本地预存相应的重构方案,则直接从本地提取重构方案对可重构模块进行重构,若本地未预存相应的重构方案,则从远程获取重构方案对可重构模块进行重构或者采用远程手动的方式对可重构模块进行重构。Further, the processing module is specifically used to judge whether a reconstruction scheme corresponding to the wiring mode and type is pre-stored locally according to the wiring mode and type of the external temperature sensing element, and if the corresponding reconstruction scheme is pre-stored locally, directly from the Reconfigure the reconfigurable module by extracting the reconfiguration scheme locally. If the corresponding reconfiguration scheme is not pre-stored locally, obtain the reconfiguration scheme from the remote to reconfigure the reconfigurable module or manually reconfigure the reconfigurable module. Do the refactoring.
本发明还提供了一种用于可重构温度变送器中的重构方法,包括:The present invention also provides a reconfiguration method used in a reconfigurable temperature transmitter, including:
识别外接的感温元件的接线方式和类型;Identify the wiring method and type of the external temperature sensing element;
根据识别的接线方式和类型获取相应的重构方案;Obtain the corresponding reconstruction scheme according to the identified wiring mode and type;
根据获取的重构方案,对可重构部分的温度处理逻辑进行重构,使可重构部分能够处理所述外接的感温元件测量的信号。According to the obtained reconfiguration solution, the temperature processing logic of the reconfigurable part is reconfigured, so that the reconfigurable part can process the signal measured by the external temperature sensing element.
进一步,所述根据识别的接线方式和类型获取相应的重构方案包括:Further, said obtaining a corresponding reconstruction scheme according to the identified wiring mode and type includes:
判断本地是否存储有与所述接线方式和类型对应的重构方案;Judging whether there is a reconstruction scheme corresponding to the connection mode and type stored locally;
若判断结果为是,则从本地直接获取相应的重构方案;If the judgment result is yes, directly obtain the corresponding reconstruction scheme locally;
若判断结果为否,则通过远程自动或远程手动的方式获取相应的重构方案。If the judgment result is no, the corresponding reconstruction solution is acquired through remote automatic or remote manual means.
进一步,所述外部感温元件的接线方式包括:两线制、三线制或四线制。Further, the wiring mode of the external temperature sensing element includes: two-wire system, three-wire system or four-wire system.
进一步,所述识别外接的感温元件的类型,包括:Further, the identification of the type of the external temperature sensing element includes:
获取外接的感温元件输出的测量信号,和参考感温元件的参考信号;Obtain the measurement signal output by the external temperature sensing element and the reference signal of the reference temperature sensing element;
将所述测量信号和参考信号分别转换为测量值和参考值;converting said measurement signal and reference signal into a measurement value and a reference value, respectively;
根据所述测量值和参考值的大小关系确定所述外接的感温元件的类型。The type of the externally connected temperature sensing element is determined according to the magnitude relationship between the measured value and the reference value.
本发明的有益效果:Beneficial effects of the present invention:
本发明实施例,针对现有技术中温度变送器易用性低的问题,通过对外部感温元件的接线方式和类型的识别,从而采用与外部感温元件的接线方式和类型对应的重构方案对可重构模块的温度处理逻辑进行重构,使其能够处理外部感温元件的温度信号,从而提高温度变送器的易用性,使其能够实现“即插即用”,免去繁杂的“调零量程操作”和“调满量程操作”,即在温度变送器中引入可重构技术实现其易用性的提高。In the embodiment of the present invention, aiming at the problem of low usability of the temperature transmitter in the prior art, by identifying the wiring mode and type of the external temperature sensing element, the weight corresponding to the wiring mode and type of the external temperature sensing element is adopted. The structural scheme reconstructs the temperature processing logic of the reconfigurable module so that it can process the temperature signal of the external temperature sensing element, thereby improving the usability of the temperature transmitter and enabling it to achieve "plug and play" without To remove the complicated "zero-scale operation" and "full-scale operation", that is, to introduce reconfigurable technology into the temperature transmitter to improve its usability.
附图说明Description of drawings
下面结合附图和实施例对本发明作进一步描述:The present invention will be further described below in conjunction with accompanying drawing and embodiment:
图1是本发明提供的可重构温度变送器的实施例的结构示意图。Fig. 1 is a schematic structural diagram of an embodiment of a reconfigurable temperature transmitter provided by the present invention.
图2是图1中检测接口模块的实施例的结构示意图。Fig. 2 is a schematic structural diagram of an embodiment of the detection interface module in Fig. 1 .
图3-(a)至(c)是外部感温元件的接线方式的示意图。Figure 3-(a) to (c) is a schematic diagram of the wiring of the external temperature sensing element.
图4是图1中处理模块的实施例的结构示意图。FIG. 4 is a schematic structural diagram of an embodiment of the processing module in FIG. 1 .
图5是规划子模块的自动机的实施例的示意图。Figure 5 is a schematic diagram of an embodiment of an automaton planning sub-modules.
图6是本发明提供重构方法的实施例的流程示意图。Fig. 6 is a schematic flowchart of an embodiment of a reconstruction method provided by the present invention.
具体实施方式detailed description
请参考图1,是本发明提供的可重构温度变送器的实施例的结构示意图,其包括:参考感温元件1、检测接口模块2、可重构模块3和处理模块4,其中参考感温元件1与检测接口模块2连接,检测接口模块2分别与可重构模块3和处理模块4连接,可重构模块3与处理模块4之间也相互连接,另外检测接口模块2还与外部感温元件连接,在本实施例,外部感温元件可更换。Please refer to Fig. 1, which is a schematic structural diagram of an embodiment of a reconfigurable temperature transmitter provided by the present invention, which includes: a reference temperature sensing element 1, a detection interface module 2, a reconfigurable module 3 and a processing module 4, wherein the reference The temperature sensing element 1 is connected to the detection interface module 2, and the detection interface module 2 is connected to the reconfigurable module 3 and the processing module 4 respectively, and the reconfigurable module 3 and the processing module 4 are also connected to each other, and the detection interface module 2 is also connected to the The external temperature sensing element is connected, and in this embodiment, the external temperature sensing element can be replaced.
其中,参考感温元件1,主要用于提供参考信号。Wherein, the reference temperature sensing element 1 is mainly used to provide a reference signal.
其中,检测接口模块2,主要用于检测外部感温元件的接线方式,以及将参考感温元件的参考信号和外部感温元件的测量信号进行AD(模拟数字)转换。Among them, the detection interface module 2 is mainly used for detecting the wiring mode of the external temperature sensing element, and performing AD (analog to digital) conversion of the reference signal of the reference temperature sensing element and the measurement signal of the external temperature sensing element.
具体的,如图2所示,检测接口模块2在其一种实施方式中包括:模拟选择开关21、第一AD转换单元22和第二AD转换单元23,其中参考感温元件1的输出连接至第一AD转换单元22的输入,第一AD转换单元22的输出连接至可重构模块3;外部感温元件的输出连接至模拟选择开关21的输入,模拟选择开关21的输出部分直接连接至与处理模块4,部分连接至第二AD转换单元23的输入,第二AD转换单元23的输出连接至可重构模块3。Specifically, as shown in FIG. 2 , in one embodiment, the detection interface module 2 includes: an analog selection switch 21, a first AD conversion unit 22 and a second AD conversion unit 23, wherein the output connection of the reference temperature sensing element 1 To the input of the first AD conversion unit 22, the output of the first AD conversion unit 22 is connected to the reconfigurable module 3; the output of the external temperature sensing element is connected to the input of the analog selection switch 21, and the output part of the analog selection switch 21 is directly connected To the AND processing module 4 , partly connected to the input of the second AD conversion unit 23 , and the output of the second AD conversion unit 23 is connected to the reconfigurable module 3 .
工作时,通过控制模拟选择开关21与第二AD转换单元23断开,与处理模块4闭合,实现外部感温元件的接线方式的测量,通过控制模拟选择开关21与处理模块4断开,与第二AD转换单元23的闭合,实现外部感温元件的测量信号的模数转换。During work, by controlling the analog selector switch 21 to be disconnected from the second AD conversion unit 23 and closed with the processing module 4, the measurement of the wiring mode of the external temperature sensing element is realized, and by controlling the analog selector switch 21 to be disconnected from the processing module 4, and the The closing of the second AD conversion unit 23 realizes the analog-to-digital conversion of the measurement signal of the external temperature sensing element.
本实施例中,外部感温元件的接线方式可以选择为两线制、三线制或四线制,这三种接线方式分别如图3-(a)、图3-(b)和图3-(c)所示,在图3-(a)至(c)中公共端子3接地,1、2、4号端子接10M上拉电阻,通过检测1、2、3、4号端子电平,即可以实现感温元件的接线方式的检测。In this embodiment, the wiring mode of the external temperature sensing element can be selected as two-wire system, three-wire system or four-wire system. These three wiring modes are shown in Figure 3-(a), Figure 3-(b) and Figure 3- As shown in (c), in Figure 3-(a) to (c), the common terminal 3 is grounded, and terminals 1, 2, and 4 are connected to 10M pull-up resistors. By detecting the levels of terminals 1, 2, 3, and 4, That is, the detection of the connection mode of the temperature sensing element can be realized.
其中,可重构模块3,用于将检测接口模块2经AD转换后的参考信号(由参考感温元件提供)和测量信号(由外部感温元件提供)分别转换为参考值和测量值,其中参考值和测量值可以是电阻值。Among them, the reconfigurable module 3 is used to convert the reference signal (provided by the reference temperature sensing element) and the measurement signal (provided by the external temperature sensing element) after the AD conversion of the detection interface module 2 into a reference value and a measurement value respectively, Wherein the reference value and the measurement value may be resistance values.
其中,可重构模块3可以由可编程器件实现,例如:FPGA(Field-ProgrammableGate Array,现场可编程门阵列)。其中,可重构模块3主要进行信号处理,其从检测接口模块2取得经AD转换的参考信号和测量信号,计算出热电阻阻值,然后发送到处理器模块4,或者也可以用二分查表法查分度表将热电阻阻值转换为温度值,然后将温度值发送到处理器模块4。Wherein, the reconfigurable module 3 may be realized by a programmable device, for example: FPGA (Field-Programmable Gate Array, Field Programmable Gate Array). Among them, the reconfigurable module 3 mainly performs signal processing. It obtains the AD-converted reference signal and measurement signal from the detection interface module 2, calculates the resistance value of the thermal resistance, and then sends it to the processor module 4, or it can also use binary search The table method converts the resistance value of the thermal resistance into a temperature value, and then sends the temperature value to the processor module 4 .
其中,处理模块4,用于获取检测接口模块2检测到的外部感温元件的接线方式,以及根据可重构模块3输出的参考值和测量值,确定外部感温元件的类型。此处,参考值和测量值可以指热电阻阻值。Among them, the processing module 4 is used to obtain the connection mode of the external temperature sensing element detected by the detection interface module 2, and determine the type of the external temperature sensing element according to the reference value and measurement value output by the reconfigurable module 3. Here, the reference value and the measured value may refer to the resistance value of the thermal resistance.
其中,处理模块4,还用于根据外部感温元件的接线方式和类型,对可重构模块3的温度处理逻辑进行重构,使可重构模块3能够处理外部感温元件测量的信号。Among them, the processing module 4 is also used to reconfigure the temperature processing logic of the reconfigurable module 3 according to the connection mode and type of the external temperature sensing element, so that the reconfigurable module 3 can process the signal measured by the external temperature sensing element.
具体的,处理模块4用于根据外部感温元件的接线方式和类型,判断本地是否预存与接线方式和类型对应的重构方案,若本地预存相应的重构方案,则直接从本地提取重构方案对可重构模块进行重构,若本地未预存相应的重构方案,则从远程(可以通过增加通信接口实现远程通信)获取重构方案对可重构模块进行重构或者采用远程手动的方式对可重构模块进行重构。Specifically, the processing module 4 is used to determine whether a reconstruction scheme corresponding to the wiring mode and type is pre-stored locally according to the wiring mode and type of the external temperature sensing element. If the corresponding reconstruction scheme is pre-stored locally, the reconstruction scheme is directly extracted from the local Reconfigure the reconfigurable module according to the scheme. If the corresponding reconfiguration scheme is not pre-stored locally, obtain the reconfiguration scheme from the remote (remote communication can be realized by adding a communication interface) to reconfigure the reconfigurable module or use remote manual Refactor the reconfigurable module.
下面举例说明本发明实施例的重构过程。The following example illustrates the reconstruction process of the embodiment of the present invention.
在本实施例中,一般需要进行两次重构,每次重构均包括3个阶段:重构辨识,重构规划,重构部署。其中,第一个重构过程只由外部感温元件的连接方式决定,重构结果只能计算热电阻阻值,此过程为辨识感温元件类型做准备。第二个重构过程由外部感温元件的连接方式和类型共同决定,重构结果既能够计算热电阻阻值,也能够进行温度处理。In this embodiment, two refactorings are generally required, and each refactoring includes three stages: refactoring identification, refactoring planning, and refactoring deployment. Among them, the first reconstruction process is only determined by the connection mode of the external temperature-sensing element, and the reconstruction result can only calculate the resistance value of the thermal resistance. This process is a preparation for identifying the type of the temperature-sensing element. The second reconstruction process is determined by the connection mode and type of the external temperature sensing element. The reconstruction result can not only calculate the resistance value of the thermal resistance, but also perform temperature processing.
本实施例,可以由前述的处理模块4实现两次重构,具体的如图4所示,处理模块4包括:汇聚子模块41、规划子模块42和执行子模块43,其中汇聚子模块41进行重构辨识,规划子模块42进行重构规划,执行子模块43进行重构部署。In this embodiment, two reconstructions can be realized by the aforementioned processing module 4. Specifically, as shown in FIG. Perform reconstruction identification, the planning sub-module 42 performs reconstruction planning, and the execution sub-module 43 performs reconstruction deployment.
具体的,汇聚子模块从可重构模块获取检测信号(外部感温元件的连接方式和参考感温元件的参考温度),并将连接方式(Connection Type,简称CT)映射到重构条件MCT,如表1所示。Specifically, the convergence sub-module obtains the detection signal (the connection mode of the external temperature sensing element and the reference temperature of the reference temperature sensing element) from the reconfigurable module, and maps the connection mode (Connection Type, CT for short) to the reconstruction condition MCT, As shown in Table 1.
表一Table I
其中,外部感温元件使用的3种热电阻,表示为RTD1,RTD2,RTD3。根据它们的温度-电阻特性,在相同温度下热电阻的电阻值分别为r1、r2、r3且r1<r2<r3。参考感温元件选用RTD2。由参考温度计算自身阻值,与外部感温元件比较,则可以判断外部温度传感器的类型ST,规则为:当rM<rR-e时,外部感温元件的类型为RTD1;当rR-e<rM<rR+e时,外部感温元件的类型为RTD2;当rM>rR+e时,外部感温元件的类型为RTD3。其中,rM为外部热电阻阻值,rR为参考热电阻阻值,e为偏差值。将ST映射到重构条件MST,如表2所示。MCT和MST称作汇聚数据。Among them, the three thermal resistances used by the external temperature sensing element are represented as RTD1, RTD2, and RTD3. According to their temperature-resistance characteristics, the resistance values of thermal resistors at the same temperature are r 1 , r 2 , r 3 respectively and r 1 <r 2 <r 3 . The reference temperature sensing element is RTD2. Calculate its own resistance value from the reference temperature and compare it with the external temperature sensing element, then you can judge the type ST of the external temperature sensor. The rule is: when r M <r R -e, the type of the external temperature sensing element is RTD1; when r R When -e<r M <r R +e, the type of external temperature sensing element is RTD2; when r M >r R +e, the type of external temperature sensing element is RTD3. Among them, r M is the resistance value of the external thermal resistance, r R is the resistance value of the reference thermal resistance, and e is the deviation value. Map ST to reconstruction condition MST, as shown in Table 2. MCT and MST are called aggregated data.
表二Table II
其中,规划子模块基于自动模式形式化,能进行汇聚数据的冲突检测和重构方案规划。Among them, the planning sub-module is based on automatic model formalization, which can perform conflict detection and reconstruction scheme planning of aggregated data.
当进行规划时,规划模块需要保证系统遵守全局约束GC。表3指出了系统的全局约束条件。该表定义如下:When planning, the planning module needs to ensure that the system obeys the global constraint GC. Table 3 indicates the global constraints of the system. The table is defined as follows:
GC[n,k]=Modei(n,k),i(n,k)∈[1..Mi],n∈[1..N],k∈[1..K]GC[n,k]=Modei(n,k),i(n,k)∈[1..M i ],n∈[1..N],k∈[1..K]
其中Modei(n,k)为满足约束条件n和k的重构方案,若Modei(n,k)=1重构方案存在,反之不存在,Mi是重构方案总数,N是外部感温元件类型总数,K是外部感温元件连接方式总数。Among them, Modei(n,k) is the reconstruction scheme that satisfies the constraints n and k, if Modei(n,k)=1 the reconstruction scheme exists, otherwise it does not exist, Mi is the total number of reconstruction schemes, N is the external temperature The total number of element types, K is the total number of connection methods of external temperature sensing elements.
表三Table three
其中,规划子模块可以是一个4模式的自动机,如图5所示,规划子模块开始于IDLE模式。在IDLE模式规划子模块获取并处理来自汇聚子模块汇聚数据CD。将当前的汇聚数据与决定上次重构的重构条件相比较,若相同(RR=TRUE),则保持IDLE模式。若不同(RR=FALSE),则进入TP1模式。一旦进入该模式,规划子模块检查汇聚数据是否与GC冲突。如果重构条件冲突(CC=TRUE),则进入IDLE模式,若不冲突(CC=FALSE)进入TP2模式,在该模式下,根据重构条件查询重构方案,若方案不存在(RS=FALSE),则返回IDLE模式,若存在(RS=TRUE),则进入TP3模式,向重构实现子模块发送下载重构方案命令,等待重构模块重构完成,返回重构完成信息(RD=TRUE),进入IDLE模式,若等待一段时间(WT=TRUE)后没有接收到重构完成信息,也进入IDLE模式。Wherein, the planning sub-module may be a 4-mode automaton, as shown in FIG. 5 , the planning sub-module starts in IDLE mode. In IDLE mode, the planning sub-module acquires and processes the aggregated data CD from the aggregation sub-module. Compare the current aggregation data with the reconstruction conditions that determine the last reconstruction, and if they are the same (RR=TRUE), then keep the IDLE mode. If different (RR=FALSE), enter TP1 mode. Once in this mode, the planning submodule checks whether the pooled data conflicts with the GC. If the reconstruction condition conflicts (CC=TRUE), it enters IDLE mode, and if there is no conflict (CC=FALSE), it enters TP2 mode. In this mode, the reconstruction scheme is queried according to the reconstruction condition. If the scheme does not exist (RS=FALSE ), then return to IDLE mode, if it exists (RS=TRUE), then enter TP3 mode, send the download reconstruction plan command to the reconstruction implementation sub-module, wait for the reconstruction of the reconstruction module to complete, and return the reconstruction completion information (RD=TRUE ), enter the IDLE mode, and enter the IDLE mode if no reconstruction completion message is received after waiting for a period of time (WT=TRUE).
本实施例,针对现有技术中温度变送器易用性低的问题,通过对外部感温元件的接线方式和类型的识别,从而采用与外部感温元件的接线方式和类型对应的重构方案对可重构模块的温度处理逻辑进行重构,使其能够处理外部感温元件的温度信号,从而提高温度变送器的易用性,使其能够实现“即插即用”,免去繁杂的“调零量程操作”和“调满量程操作”。In this embodiment, aiming at the problem of low usability of the temperature transmitter in the prior art, by identifying the wiring mode and type of the external temperature sensing element, the reconstruction corresponding to the wiring mode and type of the external temperature sensing element is adopted The scheme reconfigures the temperature processing logic of the reconfigurable module so that it can process the temperature signal of the external temperature sensing element, thereby improving the usability of the temperature transmitter and enabling it to achieve "plug and play", eliminating the need for Complicated "zero-scale operation" and "full-scale operation".
下面接着说明本发明的重构方法,需要指出的是,上述举例过程中已对本发明的方法中的许多详细步骤进行了介绍,下面仅就其主要内容进行说明。Next, the reconstruction method of the present invention will be described. It should be pointed out that many detailed steps in the method of the present invention have been introduced in the above examples, and only the main content will be described below.
请参考图6,是本发明提供的用于可重构温度变送器中的重构方法的实施例的流程示意图,其包括:Please refer to FIG. 6, which is a schematic flowchart of an embodiment of a reconfiguration method used in a reconfigurable temperature transmitter provided by the present invention, which includes:
步骤S61、识别外接的感温元件的接线方式和类型。Step S61, identifying the wiring mode and type of the externally connected temperature sensing element.
其中,步骤S61中识别外接的感温元件的类型,主要包括:获取外接的感温元件输出的测量信号,和参考感温元件的参考信号;将所述测量信号和参考信号分别转换为测量值和参考值;根据所述测量值和参考值的大小关系确定所述外接的感温元件的类型,具体的:当rM<rR-e时,外部感温元件的类型为RTD1;当rR-e<rM<rR+e时,外部感温元件的类型为RTD2;当rM>rR+e时,外部感温元件的类型为RTD3。其中,rM为外部热电阻阻值,rR为参考热电阻阻值,e为偏差值。Wherein, identifying the type of the externally connected temperature sensing element in step S61 mainly includes: obtaining the measurement signal output by the externally connected temperature sensing element, and the reference signal of the reference temperature sensing element; converting the measurement signal and the reference signal into measured values respectively and the reference value; determine the type of the external temperature sensing element according to the relationship between the measured value and the reference value, specifically: when r M <r R -e, the type of the external temperature sensing element is RTD1; when r When R -e<r M <r R +e, the type of external temperature sensing element is RTD2; when r M >r R +e, the type of external temperature sensing element is RTD3. Among them, r M is the resistance value of the external thermal resistance, r R is the resistance value of the reference thermal resistance, and e is the deviation value.
步骤S62、根据识别的接线方式和类型获取相应的重构方案。Step S62, obtaining a corresponding reconfiguration solution according to the identified connection mode and type.
其中,步骤S62中根据识别的接线方式和类型获取相应的重构方案包括:判断本地是否存储有与所述接线方式和类型对应的重构方案;若判断结果为是,则从本地直接获取相应的重构方案;若判断结果为否,则通过远程自动或远程手动的方式获取相应的重构方案。Wherein, in step S62, obtaining the corresponding reconstruction scheme according to the identified wiring mode and type includes: judging whether a reconstruction scheme corresponding to the wiring mode and type is stored locally; if the judgment result is yes, directly obtaining the corresponding reconstruction scheme locally If the judgment result is no, then obtain the corresponding reconstruction plan by means of remote automatic or remote manual.
步骤S63、根据获取的重构方案,对可重构部分的温度处理逻辑进行重构,使可重构部分能够处理所述外接的感温元件测量的信号。Step S63 , according to the acquired reconfiguration solution, reconfigure the temperature processing logic of the reconfigurable part, so that the reconfigurable part can process the signal measured by the external temperature sensing element.
本实施例,通过对外部感温元件的接线方式和类型的识别,从而采用与外部感温元件的接线方式和类型对应的重构方案对可重构模块的温度处理逻辑进行重构,使其能够处理外部感温元件的温度信号,从而提高温度变送器的易用性,使其能够实现“即插即用”,免去繁杂的“调零量程操作”和“调满量程操作”。In this embodiment, by identifying the wiring mode and type of the external temperature sensing element, the reconfiguration scheme corresponding to the wiring mode and type of the external temperature sensing element is adopted to reconfigure the temperature processing logic of the reconfigurable module, so that it It can process the temperature signal of the external temperature sensing element, thereby improving the ease of use of the temperature transmitter, enabling it to realize "plug and play", eliminating the complicated "zero-scale operation" and "full-scale operation".
最后说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的宗旨和范围,其均应涵盖在本发明的权利要求范围当中。Finally, it is noted that the above embodiments are only used to illustrate the technical solutions of the present invention without limitation. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be carried out Modifications or equivalent replacements without departing from the spirit and scope of the technical solution of the present invention shall be covered by the claims of the present invention.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410075095.3A CN103791925B (en) | 2014-03-03 | 2014-03-03 | Reconfigurable temperature transmitter and reconfiguration method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410075095.3A CN103791925B (en) | 2014-03-03 | 2014-03-03 | Reconfigurable temperature transmitter and reconfiguration method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103791925A CN103791925A (en) | 2014-05-14 |
| CN103791925B true CN103791925B (en) | 2017-01-11 |
Family
ID=50667807
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410075095.3A Active CN103791925B (en) | 2014-03-03 | 2014-03-03 | Reconfigurable temperature transmitter and reconfiguration method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103791925B (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6604423B1 (en) * | 1999-10-15 | 2003-08-12 | Smc Kabushiki Kaisha | Pressure sensor, pressure sensor control apparatus, and pressure sensor system |
| WO2010047621A2 (en) * | 2008-10-22 | 2010-04-29 | Rosemount Inc. | Sensor/transmitter plug-and-play for process instrumentation |
| CN102193503A (en) * | 2010-03-15 | 2011-09-21 | 研祥智能科技股份有限公司 | Industrial control mainboard and method thereof for identifying external device |
| CN102202093A (en) * | 2011-05-12 | 2011-09-28 | 南京中兴新软件有限责任公司 | Method for realizing sensor adaption and system thereof |
| CN102608930A (en) * | 2012-03-19 | 2012-07-25 | 大连理工大学 | Plug-and-play sensor module capable of supporting multiple interfaces |
| CN203216628U (en) * | 2013-01-29 | 2013-09-25 | 西门子公司 | Temperature measuring device |
-
2014
- 2014-03-03 CN CN201410075095.3A patent/CN103791925B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6604423B1 (en) * | 1999-10-15 | 2003-08-12 | Smc Kabushiki Kaisha | Pressure sensor, pressure sensor control apparatus, and pressure sensor system |
| WO2010047621A2 (en) * | 2008-10-22 | 2010-04-29 | Rosemount Inc. | Sensor/transmitter plug-and-play for process instrumentation |
| CN102193503A (en) * | 2010-03-15 | 2011-09-21 | 研祥智能科技股份有限公司 | Industrial control mainboard and method thereof for identifying external device |
| CN102202093A (en) * | 2011-05-12 | 2011-09-28 | 南京中兴新软件有限责任公司 | Method for realizing sensor adaption and system thereof |
| CN102608930A (en) * | 2012-03-19 | 2012-07-25 | 大连理工大学 | Plug-and-play sensor module capable of supporting multiple interfaces |
| CN203216628U (en) * | 2013-01-29 | 2013-09-25 | 西门子公司 | Temperature measuring device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103791925A (en) | 2014-05-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10142116B2 (en) | Inspection device and method for powered devices in a power over Ethernet system | |
| WO2014031272A2 (en) | Rtd measurement device | |
| CN113503985A (en) | Self-adaptive distributed intelligent measurement node of temperature sensor | |
| CN106020031B (en) | The mini multifunctional concrete temperature intelligent online monitoring system of split-type | |
| CN104820653A (en) | Digital bus system and slave device physical position automatic recognition method thereof | |
| CN110568282B (en) | Power supply detection circuit and power receiving end detection method | |
| CN107328492B (en) | Method for calibrating chip temperature sensor | |
| CN106768074A (en) | A kind of end product automatic test device, system and method | |
| TW201510541A (en) | Test circuit and test method | |
| CN105527317A (en) | Method and apparatus for measuring humidity | |
| CN103791925B (en) | Reconfigurable temperature transmitter and reconfiguration method | |
| CN104931843A (en) | Wire harness automatic detection method based on relation matrix | |
| CN204442406U (en) | PROFIBUS PA protocol physical layers system for automatically testing parameters | |
| CN104158606A (en) | Test method for concentrator communication module special for automatic verification system | |
| CN102353467B (en) | System and method for verifying detection accuracy of internal core temperature of chip | |
| CN105510934A (en) | GNSS module detection system and GNSS module detection method | |
| CN104359580A (en) | Thermal resistance temperature itinerant detector | |
| CN104536922B (en) | Sensor data reading, converting and storing system in intelligent granary | |
| CN204269151U (en) | A kind of ice and snow sensor integrated morphology | |
| CN109557499B (en) | A detection method for multifunctional infrared electric energy meter | |
| CN205910534U (en) | Polymorphic type sensor signal self -adaptation data acquisition device | |
| CN208125290U (en) | A kind of fault detection circuit structure of thermistor temperature detecting circuit | |
| CN205679962U (en) | Split-type mini multifunctional concrete temperature intelligent online monitoring system | |
| CN205538010U (en) | Intelligent coke oven temperature measuring device of multichannel high accuracy | |
| CN203835379U (en) | Distributed well temperature measuring device |
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 | ||
| CP02 | Change in the address of a patent holder |
Address after: 402460 No. 160 Changyuan Street College Road, Rongchang District, Chongqing Patentee after: Southwest University Address before: 400715 No. 2, Tiansheng Road, Beibei District, Chongqing Patentee before: Southwest University |
|
| CP02 | Change in the address of a patent holder | ||
| CP02 | Change in the address of a patent holder |
Address after: 400715 No. 2, Tiansheng Road, Beibei District, Chongqing Patentee after: Southwest University Address before: 402460 No. 160 Changyuan Street College Road, Rongchang District, Chongqing Patentee before: Southwest University |
|
| CP02 | Change in the address of a patent holder |