CN103116376A - Temperature data collection method based on centralized temperature control system - Google Patents

Temperature data collection method based on centralized temperature control system Download PDF

Info

Publication number
CN103116376A
CN103116376A CN 201310012165 CN201310012165A CN103116376A CN 103116376 A CN103116376 A CN 103116376A CN 201310012165 CN201310012165 CN 201310012165 CN 201310012165 A CN201310012165 A CN 201310012165A CN 103116376 A CN103116376 A CN 103116376A
Authority
CN
China
Prior art keywords
data
temperature
curve
logging
host computer
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.)
Withdrawn
Application number
CN 201310012165
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.)
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
Application filed by WUHAN YAXING ELECTRONIC TECHNOLOGY Co Ltd, Hubei University filed Critical WUHAN YAXING ELECTRONIC TECHNOLOGY Co Ltd
Priority to CN 201310012165 priority Critical patent/CN103116376A/en
Publication of CN103116376A publication Critical patent/CN103116376A/en
Priority to CN201410015859.XA priority patent/CN103995549B/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Investigating Or Analyzing Materials Using Thermal Means (AREA)

Abstract

The invention relates to an intelligent centralization type temperature control system, in particular to a temperature data collection method based on a centralized temperature control system. The method specifically comprise the steps that real-time temperature values of a certain base table in itinerant detector storage are read by an upper computer of the system, according to a prescribed sampling period. The collection method can supplement the data of a collection point which is lost, to enable the data in a data base to be complete, and draw a real-time temperature curve to ensure completion, continuation and truthfulness basically.

Description

