CN103995549B - Based on the temperature data acquisition method for concentrating temperature control system - Google Patents

Based on the temperature data acquisition method for concentrating temperature control system Download PDF

Info

Publication number
CN103995549B
CN103995549B CN201410015859.XA CN201410015859A CN103995549B CN 103995549 B CN103995549 B CN 103995549B CN 201410015859 A CN201410015859 A CN 201410015859A CN 103995549 B CN103995549 B CN 103995549B
Authority
CN
China
Prior art keywords
temperature
data
base table
curve
value
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.)
Expired - Fee Related
Application number
CN201410015859.XA
Other languages
Chinese (zh)
Other versions
CN103995549A (en
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.)
WUHAN YAXING ELECTRONIC TECHNOLOGY Co Ltd
Hubei University
Original Assignee
WUHAN YAXING ELECTRONIC TECHNOLOGY Co Ltd
Hubei University
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
Priority claimed from CN 201310012165 external-priority patent/CN103116376A/en
Priority claimed from CN2013100374664A external-priority patent/CN103135534A/en
Application filed by WUHAN YAXING ELECTRONIC TECHNOLOGY Co Ltd, Hubei University filed Critical WUHAN YAXING ELECTRONIC TECHNOLOGY Co Ltd
Priority to CN201410015859.XA priority Critical patent/CN103995549B/en
Publication of CN103995549A publication Critical patent/CN103995549A/en
Application granted granted Critical
Publication of CN103995549B publication Critical patent/CN103995549B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Control Of Temperature (AREA)
  • Feedback Control In General (AREA)

Abstract

The present invention relates to intelligent centralized temperature control system, the temperature data acquisition method for concentrating temperature control system is based especially on, its method concretely comprises the following steps:System host computer is read the real-time temperature values of certain base table in logging memory by the sampling period, this method can get up the data filling of the collection point of loss, make the data in database complete and draw real time temperature curve make than it is more complete, continuously and essentially meet reality.

Description

