CN115808583A - Automatic instrument DIDO detection method - Google Patents
Automatic instrument DIDO detection method Download PDFInfo
- Publication number
- CN115808583A CN115808583A CN202211470283.7A CN202211470283A CN115808583A CN 115808583 A CN115808583 A CN 115808583A CN 202211470283 A CN202211470283 A CN 202211470283A CN 115808583 A CN115808583 A CN 115808583A
- Authority
- CN
- China
- Prior art keywords
- dido
- instrument
- state
- detection method
- meters
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
The invention discloses an automatic instrument DIDO detection method, aiming at providing an automatic instrument DIDO detection method for realizing the high-efficiency convenient instrument DIDO function test, and the technical scheme is characterized by comprising the following steps: s1, reading DIDO states of a meter and test hardware respectively based on a Modbus communication protocol; s2, judging whether the DIDO of the meters exists or not; s3, if the DIDO of the meters exists, the DIDO of the meters is utilized to carry out mutual measurement; when the instrument only carries one of the DI or the DO, the hardware carries the DIDO to carry out mutual test; s4, when the DO1 and the DI1 of the meters are connected together, the DO1 state is equal to the DI1 state, the DI1 is controlled by the DO1 state, when the DO1 is closed, the DI1 is also closed, and otherwise, the DI1 is opened; and S5, recording the DIDO state and storing the DIDO state into a self-contained memory of the instrument.
Description
Technical Field
The invention relates to the field of instrument detection systems, in particular to an automatic instrument DIDO detection method.
Background
Instrumentation instrument (measurement instrument): technical tools for measuring various parameters of interest in a production process are called instrumentation. Technical tools for measuring various parameters of interest in a production process are called instrumentation. Also known as a measuring instrument. Refers to a meter that can correctly sense and reflect the size of the measurement. And (3) a meter for determining the magnitude change or the magnitude characteristic, state, composition of the measured variable. Such as sensors and transducers, some meters that combine sensing elements and display meters directly are also sensing meters. In industrial production, there are physical instruments such as pressure, flow, temperature and liquid level, and analytical instruments such as gas analysis, water analysis and trace element analysis.
At present, chinese patent publication No. CN113423100A discloses an NB instrument detection method, system and device based on AES encryption, which encrypts table end parameters and registration information through AES, further ensures short waiting time on the basis of ensuring security, and improves reliability and efficiency.
Although the method, the system and the equipment for detecting the NB instrument based on AES encryption have the advantages that reading of the first table end parameter is realized through near field communication, and physical connection is avoided, so that the method, the system and the equipment are simple and easy to use and low in realization cost, most of DIDO of the existing instruments pass manual testing, a standard automatic testing system does not exist, and fixed testing logic does not exist.
Disclosure of Invention
The invention aims to provide an automatic instrument DIDO detection method, which has the advantages that the relay DIDO of a one-key full-automatic test instrument can be automatically filed and inquired by selecting instrument DIDO detection hardware and maintaining the corresponding relay DIDO control and reading commands.
The technical purpose of the invention is realized by the following technical scheme: an automated meter DIDO detection method, comprising the steps of:
s1, reading DIDO states of an instrument and test hardware respectively based on a Modbus communication protocol;
s2, judging whether the DIDO of the meters exists or not;
s3, if the DIDO of the meters exists, the DIDO of the meters is utilized to carry out mutual measurement; when the instrument only carries one of the DI or the DO, the hardware carries the DIDO to carry out mutual test;
s4, when the DO1 and the DI1 of the instrument are connected together, the DO1 state is equal to the DI1 state, the DI1 is controlled by the DO1 state, when the DO1 is closed, the DI1 is also closed, otherwise, the DI1 is opened;
and S5, recording the DIDO state and storing the DIDO state into a self-contained memory of the meter.
Further setting: and in the step S5, a communication storage module is further arranged in the instrument, and the communication module is linked on the storage module.
Further setting: and a transient suppression diode is further arranged on one side of the communication module in the instrument.
Further setting: the instrument is also connected with an intermediate relay, and the DO adopts PNP output and can directly drive the intermediate relay.
Further setting: the communication module also comprises a relay address module and an analysis module.
In conclusion, the invention has the following beneficial effects: at present, manual testing has operation errors, testing results need to be recorded manually and the like, and how to realize the DIDO function of the high-efficiency convenient testing instrument needs to be solved by the application, the prior art needs to consume manpower, data is not recorded or recorded manually usually, and time and labor are consumed.
Drawings
The invention is further described below with reference to the accompanying drawings.
FIG. 1 is a flow chart of an automated meter DIDO detection method.
Detailed Description
The following further describes the embodiments of the present invention with reference to the drawings.
The technical scheme adopted by the invention is as follows: an automated meter DIDO detection method, comprising the steps of:
s1, reading DIDO states of a meter and test hardware respectively based on a Modbus communication protocol; s2, judging whether the DIDO of the meters exists or not; s3, if the DIDO of the meters exists, the DIDO of the meters is utilized to carry out mutual measurement; when the instrument only carries one of the DI or DO, the hardware carries the DIDO to carry out mutual testing; s4, when the DO1 and the DI1 of the meters are connected together, the DO1 state is equal to the DI1 state, the DI1 is controlled by the DO1 state, when the DO1 is closed, the DI1 is also closed, and otherwise, the DI1 is opened; and S5, recording the DIDO state and storing the DIDO state into a self-contained memory of the instrument, wherein in the step S5, a communication storage module is further arranged in the instrument, the storage module is linked with a communication module, one side of the communication module in the instrument is further provided with a transient suppression diode, the instrument is further connected with an intermediate relay, the DO adopts PNP output and can directly drive the intermediate relay, and the communication module further comprises a relay address module and an analysis module.
The main working principle is as follows: and respectively reading DIDO states of the instrument and the test hardware based on a Modbus communication protocol. DI and DO are English abbreviations for Digital Input and Digital Output, respectively, i.e., digital Input and Digital Output points. And the software judges the output of the test DO to be normal by using the state of the DI, namely a DIDO mutual test method. For example, when tables DO1 and DI1 are connected together, the DO1 state is equal to the DI1 state, and DI1 is controlled by the DO1 state, and when DO1 is closed, DI1 is also closed, and vice versa, DI1 is opened. When the DIDO of the instruments exists, the DIDO of the instruments is utilized to carry out mutual measurement; when the instrument only carries one of the DI or the DO, the hardware carries the DIDO to carry out mutual testing. The method utilizes C # language to develop maintenance, test interface and bottom logic, utilizes open-source SqlLite database to store various data in software, and can realize relay DIDO of one-key full-automatic test instrument by selecting instrument DIDO detection hardware and maintaining corresponding relay DIDO control and reading commands.
The present invention is not intended to be limited to the particular embodiments shown above, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (5)
1. An automatic DIDO detection method of a meter is characterized in that: the method comprises the following steps:
s1, reading DIDO states of an instrument and test hardware respectively based on a Modbus communication protocol;
s2, judging whether the DIDO exists or not;
s3, if the DIDO of the meters exists, the DIDO of the meters is utilized to carry out mutual measurement; when the instrument only carries one of the DI or the DO, the hardware carries the DIDO to carry out mutual test;
s4, when the DO1 and the DI1 of the instrument are connected together, the DO1 state is equal to the DI1 state, the DI1 is controlled by the DO1 state, when the DO1 is closed, the DI1 is also closed, otherwise, the DI1 is opened;
and S5, recording the DIDO state and storing the DIDO state into a self-contained memory of the meter.
2. An automated meter DIDO detection method according to claim 1, wherein: and in the step S5, a communication storage module is further arranged in the instrument, and the communication module is linked on the storage module.
3. An automated meter DIDO detection method according to claim 2, wherein: and a transient suppression diode is also arranged on one side of the communication module in the instrument.
4. An automated meter DIDO detection method as claimed in claim 3, wherein: the instrument is also connected with an intermediate relay, and the DO adopts PNP output and can directly drive the intermediate relay.
5. The automated meter DIDO detection method of claim 4, wherein: the communication module also comprises a relay address module and an analysis module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211470283.7A CN115808583A (en) | 2022-11-23 | 2022-11-23 | Automatic instrument DIDO detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211470283.7A CN115808583A (en) | 2022-11-23 | 2022-11-23 | Automatic instrument DIDO detection method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115808583A true CN115808583A (en) | 2023-03-17 |
Family
ID=85483827
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211470283.7A Pending CN115808583A (en) | 2022-11-23 | 2022-11-23 | Automatic instrument DIDO detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115808583A (en) |
-
2022
- 2022-11-23 CN CN202211470283.7A patent/CN115808583A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101561309B (en) | Online measurement device and measurement method thereof for pipeline flux instrument | |
KR101540247B1 (en) | Equipment for testing water meters automatic method | |
CN108037444B (en) | GNSS PCBA automatic test system and application method thereof | |
CN102621032B (en) | Automatic tester for gas content in coal gas | |
US9720406B2 (en) | Measuring system | |
CN101299767A (en) | System and method for calculating flow | |
CN201540493U (en) | Gas pressure control device | |
CN104111436A (en) | Automatic detection system and method for digital multimeter | |
CN104410164A (en) | II-type electric energy efficiency management terminal and system | |
CN201497548U (en) | On-line verification system of water meter | |
CN109374697A (en) | A kind of batch scaling method of electrochemistry formaldehyde sensor detection | |
CN101737377A (en) | Online fault detector of hydraulic system | |
CN201803838U (en) | Multifunctional valve testing system | |
CN104165728A (en) | Pressure controller high in accuracy | |
CN110542450A (en) | Automatic calibration system and method for temperature and humidity instrument | |
CN1952624A (en) | Self-calibration control system of water flow standard apparatus | |
CN101600944A (en) | The checking of process variable transmitter | |
CN200943488Y (en) | Storage type continuous metering downhole meter for pressure and temperature | |
CN115808583A (en) | Automatic instrument DIDO detection method | |
CN201255667Y (en) | Temperature collection device | |
CN110231074B (en) | Method for rapidly detecting error of water meter | |
CN204008003U (en) | A kind of pin-point accuracy pressure controller | |
CN213456019U (en) | Nuclear power unit penetration piece leakproofness test device | |
CN203490697U (en) | Data collecting system | |
CN208421073U (en) | A kind of instrument for measuring DC resistance with temperature precise measurement and automatic conversion function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |