CN215678257U - Sensor calibration system based on CAN communication protocol - Google Patents

Sensor calibration system based on CAN communication protocol Download PDF

Info

Publication number
CN215678257U
CN215678257U CN202022764406.0U CN202022764406U CN215678257U CN 215678257 U CN215678257 U CN 215678257U CN 202022764406 U CN202022764406 U CN 202022764406U CN 215678257 U CN215678257 U CN 215678257U
Authority
CN
China
Prior art keywords
sensor
communication protocol
programmable logic
logic controller
original data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202022764406.0U
Other languages
Chinese (zh)
Inventor
孙新
魏亮
赵倩
张安稷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hudong Heavy Machinery Co Ltd
Original Assignee
Hudong Heavy Machinery Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hudong Heavy Machinery Co Ltd filed Critical Hudong Heavy Machinery Co Ltd
Priority to CN202022764406.0U priority Critical patent/CN215678257U/en
Application granted granted Critical
Publication of CN215678257U publication Critical patent/CN215678257U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The utility model provides a sensor calibration system based on a CAN communication protocol, which comprises: the device comprises a programmable logic controller, an ammeter and a computer host; wherein: a CAN interface on the programmable logic controller is connected with the sensor, controls the sensor through a CAN communication protocol, reads the original data of the gas related value measured by the sensor and converts the original data into a general current signal; a DO interface on the programmable logic controller is connected with the ammeter and displays the real-time output value of the current signal; the computer host is connected with a network port on the programmable logic controller through a network cable, reads the original data of the gas related value measured by the sensor, and carries out processing and analysis. The utility model controls and extracts the original data collected by the sensor through the CAN communication protocol, and obtains the corresponding parameters in the signal conversion formula through the corresponding fitting algorithm so as to adjust the measurement precision and accuracy of the sensor.

Description