Based on the temperature data acquisition method for concentrating temperature control system
Technical field
The present invention relates to intelligent centralized temperature control system, the temperature data acquisition side for concentrating temperature control system is based especially on Method.
Background technology
Centralized temperature control system, hardware system structure be referred to as host computer referring to Fig. 1, the superiors, be the maincenter of system, institute Some control inputs and output are completed herein;Middle level is logging, can at most connect 80, logging is completed under temperature curve Hair, base table data acquisition and base table control;Basecoat is base table(Or temperature controller:Passed including PID controller and temperature Sensor thermocouple), 80 can be at most connect, completes the functions such as heating, cooling, constant temperature and alarm.The advantages of this structure, has;1)、 System scale can flexibly expand;2), host computer can shut down, the real-time data memory of base table is in logging;3), base can be greatly simplified The complex designing degree of table, substantially reduces system cost.
Because the temperature control point theoretical value that centralized temperature control system can connect is 80 × 80, i.e., the upper limit of logging is in system 80, temperature control base table higher limit is also 80, the upper limit 6400 of such system base table number.Logging presses 1 millisecond, 10 milliseconds, 100 milliseconds With 1 second gathered data once, collection period higher limit is respectively 6.4 seconds, 64 seconds, 640 seconds and 6400 seconds.In accuracy of temperature control requirement In the case of not very high, using 100 milliseconds and 1 second gathered data once, at this moment collection period higher limit is respectively 6.7 to majority Minute and 67 minutes.Among the industry of reality, temperature has occurred and that change in such period, and the data of collection will be not Continuously, the temperature curve of drafting can be desultory.That is number is gathered according to temperature control point theoretical maximum host computer According to when, it may appear that lose the possibility of data:1), because of situations such as the data that environmental disturbances logging issues host computer be mistake , host computer will lose the data;2), due to temperature control point it is excessive, the collection period of host computer misses, and reads to cause to count less than data According to loss.
The content of the invention
To solve above technical problem, the invention provides based on the temperature data acquisition method for concentrating temperature control system, it is somebody's turn to do Method can get up the data filling of the collection point of loss, make the data in database complete and draw real time temperature curve to make Than it is more complete, continuously and essentially meet reality.
The technical scheme is that:Based on the temperature data acquisition method for concentrating temperature control system, its difference is: It comprises the following steps:
Step 1), system host computer start host computer serial ports and send temperature control curve to logging;
Step 2), logging to temperature control base table by section send temperature control curve;
Step 3), host computer read the real time temperature of a certain base table in logging memory according to the sampling period of regulation Value;Step 4 is performed if not collecting temperature data in logging memory), enter if having data in logging memory One step judges whether segment data sampling is completed, and is read again after the temperature data curve collected is sent to database if completing One piece of data is removed, host computer continues to read base described in logging memory according to the sampling period of regulation if without completing The real-time temperature values of table;
Step 4), using logging j and base table i as search index, traversal retrieval base table whole historical datas judge The temperature data matched with missing data is whether there is in host computer database, is made if not with scenario earthquake value formula one Temperature data curve equation for missing time points or section calculates and supplements temperature curve, then judges this section of temperature data sampling Whether complete, read again after the temperature curve that collect and supplement finishes is sent to host computer database if completing next Segment data, host computer is continued to read the real time temperature of base table described in logging memory by the sampling period if without completing Value;
Y=(y2-y1)/(x2-x1)X+(y1x2-y2x1)/(x2-x1) (formula one)
If x is the time, y be base table temperature value, wherein x1And x2Starting and termination time for temperature curve section, y1 And y2The temperature value for originating and terminating for the curve;
As there are the data matched with missing data in database, then data precision requirement is judged again, such as data required precision The value Y that Gao Ze is calculated with same base table according to scenario earthquake value formula onejiSubtract historical data VjiIt is worth afterwards A square acquirement variance yields is carried out, takes and obtains corresponding n variance yields all over n historical data, take minimum value in n variance yields, should Historical data V corresponding to minimum variance valuejiTo lose temperature data value Uji, calculate and supplement missing time points in this approach Or the temperature data curve of section, then judge whether this section of temperature data sampling is completed, by collect and supplement if completing The temperature curve finished reads lower one piece of data again after sending to host computer database, as without complete if host computer according to the rules Sampling period continue read logging memory described in base table real-time temperature values;
As data required precision is low, by formula two be used as missing time points or section temperature data curve equation come based on Calculate and supplement temperature curve, then judge whether this section of temperature data sampling is completed, will collect and supplemented if completing Complete temperature curve reads lower one piece of data again after sending to host computer database, as without completion, then host computer is according to regulation Sampling period continues to read the real-time temperature values of base table described in logging memory;
Uji=ΣVji/ n (formula two)
UjiTo lose temperature data value, VjiLogging j and identical base table i for identical numbering in database is same Scenario earthquake, same temperature control section, the temperature value of synchronization;ΣVjiFor n historical data sum;YjiFor same base table The value being calculated according to scenario earthquake value formula one.
The present invention gets up the data filling of the collection point of loss, while this data filling is entered in database, makes data Data in storehouse it is complete and draw real time temperature change curve make than it is more complete, continuously and essentially meet reality.
Brief description of the drawings
Fig. 1 is the structured flowchart that the embodiment of the present invention concentrates temperature control system;
Fig. 2 is schematic flow sheet of the embodiment of the present invention based on the temperature data acquisition method for concentrating temperature control system;
Fig. 3 is the specific wiring schematic diagram of layer where temperature control of embodiment of the present invention base table.
Embodiment
Referring to Fig. 1-Fig. 3, the embodiment of the present invention is based on the temperature data acquisition method for concentrating temperature control system, its difference It is:It comprises the following steps:
Step 1), system host computer start host computer serial ports and send temperature control curve to logging;
Step 2), logging to temperature control base table by section send temperature control curve;
Step 3), host computer read the real time temperature of a certain base table in logging memory according to the sampling period of regulation Value;Step 4 is performed if not collecting temperature data in logging memory), enter if having data in logging memory One step judges whether segment data sampling is completed, and is read again after the temperature data curve collected is sent to database if completing One piece of data is removed, host computer continues to read base described in logging memory according to the sampling period of regulation if without completing The real-time temperature values of table;
Step 4), using logging j and base table i as search index, traversal retrieval base table whole historical datas judge The temperature data matched with missing data is whether there is in host computer database, is made if not with scenario earthquake value formula one Temperature data curve equation for missing time points or section calculates and supplements temperature curve, then judges this section of temperature data sampling Whether complete, read again after the temperature curve that collect and supplement finishes is sent to host computer database if completing next Segment data, host computer is continued to read the real time temperature of base table described in logging memory by the sampling period if without completing Value;
Y=(y2-y1)/(x2-x1)X+(y1x2-y2x1)/(x2-x1) (formula one)
If x is the time, y be base table temperature value, wherein x1And x2Starting and termination time for temperature curve section, y1 And y2The temperature value for originating and terminating for the curve;
As there are the data matched with missing data in database, then data precision requirement is judged again, such as data required precision The value Y that Gao Ze is calculated with same base table according to scenario earthquake value formula onejiSubtract historical data VjiIt is worth afterwards A square acquirement variance yields is carried out, takes and obtains corresponding n variance yields all over n historical data, take minimum value in n variance yields, should Historical data V corresponding to minimum variance valuejiTo lose temperature data value Uji, calculate and supplement missing time points in this approach Or the temperature data curve of section, then judge whether this section of temperature data sampling is completed, by collect and supplement if completing The temperature curve finished reads lower one piece of data again after sending to host computer database, as without complete if host computer according to the rules Sampling period continue read logging memory described in base table real-time temperature values;
As data required precision is low, by formula two be used as missing time points or section temperature data curve equation come based on Calculate and supplement temperature curve, then judge whether this section of temperature data sampling is completed, will collect and supplemented if completing Complete temperature curve reads lower one piece of data again after sending to host computer database, as without completion, then host computer is according to regulation Sampling period continues to read the real-time temperature values of base table described in logging memory;
Uji=ΣVji/ n (formula two)
UjiTo lose temperature data value, VjiLogging j and identical base table i for identical numbering in database is same Scenario earthquake, same temperature control section, the temperature value of synchronization;ΣVjiFor n historical data sum;YjiFor same base table The value being calculated according to scenario earthquake value formula one.
Data precision is the diversity factor of collecting temperature curve and temperature control curve, and diversity factor belongs to high-precision within positive and negative 3% Degree,
Belong to low precision outside positive and negative 3%, data precision size can be set, and be not limited to positive and negative 3%.
Referring to Fig. 3, the temperature control base table in the embodiment of the present invention can use humidostat, the temperature control of the humidostat Line is connected to electric thermo-couple test furnace.
Algorithm design principle summary agreement is every 1 minute just it is to be understood that the temperature change of a base table, then in collection week Phase higher limit is 6.7 minutes, and each base table just lost 6.7 data respectively.Use equation below meter to this 6.7 data Obtain.To simplify, the number of base table takes the upper limit or lower limit in [60,6400] section in arthmetic statement, i.e., and 60 or 6400.Base The number of table is not in loss of data less than 60 system acquisitions, and the number of base table can not handle algorithms more than 6400 systems and retouch State(Statistics Temperature Data Fitting Algorithm)
(1)The pseudo- C language for mending reward temperature control data acquisition algorithm is described as follows:
(2)Data sample algorithms
Data sample algorithms refer to that the host computer of system reads certain base in logging memory according to the sampling period of regulation The real-time temperature values of table, STEDAFA algorithms are called when the data that logging no data sends or sent are wrong.Its pseudo- C language Say that code is as follows:
Logging communication protocol described further below.
(1), the instruction that may send of host computer it is as follows:
Correct clock:Correct the real-time clock (RTC) of logging.(Date Hour Minute Second)
Read base table parameter:Read the parameter value specified and specified in base table.(base table address, parameter sequence number)
Change base table parameter:The parameter value specified in base table is specified in modification.(base table address, parameter sequence number, parameter value)
Issue curve data:The current temperature control curve data of each base table are issued to logging.(base table number, curve data)
Pause/startup:Control is specified base table pause or started.(Base table address, order)
Acquisition and recording:Temperature detector record is gathered from the data storage of logging.
(2), host computer to logging send order
Host computer sends order bag to logging, and form is as follows:
Address, address radix-minus-one complement, 07,00, C1, year, the moon, day, when, point, the second, check code L, check code H
Return response bag form is as follows after logging performs order:
Address, 01,00, result code, check code L, check code H.
(3), read base table parameter
Host computer sends order bag to logging, and form is as follows:
Address, address radix-minus-one complement, 03,00, C2, base table address, parameter number, check code L, check code H
Logging receives order, as follows from return response bag form after specified base table reading relevant parameter data:
Address, 0B, 00, result code, base table address, parameter number, PV [2], SV [2], MV, B, parameter value [2], check code L, Check code H.
(4), modification base table parameter
Host computer sends order bag to logging, and form is as follows:
Address, address radix-minus-one complement, 05,00, C3, base table address, parameter number, parameter value [2], check code L, check code H
Logging receives order, and return response bag form is as follows after being incorporated into relevant parameter data to specified base table:
Address, 0B, 00, result code, base table address, parameter number, PV [2], SV [2], MV, B, parameter value [2], check code L, Check code H.
(5), issue curve data
Host computer sends order bag to logging, and form is as follows:
Address, address radix-minus-one complement, 53,00, C4, base table address, bag sequence number, curve data [80], check code L, check code H
Bag sequence number:0~8. (to be divided into 9 bag orders if 90 sections of curves are issued to issue)
Curve data:10 sections of curve datas at most can be transmitted every time, account for 8 bytes per segment data, structure is as follows:
Initial temperature [2], final temperature [2], run time [2], command character [1], indicate [1]
Return response bag form is as follows after logging performs order:
Address, 01,00, result code, check code L, check code H.
(6), pause/startup control
Host computer sends order bag to logging, and form is as follows:
Address, address radix-minus-one complement, 03,00, C5, base table address, control code, check code L, check code H
Base table address value then represents to be controlled all base tables if FF
Control code:00=pause, 01=start
Return response bag form is as follows after logging performs order:
Address, 01,00, result code, check code L, check code H.
(7), acquisition and recording
Host computer sends order bag to logging, and form is as follows:
Address, address radix-minus-one complement, 05,00, C6, bag sequence number [4], check code L, check code H
Bag sequence number:0~xxxxxxx, (512 bytes/bag)
Logging return response bag form is as follows:
Address, 01,02, result code, data [512], check code L, check code H
Temperature detector records every and accounts for 16 bytes, and form is as follows:
Indicate [1], base table address [1], temperature value [2], date Hour Minute Second [6], retain [6].
(8), logging " real-time " gathered data communication protocol:
Host computer sends querying command bag to logging, and form is as follows:
Address, address radix-minus-one complement, 02,00, C7,01, check code L, check code H
Logging return response bag form is as follows:
Address, 15,00, result code, data [20], check code L, check code H
During no data, result code=00
When having data, result code=01
Data [20]:Form is as follows:
When result code=01, host computer must send data validation bag to logging again, and notice logging this record is Through receiving,
If logging, which does not receive, confirms that bag will reply same record always.Data validation bag form is as follows:
Address, address radix-minus-one complement, 02,00, C7,02, check code L, check code H
Data validation bag is unresponsive.
Real-time acquisition step is as follows:Step 1), host computer hair querying command bag;Step 2), logging loopback should wrap;Step 3), no data in response bag, return to step 1);Step 4), host computer hair data validation bag, return to step 1).

