CN115865089A - Automatic calibration method and system for analog input - Google Patents
Automatic calibration method and system for analog input Download PDFInfo
- Publication number
- CN115865089A CN115865089A CN202310080904.9A CN202310080904A CN115865089A CN 115865089 A CN115865089 A CN 115865089A CN 202310080904 A CN202310080904 A CN 202310080904A CN 115865089 A CN115865089 A CN 115865089A
- Authority
- CN
- China
- Prior art keywords
- calibrated
- module
- calibration
- main control
- control unit
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000005259 measurement Methods 0.000 claims description 14
- 238000004891 communication Methods 0.000 claims description 11
- 238000009826 distribution Methods 0.000 claims description 8
- 230000005540 biological transmission Effects 0.000 claims description 7
- 230000003247 decreasing effect Effects 0.000 claims description 3
- 230000006870 function Effects 0.000 description 14
- 238000004458 analytical method Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000008054 signal transmission Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009776 industrial production Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Images
Landscapes
- Arrangements For Transmission Of Measured Signals (AREA)
- Control By Computers (AREA)
Abstract
The application discloses an automatic calibration method and system for analog input, wherein the automatic calibration system comprises a triggering and displaying unit, a module group to be calibrated and a main control unit, wherein the triggering and displaying unit outputs a function code corresponding to the model of the module group to be calibrated; the main control unit receives the function codes, scans the module group to be calibrated to obtain the number of the mounted modules to be calibrated, and allocates addresses to the modules to be calibrated; the main control unit analyzes the function codes to obtain decoding information, generates calibration analog quantity corresponding to the decoding information, and outputs the decoding information and the calibration analog quantity to each module to be calibrated; and each module to be calibrated receives the decoding information and the calibration analog quantity, executes a calibration program corresponding to the decoding information and executes the calibration of a plurality of channels in each module to be calibrated in parallel. According to the technical scheme, the modules to be calibrated are sequentially calibrated, and the channels are simultaneously calibrated, so that the calibration efficiency of the modules to be calibrated is improved; through twice calibration processes, the precision of the module to be calibrated is improved.
Description
Technical Field
The present application relates to the field of industrial control technologies, and in particular, to an automatic calibration method and system for analog input.
Background
In practical application, the analog input board card is often used to assist the industrial personal computer to master the field situation, for example, in an industrial production field, many different types of sensors are often required to be installed, but communication between the sensors and the industrial personal computer may have limitations, for example, after the pressure sensor collects pressure information of the field, the output voltage or current signal cannot be remotely transmitted, at this time, the analog input board card CAN be used to receive the analog signal output by the pressure sensor, then the analog signal is converted into a digital signal which CAN be recognized by a CPU of the industrial personal computer, and the digital signal is remotely transmitted to the industrial personal computer through various communication modes such as RS232, RS485, USB, ethernet, CAN and the like, so as to perform subsequent processing on the industrial personal computer.
In order to improve the conversion precision of analog input board cards, a large batch of analog input board cards need to be calibrated before use, but the existing calibration method can only be used for singly calibrating one board card generally, after one board card finishes calibration operation, the next board card needs to be manually replaced for calibration operation, and multiple channels of the same board card cannot be calibrated simultaneously, so that the calibration efficiency of the board cards is low.
Moreover, the existing calibration method generally only comprises a calibration process once, and because hardware parameters of each channel of the analog input board card are different, some channels can meet requirements, and some channels cannot meet requirements, the accuracy of the board card is further low.
Disclosure of Invention
In order to solve the problems that the calibration efficiency of an analog input board card is low and the calibration precision is low, the application provides an automatic calibration method and system for analog input.
The application provides an automatic calibration method and system for analog input, which adopts the following technical scheme:
an automatic calibration method for analog quantity input comprises the following steps:
selecting the model of the module group to be calibrated through the trigger and display unit, and outputting a calibration starting instruction by the trigger and display unit, wherein the calibration starting instruction comprises a function code corresponding to the model of the module group to be calibrated;
the main control unit receives the function codes, scans the module group to be calibrated to obtain the number N of the mounted modules to be calibrated, and allocates addresses to the N modules to be calibrated;
the main control unit analyzes the function code to obtain decoding information, generates calibration analog quantity corresponding to the decoding information and outputs the decoding information and the calibration analog quantity to each module to be calibrated;
and each module to be calibrated receives the decoding information and the calibration analog quantity, executes a calibration program corresponding to the decoding information, and executes the calibration of a plurality of channels in each module to be calibrated in parallel.
Through adopting above-mentioned technical scheme, through master control unit and trigger and display element, treat the communication between the calibration module, can realize treating each passageway simultaneous calibration of calibration module to can once treat a plurality of calibration modules and carry out calibration operation in proper order, need not artifical manual change, shorten calibration time, improve calibration efficiency greatly.
In a specific possible implementation, the decoding information includes: the type of the module to be calibrated, the number of channels and the upper and lower limits of the measuring range.
By adopting the technical scheme, the main control unit enables the value of the generated calibration analog quantity to be more accurate according to the upper and lower limits and the type of the range of the module to be calibrated obtained through analysis, and the main control unit outputs the decoding information and the calibration analog quantity to each channel of the module to be calibrated according to the number of the channels of the module to be calibrated obtained through analysis, so that omission is avoided.
In a specific embodiment, the executing the calibration procedure corresponding to the decoded information, and the parallel execution of the calibration process of the plurality of channels in each module to be calibrated includes: each module to be calibrated receives a theoretical value range-high near the upper limit of the measuring range and a theoretical value range-low near the lower limit of the measuring range output by the main control unit, each channel of each module to be calibrated obtains a corresponding actual value measure1 and an actual value measure2 through measurement, and each channel calculates a respective proportional coefficient ratio and offset according to the theoretical value range-high, the theoretical value range-low, the actual value measure1 and the actual value measure2 to obtain an output characteristic equation of each channel of each module to be calibrated.
By adopting the technical scheme, the module to be calibrated determines the proportionality coefficient and the offset of each channel according to the two endpoint theoretical values output by the main control unit and the endpoint actual value obtained by self measurement, so as to obtain the output characteristic equation of each channel of each module to be calibrated.
In a specific implementation, after obtaining the output characteristic equation of each channel of each module to be calibrated, the method further includes: each module to be calibrated receives a plurality of reference analog quantities output by the main control unit; calculating actual output quantity corresponding to the actual measurement value according to the actual measurement value and an output characteristic equation by each channel of each module to be calibrated; and each module to be calibrated calculates the deviation between the actual output quantity of each channel and the reference analog quantity, and if the deviation exceeds a preset deviation threshold, the offset is increased or decreased according to a preset step until the precision requirement is met.
By adopting the technical scheme, through twice calibration processes, all channels of the module to be calibrated meet the requirements, and the precision of the module to be calibrated is improved.
In a specific implementation scheme, the main control unit further scans the model of each module to be calibrated, determines whether the model of each module to be calibrated corresponds to the function code sent by the triggering and displaying unit, and if not, the main control unit outputs corresponding determination result information to the triggering and displaying unit, and the triggering and displaying unit sends out an alarm.
By adopting the technical scheme, the main control unit judges whether the model of each module to be calibrated obtained by scanning corresponds to the function code sent by the triggering and displaying unit, if the model does not correspond to the function code, the model which does not correspond to the model cannot be calibrated in the module to be calibrated, the main control unit outputs inconsistent information to the triggering and displaying unit in time, and the triggering and displaying unit sends an alarm to remind a user of checking.
In a specific implementation scheme, the automatic calibration system for analog quantity input comprises a triggering and display unit, a module group to be calibrated and a main control unit.
By adopting the technical scheme, the automatic calibration system adopting the automatic calibration method can improve the calibration efficiency and precision of the module to be calibrated.
In a specific implementation scheme, the main control unit scans the module group to be calibrated to obtain information of each module to be calibrated, the information of each module to be calibrated is output to the triggering and displaying unit, the triggering and displaying unit lights up the corresponding indicator lamp according to the information of each module to be calibrated, and the indicator lamp lights up for a preset time and then goes off.
By adopting the technical scheme, the main control unit outputs the information of each module to be calibrated to the triggering and displaying unit, so that the triggering and displaying unit lights up the corresponding indicator lamp, and a user can know the condition of the module to be calibrated in time.
In a specific implementation, the start calibration instruction output by the trigger and display unit further includes slave station allocation information, where the slave station allocation information includes the number of supported modules to be calibrated, and the number of channels of each module to be calibrated; and the main control unit scans to obtain the number of the modules to be calibrated and the number of channels of each module to be calibrated, judges whether the distribution information of the slave station is matched with the number of the modules to be calibrated and the number of channels of each module to be calibrated, and if not, the main control unit outputs feedback information to the triggering and displaying unit.
By adopting the technical scheme, if the number of the modules to be calibrated, the number of the channels of each module to be calibrated, which are obtained by scanning of the main control unit, is inconsistent with the number of the modules to be calibrated, which are output by the triggering and displaying unit, and the number of the channels of each module to be calibrated, the main control unit feeds back the number of the modules to be calibrated to the triggering and displaying unit in time, so that the situation that the modules are still calibrated under the inconsistent condition is avoided, and the calibration result is prevented from being wrong.
In a specific implementation scheme, after each module to be calibrated completes the calibration operation, the module to be calibrated outputs calibration completion information to the main control unit, the main control unit outputs the calibration completion information to the triggering and displaying unit, and the triggering and displaying unit lights up the corresponding indicator lamp according to the calibration completion information.
Through adopting above-mentioned technical scheme, every is treated calibration module and is accomplished the calibration, and the master control unit can all export the calibration and accomplish information, makes trigger and display element light corresponding pilot lamp, shows the calibration progress in real time, and convenient to use person treats the grasp of calibration progress of calibration module.
In a specific implementation scheme, the main control unit performs information transmission with the triggering and displaying unit and the module group to be calibrated through the MCU, and the information transmission adopts an RS485 serial communication mode.
By adopting the technical scheme, the MCU, the trigger and display unit and the module to be calibrated all adopt an RS485 serial communication mode, signal transmission can be realized by using a small number of communication lines, transmission lines are saved, and the cost is reduced.
To sum up, the technical scheme of the application at least comprises the following beneficial technical effects:
1. the automatic calibration system for analog input can simultaneously calibrate a plurality of channels of the module to be calibrated, and can sequentially calibrate a plurality of modules to be calibrated at one time, thereby shortening the calibration time and greatly improving the calibration efficiency;
2. according to the automatic calibration system for analog input, disclosed by the invention, each channel of the module to be calibrated meets the requirements through two calibration processes, so that the precision of the module to be calibrated is improved.
Drawings
FIG. 1 is a flow chart of an auto-calibration method in an embodiment of the present application;
FIG. 2 is a detailed calibration flow chart of a module to be calibrated in an embodiment of the present application;
FIG. 3 is a block diagram of the overall architecture of an automatic calibration system in an exemplary embodiment of the present application;
FIG. 4 is a flow chart of calibration of an auto-calibration system in an embodiment of the present application.
Reference numerals:
1. a triggering and display unit; 2. a module group to be calibrated; 21. a module to be calibrated; 3. and a main control unit.
Detailed description of the preferred embodiments
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The application discloses an automatic calibration method and system for analog input. The automatic calibration system of the present application includes: trigger and display element 1, treat calibration module group 2 and main control unit 3, trigger and display element 1 is the touch-sensitive screen, treat that calibration module group 2 includes a plurality of modules 21 of treating the calibration, treat that calibration module 21 is analog input integrated circuit board, treat that calibration module 21 places in treating the recess of calibration module platform, it has a plurality of passageways to treat calibration module 21, main control unit 3 includes MCU, MCU inside integrated CPU, RAM memory, ROM memory, the timer, interrupt system and communication interface etc..
The main control unit 3 transmits information with the triggering and displaying unit 1 and the module group to be calibrated 2 through the serial port of the MCU, the information transmission adopts an RS485 serial communication mode, the RS485 serial communication mode can realize the transmission of signals by using a few communication lines, transmission lines can be saved, and the cost is reduced.
The automatic calibration system in this application can realize the calibration in proper order of a plurality of modules 21 of waiting to calibrate, and a plurality of passageways of each module 21 of waiting to calibrate can calibrate simultaneously, and the calibration flow of this automatic calibration system is as follows:
s100: the method comprises the steps that a plurality of model names are displayed on a trigger and display unit 1, a user selects the model of a module group 2 to be calibrated on the trigger and display unit 1, the trigger and display unit 1 jumps to a calibration interface, the model selected by the user is displayed on the calibration interface, the user is reminded to check carefully, the user clicks on the trigger and display unit 1 to start calibration after checking is correct, the trigger and display unit 1 outputs a calibration starting instruction to a main control unit 3, and the calibration starting instruction comprises a function code corresponding to the model of the module group 2 to be calibrated and slave station distribution information.
The model names displayed on the trigger and display unit 1 are EX-4414, EX-4454, EX-4418 and the like.
The function code includes the type, the number of channels, and the upper and lower limits of the measuring range of the module group 2 to be calibrated. The type of the module group 2 to be calibrated comprises a voltage type and a current type, the number of the channels comprises 4 channels and 8 channels, the range of the voltage type is 0-10V, -10V, 0-5V, -5V, and the range of the current type is 4 mA-20mA and 0-20mA. When the function code is 0X00, it indicates that the model of the module group to be calibrated 2 is: the number of channels is 4, the upper limit of the measuring range is 20mA, and the lower limit of the measuring range is 0mA.
The slave station allocation information includes the number of supported modules 21 to be calibrated and the number of channels of each module 21 to be calibrated, for example, when the number of channels of the module 21 to be calibrated is 4 channels, the number of supported modules 21 to be calibrated is at most 4; when the number of channels of the module to be calibrated 21 is 8, the number of supported modules to be calibrated 21 is at most 2.
S200: and powering on the module group 2 to be calibrated, so that the module group 2 to be calibrated is adjusted to a state waiting for being scanned and being assigned with an address.
S300: the main control unit 3 receives the function codes and the slave station distribution information output by the trigger and display unit 1, and analyzes the function codes to obtain decoding information, namely the model selected by a user on the trigger and display unit 1, the type corresponding to the model, the number of channels and the upper and lower limits of the measuring range; the slave station assignment information includes the number of supported modules 21 to be calibrated and the number of channels of each module 21 to be calibrated.
S400: the main control unit 3 scans the module group 2 to be calibrated to obtain the number N of the mounted modules 21 to be calibrated, the model number of each module 21 to be calibrated and the information of each module 21 to be calibrated, and obtains the judgment result information through judgment, and outputs the judgment result information to the triggering and displaying unit 1, and the triggering and displaying unit 1 displays the alarm form through the indicator light, the display character and the buzzer.
The information of each module to be calibrated 21 includes: the position of each module to be calibrated 21 in the groove of the module table to be calibrated, whether the connection between each module to be calibrated 21 and the main control board is stable, and whether the channel of each module to be calibrated 21 is damaged.
The following description will be made of S300 to S400 as an example:
s410: if the function code sent by the triggering and displaying unit 1 is 0X00, it indicates that the type, the number of channels, and the upper and lower limits of the measuring range corresponding to the model of the module group 2 to be calibrated selected by the user on the triggering and displaying unit 1 are: the number of channels is 4, the upper limit of the measuring range is 20mA, and the lower limit of the measuring range is 0 mA; the slave station allocation information sent by the triggering and displaying unit 1 is: the number of modules 21 to be calibrated supported is at most 4.
S420: the main control unit 3 scans the module to be calibrated 21 to obtain the following information: the number N of the modules 21 to be calibrated is 4, 3 modules 21 to be calibrated are respectively positioned in a first groove, a third groove and a fourth groove of a module table to be calibrated, and the types of the 3 modules 21 to be calibrated are all current types with the channel number of 4, the upper range limit of 20mA and the lower range limit of 0 mA; the 1 module 21 to be calibrated is located in the fifth groove of the module table to be calibrated, the model of the 1 module 21 to be calibrated is a current type with the channel number of 4, the upper limit of the measuring range of 20mA, and the lower limit of the measuring range of 4 mA. And the 4 modules 21 to be calibrated are stably connected with the main control board, and the channel is not damaged.
S430: therefore, the main control unit 3 obtains the following determination result information by the determination: the models of the modules to be calibrated 21 positioned in the first, third and fourth grooves correspond to the functional codes sent by the triggering and displaying unit 1; the model of the module to be calibrated 21 located in the fifth groove does not correspond to the function code sent by the triggering and displaying unit 1; the number of the modules to be calibrated 21 is 4, so that the requirement of slave station distribution information is met; 4 treat that calibration module 21 all is connected stably with the main control board, and the passageway is undamaged.
S440: the main control unit 3 outputs the judgment result information to the triggering and displaying unit 1, the triggering and displaying unit 1 lights the first, third, fourth and fifth indicator lamps, the second indicator lamp does not light, the first groove, the third groove, the fourth groove and the fifth groove of the module table to be calibrated are indicated to be placed with the module 21 to be calibrated, and the triggering and displaying unit 1 displays the character of 'the range of the module to be calibrated of the fifth groove is inconsistent', and gives an alarm through a buzzer.
Similarly, if the master control unit 3 scans that the module to be calibrated 21 located in the first groove is unstable in connection with the master control board, the triggering and displaying unit 1 displays a character that the module to be calibrated of the first groove is unstable in connection, and an alarm is given through a buzzer; if the module to be calibrated 21 located in the third groove has a channel damaged condition, the triggering and displaying unit 1 displays the character of "the module to be calibrated channel of the third groove is damaged", and an alarm is given through a buzzer.
If the model of each module to be calibrated 21 obtained by scanning by the main control unit 3 corresponds to the function code sent by the triggering and displaying unit 1, the number of the modules to be calibrated 21 and the number of channels of each module to be calibrated 21 meet the requirement of slave station distribution information, the connection between each module to be calibrated 21 and the main control board is stable, and the channels of each module to be calibrated 21 are not damaged. The triggering and displaying unit 1 lights up the corresponding indicator light, does not display the character, the buzzer does not give out an alarm, and the indicator light lights up for 2S and then goes off.
Particularly, when the main control unit 3 scans the module group 2 to be calibrated, if the scanning fails, the main control unit 3 outputs a scanning failure instruction to the triggering and displaying unit 1, the triggering and displaying unit 1 displays a character of 'scanning failure', and an alarm is given through a buzzer.
S500: the main control unit 3 allocates addresses to the N modules to be calibrated 21, and outputs a scan completion instruction to the modules to be calibrated 21.
S600: each module to be calibrated 21 receives the scanning completion instruction output by the main control unit 3, and adjusts to the state waiting for receiving information according to the scanning completion instruction.
S700: the main control unit 3 generates calibration analog quantity corresponding to the decoding information, and outputs the decoding information and the calibration analog quantity to each module to be calibrated 21.
S800: each module to be calibrated 21 receives the decoding information and the calibration analog quantity, executes a calibration procedure corresponding to the decoding information, and calibrates a plurality of channels in each module to be calibrated 21 at the same time. The method comprises the steps that channels of a first module to be calibrated are calibrated simultaneously, after the channels of the first module to be calibrated are calibrated, the first module to be calibrated outputs calibration completion information to a main control unit 3, the main control unit 3 outputs the calibration completion information to a trigger and display unit 1, and the trigger and display unit 1 lights an indicator lamp corresponding to the first module to be calibrated according to the calibration completion information; then, calibrating all channels of a second module to be calibrated simultaneously, and after the calibration operation is finished, triggering and displaying the unit 1 to light up an indicator lamp corresponding to the second module to be calibrated; until the nth module to be calibrated completes the calibration operation, the triggering and displaying unit 1 lights up the indicator light corresponding to the nth module to be calibrated. The main control unit 3 judges that the module group 2 to be calibrated completely completes the calibration operation, outputs a complete command to the triggering and displaying unit 1, and the triggering and displaying unit 1 enables the buzzer to continuously make 5 sounds for reminding a user that the module group 2 to be calibrated completely completes the calibration.
For example, the main control unit 3 outputs the decoded information of the voltage type and outputs the decoded information of the current type, and the calibration procedure performed by the module to be calibrated 21 is different in the two cases.
Wherein the process of S800 specifically comprises:
s810: each module to be calibrated 21 receives a theoretical value range-high near the upper limit of the measurement range and a theoretical value range-low near the lower limit of the measurement range output by the main control unit 3, each channel of each module to be calibrated 21 obtains a corresponding actual value measure1 and an actual value measure2 through measurement, and each channel calculates a respective proportionality coefficient ratio and an offset according to the theoretical value range-low, the theoretical value range-high, the actual value measure1 and the actual value measure2, so as to obtain an output characteristic equation of each channel of each module to be calibrated 21.
Specifically, the actual value measure1 is an actual value in the vicinity of the upper limit of the range, and the actual value measure2 is an actual value in the vicinity of the lower limit of the range.
The calculation formula of the ratio coefficient ratio and the offset is as follows: the scaling factor ratio = (measure 1-measure 2)/[ (range-high) - (range-low) ], the offset = measure2- [ ratio (range-low) ], and the output characteristic equation is measure = a × ratio + offset.
S820: after the output characteristic equation of each channel of each module to be calibrated 21 is obtained, each module to be calibrated 21 receives a plurality of reference analog quantities output by the main control unit 3; calculating to obtain an actual output quantity corresponding to the actual measurement value according to the actual measurement value and the output characteristic equation by each channel of each module to be calibrated 21; and each module to be calibrated 21 calculates the deviation between the actual output quantity of each channel and the reference analog quantity, and if the deviation exceeds a preset deviation threshold, the offset amount offset is increased or decreased according to a preset step until the precision requirement is met.
The following description will be given for examples of S810 to S820:
the model information of the module group 2 to be calibrated is the current type with the channel number of 4, the upper limit of the range of the measuring range of 20mA, the lower limit of the range of 0mA, the preset deviation threshold of 0.05mA and the preset step of 0.01mA.
When a first channel of a first module to be calibrated is calibrated, the theoretical value range-high output by the main control unit 3 is 19.8mA, the theoretical value range-low is 0.2mA, the channel obtains an actual value measure1 of 19.9mA and an actual value measure2 of 0.1mA through measurement, and then the proportionality coefficient ratio = (measure 1-measure 2)/[ (range-high) - (range-low) ] = (19.9-0.1)/(19.8-0.2) =1.0102 (the calculation result of this example is a value obtained by rounding off and four digits after a decimal point is reserved), and the offset = measure2- [ ratio = (range-low) ] =0.1- (1.0102) 0.1020) = -0.0.0102) = -0.1020, and the output characteristic equation is measure = mA = ratio = 1.1020 + 0.1020.
The main control unit 3 outputs three reference analog quantities, wherein the first reference analog quantity is 5mA, the second reference analog quantity is 10mA, the first reference analog quantity is 15mA, and if the actual measurement value of the channel is 5.123mA,9.9998mA and 14.9023mA; the three actual measured values of 5.123mA,9.9998mA and 14.9023mA are respectively substituted into the ranges in the characteristic equation, and the corresponding actual output quantity measure values are calculated to be 5.0733mA, 9.9998mA and 14.9523mA respectively, so that the deviation of the three measure values is as follows: 5-5.0733 mA | =0.0733mA; 10-9.9998 mA | =0.0002mA; 15mA-14.9523mA | =0.0477mA. It can be seen that: the deviation value is more than 0.05mA and is more than a preset threshold value when the deviation value is 0.0733mA; the deviation value is less than 0.0002mA and less than 0.05mA, and the preset threshold value is not exceeded; the deviation value is less than 0.0477mA and less than 0.05mA, and the preset threshold value is not exceeded; the offset of the channel, 0.1020mA, is increased by a preset step of 0.01mA until the accuracy requirement is met.
The above embodiments are preferred embodiments of the present application, and the protection scope of the present application is not limited by the above embodiments, so: all equivalent changes made according to the structure, shape and principle of the present application shall be covered by the protection scope of the present application.
Claims (10)
1. A method for automatic calibration of analog input, comprising:
selecting the model of the module group (2) to be calibrated through the trigger and display unit (1), and outputting a calibration starting instruction by the trigger and display unit (1), wherein the calibration starting instruction comprises a function code corresponding to the model of the module group (2) to be calibrated;
the main control unit (3) receives the function codes, scans the module group (2) to be calibrated to obtain the number N of the mounted modules (21) to be calibrated, and allocates addresses to the N modules (21) to be calibrated;
the main control unit (3) analyzes the function codes to obtain decoding information, generates calibration analog quantity corresponding to the decoding information, and outputs the decoding information and the calibration analog quantity to each module to be calibrated (21);
and each module (21) to be calibrated receives the decoding information and the calibration analog quantity, executes a calibration program corresponding to the decoding information, and executes the calibration of a plurality of channels in each module (21) to be calibrated in parallel.
2. The method for automatically calibrating an analog input according to claim 1, wherein: the decoding information includes: the type, the number of channels and the upper and lower range limits of the module (21) to be calibrated.
3. The method for automatically calibrating an analog input according to claim 2, wherein: the method comprises the following steps of executing a calibration program corresponding to the decoding information, and executing a calibration process of a plurality of channels in each module (21) to be calibrated in parallel, wherein the calibration process comprises the following steps: each module (21) to be calibrated receives a theoretical value range-high near a range upper limit and a theoretical value range-low near a range lower limit output by the main control unit (3), each channel of each module (21) to be calibrated obtains a corresponding actual value measure1 and an actual value measure2 through measurement, and each channel calculates a respective proportional coefficient ratio and an offset according to the theoretical value range-high, the theoretical value range-low, the actual value measure1 and the actual value measure2 to obtain an output characteristic equation of each channel of each module (21) to be calibrated.
4. The method of claim 3, wherein the method comprises: after obtaining the output characteristic equation of each channel of each module (21) to be calibrated, the method further comprises the following steps: each module (21) to be calibrated receives a plurality of reference analog quantities output by the main control unit (3); calculating actual output quantity corresponding to the actual measurement value according to the actual measurement value and the output characteristic equation by each channel of each module (21) to be calibrated; and each module (21) to be calibrated calculates the deviation between the actual output quantity of each channel and the reference analog quantity, and if the deviation exceeds a preset deviation threshold, the offset amount offset is increased or decreased according to a preset step until the precision requirement is met.
5. The method for automatically calibrating an analog input according to claim 2, wherein: the main control unit (3) also scans the model of each module (21) to be calibrated, judges whether the model of each module (21) to be calibrated corresponds to the function code sent by the triggering and displaying unit (1), if not, the main control unit (3) outputs judgment result information to the triggering and displaying unit (1), and the triggering and displaying unit (1) gives an alarm.
6. An automatic calibration system for analog input, comprising: the automatic calibration system comprises a triggering and display unit (1), a module group (2) to be calibrated and a main control unit (3), and the automatic calibration system applies the automatic calibration method of any one of claims 1-5.
7. The system of claim 6, wherein the system comprises: the main control unit (3) scans the module group (2) to be calibrated to obtain information of each module (21) to be calibrated, the information of each module (21) to be calibrated is output to the triggering and displaying unit (1), the triggering and displaying unit (1) lights a corresponding indicator lamp according to the information of each module (21) to be calibrated, and the indicator lamp lights up for a preset time and then goes out.
8. The system of claim 6, wherein the system comprises: the calibration starting instruction output by the triggering and displaying unit (1) further comprises slave station distribution information, wherein the slave station distribution information comprises the number of the supported modules (21) to be calibrated and the number of channels of each module (21) to be calibrated; the main control unit (3) scans to obtain the number of the modules (21) to be calibrated and the number of channels of each module (21) to be calibrated, and judges whether the distribution information of the slave station is matched with the number of the modules (21) to be calibrated obtained by scanning and the number of channels of each module (21) to be calibrated, if not, the main control unit (3) outputs feedback information to the triggering and displaying unit (1).
9. The system of claim 6, wherein the system comprises: after each module (21) to be calibrated finishes the calibration operation, the module (21) to be calibrated outputs calibration completion information to the main control unit (3), the main control unit (3) outputs the calibration completion information to the triggering and displaying unit (1), and the triggering and displaying unit (1) lights up the corresponding indicator lamp according to the calibration completion information.
10. The system of claim 6, wherein the system comprises: the main control unit (3) is in information transmission with the triggering and displaying unit (1) and the module group to be calibrated (2) through the MCU, and the information transmission adopts an RS485 serial communication mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310080904.9A CN115865089B (en) | 2023-02-08 | 2023-02-08 | Automatic calibration method and system for analog input |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310080904.9A CN115865089B (en) | 2023-02-08 | 2023-02-08 | Automatic calibration method and system for analog input |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115865089A true CN115865089A (en) | 2023-03-28 |
CN115865089B CN115865089B (en) | 2023-05-09 |
Family
ID=85657751
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310080904.9A Active CN115865089B (en) | 2023-02-08 | 2023-02-08 | Automatic calibration method and system for analog input |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115865089B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102479553A (en) * | 2010-11-25 | 2012-05-30 | 上海华虹Nec电子有限公司 | Application specific integrated circuit with multiple analog circuits requiring calibration |
CN103376757A (en) * | 2012-04-13 | 2013-10-30 | 阿尔特拉公司 | Apparatus and methods for calibrating analog circuitry in an integrated circuit |
CN114879634A (en) * | 2022-05-10 | 2022-08-09 | 成都天核科技有限公司 | Automatic calibration method and system for PLC analog quantity |
CN115185953A (en) * | 2022-08-12 | 2022-10-14 | 中国电子科技集团公司第五十八研究所 | Direct current stabilized power supply automatic calibration system based on LabVIEW development platform |
CN115308662A (en) * | 2022-08-12 | 2022-11-08 | 国核自仪系统工程有限公司 | Calibration device, system, method, equipment and medium for analog input channel |
-
2023
- 2023-02-08 CN CN202310080904.9A patent/CN115865089B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102479553A (en) * | 2010-11-25 | 2012-05-30 | 上海华虹Nec电子有限公司 | Application specific integrated circuit with multiple analog circuits requiring calibration |
CN103376757A (en) * | 2012-04-13 | 2013-10-30 | 阿尔特拉公司 | Apparatus and methods for calibrating analog circuitry in an integrated circuit |
CN114879634A (en) * | 2022-05-10 | 2022-08-09 | 成都天核科技有限公司 | Automatic calibration method and system for PLC analog quantity |
CN115185953A (en) * | 2022-08-12 | 2022-10-14 | 中国电子科技集团公司第五十八研究所 | Direct current stabilized power supply automatic calibration system based on LabVIEW development platform |
CN115308662A (en) * | 2022-08-12 | 2022-11-08 | 国核自仪系统工程有限公司 | Calibration device, system, method, equipment and medium for analog input channel |
Also Published As
Publication number | Publication date |
---|---|
CN115865089B (en) | 2023-05-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4917500A (en) | Color sensor system for the recognition of objects with colored surfaces | |
US6995385B2 (en) | Optical reflection sensor | |
KR100865222B1 (en) | System for measuring chromaticity coordinates | |
JP2909096B2 (en) | Gas detection system | |
CN110736949B (en) | Digital multimeter calibration method and related device | |
CN109949726B (en) | Automatic white balance debugging system and method for LED display screen module | |
CN101352101A (en) | Method and apparatus for controlling a variable-colour light source | |
CN1018028B (en) | Method of and apparatus for determining ac calibration errors | |
CN105528976A (en) | Device and method for automatically measuring and calibrating gamma curve of display screen | |
CN110531301B (en) | Calibration method and calibration device for output power of radio frequency power supply | |
CN115865089A (en) | Automatic calibration method and system for analog input | |
CN1016103B (en) | The apparatus and method of correcting electric measuring calibrating device internally | |
CN106225992A (en) | Based on pressure transmitter Performance Test System and method | |
JP2021196627A (en) | Collation list creation device and collation list creation method | |
US7231540B2 (en) | Method of identifying connection error and electronic apparatus using same | |
CN114442591B (en) | Method, system and medium for testing channel precision of I/O card | |
CN114139382A (en) | Calibration method, system and storage medium of analog quantity basic module | |
CN114879634A (en) | Automatic calibration method and system for PLC analog quantity | |
KR101103904B1 (en) | Pressure Transmitter Auto Calibration | |
CN215550986U (en) | 3D printer consumptive material surplus detection device | |
CN117193457A (en) | Method for rapidly calibrating multi-channel DC-DC adjustable constant current source and output current thereof | |
CN218586749U (en) | Intelligent panel for power grid maintenance operation | |
SU1348761A1 (en) | Device for automated verification of measuring instruments | |
CN102495386B (en) | Device and method for automatic calibrating in water treatment analog data collecting system | |
CN208818235U (en) | A kind of wireless pressure instrument high/low temperature calibration system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: An Automatic Calibration Method and System for Analog Input Granted publication date: 20230509 Pledgee: Bank of China Limited Nanjing Jiangbei New Area Branch Pledgor: NANJING DEKEWEIER AUTOMATION CO.,LTD. Registration number: Y2024980007024 |