Based on the temperature data acquisition method of concentrating temperature control system
Technical field
The present invention relates to intelligent centralized temperature control system, especially based on the temperature data acquisition method of concentrating temperature control system.
Background technology
Centralized temperature control system, hardware system structure referring to Fig. 1, the superiors are called host computer, are the maincenters of system, all control inputs and output complete at this; The middle level is logging, can connect at most 80, and logging is completed the issuing of temperature curve, base table data acquisition and base table and controlled; Basecoat be base table (or claim temperature controller: comprise PID controller and temperature sensor thermopair), can connect at most 80, complete the functions such as intensification, cooling, constant temperature and warning.The advantage of this structure has; 1), system scale can expand flexibly; 2), host computer can shut down, the real-time data memory of base table is in logging; 3), can greatly simplify the design complexity of base table, greatly reduce system cost.
The temperature control point theoretical value that can connect due to centralized temperature control system is 80 * 80, and namely in system, the upper limit of logging is 80, and temperature control base table higher limit is also 80, like this upper limit 6400 of system's base table number.Logging by 1 millisecond, 10 milliseconds, 100 milliseconds and 1 second image data once, the collection period higher limit was respectively 6.4 seconds, 64 seconds, 640 seconds and 6400 seconds.In the situation that accuracy of temperature control requires is very not high, mostly adopt 100 milliseconds and 1 second image data once, at this moment the collection period higher limit was respectively 6.7 minutes and 67 minutes.Among the industry of reality, in such time period, temperature changes, and the data of collection will be discontinuous, and the temperature curve of drafting can be desultory.1), the data of issuing host computer due to situation loggings such as environmental interference are wrong when that is to say according to temperature control point theoretical maximum host computer image data, the possibility of obliterated data can occur:, host computer will be lost these data; 2), too much due to temperature control point, the collection period of host computer misses, and reads to cause loss of data less than data.
Summary of the invention
For solving above technical matters, the invention provides based on the temperature data acquisition method of concentrating temperature control system, the method can be got up the data filling of the collection point of losing, and makes the data integrity in database and draw the real time temperature curve to make more complete, continuous and substantially realistic.
Technical scheme of the present invention is: based on the temperature data acquisition method of concentrating temperature control system, it comprises the following steps:
Step 1), system's host computer startup host computer serial ports sends temperature control curve to logging;
Step 2), logging sends temperature control curve to the temperature control base table by section;
Step 3), the host computer sample period is according to the rules read the real time temperature value of a certain base table in the logging storer; As not collecting execution in step 4 of temperature data in the logging storer), as there being data to judge further whether this segment data sampling is completed in the logging storer, as complete and read again lower one piece of data after the temperature data curve that collects being sent to database, continue to read the real time temperature value of base table described in the logging storer as not completing host computer sample period according to the rules;
step 4), take logging j and basic table number i as search index, have or not the temperature data with the missing data coupling in whole historical data judgement host computer databases of traversal retrieval base table, as temperature curve is calculated and replenished to the temperature data curve equation that there is no to be used as lacking with design temperature curve values formula (1) time point or section, then judge whether the sampling of this section temperature data is completed, as complete and read again lower one piece of data after complete temperature curve that will collect and additional is sent to the host computer database, continue to read the real time temperature value of base table described in the logging storer as not completing host computer sample period according to the rules,
Y=(y 2-y 1)/(x 2-x 1)X+(y 1x 2-y 2x 1)/(x 2-x 1) (1)
If x is the time, y is the temperature value of base table, wherein x 1And x 2Be the initial sum termination time of temperature curve section, y 1And y 2Temperature value for this curve initial sum termination;
As the data of mating with missing data are arranged in database, judge again the data precision requirement, calculate and additional temperature curve with the temperature data curve equation that formula (2) is used as lacking time point or section as data accuracy requirement Gao Ze, then judge whether the sampling of this section temperature data is completed, as complete will collect and replenish and to read again lower one piece of data after complete temperature curve is sent to the host computer database, continue to read the real time temperature value of base table described in the logging storer as not completing host computer sample period according to the rules;
As low in the data accuracy requirement by formula (3) are used as lacking the temperature data curve equation of time point or section and calculate and additional temperature curve, then judge whether the sampling of this section temperature data is completed, as complete will collect and replenish and to read again lower one piece of data after complete temperature curve is sent to the host computer database, continue to read the real time temperature value of base table described in the logging storer as not completing host computer sample period according to the rules;
U ji= Min{(Y ji-V ji)2 1, (Y ji-V ji)2 2,……(Y ji-V ji) 2n-1, (Y ji-V ji) 2n} (2)
U ji=∑V ji/n (3)
U jiFor losing temperature data value, V jiBe the logging j of identical numbering in database and the same base table number i temperature value at same design temperature curve, same temperature control section, synchronization; ∑ V jiBe n historical data sum; Y jiThe value that calculates according to design temperature curve values formula (1) for same base table.
The present invention gets up the data filling of the collection point of loss, simultaneously this data filling is advanced in database, makes the data integrity in database and draw the real time temperature change curve to make more complete, continuous and substantially realistic.
Description of drawings
Fig. 1 is the structured flowchart that the embodiment of the present invention is concentrated temperature control system;
Fig. 2 is that the embodiment of the present invention is based on the schematic flow sheet of the temperature data acquisition method of concentrating temperature control system;
Fig. 3 is the concrete wiring schematic diagram of embodiment of the present invention temperature control base table place layer.
Embodiment
Referring to Fig. 1-Fig. 3, the embodiment of the present invention is based on the temperature data acquisition method of concentrating temperature control system, and it comprises the following steps:
Step 1), system's host computer startup host computer serial ports sends temperature control curve to logging;
Step 2), logging sends temperature control curve to the temperature control base table by section;
Step 3), the host computer sample period is according to the rules read the real time temperature value of a certain base table in the logging storer; As not collecting execution in step 4 of temperature data in the logging storer), as there being data to judge further whether this segment data sampling is completed in the logging storer, as complete and read again lower one piece of data after the temperature data curve that collects being sent to database, continue to read the real time temperature value of base table described in the logging storer as not completing host computer sample period according to the rules;
step 4), take logging j and basic table number i as search index, have or not the temperature data with the missing data coupling in whole historical data judgement host computer databases of traversal retrieval base table, as temperature curve is calculated and replenished to the temperature data curve equation that there is no to be used as lacking with design temperature curve values formula (1) time point or section, then judge whether the sampling of this section temperature data is completed, as complete and read again lower one piece of data after complete temperature curve that will collect and additional is sent to the host computer database, continue to read the real time temperature value of base table described in the logging storer as not completing host computer sample period according to the rules,
Y=(y 2-y 1)/(x 2-x 1)X+(y 1x 2-y 2x 1)/(x 2-x 1) (1)
If x is the time, y is the temperature value of base table, wherein x 1And x 2Be the initial sum termination time of temperature curve section, y 1And y 2Temperature value for this curve initial sum termination;
As the data of mating with missing data are arranged in database, judge again the data precision requirement, calculate and additional temperature curve with the temperature data curve equation that formula (2) is used as lacking time point or section as data accuracy requirement Gao Ze, then judge whether the sampling of this section temperature data is completed, as complete will collect and replenish and to read again lower one piece of data after complete temperature curve is sent to the host computer database, continue to read the real time temperature value of base table described in the logging storer as not completing host computer sample period according to the rules;
As low in the data accuracy requirement by formula (3) are used as lacking the temperature data curve equation of time point or section and calculate and additional temperature curve, then judge whether the sampling of this section temperature data is completed, as complete will collect and replenish and to read again lower one piece of data after complete temperature curve is sent to the host computer database, continue to read the real time temperature value of base table described in the logging storer as not completing host computer sample period according to the rules;
U ji= Min{(Y ji-V ji)2 1, (Y ji-V ji)2 2,……(Y ji-V ji) 2n-1, (Y ji-V ji) 2n} (2)
U ji=∑V ji/n (3)
U jiFor losing temperature data value, V jiBe the logging j of identical numbering in database and the same base table number i temperature value at same design temperature curve, same temperature control section, synchronization; ∑ V jiBe n historical data sum; Y jiThe value that calculates according to design temperature curve values formula (1) for same base table.
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%, belongs to low precision outside positive and negative 3%, and the data precision size can arrange, and is not limited to positive and negative 3%.
Referring to Fig. 3, the temperature control base table in the embodiment of the present invention can adopt humidostat, and the temperature control line of this humidostat is connected to electric thermo-couple test furnace.
The summary of algorithm design principleAgreement will be understood the temperature variation of a base table every 1 minute, be 6.7 minutes in the collection period higher limit so, and each base table has just been lost respectively 6.7 data.The following formula of the employing of these 6.7 data is calculated.Be to oversimplify, in arthmetic statement, the number of base table is got [60,6400] the interval upper limit or lower limit, and namely 60 or 6400.The number of base table loss of data can not occur less than 60 system acquisition, and the number of base table can't be processed greater than 6400 systems.
Arthmetic statement(Statistics Temperature Data Fitting Algorithm)
(1) the pseudo-C language description of benefit reward temperature control data acquisition algorithm is as follows:
STEDAFA(int ThermostatNum ,int j , int i)
{ float V[n],U, Y;
Int n;
If ThermostatNum<60 then return; / algorithm finishes
else If ThermostatNum>6400 then
{ infobox(“Exceeding the upper limit!”)
Return/algorithm finishes
}
Open database ;
Linking database;
If database==not empty then
{
V[1] ... ..V[n]=Read_ database (j, i); / take logging j and basic table number i as search index, whole historical datas of traversal retrieval base table are provided with n value
The not high then of If accuracy requirement
Uji=∑ Vji/n/use formula (3) calculates
Else
U=Findmin (V[1] ... ..V[n], Y); / calculate with formula (2)
Else
The X+ (y1x2-y2x1)/(x2-x1) of Calculate U=(y2-y1)/(x2-x1); / calculate y according to the curve f (x) that arranges, namely use formula (1) traversal retrieval bian
Return U;
}
(2) data sampling algorithm
The data sampling algorithm refers to that the host computer sample period according to the rules of system reads the real time temperature value of certain base table in the logging storer, calls the STEDAFA algorithm when wrong according to the data that send or send when logging is countless.Its pseudo-C language codes is as follows:
Data sampling algorithm (Temperature Data Collecting Algorithm)
TDCA(int j, int i)
{ float U;
Int m, n;
Start port 232; / startup host computer serial ports
If current time then within the sampling period
{
U=Read-Inspection (j, i); / read the I base table temperature data on logging J
If U is not empty or U not exists Error then
{
Send-database (x); / data that collect are sent to database
Send-Mapping (X); / be sent to temperature curve to draw function, and start drawing course
}
else {
Calculate n, j, i; / calculate j and the i that replenish temperature value point n
While m≤n {
Call STEDAFA (int ThermostatNum, j, i) → U; / call and mend the reward algorithm
Send-database (U); / be sent to database
Send-Mapping (U); / be sent to temperature curve to draw function, and start drawing course
}
}
}
Below further describe logging communication protocol.
(1), the host computer instruction that may send is as follows:
Position:Proofread and correct the real time clock of logging.(date Hour Minute Second)
Read the base table parameter: read the parameter value of specifying appointment in base table.(base table address, parameter sequence number)
Revise the base table parameter: revise the parameter value of specifying appointment in base table.(base table address, parameter sequence number, parameter value)
Issue curve data:Issue the current temperature control curve data of each base table to logging.(basic table number, curve data)
Suspend/start: control and specify base table to suspend or start.(base table address, order)
Acquisition and recording:Gather the temperature detector record from the data-carrier store of logging.
(2), host computer sends order to logging
Host computer sends the order bag to logging, and form is as follows:
The address, the address radix-minus-one complement, 07,00, C1, year, month, day, the time, minute, second, check code L, check code H
After the logging fill order, the return response packet format is as follows:
The address, 01,00, result code, check code L, check code H.
(3), read the base table parameter
Host computer sends the order bag to logging, and form is as follows:
The address, address radix-minus-one complement, 03,00, C2, base table address, parameter number, check code L, check code H
Logging receives orders, and the return response packet format is as follows after specify base table to read the relevant parameter data:
The address, 0B, 00, result code, base table address, parameter number, PV[2], SV[2] and, MV, B, parameter value [2], check code L, check code H.
(4), revise the base table parameter
Host computer sends the order bag to logging, and form is as follows:
The 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 orders, and the return response packet format is as follows after specify base table to be incorporated into the relevant parameter data:
The address, 0B, 00, result code, base table address, parameter number, PV[2], SV[2] and, MV, B, parameter value [2], check code L, check code H.
(5), issue curve data
Host computer sends the order bag to logging, and form is as follows:
The 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. (sequentially issuing if issue 90 sections curves will be divided into 9 bags)
Curve data: can send at most 10 sections curve datas, every segment data accounts for 8 bytes at every turn, and structure is as follows:
Initial temperature [2], final temperature [2], working time [2], instruction character [1], sign [1]
After the logging fill order, the return response packet format is as follows:
The address, 01,00, result code, check code L, check code H.
(6), suspend/start and control
Host computer sends the order bag to logging, and form is as follows:
The address, address radix-minus-one complement, 03,00, C5, base table address, control code, check code L, check code H
If base table address value FF represents all base tables are controlled
Control code: 00=suspends, and 01=starts
After the logging fill order, the return response packet format is as follows:
The address, 01,00, result code, check code L, check code H.
(7), acquisition and recording
Host computer sends the order bag to logging, and form is as follows:
The 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 byte/bag)
Logging return response packet format is as follows:
The 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:
Sign [1], base table address [1], temperature value [2], date Hour Minute Second [6] keeps [6].
(8), logging " in real time " image data communication protocol:
Host computer sends the querying command bag to logging, and form is as follows:
The address, address radix-minus-one complement, 02,00, C7,01, check code L, check code H
Logging return response packet format is as follows:
The address, 15,00, result code, data [20], check code L, check code H
Countless according to the time, result code=00
When data are arranged, result code=01
Data [20]: form is as follows:
Recording mechanism [4 bytes, low byte is front]
Sign [1 byte: 01=thermograph, 02=alarm logging, 03=alarm release record]
Base table address [1 byte]
Temperature value [2 bytes, low byte is front]
Date Hour Minute Second [6 byte],
Keep [6 byte]
When result code=01, host computer must send the data validation bag to logging again, and this record of notice logging receives,
If receiving to confirm to wrap, logging will not reply the same record always.The data validation packet format is as follows:
The address, address radix-minus-one complement, 02,00, C7,02, check code L, check code H
The nonreply of data validation bag.
The Real-time Collection step is as follows: step 1), host computer are sent out the querying command bag; Step 2), logging return response bag; In step 3), response packet, countless certificates, get back to step 1); Step 4), host computer are sent out the data validation bag, get back to step 1).