Sensor calibration system based on CAN communication protocol
Technical Field
The utility model relates to the technical field of sensor calibration, in particular to a sensor calibration system based on a CAN communication protocol.
Background
At present, for some sensors on the market, such as NOx sensors, NH3 sensors, particle size sensors, etc., the control and data transmission mode is the CAN communication protocol, and a constant calculation formula is usually adopted when converting the raw data in the CAN message into a gas concentration or general current signal (4-20 mA). However, in the actual measurement process, for the sensors of different batches, if a unified calculation formula is adopted, the deviation of the measured value is large, and the precision and the accuracy cannot be guaranteed. In order to improve the measurement accuracy and the use performance of the sensors, each sensor needs to be calibrated again, namely, the sensors are compared with the standard concentration gas, and specific parameters in the conversion formula are adjusted again. The sensor transmits signals through a CAN communication protocol, secondary equipment is adopted to further convert acquired data into 4-20mA current signals, the sensor and the secondary equipment are integrally packaged and tested together during inspection, the work is complex, and a single CAN analyzer is adopted, so that the current value actually required by a third-party system cannot be really detected.
As described above, the prior art has the disadvantages of complicated calibration work and requiring a large amount of repetitive work. At present, no explanation or report of the similar technology of the utility model is found, and similar data at home and abroad are not collected.
SUMMERY OF THE UTILITY MODEL
Aiming at the defects in the prior art, the utility model provides a sensor calibration system and method based on a CAN communication protocol.
The utility model is realized by the following technical scheme.
According to an aspect of the present invention, there is provided a sensor calibration system based on a CAN communication protocol, including: the device comprises a programmable logic controller, an ammeter and a computer host; wherein:
the CAN interface on the programmable logic controller is connected with the sensor, controls the sensor through a CAN communication protocol, reads the original data of the gas related value measured by the sensor and converts the original data into a general current signal inside;
a DO interface on the programmable logic controller is connected with an ammeter and displays a real-time output value of a current signal;
and the computer host is connected with a network port on the programmable logic controller through a network cable, reads the original data of the gas related value measured by the sensor, and performs processing and analysis.
Preferably, the current signal is 4-20 mA.
Preferably, the computer host processes and analyzes the read raw data of the gas related value measured by the sensor, and comprises:
and adopting the concentration values of the standard gases and the original numerical values measured by the sensors under the concentration values of the standard gases to make a fitting straight line, substituting the parameters of a fitting formula of the fitting straight line into a conversion formula in the programmable logic controller, and measuring the calibrated gas concentration value again.
Preferably, the parametric expression of the fitting straight line is fitted by a least square method, that is:
y=ax+b;
wherein a and b are fitting formula parameters respectively,
and substituting the fitting formula parameters a and b into a conversion formula y in the programmable logic controller, wherein the conversion formula y is ax + b.
Preferably, the sensor calibration system based on the CAN communication protocol further comprises a display, and the display is connected with a computer host and displays the processing and analyzing structure. Further, the processing and analyzing result is that the calibrated gas concentration value is measured again.
According to another aspect of the present invention, a sensor calibration method based on a CAN communication protocol is provided, which includes:
arranging the sensors under the concentration values of the standard gases, acquiring original numerical values measured by the sensors under the concentration values of the standard gases, and converting the original numerical values into universal current signals;
the acquired raw values of the sensor measured under the concentration values of the standard gases are processed and analyzed, and the method comprises the following steps:
and fitting straight lines are made for the concentration values of the standard gases and the original values measured by the sensors under the concentration values of the standard gases, the parameters of a fitting formula of the straight lines are substituted into a conversion formula in the programmable logic controller, and the calibrated gas concentration values are measured again.
Preferably, the parametric expression of the fitting straight line is fitted by a least square method, that is:
y=ax+b;
wherein a and b are fitting formula parameters respectively,
and substituting the fitting formula parameters a and b into a conversion formula y in the programmable logic controller, wherein the conversion formula y is ax + b.
Preferably, the calibrated gas concentration value is re-measured and displayed and output.
Preferably, the current signal is 4-20 mA.
Due to the adoption of the technical scheme, compared with the prior art, the utility model at least has the following beneficial effects:
1. the utility model designs a set of sensor calibration system and method based on CAN communication protocol aiming at the sensor based on CAN communication protocol, reads the original data of CAN message and calibrates the calibration system of corresponding parameter in the conversion formula.
2. The utility model provides a sensor calibration system and a method based on a CAN communication protocol, which are used for controlling and extracting raw data acquired by a sensor through the CAN communication protocol, and obtaining corresponding parameters in a signal conversion formula of the sensor through a corresponding fitting algorithm so as to adjust the measurement precision and accuracy of the sensor.
3. The sensor calibration system and method based on the CAN communication protocol only need to detect the sensor part independently, are simple to operate, measure related parameters according to standard gas, feed back the parameters to secondary equipment for adjustment, and simultaneously CAN read out actual corresponding current values, thereby being more suitable for the use requirements of a third-party system.
Drawings
Other features, objects and advantages of the utility model will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
fig. 1 is a schematic structural diagram of a sensor calibration system based on a CAN communication protocol according to a preferred embodiment of the present invention.
Fig. 2 is a flowchart of a sensor calibration method based on a CAN communication protocol according to a preferred embodiment of the present invention.
Detailed Description
The following examples illustrate the utility model in detail: the embodiment is implemented on the premise of the technical scheme of the utility model, and a detailed implementation mode and a specific operation process are given. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a sensor calibration system based on a CAN communication protocol, including: a Programmable Logic Controller (PLC)1, an ammeter 2 and a computer host (PC) 3; wherein:
a CAN interface on a Programmable Logic Controller (PLC)1 is connected with a sensor, so that the sensor is controlled through a CAN communication protocol, the original data of the gas related value measured by the sensor is read, and the original data is internally converted into a general current signal;
a DO interface on a Programmable Logic Controller (PLC)1 is connected with an ammeter 2 so as to read a real-time output value of a current signal;
the computer host (PC)3 is connected with a network port on a Programmable Logic Controller (PLC) through a network cable, and further reads the original data of the gas related value measured by the sensor and further processes and analyzes the data.
As a preferred embodiment, the current signal is 4-20 mA.
In a preferred embodiment, the sensors are placed in standard gases with different concentrations, and raw data of the concentrations of the standard gases measured by the sensors are obtained through a Programmable Logic Controller (PLC)1 and output to a computer host (PC)3 through a network cable.
As a preferred embodiment, the computer host (PC)3 fits the respective standard gas concentrations to the original values measured by the sensors at the respective standard gas concentration values, creates a fitted straight line, substitutes the fitting formula parameters of the fitted straight line into the conversion formula in the Programmable Logic Controller (PLC)1, and re-measures the calibrated gas concentration values.
As a preferred embodiment, the parameter expression of the fitting straight line is fitted by using a least square method, that is:
y=ax+b;
wherein a and b are fitting formula parameters respectively,
and substituting the fitting formula parameters a and b into a conversion formula y in the programmable logic controller, wherein the conversion formula y is ax + b.
As a preferred embodiment, the sensor calibration system based on the CAN communication protocol further comprises a display 4, wherein the display 4 is connected with a computer host (PC)3 and displays a processing and analyzing structure. Further, the processing and analyzing result is that the calibrated gas concentration value is measured again.
Another embodiment of the present invention provides a sensor calibration method based on a CAN communication protocol, as shown in fig. 2, including:
arranging the sensors under the concentration values of the standard gases, acquiring original numerical values measured by the sensors under the concentration values of the standard gases, and converting the original numerical values into universal current signals;
the acquired raw values of the sensor measured under the concentration values of the standard gases are processed and analyzed, and the method comprises the following steps:
and fitting straight lines are made for the concentration values of the standard gases and the original values measured by the sensors under the concentration values of the standard gases, the parameters of a fitting formula of the straight lines are substituted into a conversion formula in the programmable logic controller, and the calibrated gas concentration values are measured again.
As a preferred embodiment, the parameter expression of the fitting straight line is fitted by using a least square method, that is:
y=ax+b;
wherein a and b are fitting formula parameters respectively,
and substituting the fitting formula parameters a and b into a conversion formula y in the programmable logic controller, wherein the conversion formula y is ax + b.
As a preferred embodiment, the calibrated gas concentration value is measured again and displayed and output.
As a preferred embodiment, the current signal is 4-20 mA.
In the sensor calibration system and method based on the CAN communication protocol provided by the embodiments of the present invention, the raw data collected by the sensor is controlled and extracted through the CAN communication protocol, and the corresponding parameters in the signal conversion formula are obtained through the corresponding fitting algorithm, so as to adjust the measurement accuracy and precision of the sensor. The sensor calibration system and method based on the CAN communication protocol provided by the embodiment of the utility model only need to separately detect the sensor part, are simple to operate, measure related parameters according to standard gas, feed back the parameters to secondary equipment for adjustment, and simultaneously CAN read out actual corresponding current values, thereby being more suitable for the use requirements of a third-party system.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes and modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the utility model.