Claims (1)

1. based on the temperature data acquisition method for concentrating temperature control system, it is characterised in that:It comprises the following steps:
Step 1), system host computer start host computer serial ports and send temperature control curve to logging;
Step 2), logging to temperature control base table by section send temperature control curve;
Step 3), host computer read the real-time temperature values of a certain base table in logging memory according to the sampling period of regulation;Such as Temperature data is not collected in logging memory and then performs step 4), further sentence if having data in logging memory Whether the segment data of breaking sampling is completed, and is read again after the temperature data curve collected is sent to database if completing next Segment data, host computer is continued to read the real time temperature of base table described in logging memory by the sampling period if without completing Value;
Step 4), using logging j and base table i as search index, traversal retrieval base table whole historical datas judge on The temperature data matched with missing data is whether there is in the machine database of position, is used as if not with scenario earthquake value formula one The temperature data curve equation of missing time points or section calculates and supplements temperature curve, then judges that this section of temperature data sampling is No completion, next section is read again after the temperature curve that collect and supplement finishes is sent to host computer database if completing Data, host computer continues to read the real-time of base table described in logging memory according to the sampling period of regulation if without completing Temperature value;
Y=(y2-y1)/(x2-x1)X+(y1x2-y2x1)/(x2-x1) (formula one)
If x is the time, y be base table temperature value, wherein x1And x2Starting and termination time for temperature curve section, y1 And y2The temperature value for originating and terminating for the curve;X is the time point that host computer loses data, and Y is the temperature that temperature controller calculates Angle value;
As there are the data matched with missing data in database, then data precision requirement is judged again, such as data required precision Gao Ze The value Y being calculated with same base table according to scenario earthquake value formula onejiSubtract historical data VjiObtain being worth afterwards into Row square obtains variance yields, takes and obtains corresponding n variance yields all over n historical data, takes minimum value in n variance yields, should Historical data V corresponding to minimum variance valuejiTo lose temperature data value Uji, calculate and supplement missing time points in this approach Or the temperature data curve of section, then judge whether this section of temperature data sampling is completed, by collect and supplement if completing The temperature curve finished reads lower one piece of data again after sending to host computer database, as without complete if host computer according to the rules Sampling period continue read logging memory described in base table real-time temperature values;
As data required precision is low, it is used as the temperature data curve equation of missing time points or section by formula two to calculate simultaneously Temperature curve is supplemented, then judges whether this section of temperature data sampling is completed, collect and supplement is finished if completing Temperature curve reads lower one piece of data again after sending to host computer database, as without complete if host computer according to regulation sampling Cycle continues to read the real-time temperature values of base table described in logging memory;
Uji=ΣVji/ n (formula two)
UjiTo lose temperature data value, VjiLogging j and identical base table i for identical numbering in database are set same Determine temperature curve, same temperature control section, the temperature value of synchronization;ΣVjiFor n historical data sum;YjiFor same base table root The value being calculated according to scenario earthquake value formula one.
CN201410015859.XA 2013-01-14 2014-01-14 Based on the temperature data acquisition method for concentrating temperature control system Expired - Fee Related CN103995549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410015859.XA CN103995549B (en) 2013-01-14 2014-01-14 Based on the temperature data acquisition method for concentrating temperature control system

Applications Claiming Priority (7)

Application Number Priority Date Filing Date Title
CN2013100121656 2013-01-14
CN201310012165.6 2013-01-14
CN 201310012165 CN103116376A (en) 2013-01-14 2013-01-14 Temperature data collection method based on centralized temperature control system
CN2013100374664 2013-01-31
CN2013100374664A CN103135534A (en) 2013-01-31 2013-01-31 Temperature data acquisition method based on centralized temperature control system
CN201310037466.4 2013-01-31
CN201410015859.XA CN103995549B (en) 2013-01-14 2014-01-14 Based on the temperature data acquisition method for concentrating temperature control system

Publications (2)

Publication Number Publication Date
CN103995549A CN103995549A (en) 2014-08-20
CN103995549B true CN103995549B (en) 2017-12-01

Family

ID=51309741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410015859.XA Expired - Fee Related CN103995549B (en) 2013-01-14 2014-01-14 Based on the temperature data acquisition method for concentrating temperature control system

Country Status (1)

Country Link
CN (1) CN103995549B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534162A (en) * 2016-12-05 2017-03-22 德讯科技股份有限公司 Server temperature monitoring system and method based on remote management communication protocol

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102192794A (en) * 2011-03-07 2011-09-21 陕西师范大学 Temperature data acquisition device, and storing and transmitting method thereof
CN102254013A (en) * 2011-07-21 2011-11-23 深圳市华力特电气股份有限公司 Data processing method and data processing device
CN202101761U (en) * 2011-06-01 2012-01-04 阮晴 On-line monitoring device used for non-contact temperature measurement of power transmission line

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62160461A (en) * 1986-01-09 1987-07-16 Fuji Electric Co Ltd Heating source for manufacturing electrophotographic sensitive body
US9197736B2 (en) * 2009-12-31 2015-11-24 Digimarc Corporation Intuitive computing methods and systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102192794A (en) * 2011-03-07 2011-09-21 陕西师范大学 Temperature data acquisition device, and storing and transmitting method thereof
CN202101761U (en) * 2011-06-01 2012-01-04 阮晴 On-line monitoring device used for non-contact temperature measurement of power transmission line
CN102254013A (en) * 2011-07-21 2011-11-23 深圳市华力特电气股份有限公司 Data processing method and data processing device

Also Published As

Publication number Publication date
CN103995549A (en) 2014-08-20

Similar Documents

Publication Publication Date Title
CN102192794B (en) Temperature data acquisition device, and storing and transmitting method thereof
CN103038971B (en) Method for controlling PV installations in an electrical grid
CN102710409B (en) A kind of time synchronism apparatus of security isolation
CN102353387B (en) Automated testing system and method for index parameters of fiber optic gyro
CN101520787B (en) Method for storing real-time data
CN106951576B (en) Simulation test evaluation system and evaluation method
CN102736557A (en) Numerical control machine tool error real-time compensation system based on virtual instrument
CN102809928B (en) Control optimizing method for energy consumption of thermal equipment of industrial enterprise
CN104578411B (en) A kind of PMU data accesses the multi-source data safety check after AGC and failure locking method
CN104808587A (en) Utilization statistical approach based on operation states of machining equipment
CN104330612B (en) A kind of resonance overvoltage monitoring system and method
CN105071535B (en) A kind of the time synchronization management system and implementation method of network system
CN106302019A (en) A kind of substation data communication network shutdown processes the test system and method for time
CN103401881A (en) Data collection system and method based on intelligent instrument
CN102521080A (en) Computer data recovery method for electricity-consumption information collecting system for power consumers
CN103995549B (en) Based on the temperature data acquisition method for concentrating temperature control system
CN106355610A (en) Three-dimensional human body surface reconstruction method and device
CN202373979U (en) Intelligent reactive power compensation and power parameter display integrated control device
CN112131517A (en) Method for measuring and calculating low calorific value of garbage fired in waste incineration power plant
CN202837399U (en) Synchronized phasor measurement apparatus
CN116933157A (en) Electricity larceny detection method
CN205583839U (en) Computer integrated protection measurement and control device of transformer substation
JPH0816618B2 (en) Power plant performance management device
CN102226679B (en) Method for automatically measuring quantity and length of cloth
CN105608503A (en) Lilac flowering phase prediction method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171201

CF01 Termination of patent right due to non-payment of annual fee