Claims (1)

1. based on the temperature data acquisition method of concentrating temperature control system, it is characterized in that: it comprises the following steps:
Step 1), system's host computer startup host computer serial ports sends temperature control curve to logging;
Step 2), logging sends temperature control curve to the temperature control base table by section;
Step 3), the host computer sample period is according to the rules read the real time temperature value of a certain base table in the logging storer; As not collecting execution in step 4 of temperature data in the logging storer), as there being data to judge further whether this segment data sampling is completed in the logging storer, as complete and read again lower one piece of data after the temperature data curve that collects being sent to database, continue to read the real time temperature value of base table described in the logging storer as not completing host computer sample period according to the rules;
step 4), take logging j and basic table number i as search index, have or not the temperature data with the missing data coupling in whole historical data judgement host computer databases of traversal retrieval base table, as temperature curve is calculated and replenished to the temperature data curve equation that there is no to be used as lacking with design temperature curve values formula (1) time point or section, then judge whether the sampling of this section temperature data is completed, as complete and read again lower one piece of data after complete temperature curve that will collect and additional is sent to the host computer database, continue to read the real time temperature value of base table described in the logging storer as not completing host computer sample period according to the rules,
Y=(y 2-y 1)/(x 2-x 1)X+(y 1x 2-y 2x 1)/(x 2-x 1) (1)
If x is the time, y is the temperature value of base table, wherein x 1And x 2Be the initial sum termination time of temperature curve section, y 1And y 2Temperature value for this curve initial sum termination;
As the data of mating with missing data are arranged in database, judge again the data precision requirement, calculate and additional temperature curve with the temperature data curve equation that formula (2) is used as lacking time point or section as data accuracy requirement Gao Ze, then judge whether the sampling of this section temperature data is completed, as complete will collect and replenish and to read again lower one piece of data after complete temperature curve is sent to the host computer database, continue to read the real time temperature value of base table described in the logging storer as not completing host computer sample period according to the rules;
As low in the data accuracy requirement by formula (3) are used as lacking the temperature data curve equation of time point or section and calculate and additional temperature curve, then judge whether the sampling of this section temperature data is completed, as complete will collect and replenish and to read again lower one piece of data after complete temperature curve is sent to the host computer database, continue to read the real time temperature value of base table described in the logging storer as not completing host computer sample period according to the rules;
U ji= Min{(Y ji-V ji)2 1, (Y ji-V ji)2 2,……(Y ji-V ji) 2n-1, (Y ji-V ji) 2n} (2)
U ji=∑V ji/n (3)
U jiFor losing temperature data value, V jiBe the logging j of identical numbering in database and the same base table number i temperature value at same design temperature curve, same temperature control section, synchronization; ∑ V jiBe n historical data sum; Y jiThe value that calculates according to design temperature curve values formula (1) for same base table.
CN 201310012165 2013-01-14 2013-01-14 Temperature data collection method based on centralized temperature control system Withdrawn CN103116376A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 201310012165 CN103116376A (en) 2013-01-14 2013-01-14 Temperature data collection method based on centralized temperature control system
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 (1)

Application Number Priority Date Filing Date Title
CN 201310012165 CN103116376A (en) 2013-01-14 2013-01-14 Temperature data collection method based on centralized temperature control system

Publications (1)

Publication Number Publication Date
CN103116376A true CN103116376A (en) 2013-05-22

Family

ID=48414785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310012165 Withdrawn CN103116376A (en) 2013-01-14 2013-01-14 Temperature data collection method based on centralized temperature control system

Country Status (1)

Country Link
CN (1) CN103116376A (en)

Similar Documents

Publication Publication Date Title
CN106951694B (en) Adaptive modeling method for online monitoring system of secondary equipment of power system
CN101619989B (en) System and method for acquiring and analyzing remote data of bridge
CN103558453B (en) Multiple feed straight power purchase client's maximum demand acquisition system
CN101520787B (en) Method for storing real-time data
CN103729361A (en) Method and device for testing performance of database
CN104063242A (en) Method applicable to parameter upgrading in whole production process of inertial measurement unit
CN102609501B (en) Data cleaning method based on real-time historical database
CN112417562A (en) Dynamo-based earthwork construction modeling method and device
CN2824146Y (en) Automatic integrated power testing system
CN103135534A (en) Temperature data acquisition method based on centralized temperature control system
CN103116376A (en) Temperature data collection method based on centralized temperature control system
CN103995549A (en) Temperature data collecting method based on centralized temperature control system
CN106134470B (en) A kind of DNC integrated management system and method
CN103942634A (en) Group consolidated statement offset number data processing method and system
CN109375104A (en) A kind of online check method applied in the unit AVR model of net source platform
CN116223945A (en) Integrated power distribution network fault wave recording monitoring device, system and method
CN202974663U (en) X type aeroengine test bench measuring and controlling system
CN101419280B (en) Radar data fan number accounting and monitoring method
CN109256998A (en) Control the method and system and servo motor of current of electric sampling with high precision
CN101807225A (en) Thickened oil numerical reservoir simulation method and device
CN108628273A (en) A kind of acquisition system of chemical industry equipment isomeric data
CN115146744A (en) Electric energy meter load real-time identification method and system integrating time characteristics
CN111143482B (en) Service data processing method and device of energy Internet of things and electronic equipment
CN110019432A (en) For the mass data analysis of reader's behavior information and visualization system
CN112231325A (en) Data mapping method and system for offline and online equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C04 Withdrawal of patent application after publication (patent law 2001)
WW01 Invention patent application withdrawn after publication

Application publication date: 20130522