Claims (3)

1. A sensor calibration system based on CAN communication protocol is characterized by comprising: the device comprises a programmable logic controller, an ammeter and a computer host; wherein:
the CAN interface on the programmable logic controller is connected with the sensor, controls the sensor through a CAN communication protocol, reads the original data of the gas related value measured by the sensor and converts the original data into a general current signal inside;
a DO interface on the programmable logic controller is connected with an ammeter and displays a real-time output value of a current signal;
and the computer host is connected with a network port on the programmable logic controller through a network cable, reads the original data of the gas related value measured by the sensor, and performs processing and analysis.
2. The CAN communication protocol based sensor calibration system of claim 1, wherein the current signal is 4-20 mA.
3. The CAN communication protocol-based sensor calibration system according to claim 1 or 2, further comprising a display, wherein the display is connected to the host computer and displays the processing and analyzing results.
CN202022764406.0U 2020-11-25 2020-11-25 Sensor calibration system based on CAN communication protocol Active CN215678257U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202022764406.0U CN215678257U (en) 2020-11-25 2020-11-25 Sensor calibration system based on CAN communication protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202022764406.0U CN215678257U (en) 2020-11-25 2020-11-25 Sensor calibration system based on CAN communication protocol

Publications (1)

Publication Number Publication Date
CN215678257U true CN215678257U (en) 2022-01-28

Family

ID=79949193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202022764406.0U Active CN215678257U (en) 2020-11-25 2020-11-25 Sensor calibration system based on CAN communication protocol

Country Status (1)

Country Link
CN (1) CN215678257U (en)

Similar Documents

Publication Publication Date Title
CN203443606U (en) Indoor pollution gas concentration monitoring device
CN206114627U (en) Tails assay appearance calibrating device
CN215678257U (en) Sensor calibration system based on CAN communication protocol
CN104835300B (en) Multiple gases detect alarm automatic checkout system and method
CN106290744A (en) Exhaust analyzer calibrating installation
CN112557593A (en) Sensor calibration system and method based on CAN communication protocol
CN1715928A (en) Remote on-line analytic detector for conductivity, pH value and oxygen dissolving value
CN105067492B (en) A kind of dust concentration instrument
CN208239436U (en) A kind of Water quality ammonia nitrogen detection system
CN205879781U (en) Infrared ray moisture meter measuring error automatic determination and display device
CN104483287A (en) Detection device and detection method based on near infrared spectrum for biological parameters in on-line fermentation process
CN210894193U (en) Accuracy inspection system of online pH table of power plant steam system
CN201476810U (en) Practical device for automatically correcting meter
CN103941630A (en) Pneumatic measuring instrument control system based on PLC
CN203838519U (en) PLC-based pneumatic measuring instrument control system
CN205750589U (en) A kind of based on monolithic processor controlled intelligent temperature controller
KR100404279B1 (en) Water Quality Measuring System of using the PC monitor
CN201653544U (en) Laser ageing detection device
CN109001259A (en) A kind of multi-parameter high-accuracy water quality detecting device
CN102555064A (en) Proportioning system and method for concrete, and upper computer
CN213689514U (en) Parameter monitoring and calibration system of gas detection equipment
CN202748162U (en) Profound hypothermia measurement device
CN213338005U (en) Digital direct current electric energy meter on-site calibration instrument
CN201867388U (en) Full-automatic calibrating device for gas alarm
CN212904778U (en) Calibration system for common gas sensor

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant