Detection method, detection device and storage medium of bus type measuring instrument
By using the preset setting instructions and detection data transfer instructions in the detection description file in the detection method of the bus type measuring instrument, the problem of mistransmission of data in the bus channel is solved, and the accurate detection and operation of the bus type measuring instrument are realized. Operability.
Patent Information
- Application Number
- CN202211723885.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2042-12-30
AI Technical Summary
Since detection data, measurement data and other information are transmitted through the same bus channel, the transmission of other data is likely to cause mistransmission of detection data, which in turn affects the accuracy and correctness of the bus-type measuring instrument.
The detection method of a bus -type measuring instrument is adopted to obtain detection data and detection description files through on -site detection devices. The detection description file contains the front settings instructions and the detection data transfer instruction, and these instructions are executed in accordance with the preset order to ensure that the bus -type measuring instrument is correctly configured and received accurate detection data.
By establishing the relationship between the front settings instructions and the detection data transmission instruction, the error calling other data is avoided, the accurate transfer of the detection data is ensured, and the measurement accuracy and operational operation of the bus -type measuring instrument are improved.
Smart Images

Figure HDA0004030577190000011 
Figure HDA0004030577190000012 
Figure HDA0004030577190000021
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of instrument detection and calibration, and in particular to a detection method for a bus-type measuring instrument, a field detection device for implementing the detection method, and a computer storage medium for implementing the detection method. Background Art
[0002] Bus-type measuring instruments, also known as bus measuring instruments, bus instruments, etc., are usually used in industrial field control processes. Specifically, bus-type measuring instruments output measurement results after measuring physical quantities such as temperature, pressure, humidity, flow, process, etc., and are different from general digital communication measuring instruments in that bus-type measuring instruments output a control signal with strong versatility. This control signal may be in analog form, such as HART bus, which is expressed as 4-20mA, or in digital form, such as PROFIBUS-PA bus and Fieldbus Foundation bus, which is expressed as percentage, etc. Subsequently, this highly universal control signal can be transmitted to other devices at the industrial site through bus communication to achieve control of the entire industrial site.
[0003] In order to ensure the accuracy of the bus-type measuring instrument, it is necessary to detect the bus-type measuring instrument. In the prior art, a typical detection method is to apply a physical quantity to the bus-type measuring instrument, measure the applied physical quantity and the signal of the bus-type measuring instrument respectively, generate detection data, and then transmit the detection data to the bus-type measuring instrument. Unlike general data information, the detection data will directly affect the processing of its measurement information by the bus-type measuring instrument, and then affect the accuracy of the control signal of the bus-type measuring instrument. The bus-type measuring instrument cannot distinguish whether the data information transmitted to the bus-type measuring instrument is the real detection data.
[0004] Based on the above situation, it often happens in field applications and detection scenarios that a certain instruction of the field bus or the detection system, either because of an incorrect setting or because of a coincident setting, causes other data to be passed as detection data to the bus-type measuring instrument, which directly affects the measurement accuracy of the instrument. At the same time, due to the signal output form of the bus-type measuring instrument (control information rather than directly given physical values), this erroneous operation may not be directly discovered at the time, and ultimately brings problems to the actual industrial field control. Summary of the invention
[0005] Technical problem to be solved: Since detection data, measurement data and other information are transmitted through the same bus channel, the transmission of other data can easily cause mistransmission of detection data, thereby affecting the accuracy and correctness of bus-type measuring instruments.
[0006] The present application provides a detection method for a bus-type measuring instrument, based on a field detection device, the detection method comprises:
[0007] The on-site detection device acquires detection data;
[0008] The on-site detection device obtains a detection description file, where the detection description file is used to control the transmission process of the detection data, and includes at least one pre-setting instruction and a detection data transmission instruction, where the at least one pre-setting instruction and the detection data transmission instruction are set to be executed in a preset order;
[0009] The on-site detection device loads the detection description file to generate a first control program;
[0010] The on-site detection device executes the first control program, including:
[0011] Executing the at least one pre-setting instruction in the preset order, and transmitting pre-setting information to the bus-type measuring instrument, so that the bus-type measuring instrument is configured to be in an adjustable state, wherein the adjustable state includes at least one of a write-allowed state and an adjustment-allowed state;
[0012] The detection data transfer instruction is executed according to the preset sequence to transfer the detection data to the bus-type measuring instrument, so that the bus-type measuring instrument applies the detection data and processes the measurement information according to the detection data.
[0013] Preferably, the at least one pre-setting instruction includes at least one first pre-setting instruction and a second pre-setting instruction, and the first pre-setting instruction and the second pre-setting instruction are configured to be executed continuously in the preset order;
[0014] The said executing the at least one pre-setting instruction in the preset order comprises: executing the at least one first pre-setting instruction in the preset order, transmitting first pre-setting information to the bus-type measuring instrument, so that the bus-type measuring instrument determines the target detection point; executing the second pre-setting instruction in the preset order, transmitting second pre-setting information to the bus-type measuring instrument, so that the processing parameter area corresponding to the target detection point is configured to be the adjustable state;
[0015] The transmitting the detection data to the bus-type measuring instrument includes transmitting the detection data corresponding to the target detection point to the bus-type measuring instrument.
[0016] Preferably, the at least one first pre-setting instruction includes a detection mode setting instruction and a detection point setting instruction, and the detection mode setting instruction and the detection point setting instruction are configured to be executed continuously in the preset order;
[0017] The executing of the at least one first pre-setting instruction includes:
[0018] Execute the detection mode setting instruction according to the preset order, and transmit the detection mode setting information to the bus-type measuring instrument, so that the bus-type measuring instrument determines the detection mode, and the detection mode includes at least one of single-point detection, two-point detection and multi-point detection;
[0019] The detection point setting instructions are executed according to the preset sequence, and the detection point setting information is transmitted to the bus-type measuring instrument, so that the bus-type measuring instrument determines the target detection point according to the detection mode.
[0020] Preferably, the detection description file further includes at least one post-setting instruction, and the at least one post-setting instruction is configured to be executed continuously in the preset order after the detection data transmission instruction;
[0021] The execution of the first control program further includes:
[0022] The post-setting instructions are executed in the preset order to transfer post-setting information to the bus-type measuring instrument, so that the bus-type measuring instrument is configured to be in a non-adjustable state, wherein the non-adjustable state includes prohibiting writing and prohibiting adjustment.
[0023] Preferably, the at least one post-setting instruction includes a first post-setting instruction and a second post-setting instruction, and the first post-setting instruction and the second post-setting instruction are configured to be executed continuously in the preset order;
[0024] The executing of the post-setting instruction includes:
[0025] Execute the first post-setting instruction according to the preset order, and transmit the first post-setting information to the bus-type measuring instrument, so that the bus-type measuring instrument is configured to set at least one detection-related parameter according to the detection data;
[0026] The second post-setting instruction is executed in accordance with the preset order, and the second post-setting information is transmitted to the bus-type measuring instrument, so that the processing parameter area of the bus-type measuring instrument is configured to prohibit writing of the detection data, and the bus-type measuring instrument processes the measurement information according to the detection data and the detection-related parameters.
[0027] Preferably, the obtaining of the detection description file includes obtaining at least two of the detection description files, each of the detection description files corresponding to one of the bus-type measuring instruments;
[0028] The loading of the detection description file includes: obtaining type information of a first instrument to be tested, the first instrument to be tested being one of the bus-type measuring instruments, determining a first detection description file corresponding to the first instrument to be tested according to the type information of the first instrument to be tested, the first detection description file being one of the at least two detection description files, loading the first detection description file, and generating the first control program;
[0029] Occurs after the execution of the first control program, including deleting the first control program.
[0030] Preferably, the at least two detection description files further include a second detection description file, the second detection description file corresponds to a second instrument to be tested, and the second instrument to be tested is one of the bus-type measuring instruments; the first detection description file and the second detection description file have at least partially different pre-setting instructions, and / or at least partially different detection data transmission instructions, and / or at least partially different preset sequences;
[0031] The on-site detection device is configured to load the second detection description file before the first detection description file is loaded, or after the first control program is deleted.
[0032] Preferably, the first detection description file includes at least one instrument control instruction, and the on-site detection device is configured to send the instrument control instruction to the first instrument to be tested to execute the first control program; the second detection description file includes at least one instrument address, and the on-site detection device is configured to send data information to the instrument address of the second instrument to be tested to execute the first control program.
[0033] An on-site detection device, used in the above-mentioned detection method and its preferred solution, comprising:
[0034] A first storage module, wherein the first storage module is used to store a detection description file;
[0035] A second storage module, wherein the second storage module is used to load the detection description file;
[0036] A bus communication channel, wherein the bus communication channel is used for bus communication between bus type measuring instruments;
[0037] A standard measurement channel, the standard measurement channel is used to obtain standard measurement information, the standard measurement information is used to characterize the physical quantity provided to the bus type measuring instrument;
[0038] A first input module, the first input module is used to obtain type information of the bus-type measuring instrument;
[0039] A detection control module, wherein the detection control module is configured to generate detection data according to the standard measurement information, obtain the type information from the first input module, obtain the detection description file corresponding to the type information from the first storage module according to the type information, load the detection description file to generate a first control program, and execute the first control program, including:
[0040] Execute at least one pre-setting instruction in a preset order to transmit pre-setting information to the bus-type measuring instrument, so that the bus-type measuring instrument is configured to be in an adjustable state;
[0041] The detection data transmission instruction is executed according to the preset sequence to transmit the detection data to the bus-type measuring instrument, so that the bus-type measuring instrument applies the detection data and processes the measurement information according to the detection data.
[0042] A computer storage medium, characterized in that the aforementioned detection method and its preferred solution, comprises a first storage module and a first data port;
[0043] The first storage module stores at least one detection description file, the detection description file is used to control the detection data transmission process between the field detection device and the bus-type measuring instrument, and includes at least one pre-setting instruction and a detection data transmission instruction, the at least one pre-setting instruction is used to control the transmission of pre-setting information to the bus-type measuring instrument, so that the bus-type measuring instrument is configured to be in an adjustable state, the detection data transmission instruction is used to control the transmission of the detection data to the bus-type measuring instrument, so that the bus-type measuring instrument applies the detection data and processes the measurement information according to the detection data, and the at least one pre-setting instruction and the detection data transmission instruction are set to be executed continuously in a preset order;
[0044] The first data port is used for data connection with the on-site detection device, so that the on-site detection device can retrieve the detection description file from the first storage module.
[0045] Beneficial effects:
[0046] By establishing an association between the pre-set instruction and the detection data transfer instruction in the execution sequence, on the one hand, the detection data transfer instruction in the instruction sequence can be pointed to the detection data. In the absence of detection data, the detection data transfer instruction will not be executed even if the pre-set instruction is performed, thereby avoiding erroneous calls to other data. On the other hand, through the design of the pre-set instruction, the transfer of detection data and general data transfer are distinguished. Even if the detection data transfer instruction is adopted for other data, erroneous import can be avoided due to the absence of the pre-set instruction. On the other hand, by determining the execution order of each instruction in the detection description file, the execution of the pre-set instruction and the detection data transfer instruction can be completed without a complicated setting process, thereby maintaining the operability of the entire detection process while ensuring the reliability of the detection data transfer process. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 Flow chart of the detection method for example.
[0048] Figure 2 The following is a flow chart of another exemplary detection method.
[0049] Figure 3 The following is a flow chart of another exemplary detection method.
[0050] Figure 4 The figure is a connection diagram of an on-site detection device for implementing the detection method as an example.
[0051] Reference numerals:
[0052] 10. Detection control module, 21. First storage module, 22. Second storage module, 31. Bus communication channel, 32. Standard measurement channel, 41. First input module DETAILED DESCRIPTION
[0053] The technical solution of the present application is described below based on embodiments, but the technical solution of the present application is not limited to these embodiments. In the detailed description of the technical solution below, some specific details are described in detail. It should be understood that these details are not limitations on the protection scope of the present application. For those skilled in the art, the present application can be fully understood without the description of these details, and it can also be understood that these details are based on non-creative deformation of the prior art, obvious changes, replacement of conventional technical means, etc.
[0054] In the description of this embodiment, unless otherwise expressly stated or those skilled in the art can determine meaninglessly based on relevant representations: the word "comprising" does not exclude other units or steps; the singular does not exclude the plural; expressions such as "first XX", "second XX", etc. do not limit the number or select the order, but are used to distinguish different functional individuals in the same type of objects. At the same time, this distinction is mainly functional and does not include the distinction between specific entities. Those skilled in the art can understand that if the first, second, etc. individuals can only solve the technical problem independently of each other, then the first, second, etc. in the scheme represent different specific entities. If some or all of the first, second, etc. individuals can be used as a specific entity and can also solve the technical problem, then the scheme described in this embodiment includes this situation and should also fall within the scope of protection intended by this application; multiple structures, components, and units can be implemented as a whole when feasible, and a single structure, component, and unit can be implemented by multiple specific entities when feasible.
[0055] This embodiment provides the main feasible solutions and the improved solutions of the main feasible solutions. It can be understood that the main feasible solutions can solve technical problems independently, and combined with the improved solutions can better solve technical problems or solve new technical problems. The combination of some improved solutions can better solve technical problems or solve new technical problems. The feasible methods of these combinations are all within the scope of the content disclosed in this embodiment.
[0056] This embodiment provides a detection method for a bus-type measuring instrument, which is implemented based on an on-site detection device.
[0057] The so-called bus-type measuring instruments may be bus-type transmitters or other similar measuring instruments. Different from general digital communication instruments, bus-type measuring instruments are generally used in industrial field control processes. That is, the signals generated by bus-type measuring instruments are generally used as a control signal, which can be transmitted losslessly to downstream equipment, facilities, devices, etc. based on bus communication, thereby realizing on-site control of industrial processes.
[0058] The so-called field detection device may be a hand-held operator, a handheld calibrator, a field calibrator, a field calibration host, or other equipment dedicated to detection, calibration, verification, or testing. It can be understood that for detecting bus-type measuring instruments, the field detection device must have a corresponding bus communication module so that it can communicate with the bus-type measuring instrument detection bus. At the same time, other designs of the field detection device should also meet the detection requirements. For example, standard measurement channels should be configured to obtain standard measurement information with sufficient accuracy. For example, during the test process, it should ensure that the detection process is fully recorded.
[0059] The detection method of this embodiment, such as Figure 1As shown, the following steps are included:
[0060] S1. The on-site detection device obtains a detection description file, which is used to control the transmission process of detection data, including at least one pre-setting instruction and a detection data transmission instruction. At least one pre-setting instruction and the detection data transmission instruction are set to be executed in a preset order, preferably continuously.
[0061] In one case, the detection description file can be pre-stored in the on-site detection device. In this case, the acquisition action can be considered to have been performed and completed before leaving the factory or at least before the detection begins. In this case, the detection description file is only stored in the on-site detection device. In the case of no call, it does not participate in the specific detection process. At the same time, the on-site detection device can call the detection description file at any time as needed. In another case, the detection description file can also be stored in an online system, a remote server, a mobile computer storage medium, etc. In this case, it can be understood that the system, hardware, etc. storing the detection description file are regarded as part of the on-site detection device. It can also be understood that in the case of establishing a system, hardware and on-site detection device storing the detection description file, the detection description file is in a state where the on-site detection device can extract it when it wants to. Then, this operation of establishing a connection state is regarded as the so-called acquisition of the detection description file in this embodiment (that is, the on-site detection device temporarily stores the acquired detection description file in the aforementioned system and hardware).
[0062] A detection description file is a file used to control the detection data transmission process. In order to achieve process control of the detection data, it includes at least two instructions, one of which is a pre-setting instruction, and the other is a detection data transmission instruction. Each instruction is executed in a preset order, preferably continuously. The so-called preset order means that in the detection description file, the execution order of the pre-setting instructions and the detection data transmission instructions is clear and definite. The detection description file includes the content of the execution order. The so-called continuous execution means that in the detection description file, the pre-setting instructions and the detection data transmission instructions are not performed independently, but there is a trigger relationship between them. For example, in the detection description file, the completion of the execution of one instruction is used as the execution trigger of another instruction, so that when one instruction is executed, another instruction is executed until all instructions in the entire continuous sequence are completed.
[0063] It can be understood that when there are multiple pre-setting instructions and detection data transfer instructions in a continuous sequence, both are control instructions based on input (such as import detection data instructions from user operations). One of them is executed first, and then no additional instructions are required. Instead, the next one is executed, and the same is true for the subsequent ones until all instructions in the entire continuous sequence are executed.
[0064] S2. The on-site detection device loads the detection description file and generates a first control program.
[0065] After obtaining the detection description file, the on-site detection device does not directly treat it as an executable state, but is in a state to be loaded. The so-called loading refers to the loading of file information. For this embodiment, the on-site detection device has a special storage area. Preferably, this storage area is an executable area that is easy to read and write. During operation, if it is necessary to perform detection on the bus-type measuring instrument, the detection description file can be loaded into the aforementioned storage area. At this time, the relevant information is copied from the detection description file and converted into an executable program, namely the first control program. According to the amount of content in the detection description file, the first control program can be used independently as a detection control program to complete the entire detection process, or it can be used together with other pre-set program files to form a detection control program. However, no matter what form it is, since the transmission process of the detection data is completely recorded in the detection description file, the transmission process of the detection data must be dominated and controlled by the first control program.
[0066] S3. The on-site detection device obtains detection data.
[0067] According to the detection requirements of the bus-type measuring instrument, there may be multiple sources and forms of detection data. For example, corresponding to the same physical quantity (pressure, temperature, humidity, flow, process, etc.), the bus-type measuring instrument is used to measure and obtain instrument measurement information. At the same time, the standard measuring instrument is used to measure and obtain standard measurement information. The instrument measurement information and the standard measurement information are processed. The processing content includes the correction unit, the correction effective digit, the correction division value, etc., and the detection data can be obtained. It can be understood that the detection data substantially includes the instrument measurement information and the standard measurement information. For another example, corresponding to the same physical quantity (pressure, temperature, humidity, flow, process, etc.), the bus-type measuring instrument is used to measure and obtain the instrument measurement information. When the instrument measurement information reaches the target detection point, the standard measuring instrument is used to measure and obtain the standard measurement information. The standard measurement information is processed to obtain the detection data. At this time, the detection data substantially includes the standard measurement information corresponding to the target detection point. For another example, corresponding to the same physical quantity (pressure, temperature, humidity, flow, process, etc.), a standard measuring instrument is used to measure and obtain standard measurement information. When the standard measurement information reaches the target detection point, a bus-type measuring instrument is used to measure and obtain instrument measurement information. The instrument measurement information is processed to obtain detection data. At this time, the detection data substantially includes the instrument measurement information corresponding to the target detection point. For another example, the detection data is directly given according to experience, historical data, other data of the same batch, manufacturer data, etc. It can be understood that, depending on the specific circumstances of the bus-type measuring instrument, the detection data can be derived from the actual detection and measurement process, or it may be directly given. It should be noted that the execution order of all or part of S3 may be before S1, may be simultaneous with S1, may be between S1 and S2, may be simultaneous with S2, may be between S2 and S4, and may be simultaneous with S4. In combination with the following, it can be understood that S3 is at least executed before the execution of the detection data transfer instruction in S4.
[0068] S4. The field detection device executes a first control program, including: executing at least one pre-setting instruction in a preset order, transmitting pre-setting information to the bus-type measuring instrument so that the processing parameter area of the bus-type measuring instrument is configured to allow writing; executing a detection data transmission instruction in a preset order, transmitting detection data to the bus-type measuring instrument so that the processing parameter area stores the detection data, and the bus-type measuring instrument processes the measurement information according to the detection data.
[0069] It is understandable that, in order to cooperate with this embodiment, the detection description file and the bus-type measuring instrument have corresponding designs.
[0070] First of all, for bus-type measuring instruments, the bus-type measuring instruments have a processing parameter area, which is used to store detection data. Under normal circumstances, the processing parameter area is in a write-prohibited state, that is, at this time, even if the detection data transfer instruction is executed and data is required to be written to the processing parameter area, the bus-type measuring instrument will refuse to respond; correspondingly, the bus-type measuring instrument sets a mechanism similar to a switch for the processing parameter area, that is, in order to open the processing parameter area, it must be controlled according to the mechanism. Only by turning on the "switch" can the processing parameter area be written. It can be understood that at this time, for the writing of detection data, the bus-type measuring instrument has three judgment mechanisms, one is the opening password for opening the "switch", the second is the write password for writing detection data, and the third is the order of opening the "switch" and writing detection data. If any of the three judgment mechanisms does not meet the requirements, the detection data cannot be written.
[0071] Secondly, for the detection description file, the detection description file corresponds one-to-one to the bus-type measuring instrument, that is, one detection description file corresponds to a bus-type measuring instrument, and different detection description files correspond to different types of bus-type measuring instruments. This means that the detection description file can be designed to correspond to the bus-type measuring instrument. Specifically, first, as mentioned above, at least one pre-setting instruction and a detection data transmission instruction are set to be executed continuously in a preset order. This preset order is the third of the three previous judgment mechanisms. Second, the detection description file includes pre-setting instructions and pre-setting information. The content of the pre-setting information is consistent with the aforementioned turn-on command for turning on the "switch", so that when executing the pre-setting instructions, the on-site detection device can just send the pre-setting information to the bus-type measuring instrument, which satisfies the first of the three previous judgment mechanisms. Third, the detection description file includes a detection data transmission instruction, which is the write password for the detection data, which satisfies the second of the three previous judgment mechanisms.
[0072] It can be seen that the detection description file includes all the requirements for satisfying the above-mentioned three judgment mechanisms, and the first control program is loaded from the detection description file, which also includes the corresponding content of the detection description file (or the executable form of these contents). Therefore, when executing the first control program, the on-site detection device can configure the processing parameter area of the bus-type measuring instrument to allow writing. Based on this write-allowed state, the detection data can be stored in the processing parameter area, so that after the detection is completed, the bus-type measuring instrument can process the measurement information according to the detection data, thereby achieving the technical effect of ensuring the accuracy of the bus-type measuring instrument.
[0073] It should be noted that, although the preset order of continuously executing at least one pre-setting instruction and the detection data transfer instruction is determined, depending on the type of bus-type measuring instrument, it may happen that for some bus-type measuring instruments, at least one pre-setting instruction is executed first, and then the detection data transfer instruction is executed continuously. In some extreme cases, for other bus-type measuring instruments, the detection data transfer instruction is executed first, and then at least one pre-setting instruction is executed. This type of bus-type measuring instrument may have the following execution mechanism. After executing the detection data transfer instruction, the bus-type measuring instrument places the received data information in a common storage area. At the same time, according to the detection data transfer instruction, the purpose of the data information is clarified as detection data. However, at this time, writing is not allowed in the detection data area, but writing is allowed after the pre-setting instruction is obtained. It can be understood that in this case, it is equivalent to executing a part of the detection data transfer instruction at the bus-type measuring instrument first, and then executing another part later.
[0074] The advantages of this embodiment include the following aspects.
[0075] One of the advantages is that the technical solution of this embodiment can directly use the detection equipment of the prior art, such as a handheld operator, to implement the field detection device of this embodiment without affecting the original function of the detection equipment of the prior art. Specifically, for detecting the bus transmitter, taking the handheld operator as an example, when the detection description file is not loaded, the handheld operator can work according to its original function. In this process, the user may select the associated content of the pre-setting instructions, pre-setting information and detection data transmission instructions according to the needs. At this time, since the detection description file is not an executable program, and does not exist as all or part of the executable program in the initialization state, how the detection description file sets the instruction relationship will not affect the original function of the handheld operator; when the bus transmitter needs to perform the detection work in this embodiment, first select to load the detection description file, generate the first control program, and then execute the first control program. At this time, the handheld operator can implement the detection process according to the detection method of this embodiment to ensure that the detection data can be accurately and reliably transmitted to the bus type measuring instrument.
[0076] The second advantage is that both operability and safety are taken into account. Taking the aforementioned hand operator as an example, the hand operator actually communicates with the bus transmitter and "browses" the bus transmitter to achieve operation. Therefore, the operation interface of the hand operator is limited by the situation of the bus transmitter. The pre-setting instruction in this embodiment belongs to a static item. Different from it, the detection data is associated with the measurement information and its processing, and is in a variable item (or it can be called a dynamic item). Therefore, the two are usually under two different operation interfaces of the hand operator. At the same time, since these two items are not general items, that is, they are special items set by the manufacturer, it is more difficult to unify their positions. Therefore, if the original interface of the hand operator is to be used, In order to realize the similar technical effects of the detection scheme of this embodiment, relatively complicated operations are required. Specifically, first enter from the setting project interface, turn over several pages to find the static project corresponding to the pre-setting instruction, and then enter from the variable interface after the operation, turn over several pages to find the variable project corresponding to the detection data import. It can be understood that such complicated operations certainly avoid the possibility of misoperation and ensure safety, but also reduce operability. This embodiment goes further. In the detection description file, the execution order and execution relationship of the pre-setting instructions and the detection data transfer instructions are also written in, so that the entire detection data transfer process can be completed through one operation instruction, thereby ensuring the operability of the solution.
[0077] It should be noted that the detection description file of this embodiment is not a device description language (DDL), or in other words, the detection description file can include part of the content in DDL, but the two are essentially different. First, DDL technology is a technology for universal configuration of all HART compatible devices. Other buses, such as PROFIBUS-PA, rely on external specification files to achieve similar functions. The solution of this embodiment is not only applicable to bus-type measuring instruments of HART bus, but also to bus-type measuring instruments of PROFIBUS-PA and other types of buses. Secondly, the original intention of the design of DDL technology is to allow different host devices to universally access all properties and functions of all HART compatible devices. Therefore, the DDL file includes the instruction information sent to the bus-type measuring instrument. Due to the universality requirements, it is impossible to consider the internal requirements of sending these instructions, nor the external connections of these instructions. In other words, based on the DDL file, if the user wants to send any information, he needs to find the corresponding instructions in the DDL file and then retrieve the instructions for sending; the scheme of this embodiment directly points to a complete set of pre-setting instructions and detection data transmission instructions. The pre-setting instructions point to the preset pre-setting information, and the detection data transmission instructions point to the detection data. These internal requirements and external connections are not possessed by the DDL file. Thirdly, the HART protocol only stipulates the general part, and there is no limit requirement for the characteristic parts of different manufacturers. The pre-setting and other operations of this embodiment belong to the specific operation part in the HART protocol, so it is impossible to be included in the general DDL file. In order to explain more clearly, the following provides several implementation forms of the detection description file of this embodiment.
[0078] One of the implementation forms is applied to a bus-type measuring instrument based on the HART bus.
[0079] ControlSet:
[0080] >Set A1;
[0081] >Back;
[0082] >Set A2;
[0083] >Back;
[0084] Commands:
[0085] A1(ON);
[0086] A2(TestDate);
[0087] The aforementioned ControlSet gives two consecutive steps, executing A1 and executing A2. Back indicates the feedback analysis of the execution. A1 and A2 point to two different data transfer instructions respectively. It is further defined that the reference object of A1 is the setting information ON, and the reference object of A2 is the detection data. There are two ways of detection description file in this implementation form. First, A1 and A2 point to an instruction number in the DDL file. At this time, the DDL file is equivalent to a part of the detection description file. When executing the Set A1 step, the corresponding instruction in the DDL will be called according to A1. Second, the corresponding instruction is directly written in the detection description file. At this time, the detection description file can work independently. The specific implementation forms of the above two methods need to be determined according to the specific situation of the bus-type measuring instrument. If for some bus-type measuring instruments, the corresponding instructions pointed to by the pre-setting instructions of this embodiment have more functions, or it is necessary to allow users to use a very troublesome hand-operated mode for operation, then the corresponding instructions can be written in the DDL. At this time, both methods can be selected. If for some bus-type measuring instruments, the detection description file of this embodiment has fully solved the detection work, at this time, only the second method can be selected. That is to say, at this time, these instructions may not be in the DDL.
[0088] The second implementation form is applied to a bus-type measuring instrument based on PROFIBUS-PA bus.
[0089] Parms:
[0090] A1:<1af24j>
[0091] A2: <bg6h9><h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">
[0092] <h2 style=";text-align:left;direction:ltr"> a1: <1><h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">
[0093] <h2 style=";text-align:left;direction:ltr"> a2:<h2 style=";text-align:left;direction:ltr"> <testdata>
[0094] ControlSet:
[0095] >Download A1:a1;
[0096] >Download A2:a2;
[0097] The aforementioned Parms gives four definitions, namely the address of A1, the address of A2, the value of a1 and the value of a2, where the value of a2 points to another variable, and ControlSet points to two consecutive steps, storing a1 in A1 and storing a2 in A2. It can be understood that for the PROFIBUS-PA bus, there are actually only two instructions, download and upload. When executing the detection description file of this implementation form, the on-site detection device actually performs two operations, storing the parameter value of a1 to the address of A1, and after completion, storing the parameter value of a2 to the address of A2. Obviously, this implementation form has nothing to do with the DDL file.
[0098] Below, this embodiment is further described in detail through more detailed implementation schemes, and / or improved implementation schemes. It can be understood that all or part of the following schemes can be understood as independent implementation schemes based on the above-mentioned implementation schemes, and can also be understood as part of the above-mentioned implementation schemes.
[0099] The above description of this embodiment provides a pre-setting instruction that is executed continuously with the detection data transmission instruction. On this basis, the pre-setting instruction can be further improved. For example, there is an improved example 1, in which the above-mentioned at least one pre-setting instruction includes at least one first pre-setting instruction and a second pre-setting instruction, and the first pre-setting instruction and the second pre-setting instruction are set to be executed continuously in a preset order; corresponding to such a pre-setting instruction method, in the process of the field detection device executing the first control program, there may be, in accordance with a preset order, executing at least one pre-setting instruction, including: executing at least one first pre-setting instruction in a preset order, transmitting first pre-setting information to the bus-type measuring instrument, so that the bus-type measuring instrument determines the target detection point; executing the second pre-setting instruction in a preset order, transmitting the second pre-setting information to the bus-type measuring instrument, so that the processing parameter area corresponding to the target detection point is configured to be in a write-allowed state; transmitting detection data to the bus-type measuring instrument, including transmitting detection data corresponding to the target detection point to the bus-type measuring instrument.
[0100] Execute at least one first pre-setting instruction in a preset order, and transmit the first pre-setting information to the bus-type measuring instrument so that the bus-type measuring instrument determines the target detection point; execute the second pre-setting instruction in a preset order, and transmit the second pre-setting information to the bus-type measuring instrument so that the processing parameter area corresponding to the target detection point is configured to be in a write-allowed state.
[0101] There are at least two of the aforementioned pre-setting instructions, including a first pre-setting instruction and a second pre-setting instruction, wherein the number of the first pre-setting instructions is at least one, and the second pre-setting instruction may be one or more. In the detection description file, there is a preset order for the continuous execution of the first pre-setting instruction and the second pre-setting instruction. It can be understood that the preset order is a clear sequential relationship, but for different detection description files, there may be different preset orders, including at least part of the first pre-setting instruction and the second pre-setting instruction after, or, at least part of the second pre-setting instruction in front and the first pre-setting instruction after, or, a combination of the aforementioned two methods, or other possible arrangements. The first and the second in the first pre-setting instruction and the second pre-setting instruction are only used to facilitate the description of the two, and there is no order restriction itself. In some extreme cases, at least part of the first pre-setting instruction may even overlap with at least part of the second pre-setting instruction.
[0102] The first pre-setting instruction, the instruction content is used to determine the target detection point. For example, in one case, the first pre-setting instruction includes sending information of the target detection point to the bus-type measuring instrument. After the bus-type measuring instrument obtains the information, it will select the detection point corresponding to it as the target detection point. For another example, in one case, the first pre-setting instruction includes sending an instruction to read the target detection point to the bus-type measuring instrument. The bus-type measuring instrument will feedback a target detection point and select the target detection point by itself. There can also be other ways. Depending on the type of bus-type measuring instrument, the way of determining the target detection point here is also different. It can be understood that no matter which way, the first pre-setting instruction will make the bus-type measuring instrument determine the target detection point. At the same time, since the first pre-setting instruction is at least partially implemented by the field detection device, the field detection device can also determine the target detection point along with the process of the aforementioned bus-type measuring instrument determining the target detection point.
[0103] The second pre-setting instruction, the instruction content is used to configure the bus-type measuring instrument, so that the processing parameter area in the bus-type measuring instrument is at least partially in a writable state, and there is a corresponding relationship between the processing parameter area in the writable state and the aforementioned target detection point; for example, in one case, the second pre-setting instruction is made on the basis of the first pre-setting instruction, and on the basis of the first pre-setting instruction, the bus-type measuring instrument is switched to a mode for operating the target detection point, and the second pre-setting instruction is further set on this basis, and the data to be operated in the mode is set to the processing parameter area corresponding to the target detection point. Obviously, in this case, the second pre-setting instruction is associated with the first pre-setting instruction in terms of execution conditions, and does not correspond to a specific target detection point. In other words, the execution judgment condition of the second pre-setting instruction only considers whether it is at a specific target detection point. If it is, the subsequent operation can continue, but if it is not, the subsequent operation will not be performed. For example, in one case, the target detection point obtained by the second pre-setting instruction and the first pre-setting instruction is associated, wherein the target detection point of the bus-type measuring instrument is obtained through the first pre-setting instruction, and the second pre-setting instruction includes this target detection point. Obviously, in this case, the second pre-setting instruction directly corresponds to the target detection point. If the target detection points are different, then the second pre-setting instruction is at least different in the part containing the target detection point.
[0104] Based on the above settings, when executing the first control program, the field detection device and the bus-type measuring instrument cooperate with each other to perform the following three steps. The execution order of these three steps is not necessarily in the literal order, but in the preset order:
[0105] Corresponding to the first pre-setting instruction, the field detection device transmits first pre-setting information to the bus-type measuring instrument, the first pre-setting information is at least partially included in the first pre-setting instruction, or is triggered by the first pre-setting instruction, based on the first pre-setting information, the bus-type measuring instrument determines a target detection point, and correspondingly, the field detection device also determines the same target detection point in this process;
[0106] Corresponding to the second pre-setting instruction, the field detection device transmits second pre-setting information to the bus-type measuring instrument, the second pre-setting information is at least partially included in the second pre-setting instruction, or is triggered by the second pre-setting instruction, and the second pre-setting information is different from the first pre-setting information. Based on the second pre-setting information, the bus-type measuring instrument configures the processing parameter area, so that the processing parameter area corresponding to the target detection point is set to a writable state, and at this time, the processing parameter areas corresponding to other detection points are in a write-prohibited state;
[0107] Corresponding to the detection data transmission instruction, the on-site detection device transmits the detection data to the bus-type measuring instrument. The detection data corresponds to the target detection point. Since only the processing parameter area of the target detection point is set to a writable state, the detection data corresponding to the target detection point can be written into the processing parameter area corresponding to the target detection point.
[0108] The aforementioned technical solution of this embodiment provides a method for further clarifying the detection data storage area during the operation of the pre-setting instruction. On this basis, the pre-setting instruction can be further improved. For example, there is an improved example 2, at least one first pre-setting instruction includes a detection mode setting instruction and a detection point setting instruction, and the detection mode setting instruction and the detection point setting instruction are set to be executed continuously in a preset order; executing at least one first pre-setting instruction includes executing the detection mode setting instruction in a preset order, transmitting the detection mode setting information to the bus-type measuring instrument, so that the bus-type measuring instrument determines the detection mode, and the detection mode includes at least one of single-point detection, two-point detection and multi-point detection; executing the detection point setting instruction in a preset order, transmitting the detection point setting information to the bus-type measuring instrument, so that the bus-type measuring instrument determines the target detection point according to the detection mode.
[0109] In the aforementioned improved example 1, the first pre-setting instruction can coordinate the bus-type measuring instrument and the on-site detection device to determine the target detection point. As mentioned above, this determination can of course be given directly, but in some better cases, the multiple detection points of the bus-type measuring instrument can be distinguished according to the actual utilization effect of the detection data corresponding to the detection point, and they can be classified into single-point detection, two-point detection and multi-point detection respectively.
[0110] Single-point detection. In this detection mode, the bus-type measuring instrument can obtain a fixed compensation value based on the detection data and the corresponding detection point. For example, the detection data includes the standard measurement value corresponding to the detection point. The detection point corresponds to the instrument measurement value of the bus-type measuring instrument before compensation. The difference between the two is the compensation value. The compensation value of single-point detection is universally used in the processing of various measurement results of bus-type measuring instruments within the measuring range. Generally, the systematic error corresponding to single-point detection is evenly distributed within the entire measuring range. The detection point corresponding to the common single-point detection is the zero point.
[0111] Two-point detection. In this detection mode, the bus-type measuring instrument has two detection points and two detection data corresponding to the two detection points. From this, a linear compensation function can be obtained. The independent variable of this compensation function is the instrument measurement value before compensation. The function value can be the compensation value or the instrument measurement value after compensation. According to this compensation function, each measurement result within the range can be calculated for compensation. Since the deviations corresponding to the two detection points may be different, the actual compensation values corresponding to each measurement result within the range may also be different. Generally, two-point detection is used to eliminate general system errors. It is also a commonly used detection mode for realizing the detection of bus-type measuring instruments. The detection points corresponding to the common two-point detection include the minimum range value and the maximum range value.
[0112] Multi-point detection. In this detection mode, the bus-type measuring instrument has at least three detection points. Any three of the detection points can form two end detection points and one intermediate detection point. At this time, the end detection points are processed in the same way as the two-point detection to obtain the compensation function. The intermediate detection points are then used to verify the end detection points to determine whether the compensation result obtained by the compensation function matches the detection data of the end detection points (whether the difference is within the allowable error range). If they match, then they can be processed according to the compensation function, or two end detection points with a larger difference can be found. In other words, if the bus-type measuring instrument has good consistency within the measuring range, the final result of the multi-point detection may be consistent with the two-point detection. Otherwise, if they do not match, an end detection point and an intermediate detection point are needed to regenerate the compensation function. In other words, if the linear measuring instrument has poor consistency within the measuring range, then its compensation function may be segmented, each segment of the compensation function is generated by different detection points, and there is an intermediate detection point in each segment of the compensation function to verify its compliance.
[0113] On this basis, at least one first pre-setting instruction of the aforementioned improved example is further divided into a detection mode setting instruction and a detection point setting instruction. Similarly, the detection mode setting instruction and the detection point setting instruction are executed continuously in a preset order, which makes the two work in coordination.
[0114] Based on such a first pre-setting instruction, the field detection device and the bus-type measuring instrument have the following coordination process during the detection process. The steps in the coordination process are not necessarily in the literal order but are performed in a preset order:
[0115] Corresponding to the detection mode setting instruction, the detection mode setting information is sent to the bus type measuring instrument. For example, the bus type measuring instrument sets the single point detection to the sequence number 1, the two point detection to the sequence number 2, and the multi-point detection to the sequence number 3. If it is desired to select the two point detection, the detection mode setting information includes setting the detection mode to 2. Based on the detection mode setting information, the bus type measuring instrument switches it to the two point detection mode.
[0116] Corresponding to the detection point setting instruction, the detection point setting information is sent to the bus-type measuring instrument. For example, the bus-type measuring instrument sets the low point detection point (minimum value of the range) to 1 and the high point detection point (maximum value of the range) to 2. If only the low point detection point is expected to be detected, the detection point setting information includes setting the detection point to 1. Based on this, the bus-type measuring instrument will determine the target detection point as the minimum value of its range, such as 100°C, and feed back this result to the on-site detection device. The corresponding on-site detection device obtains that the target detection point to be detected is 100°C. For another example, if it is expected to detect both the high point and the low point, the detection point setting instructions can have two consecutive and sequential instructions. The order here can be consistent with the detection data transmission.
[0117] The order of the detection points is consistent with that of the previous ones. For example, the detection point is set to 1 first, and then to 2. For the bus type measuring instrument, these two setting requirements will be stored, thereby determining two detection points 100°C and 500°C, and setting these two detection points to 100°C and 500°C.
[0118] The value of the point is transmitted to the post-test device on site along with the feedback of the setting instruction of the test point;
[0119] The subsequent process can refer to the aforementioned improved example 1, execute the second pre-setting instruction in a preset order, and execute the detection data transmission instruction in a preset order, which will not be repeated here.
[0120] It can be understood that Improved Example 1 and Improved Example 2 actually further combine the automated process of detection and the secure import of detection 0 data.
[0121] Specifically, firstly, this embodiment can establish a correspondence between detection data and target detection points by determining the detection mode and the target detection points. On this basis, it can allow only one or several specific target detection points to be detected at a time according to detection needs, without having to generate all the detection data once and then transmit them together, which significantly improves the detection efficiency.
[0122] 5 Secondly, this embodiment of the invention provides a detection mode setting instruction, a detection point setting instruction, a second pre-setting instruction and a detection
[0123] The measurement data transfer instruction is set to be associated, which adds a layer of "insurance" to the second pre-setting instruction. Combined with the description of this embodiment, it can be seen that, further, for bus-type measuring instruments, the order of these four instructions also has specific requirements. That is to say, if the operation is not performed in the preset order, it is also impossible to achieve the writing permission of the processing parameter area, or,
[0124] This results in that if no detection is required, no on-site detection device is required, or the on-site detection device does not need to load the detection description file, there is no program to guide the sequence and execution of the above four instructions.
[0125] At least partially execute continuously. At this time, even if the user randomly consults, communicates, and sets the bus-type measuring instrument, that is, executes a single instruction each time, the probability of "accidentally" operating the above four instructions in this process is very low, and the probability of "accidentally" operating the above four instructions in the preset order is even lower, thereby achieving the purpose of protecting the processing parameter area.
[0126] Here, for the pre-setting instruction part, this embodiment is executed continuously in the detection description file, which means that if detection is required, all the pre-setting instructions can be obtained by recording the detection description file or by a higher-level instruction.
[0127] The execution result within the command, or the issuance of the upper-level command is subject to the restrictions of the previous setting command (for example, after executing a previous setting command, the upper-level command can only be restricted to generate the next previous setting command and cannot be operated at will), thereby ensuring the integrity and continuity of the entire detection process, and then achieving the purpose of automatic or semi-automatic detection process.
[0128] The following can be combined with the above-mentioned Improvement Example 1 and / or Improvement Example 2, or can be independently applied to the present embodiment: Improvement Example 3: The detection description file also includes at least one post-setting instruction, and at least one post-setting instruction is set to
[0129] After the detection data transmission instruction, it is executed continuously in a preset order; executing the first control program also includes executing the post-setting instruction in a preset order to transmit the post-setting information to the bus-type measuring instrument so that the processing parameter area of the bus-type measuring instrument is configured to prohibit writing of detection data.
[0130] The post-setting instruction and the pre-setting instruction have the same instruction form. The so-called same instruction form means that for realizing the control of switching the state of the processing parameter area between allowing writing and prohibiting writing, if the pre-setting instruction is an instruction of a specific form, then the post-setting instruction will also be an instruction of a specific form. If the pre-setting instruction is to send a parameter to a specific address, then the post-setting instruction is also to send another parameter to the specific address.
[0131] The post-setting instruction is executed after the detection data transmission instruction. In one case, the post-setting instruction and the aforementioned detection data transmission instruction may be executed continuously. In this case, after the detection data transmission instruction is executed (if the bus-type measuring instrument has feedback on the instruction, it includes feedback information), the execution of the post-setting instruction is immediately triggered. This process does not require additional upper-level instructions to control. In another case, the post-setting instruction and the aforementioned detection data transmission instruction may also be executed discontinuously. In this case, after the detection data transmission instruction is executed, it is generally controlled by another upper-level instruction. It can be understood that the sequential operation can be implemented through GUI design. For example, before the detection data transmission instruction is completed, the upper-level instruction interface of the post-setting instruction is not provided in the operation interface. After the detection data transmission instruction is completed, the post-setting instruction is provided in the operation interface. For another example, before the detection data transmission instruction is completed, the post-setting instruction is displayed in the UI interface, but the acquisition of the corresponding upper-level instruction is not supported (similar to an inactivated or locked state). After the detection data transmission instruction is completed, the acquisition of the upper-level instruction is configured to be activated and obtainable.
[0132] The field detection device and the bus-type measuring instrument cooperate to carry out the following process: in initialization, the processing parameter area of the bus-type measuring instrument is in a write-prohibited state; corresponding to the pre-setting instruction, the field detection device sets the bus-type measuring instrument so that the processing parameter area is configured to allow writing; corresponding to the detection data transmission instruction, the detection data is written to the aforementioned processing parameter area; corresponding to the post-setting instruction, the field detection device sets the bus-type measuring instrument so that the processing parameter area is configured to prohibit writing.
[0133] The above-mentioned technical scheme of this embodiment provides an operation process of improving the state of the bus-type measuring instrument through a post-setting instruction. This operation process can ensure that the processing parameter area of the bus-type measuring instrument is safe before and after the detection process, and the processing parameter area can be written normally during the detection process. On this basis, the post-setting instruction can be further improved. For example, there is an improved example four, at least one post-setting instruction includes a first post-setting instruction and a second post-setting instruction, and the first post-setting instruction and the second post-setting instruction are set to be executed continuously in a preset order; executing the post-setting instruction includes executing the first post-setting instruction in a preset order, transmitting the first post-setting information to the bus-type measuring instrument, so that the bus-type measuring instrument is configured to set at least one detection-related parameter according to the detection data; executing the second post-setting instruction in a preset order, transmitting the second post-setting information to the bus-type measuring instrument, so that the bus-type measuring instrument is configured to prohibit writing detection data, and the bus-type measuring instrument processes the measurement information according to the detection data and the detection-related parameters.
[0134] First of all, it can be understood that, corresponding to the present embodiment, the bus-type measuring instrument has the following working mechanism. Referring to the description of the various detection modes mentioned above, the bus-type measuring instrument needs to process the detection data to generate compensation values, compensation functions or other similar data, and then use these similar data to process the measurement information. In other cases, for example, if the bus-type measuring instrument is a bus-type transmitter, it may also be necessary to coordinate and process information such as units.
[0135] For the above situation, in the detection description file, the post-setting instruction includes different first post-setting instructions and second post-setting instructions, and the two are configured to be executed continuously in a preset order. Further, the first post-setting instruction works in conjunction with the detection data transmission instruction. In the detection description file, other data associated with the detection data is included, that is, the aforementioned detection-related parameters. For example, the detection-related parameters are the aforementioned compensation functions, and the first post-setting instruction is to refresh the aforementioned compensation functions, that is, to control the bus-type measuring instrument to refresh the compensation function according to the detection data it has stored.
[0136] It can be understood that the combination of the first post-setting instruction and the second post-setting instruction can make the bus-type measuring instrument immediately recover to a usable state after leaving the detection state. Such advantages include but are not limited to, on the one hand, from the perspective of detection application, after completing the detection, it may be necessary to verify the detection effect, that is, the bus-type measuring instrument is required to perform measurement work. According to the operation of this embodiment, after escaping the detection, the bus-type measuring instrument is automatically configured to a usable state through the post-setting instruction, and no additional recovery and preparation work is required. On the other hand, if other non-detection operations need to be performed on the bus-type measuring instrument subsequently, the normal operation will not be affected by the status of the processing parameter area or the detection-related parameters.
[0137] Considering that when actually testing bus-type measuring instruments, there may be multiple bus-type measuring instruments of different types for one test, and the bus-type measuring instruments faced by multiple tests may belong to different types. The different types of bus-type measuring instruments here include different communication protocols, different instruction forms, etc. These differences result in that the detection description file that satisfies the detection of a certain type of bus-type measuring instrument cannot provide detection support for other types of bus-type measuring instruments. At this time, it is expected that the same field detection device can detect these different types of bus-type measuring instruments separately. The field detection device of this embodiment is a device that can be compatible with the detection of multiple bus-type measuring instruments. In order to achieve compatibility, this embodiment is designed in the three links of obtaining, loading and executing post-processing of the detection description file. Specifically, it includes the following improved example five:
[0138] Obtaining a detection description file includes obtaining at least two detection description files, each detection description file corresponds to a bus-type measuring instrument; loading a detection description file includes obtaining type information of a first instrument to be tested, the first instrument to be tested is a type of bus-type measuring instrument, determining a first detection description file corresponding to the first instrument to be tested according to the type information of the first instrument to be tested, the first detection description file is one of the at least two detection description files, loading the first detection description file, and generating a first control program; occurring after executing the first control program, including deleting the first control program.
[0139] The present embodiment is designed in the acquisition of the detection description file. Specifically, first, a first storage module is defined, and the further definition of the first storage module includes that the first storage module may be a virtual storage medium, or may be a physical storage medium, and when the detection description file enters the first storage module, it can be regarded as that the on-site detection device obtains the detection description file. In this example in the present embodiment, the storage area of the first storage module (which can be distinguished by software form, or can be distinguished by hardware form) is greater than the storage requirements of two or more detection description files. Secondly, when the detection description file is stored in the first storage module, it can be distinguished by means of labels, marks, etc., and can be distinguished recognizable. By this distinguishable distinction, each detection description file and a bus type measuring instrument can establish a corresponding relationship, that is, when providing the instrument information of a certain bus type measuring instrument, it can be determined without objection that a certain detection description file has a corresponding relationship because the distinguishing content is consistent with it, and it can also be determined without objection that a certain detection description file has no corresponding relationship because the distinguishing content is different from it.
[0140] This embodiment is designed in the link of loading the detection description file. Specifically, first, the on-site detection device obtains the type information of the first instrument to be tested. The first instrument to be tested here has two meanings. From a broad perspective, as long as the first instrument to be tested is a type of bus-type measuring instrument, that is, a bus-type measuring instrument that can be detected by the aforementioned scheme of this embodiment, it can be the first instrument to be tested. The expression of the first instrument to be tested itself does not limit its order, number, type, etc. From a narrow perspective, the first instrument to be tested is a certain and separate bus-type measuring instrument in a single detection process. That is to say, if a certain instrument is defined as the first instrument to be tested, then other instruments cannot be defined as the first instrument to be tested at the same time. It can be understood that the first instrument to be tested is relative to other types of bus-type measuring instruments. Furthermore, if there are two or more identical bus-type measuring instruments (with completely consistent indicators such as manufacturer, range, specification model, etc.), or they are not the same but support the same detection description file for detection, then, if one of these bus-type measuring instruments that can be classified as the same type is defined as the first instrument to be tested, it can also be defined that the other bus-type measuring instruments that can be classified as the same type are also the first instrument to be tested. Generally speaking, there is only one first instrument to be tested that implements a detection process at the same time.
[0141] Combined with the description part of the acquisition of the aforementioned detection description file, it can be known that different detection description files have identifiable distinguishing information. Therefore, based on the type information of the first instrument to be tested, it can be compared with the identifiable distinguishing information of the detection description file to determine whether the two match. It can be defined that the detection description file corresponding to the first instrument to be tested is the first detection description file. Based on this corresponding relationship, the first detection description file describes the content of controlling the detection data transmission process of the first instrument to be tested, and there is an adaptation relationship between the two. It can be understood that if the first detection description file exists in the at least two detection description files obtained above, then the first detection description file can be found by searching and matching the at least two detection description files. It can be understood that, as one of the detection description files, the first detection description file certainly also has the content of the aforementioned detection description file.
[0142] After finding the first detection description file, the on-site detection device can load the first detection description file. After loading is completed, the aforementioned first control program can be generated. It can be understood that the first control program at this time has correspondence, that is, the first control program at this time is only applicable to the detection of the first instrument to be tested and the same type of instruments to be tested, and is not applicable to other types of instruments to be tested.
[0143] This embodiment also designs the post-execution processing of the detection description file. Specifically, after the first control program is executed, the detection data transmission of the first instrument to be tested has been completed, and the loading purpose of the first control program has been achieved, so the first control program can be deleted from the on-site detection device.
[0144] It can be understood that the present embodiment and its improved example 5 work according to the following conception. First, by acquiring two or more detection description files, or at least providing conditions for acquiring two or more detection description files, if the first instrument to be tested is to be tested, then the first detection description file corresponding to it is included in the two or more detection description files obtained above. After that, through the selective loading and unloading process, when a certain instrument to be tested needs to be tested, the detection description file corresponding to it can be loaded to form a corresponding first control program to implement the detection process. After that, when other instruments to be tested need to be tested, the previous first control program can be unloaded, and another corresponding detection description file can be selected to form a first control program. In other words, if there are multiple detection description files and bus-type measuring instruments corresponding to each detection description file, then the detection description file corresponding to each detection process is the aforementioned first detection description file, and the bus-type measuring instrument corresponding to each detection process is the aforementioned first instrument to be tested.
[0145] To further elaborate on the above-mentioned improvement example five, there may be the following improvement example six, wherein at least two detection description files also include a second detection description file, the second detection description file corresponds to a second instrument to be tested, and the second instrument to be tested is a type of bus-type measuring instrument; the first detection description file and the second detection description file have at least partially different pre-setting instructions, and / or at least partially different detection data transfer instructions, and / or at least partially different preset sequences; the on-site detection device is configured to load the second detection description file before loading the first detection description file, or after deleting the first control program.
[0146] It can be understood that Improved Example 6 is an implementation of the aforementioned Improved Example 5. Specifically, when there are at least detection description files acquired (or obtainable) by the on-site detection device, in an example case, at least two detection description files include the aforementioned first detection description file and the second detection description file. Similar to the first detection description file, the second detection description file corresponds to the second instrument to be tested. That is, the second detection description file is used to control the on-site detection device to transmit detection data to the second instrument to be tested. The second instrument to be tested is a bus-type measuring instrument. The first instrument to be tested and the second instrument to be tested belong to different types of bus-type measuring instruments. Therefore, the first detection description file and the second detection description file are different detection description files. Through the aforementioned identifiable distinguishing content, the on-site detection device can confirm the corresponding first detection description file based on the type information of the second instrument to be tested.
[0147] The differences between the first detection description file and the second detection description file are mainly the following:
[0148] One of the differences is that the pre-setting instructions are different. This difference is reflected in the fact that the communication forms achieved by the pre-setting instructions are different. For example, one of them is a transfer instruction, the object is a bus-type measuring instrument, and there is no specific data address, and the other is a transfer parameter, the object is a specific data address, and there is no special transfer execution requirement. The contents of the pre-setting instructions are different. For example, although they are both transfer instructions, the forms of the instructions are different. For example, although they are both transfer parameters, the addresses or values of the parameters are different. The execution order of the pre-setting instructions is different. For example, when there are multiple pre-setting instructions, one executes the first pre-setting instruction first and then the second pre-setting instruction, and the other executes the second pre-setting instruction first and then the first pre-setting instruction. The above differences are all related to the working mechanism corresponding to the bus-type measuring instrument. The working mechanisms of different bus-type measuring instruments are different, and the content and method of the pre-settings are also different.
[0149] The second difference is that the detection data transmission instructions are different. This difference is also related to the working mechanism of the bus-type measuring instrument. That is to say, even if the same detection data is transmitted, the detection data transmission instructions in different detection description files may be different. In one case, the detection data transmission instructions may need to first encapsulate the detection data into one or several communication instructions, and then send the communication instructions to the bus-type measuring instrument. In another case, the detection data transmission instructions may be to store the detection data at a specific address.
[0150] The third difference is that if there are post-setting instructions, similar to the pre-setting instructions, the post-setting instructions used to achieve the same effect in different detection description files may also be different.
[0151] The fourth difference is that the preset order is different. For example, for one detection description file, the pre-setting instructions, detection data transfer instructions and post-setting instructions are executed in such a preset order, and another detection description file may execute the pre-setting instructions, detection data transfer instructions and post-setting instructions in another preset order.
[0152] For a specific detection description file, the difference may be a combination of one or more of the above-mentioned difference situations one to four.
[0153] In order to better illustrate the technical solutions of the above-mentioned embodiment and its improved examples, specific examples are provided below for illustration.
[0154] The first detection description file includes a detection process part, an instrument control instruction part, a parameter part and an association relationship part. The detection process part includes the aforementioned pre-setting instructions, detection data transmission instructions and post-setting instructions, and also includes the trigger conditions and trigger sequence of each instruction. Each instruction points to an instrument control instruction, and some instructions also point to at least one parameter. The instrument control instruction part includes multiple instrument control instructions, the parameter part includes multiple defined parameters, each parameter includes at least one of a parameter address or a parameter value, and the association relationship part includes the association relationship between different parameters.
[0155] The second detection description file includes a detection process part, a parameter part and an association relationship part. The detection process part includes the aforementioned pre-setting instructions, detection data transfer instructions and post-setting instructions, and also includes the trigger conditions and trigger sequence of each instruction. Each instruction points to a data address and at least one parameter. The parameter part includes multiple defined parameters, each parameter includes at least one of the parameter address or parameter value, and the association relationship part includes the association relationship between different parameters.
[0156] When the first instrument to be tested needs to be tested, the on-site detection device establishes a communication connection with the first instrument to be tested, obtains type information from the first instrument to be tested, determines the first detection description file corresponding to it according to the type information, and generates a first control program after loading the first detection description file.
[0157] like Figure 2 As shown, the on-site detection device executes a detection control program, and the detection control program includes a first control program, including:
[0158] Get the first upper command to start detection;
[0159] Corresponding to the first pre-setting instruction, a first instrument control instruction is transmitted to the first instrument to be tested, and the first instrument to be tested switches into the single-point detection mode according to the feedback. The first instrument control instruction is defined in the aforementioned instrument control instruction part, and subsequent similar situations will not be repeated;
[0160] Corresponding to the second pre-setting instruction, according to the feedback of the first instrument to be tested, the second instrument control instruction is automatically executed to the first instrument to be tested, and the first instrument to be tested feeds back the target detection point 0°C and determines it as the current detection point;
[0161] Corresponding to the third pre-setting instruction, according to the feedback of the first instrument to be tested, it is automatically executed, the detection point information (a parameter) is encapsulated into the third instrument control instruction, and transmitted to the first instrument to be tested. The first instrument to be tested determines whether the current detection point and the encapsulated detection point information are consistent. If they are consistent, the processing parameter area corresponding to the target detection point 0°C is switched to the write-allowed state, and the operation interface of the second upper instruction is displayed in the GUI interface;
[0162] Obtain a second upper-level instruction, corresponding to the detection data transmission instruction, encapsulate the detection data (a parameter) into the fourth instrument control instruction, and transmit it to the first instrument to be tested. The first instrument to be tested unpacks the encapsulated detection data and stores it in the processing parameter area corresponding to the target detection point 0°C;
[0163] Corresponding to the first post-setting instruction, according to the feedback of the first instrument to be tested, the fifth instrument control instruction is automatically executed to the first instrument to be tested, and the first instrument to be tested refreshes the compensation value, compensation unit and other related information corresponding to the single-point detection mode, and feeds back the refresh status;
[0164] Corresponding to the first post-setting instruction, according to the feedback of the first instrument to be tested, the sixth instrument control instruction is automatically executed to the first instrument to be tested, and the first instrument to be tested switches the processing parameter area corresponding to the target detection point 0°C to the write-forbidden state and exits the single-point detection mode;
[0165] The third upper-level instruction is obtained, the on-site detection device disconnects the communication connection with the first instrument to be tested, and the first control program is deleted.
[0166] Subsequently, if it is necessary to detect a second instrument to be tested, the on-site detection device establishes a communication connection with the second instrument to be tested, obtains its type information from the second instrument to be tested, determines the corresponding second detection description file based on the type information, and after loading the second detection description file, generates a first control program. The first control program at this time is different from the first control program when detecting the first instrument to be tested.
[0167] like Figure 3 As shown, the on-site detection device executes a detection control program, and the detection control program includes a first control program, including:
[0168] Get the first upper command to start detection;
[0169] Corresponding to the first pre-setting instruction, a first parameter value is sent to the first data address, the first data address and the first parameter value are both defined in the aforementioned parameter part, the first data address is located at the second instrument to be tested, and subsequent similar situations are not repeated, and the second instrument to be tested enters the two-point detection mode accordingly;
[0170] Corresponding to the second pre-setting instruction, it is automatically executed after the first parameter value is sent, and information is read from the second data address, the information corresponding to the low point detection point of the second instrument to be tested is used as the target detection point;
[0171] Corresponding to the third pre-setting instruction, it is automatically executed after the aforementioned information reading is completed, and the target detection point is sent to the third data address, and the second instrument under test stores the information of the target detection point at its third data address;
[0172] Corresponding to the fourth pre-setting instruction, it is automatically executed after the target detection point is sent, and the second parameter value is sent to the fourth data address. The second instrument to be tested determines whether the information of the third data address (i.e., the target detection point) is consistent with its low point detection point. If they are consistent, the processing parameter area corresponding to its low point detection point is set to a write-allowed state;
[0173] Corresponding to the detection data transmission instruction, it is automatically executed after the second parameter value is sent, and it is judged that the detection data exists. If it exists, the detection data is sent to the fifth data address. At the same time, the interface of the second upper instruction and the third upper instruction is displayed in the GUI interface. The second upper instruction corresponds to continuing the detection, and the third upper instruction corresponds to exiting the detection;
[0174] Subsequently, if the second upper instruction is obtained, corresponding to the second pre-setting instruction, information is read from the second data address, and the information corresponds to the high point detection point of the second instrument to be tested, which is used as the target detection point. Subsequently, similar to the above situation, operations corresponding to the third pre-setting instruction, corresponding to the fourth pre-setting instruction, and corresponding to the detection data transmission instruction are automatically executed;
[0175] Subsequently, if a third upper instruction is obtained, corresponding to the first post-setting instruction, a third parameter value is sent to the fourth data address, and the second instrument under test sets the processing parameter area corresponding to its low point detection point to a write-prohibited state;
[0176] Corresponding to the second post-setting instruction, it is automatically executed after the third parameter value is sent, and the fourth parameter value is sent to the third data address;
[0177] Corresponding to the third post-setting instruction, it is automatically executed after the fourth parameter value is sent, and the fifth parameter value is sent to the fifth data address, and the second instrument to be tested stores the fifth parameter value;
[0178] Corresponding to the third post-setting instruction, it is automatically executed after the fifth parameter value is sent, and the sixth parameter value is sent to the first data address. The second instrument under test enters the normal measurement mode. At the same time, the second instrument under test judges the data in its fifth data address. If it is the fifth parameter value, the compensation value, compensation unit and other related information corresponding to the two-point detection mode are refreshed, and the data in the fifth data address is switched to the initial parameter value.
[0179] It can be understood that the above specific examples are a typical description of the present embodiment. In combination with the above specific examples, it can be understood that in some cases, a pre-setting instruction, a detection data transfer instruction or a post-setting instruction in the present embodiment is not necessarily an instruction, but may also be composed of two or more instructions. In some cases, two or more pre-setting instructions, detection data transfer instructions or post-setting instructions in the present embodiment may be implemented by one instruction. In some cases, two or more pre-setting instructions, detection data transfer instructions or post-setting instructions in the present embodiment may be implemented by a combination of two or more non-identical pre-setting instructions, detection data transfer instructions or post-setting instructions. It can be understood that no matter what form of implementation is mentioned above, as long as it meets the gist of the present embodiment to solve the technical problem, or is an equivalent technical feature of the present embodiment, it should be regarded as the disclosure of the present embodiment.
[0180] In order to implement the aforementioned detection method, this embodiment also provides an on-site detection device specifically used for the detection method.
[0181] like Figure 4 As shown, the on-site detection device includes a detection control module 10, a first storage module 21, a second storage module 22, a bus communication channel 31, a standard measurement channel 32 and a first input module 41. The detection control module 10 is respectively connected to the first storage module 21, the second storage module 22, the bus communication channel 31, the standard measurement channel 32 and the first input module 41, so that the transmission of data and / or other signals can be realized.
[0182] The first storage module 21 is used to store the detection description file. It can be understood that storing the detection description file in the first storage module can be regarded as obtaining the detection description file in the aforementioned detection method. The first storage module can be various media or modules with storage capabilities in the prior art. In a preferred case, the detection description file is stored in the first storage module for a long time unless the detection description file is no longer needed. Generally, once the first storage module stores a detection description file, it will not be deleted.
[0183] The second storage module 22 is used to load the detection description file. It can be understood that after the detection description file is loaded, it forms a first control program that can work together with the detection control program, etc. The second storage module can also be considered as a component for storing the first control program. Preferably, the second storage module selects a storage medium that can be read and written at a faster speed in the prior art. The faster reading speed is for the convenience of the detection control module to execute the first control program, and the faster writing speed is for the convenience of loading the detection description file. In combination with the aforementioned detection method, it can be understood that the first control program is a "temporary" program. Therefore, in the non-detection state, the second storage module may be empty.
[0184] The bus communication channel 31 is used for bus communication with bus-type measuring instruments. Therefore, the bus communication channel may be one or more. The hardware carrier of the bus communication channel may be a wired or wireless communication module in the prior art, subject to meeting the bus communication requirements. The software part of the bus communication channel should support the bus protocol required by the bus-type measuring instrument. It can be understood that the bus communication channel only requires support for communication with bus-type measuring instruments that can be detected. If there is a detection description file in the first storage module, there must be at least one bus communication channel that can communicate with the bus-type measuring instrument corresponding to the detection description file.
[0185] The standard measurement channel 32 is used to obtain standard measurement information, and the standard measurement information is used to characterize the physical quantity provided to the bus-type measuring instrument. In some cases, the standard measurement channel includes a communication module for connecting to a standard device. At this time, based on the standard measurement channel, the field detection device can obtain standard measurement information from other devices. In other cases, the standard measurement channel includes a standard measurement module for measuring the physical quantity provided to the bus-type measuring instrument, such as a standard pressure sensor, a standard thermal resistor / thermocouple, a standard humidity sensor, a high-precision process measurement circuit, etc. The above two situations can exist in combination.
[0186] The first input module 41 is used to obtain the type information of the bus-type measuring instrument. It can be understood that in some cases, the first input module can be integrated with the bus communication channel, that is, the type information corresponding to the bus-type measuring instrument can be obtained by directly communicating with the bus-type measuring instrument through the bus communication channel. In other cases, the first input module can be a touch screen, a keyboard or a communication module. At this time, through manual or computer operation, the control detection control module selects a detection description file corresponding to the bus-type measuring instrument. It can also be considered that this manual or computer operation is inputting the type information of the bus-type measuring instrument.
[0187] The detection control module 10 is configured to generate detection data according to standard measurement information, obtain type information from the first input module, obtain a detection description file corresponding to the type information from the first storage module, load the detection description file to generate a first control program, and execute the first control program, including: executing at least one pre-setting instruction in a preset order, transmitting the pre-setting information to the bus-type measuring instrument so that the processing parameter area of the bus-type measuring instrument is configured to allow writing; executing the detection data transmission instruction in a preset order, transmitting the detection data to the bus-type measuring instrument so that the processing parameter area stores the detection data, and the bus-type measuring instrument processes the measurement information according to the detection data.
[0188] It can be understood that the on-site detection device of this embodiment also includes a power supply module for supplying power to various electrical components. In order to protect various components, it may have a casing, as well as components that do not contribute to solving technical problems but are indispensable from the perspective of solution implementation. For such components, this embodiment defaults to having or implicitly discloses them.
[0189] The field detection device is described in detail below through a specific example. It can be understood that the specific description here includes all or part of the content of this embodiment and the improved example. If it has been described in the above scheme, the specific description here will not be repeated.
[0190] The on-site detection device is used to detect the third instrument to be tested, which is a bus-type measuring instrument. The standard measurement channel includes a standard measurement module, which has a higher measurement accuracy than the third instrument to be tested. The first input module includes a touch screen.
[0191] The standard measurement module and the third instrument to be measured are connected to the same physical quantity, and a bus communication channel is established to connect the third instrument to be measured.
[0192] The on-site detection device presets the second control program in the third storage module, executes the second control program, projects various detection description files available for selection in the first storage module on the touch screen, selects the third detection description file through the touch screen, and the third detection description file corresponds to the third instrument to be tested and can be used to detect the third instrument to be tested. The detection control module obtains the selection instruction from the touch screen, copies the information of the third detection description file from the first storage module, and loads it into the second storage module to generate the first control program. After the loading is completed, the on-site detection device switches to the detection working mode by default.
[0193] According to the third detection description file, the detection control module projects the detection modes (single-point detection, two-point detection, multi-point detection) supported by the third instrument under test on the touch screen, selects one of the detection modes, such as multi-point detection, and issues an instruction to start detection.
[0194] Corresponding to a pre-setting instruction, the detection control module sends a communication instruction for reading the range to the third instrument to be tested. According to the feedback from the third instrument to be tested, the detection control module obtains the range information of the third instrument to be tested, including the upper limit value of the range, the lower limit value of the range and the unit of the range.
[0195] Corresponding to another pre-setting instruction, the detection control module is automatically executed by the feedback of the third instrument under test (equivalent to the execution in the previous pre-setting instruction), and sends a detection point reading instruction to the third instrument under test to obtain multiple detection points in the multi-point detection mode.
[0196] The detection control module, the standard measurement module and the external environmental equipment work together, and the detection is carried out one by one, including determining one of the detection points as the target detection point, providing the target detection point to the environmental equipment, the environmental equipment correspondingly controlling to provide the physical quantity corresponding to the target detection point, the standard measurement module measuring the physical quantity, and when the target detection point is reached, the instrument measurement information is obtained from the bus communication channel, the standard measurement information is obtained from the standard measurement module, the data collection for the target detection point is completed, and the next detection point is carried out; finally, the detection control module can obtain the detection data of all detection points, and the detection data includes the correction data corresponding to each detection point, and the correction data is the difference between the standard measurement information corresponding to the detection point and the instrument measurement information.
[0197] Corresponding to another pre-setting instruction, the detection control module will judge whether the detection data is obtained. If the detection data is obtained and the execution feedback of the previous pre-setting instruction is also obtained, it will trigger automatic execution and send a storage setting instruction to the third instrument under test. The storage setting instruction points to a specific detection point (the detection data of the detection point is judged to be obtained). The third instrument under test sets the processing parameter area corresponding to the detection point to allow writing and provides feedback on the execution status.
[0198] Corresponding to another detection data transmission instruction, triggered by the feedback of the aforementioned third instrument under test, a data storage instruction is sent to the third instrument under test, the data storage instruction includes the detection data corresponding to the detection point, and the third instrument under test stores the detection data in the corresponding processing parameter area and provides feedback on the execution status.
[0199] Corresponding to another detection data transmission instruction, it is automatically executed by being triggered by the feedback of the aforementioned third instrument to be tested, and the detection data situation of other detection points is judged. If there is detection data that has not been issued, it is issued in the aforementioned manner.
[0200] Corresponding to a post-setting instruction, it is automatically executed by the feedback triggered by the aforementioned third instrument to be tested. If the detection data of each detection point have been issued, the detection control module sends a verification instruction to the third instrument to be tested. The third instrument to be tested verifies the obtained detection data, determines whether it meets the requirements, and provides feedback on the judgment result.
[0201] Corresponding to a post-setting instruction, it is automatically executed by the feedback triggered by the aforementioned third instrument to be tested. If the aforementioned feedback result is judged to meet the requirements, the detection control module sends a detection refresh instruction to the third instrument to be tested. The third instrument to be tested refreshes the data associated with the multi-point detection according to the detection refresh instruction, including regenerating and storing the compensation function according to the currently stored detection data.
[0202] Corresponding to a post-setting instruction, it is automatically executed by being triggered by the feedback of the aforementioned third instrument under test, and the detection control module sends another storage setting instruction to the third instrument under test. The third instrument under test initializes the processing parameter areas corresponding to all the detection points according to the storage setting instruction, making them write-prohibited.
[0203] On the basis of completing the detection of the third instrument to be tested as mentioned above, the third instrument to be tested can work normally. During the working process, it substantially compensates and corrects its measurement information according to the newly stored detection data.
[0204] For implementing the aforementioned detection method, the present embodiment also provides a computer storage medium dedicated to the detection method. In some cases, the computer storage medium can cooperate with the aforementioned field detection device to implement the aforementioned detection method. Specifically, a computer storage medium includes a first storage module and a first data port; the first storage module stores at least one detection description file, the detection description file is used to control the detection data transmission process between the field detection device and the bus-type measuring instrument, including at least one pre-setting instruction and a detection data transmission instruction, at least one pre-setting instruction is used to control the transmission of pre-setting information to the bus-type measuring instrument, so that the processing parameter area of the bus-type measuring instrument is configured to allow writing, the detection data transmission instruction is used to control the transmission of detection data to the bus-type measuring instrument, so that the processing parameter area stores the detection data, the bus-type measuring instrument processes the measurement information according to the detection data, and at least one pre-setting instruction and the detection data transmission instruction are set to be executed continuously in a preset order; the first data port is used for data connection to the field detection device, so that the field detection device retrieves the detection description file from the first storage module.
[0205] The above description is only a preferred embodiment of the present application. For those skilled in the art, the present application may have various modifications and changes. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.< / testdata>
Claims
1. A method for detecting a bus type measuring instrument, characterized in that: Based on the on-site detection device, the detection method includes: The on-site detection device acquires detection data; The on-site detection device obtains a detection description file, where the detection description file is used to control the transmission process of the detection data, and includes at least one pre-setting instruction and a detection data transmission instruction, where the at least one pre-setting instruction and the detection data transmission instruction are set to be executed in a preset order; The on-site detection device loads the detection description file to generate a first control program; The on-site detection device executes the first control program, including: Executing the at least one pre-setting instruction in the preset order, and transmitting pre-setting information to the bus-type measuring instrument, so that the bus-type measuring instrument is configured to be in an adjustable state, wherein the adjustable state includes at least one of a write-allowed state and an adjustment-allowed state; Execute the detection data transmission instruction according to the preset sequence, and transmit the detection data to the bus-type measuring instrument, so that the bus-type measuring instrument applies the detection data, and the bus-type measuring instrument processes the measurement information according to the detection data; For the writing of the detection data, the bus-type measuring instrument has three judgment mechanisms, one is an enable password for switching the bus-type measuring instrument to a writable state, the second is a write password for writing the detection data, and the third is that the enable password and the order of writing the detection data are inconsistent. If any of the three judgment mechanisms does not meet the requirements, the detection data cannot be written; the pre-setting information is consistent with the enable password, the detection data transmission instruction is consistent with the write password, and the enable password and the order of writing the detection data are consistent with the preset order.
2. The detection method according to claim 1, characterized in that: The at least one pre-setting instruction includes at least one first pre-setting instruction and a second pre-setting instruction, wherein the first pre-setting instruction and the second pre-setting instruction are configured to be executed successively in the preset order; The said executing the at least one pre-setting instruction in the preset order comprises: executing the at least one first pre-setting instruction in the preset order, transmitting first pre-setting information to the bus-type measuring instrument, so that the bus-type measuring instrument determines the target detection point; executing the second pre-setting instruction in the preset order, transmitting second pre-setting information to the bus-type measuring instrument, so that the processing parameter area corresponding to the target detection point is configured as the adjustable state, and the processing parameter area corresponding to other detection points is in a write-prohibited state, and the processing parameter area is used to store the detection data; The transmitting the detection data to the bus-type measuring instrument includes transmitting the detection data corresponding to the target detection point to the bus-type measuring instrument.
3. The detection method according to claim 2, characterized in that: The at least one first pre-setting instruction includes a detection mode setting instruction and a detection point setting instruction, and the detection mode setting instruction and the detection point setting instruction are configured to be executed continuously in the preset order; The executing of the at least one first pre-setting instruction includes: Execute the detection mode setting instruction according to the preset order, and transmit the detection mode setting information to the bus-type measuring instrument, so that the bus-type measuring instrument determines the detection mode, and the detection mode includes at least one of single-point detection, two-point detection and multi-point detection; The detection point setting instructions are executed according to the preset sequence, and the detection point setting information is transmitted to the bus-type measuring instrument, so that the bus-type measuring instrument determines the target detection point according to the detection mode.
4. The detection method according to claim 1, characterized in that: The detection description file further includes at least one post-setting instruction, and the at least one post-setting instruction is configured to be executed continuously in the preset order after the detection data transmission instruction; The execution of the first control program further includes: The post-setting instructions are executed in the preset order to transfer post-setting information to the bus-type measuring instrument, so that the bus-type measuring instrument is configured to be in a non-adjustable state, wherein the non-adjustable state includes prohibiting writing and prohibiting adjustment.
5. The detection method according to claim 4, characterized in that: The at least one post-setting instruction includes a first post-setting instruction and a second post-setting instruction, wherein the first post-setting instruction and the second post-setting instruction are configured to be executed successively in the preset order; The executing of the post-setting instruction includes: Execute the first post-setting instruction according to the preset order, and transmit the first post-setting information to the bus-type measuring instrument, so that the bus-type measuring instrument is configured to set at least one detection-related parameter according to the detection data; The second post-setting instruction is executed in accordance with the preset order, and the second post-setting information is transmitted to the bus-type measuring instrument, so that the processing parameter area of the bus-type measuring instrument is configured to prohibit writing of the detection data, and the bus-type measuring instrument processes the measurement information according to the detection data and the detection-related parameters.
6. The detection method according to claim 1, characterized in that: The obtaining of the detection description file comprises obtaining at least two of the detection description files, each of the detection description files corresponding to one of the bus-type measuring instruments; The loading of the detection description file includes: obtaining type information of a first instrument to be tested, the first instrument to be tested being one of the bus-type measuring instruments, determining a first detection description file corresponding to the first instrument to be tested according to the type information of the first instrument to be tested, the first detection description file being one of the at least two detection description files, loading the first detection description file, and generating the first control program; occurs after the execution of the first control program, Including deleting the first control program.
7. The detection method according to claim 6, characterized in that: The at least two detection description files further include a second detection description file, the second detection description file corresponds to a second instrument to be tested, and the second instrument to be tested is one of the bus-type measuring instruments; the first detection description file and the second detection description file have at least partially different pre-setting instructions, and / or at least partially different detection data transmission instructions, and / or at least partially different preset sequences; The on-site detection device is configured to load the second detection description file before the first detection description file is loaded, or after the first control program is deleted.
8. The detection method according to claim 7, characterized in that: The first detection description file includes at least one instrument control instruction, and the field detection device is configured to send the instrument control instruction to the first instrument to be tested to execute the first control program; The second detection description file includes at least one instrument address, and the field detection device is configured to send data information to the instrument address of the second instrument to be tested to execute the first control program.
9. A field detection device, characterized in that: The detection method according to any one of claims 1 to 8, comprising: A first storage module, wherein the first storage module is used to store a detection description file; A second storage module, wherein the second storage module is used to load the detection description file; A bus communication channel, wherein the bus communication channel is used for bus communication between bus type measuring instruments; A standard measurement channel, the standard measurement channel is used to obtain standard measurement information, the standard measurement information is used to characterize the physical quantity provided to the bus type measuring instrument; A first input module, the first input module is used to obtain type information of the bus-type measuring instrument; A detection control module, wherein the detection control module is configured to generate detection data according to the standard measurement information, obtain the type information from the first input module, obtain the detection description file corresponding to the type information from the first storage module according to the type information, load the detection description file to generate a first control program, and execute the first control program, including: Execute at least one pre-setting instruction in a preset order, and transmit pre-setting information to the bus-type measuring instrument, so that the bus-type measuring instrument is configured to be in an adjustable state; The detection data transmission instruction is executed according to the preset sequence to transmit the detection data to the bus-type measuring instrument, so that the bus-type measuring instrument applies the detection data and processes the measurement information according to the detection data.
10. A computer storage medium, characterized in that: The detection method according to any one of claims 1 to 8, comprising a first storage module and a first data port; The first storage module stores at least one detection description file, the detection description file is used to control the detection data transmission process between the field detection device and the bus-type measuring instrument, and includes at least one pre-setting instruction and a detection data transmission instruction, the at least one pre-setting instruction is used to control the transmission of pre-setting information to the bus-type measuring instrument, so that the bus-type measuring instrument is configured to be in an adjustable state, the detection data transmission instruction is used to control the transmission of the detection data to the bus-type measuring instrument, so that the bus-type measuring instrument applies the detection data and processes the measurement information according to the detection data, and the at least one pre-setting instruction and the detection data transmission instruction are set to be executed continuously in a preset order; The first data port is used for data connection with the on-site detection device, so that the on-site detection device can retrieve the detection description file from the first storage module.
Citation Information
Patent Citations
Portable first-line bus temperature monitoring instrument and achievement method thereof
CN104199339A
Detection method and system of bus pressure transmitter
CN112229566A