QP0717-温湿度控制程序

合集下载

THC系列温度与湿度控制器操作说明说明书

THC系列温度与湿度控制器操作说明说明书

Specification and Operating InstructionsTHC Series Temperature and Humidity Controller DescriptionInstallationNOTE: Unit must be mounted away from vibration, impacts, water and corrosive gases.Cut hole in panel 131.15 x 3.97 inches). Apply silicone (or rubber gasket) around the perimeter of the hole to prevent leakage.Insert the unit in the panel hole. Place removable fitting clips from the back of the until it is secured to the panel.Fit the clip in the panel and then press to fit the other side in the unit.Temperature Probe 1 (Sd1) in terminals 18 - 17Temperature Probe 2 (Sd2) in terminals 19 - 17Humidity Probe (SH) in terminals 20-21-17Note: DO NOT INSTA LL PROBE CA BLES NEA R POWER CA BLES.The THC is a temperature and humidity digital controller. The temperature control can be ON-OFF, neutral zone and refrigeration modes. It is possible to set a second temperature probe for defrosting control. Humidity control can be ON-OFF and neutral zone modes. The humidity probe can be 0-1V, 0-3V THC-P and 4-20mA types.The model reference is given by: THC-YZ Each sufix can take the following values:YSupply Voltage 1=115VAC, 2=230VAC ZTemp. Units0=ºF, 1=ºC• ••••••••Model referencesx 101 mm (5 Remove the rear cover to wire the unit.The wiring diagram is shown in the unit label.Replace the rear cover.Technical DataStorage temperature -20ºC to 80ºC (-4 to 176ºF)Operating temperature 0ºC to 70ºC (32 to 158ºF)Temperature probePTC1000 (25ºC - 1000 Ohm)Temperature probe range -50ºC to 150ºC (-58 to 302ºF) Temperature accuracy Better than 0,5Temperature resolution Humidity probe 0-1V, 0-3V THC-P 4-20mA Humidity probe range 0 to 100% RHHumidity accuracy Better than 5Humidity resolution 1% (3 digits)Supply voltages 115 VAC10%, 230 VAC10%Supply powers 7VA (230V)% of full scale 0.1º (3 digits),% of full scale Displays 3-digit and sign (x2)Outputs SPDT relay 250Vac 8A RL Dimensions 134x105x61mm (5.3x4.1x2.4 in)Front ProtectionIP65Wiring Diagram• Dependent ON/OFF controlIf rh8=ono and rh0=dEP , output 3 works as in Independent ON/OFF control, but output 4 works as follows:If ch3=dir, output 4 will connect when HS >= Sh1+Sh2+rh2 and will disconnect when HS <= Sh1+Sh2.If ch3=Inv, output 4 will connect when HS <= Sh1+Sh2-rh2 and will disconnect when HS >= Sh1+Sh2.ch1 is the minimum stop time.• Neutral zone controlIf rh8 = NEu output 3 connects when HS >= Sh1+rh3 anddisconnects when HS <= Sh1, while output 4 connects when Hs1 <= Sh1-rh3 and disconnects when HS >= Sh1.• Control with probe errorsIf reading of humidity probe fails the output 3 works following 10 minutes cycles, with a percentage of connection time given by Ch4. Output 4 is carried out in the same way with parameter Ch5.• Humidity alarmsIf HS >= Sh1+Ah1, the controller will indicate maximum humidity alarm for (AHH) and the alarm will remain activated until HS <= Sh1+Ah1-Ah0.If HS <= Sh1-Ah2, the controller will activate minimum humidityalarm for (ALH), and it will remain activated until HS >= Sh1-Ah2-Ah0.Program Ah3 to indicate the alarm check time between alarmevent and indication of an alarm event. The alarm is indicated bya message on the display and activating the alarm output ifpresent (alarm can be silenced pressing UP+DOWN keys orCLEAR in the IR remote control).• Probe optionsSet Ph1 to select if the decimal point is shown or not in the display.Set Ph2 to set the probe type (0-1V, CRPH03 or 4-20mA).If a 4-20mA probe is used, use Ph3 to set the humidity value for 4mA and Ph4 to set the value for 20mA.H1,H2,H3 are general parameters that can be accessed fromboth temperature and humidity parameters.Setting H1 to yES the set points (St1,St2,Sh1,Sh2) cannot be changed. To unblock this protection, press SET T or SET H for 8seconds and introduce the code in the same way as is done whenentering parameters.H2 sets the communication address for the controller.H3 sets the access code to parameters.The four OUT leds indicate the of the four outputs (when the correspondent led is ON the output is connected and when theled is OFF the output is disconnected).In normal operation, the left display will show the temperature measured by probe 1 and the right display the relative humidity. In order to display the temperature measured by probe 2 press SET T + UP keys.In case of alarm or error, the following messages can be shown:• Err = Memory reading error• ErP = Error in the temperature probe 2• AHt = High temperature alarm (probe 1)• ALt = Low temperature alarm (probe 1)• AHh = High humidity alarm• ALh = Low humidity alarm • o oo = Open Probe Error• --- = Short Circuit Probe Error Clean the surface of the display controller with a soft and damp cloth. Never use abrasive detergents, petrol, alcohol or solvents.All repairs must be made by authorised personnel.If the probe is not placed in the exact point to control, use a standard hygrometer to determine the offset and set it by Ph0.General parametersLed indication and display messagesMaintenance, cleaning and repair After final installation of the unit, no routine maintenance isrequired.ETDT1076L_060705ETDT1076L_060705Sh1+Ah1Sh1-Ah2Sh1List of humidity parametersDescriptionUnits Range Sh1 Humidty set point 1%RH rh4 to rh6Sh2Humidty set point 2%RH rh5 to rh7rh0Sh1 and Sh2 dependency Range Ind / dEP rh1Differencial for Sh1%RH 0.1 to 30.0rh2Differencial for Sh2%RH 0.1 to 30.0rh3Band differencial%RH 0.1 to 30.0rh4Minimum value for Sh1%RH 0 to rh6rh5Minimum value for Sh2%RH 0 to rh7rh6Maximum value for Sh1%RH rh4 to 100rh7Maximum value for Sh2%RH rh5 to 100rh8Operation mode Range ono/nEU Ah0Alarm differencial%RH 0.1 to 20.0Ah1Maximum probe alarm %RH 0.1 to 99.9Ah2Minimum probe alarm %RH 0.1 to 99.9Ah3Alarm check timehh:mm 0.0 to 18.0ch0Minimum stop time output 3Minutes 0 to 240ch1Minimum stop time output 4Minutes 0 to 240ch2Operation output 3Range Dir/Inv ch3Operation output 4Range Dir/Inv ch4Default operation output 3%ON 0 to 100ch5Default operation output 4%ON 0 to 100Ph0Hum. probe adjustment %RH -20 to 20Ph1Decimal pointOption no/yES Ph2Humidity Probe type Range 1V/3V/420Ph3Value for 4mA %RH 0.0 to 100Ph4Value for 20mA %RH0.0 to 100H0Set default settings Command H1Keypad protection Option NO/YES H2Communication setupNumeric 0 to 999H3Access code to parametersNumeric0 to 999Humidity parameter programmingFollow the same steps as when adjusting temperature parameters but using the SET H key.Humidity control process• Independent ON/OFF controlIf rh8=ono and rh0=Ind, each output is associated to a particular Set.If ch2=dir, output 3 will connect when HS >= Sh1+rh1 (where HS is the humidity measured) and will disconnect when HS <= Sh1.ch0 is the minimum stop time. Once the output is disconnected, it is not connected again until ch0 minutes later.If ch2=Inv, output 3 will connect when HS <= Sh1-rh1 and will disconnect when HS >= Sh1.The output 4 is handled in the same manner but controlled by Sh2, using rh2 as differential, ch3 as indicator of direct or reverse connection, and ch1 as minimum stop time.List of temperature parametersDescriptionUnits Range St1 Temperature set point 1Degrees rt4 to rt6St2Temperature set point 2Degrees rt5 to rt7rt0St1 and St2 dependency Range Ind / dEP rt1Differencial for St1Degrees 0.1 to 20.0rt2Differencial for St2Degrees 0.1 to 20.0rt3Band differencialDegrees 0.1 to 20.0rt4Minimum value for St1Degrees -99.9 to rt6rt5Minimum value for St2Degrees -99.9 to rt7rt6Maximum value for St1Degrees rt4 to 302rt7Maximum value for St2Degrees rt5 to 302rt8Operation mode Range ono/rEF/nEU dt0Defrosting typeRange fRES/InV dt1Max. defrosting temperature Degrees -99.9 to 302dt2Max. defrosting time Minutes 0 to 240dt3Defrosting interval time hh:mm 0.0 to 18.0dt4Defrosting displayed temp.Range off/on/-d-At0Alarm differencialsDegrees 0.1 to 20.0At1Maximum probe 1 alarm Degrees 0.1 to 99.9At2Minimum probe 1 alarm Degrees 0.1 to 99.9At3Alarm check timehh:mm 0.0 to 18.0ct0Minimum stop time output 1Minutes 0 to 240ct1Minimum stop time output 2Minutes 0 to 240ct2Operation output 1Range DIr/Inv ct3Operation output 2Range DIr/Inv ct4Default operation output 1%ON 0 to 100ct5Default operation output 2%ON 0 to 100ct6Continuous cycle time Minutes 0 to 240Pt0Temp. probe adjustment Degrees -20.0 to 20.0Pt1Decimal point Option no/yES Pt2Temperature unitsRange ºC/ºF Pt3Number of temp. probes Range 1 / 2H0Set default settings Command H1Keypad protection Option no/yES H2Communication setupNumeric 0 to 999H3Access code to parametersNumeric0 to 999Temperature parameter programmingSet Points (St1,St2) are the only parameters the user can access without code protection.•Press SET T. Current value of St1 appears flashing and led OUT 1 flashes.•The value can be modified with the UP and DOWN arrows.•Press SET again to confirm St1. Current value of St2 appears flashing and led OUT 2 flashes.•The value can be modified with the UP and DOWN arrows.•Press SET to enter St2 value and exit.Access to all code protected parameters.•Press SET T for 8 secs. The access code value 0 is shown on the display (unit comes with code set at 0 from factory).• Select the correct code with the UP and DOWN arrows.•Press SET T to enter the code. If the code is correct, the firstparameter label is shown on the display (St1).• Move to the desired parameter with the UP and DOWN.•Press SET T to view the value on the display.• The value can be modified with the UP and DOWN arrows.•Press SET to enter the value.• Repeat until all necessary parameters are modified.•Press SET and DOWN at the same time to quit programming or wait one minute and the display will automatically exit programming mode.*The keyboard code can be reset to ZERO by turningoff the controller and turning it on again whilekeeping the SET T key depressed.Defrosting is performed at time periods indicated by dt3. If dt3 is zero, no defrosting is performed periodically. Defrosting is deactivated when TS2 (temperature of probe 2) reaches dt1 value or when the maximum defrosting time dt2 is reached.Defrosting can also be activated and deactivated from the keypad, pressing the UP arrow for 8 seconds, or IR remote control. Defrosting can not be activated if a continuous cold cycle is activated, unit is in auxiliary adjustment mode, TS2 >=dt1 or dt2=0.With dt4 parameter we can choose that during the defrosting and one hour after a message -d- is displayed until the temperature raises the initial defrosting temperature. It is also possible to show the initial temperature during the defrosting or to show the actual temperature all the time.• Continuous cold cycleA continuous cold cycle maintains the compressor (output 1) in operation for a period of time given by ct6. These cycles are activated from the keypad, keeping the DOWN arrow pressed for 8 seconds, and end when the time is finished or an order is given from the keypad (pressing DOWN for 8 seconds again). The cycle will not commence if the unit is in heat control mode or i auxiliary adjusting mode (due to memory failure) or if defrosting is activated.• Neutral zone controlIf rt8 = NEu output 1 connects when TS1 >= St1+rt3 anddisconnects when TS1 <= St1, while output 2 connects when TS1 <= St1-rt3 and disconnects when TS1 >= St1.• Control with probe errorsIf reading of probe 1 fails the output 1 works following 10 minutes cycles, with a percentage of connection time given by Ct4. Output 2 is carried out in the same way with parameter Ct5.If reading of probe 2 fails, the defrosting ends by time.• Temperature alarmsIf TS1 >= St1+At1, the thermostat will indicate maximum temperature alarm for probe1 (Aht) and the alarm will remain activated until temperature TS1 <= St1+At1-At0.If TS1 <= St1-At2, the thermostat will activate minimumtemperature alarm for probe 1 (ALt), and it will remain activated until temperature TS1 >= St1-At2-At0.Program At3 to indicate the alarm check time between alarm event and indication of an alarm event. The alarm is indicated by a message on the display and activating the alarm output if present (alarm can be silenced pressing SETT+DOWN keys or CLEAR in the IR remote control).• Probe optionsSet Pt1 to select if the decimal point is shown or not in the display.Set Pt2 to set temperature units (Celsius of Fahrenheit).Set Pt3 to select if 1 or 2 temperature probes are used.If the probe is not placed in the exact point to control, use a standard thermometer to determine the offset and set it by Pt0.Set default settings• Access parameter H0 as explained . 0 will appear.• Press SET T or SET H for 8 seconds. Pro will appear on the display if the Set Point is correct and Epr will appear if it is not correct. • Press SETT+DOWN or SETH+DOWN to exit or wait 1 minute.Temperature control process• Independent ON/OFF controlIf rt8=ono and rt0=Ind, each output is associated to a particular Set.If ct2=dir, output 1 will connect when TS1 >= St1+rt1 (where TS1 is the temperature of probe 1) and will disconnect when TS1 <= St1.ct0 is the minimum stop time. Once the output is disconnected, it is not connected again until ct0 minutes later.If ct2=Inv, output 1 will connect when TS1 <= St1-rt1 and will disconnect when TS1 >= St1.The output 2 is handled in the same manner but controlled by St2, using rt2 as differential, ct3 as indicator of direct or reverse connection, and ct1 as minimum stop time.• Dependent ON/OFF controlIf rt8=ono and rt0=dEP , output 1 works as in Independent ON/OFF control, but output 2 works as follows:If ct3=dir, output 2 will connect when TS1 >= St1+St2+rt2 (where TS1 is the temperature of probe 1) and will disconnect when TS1 <= St1+St2.ct1 is the minimum stop time.If ct3=Inv, output 2 will connect when TS1 <= St1+St2-rt2 and will disconnect when TS1 >= St1+St2.• Cooling controlIf rt8=rEF the temperature is regulated by output 1 as in ON/OFFcontrol, while defrosting is triggered by output 2.Three defrosting methods are available:1.Switch off the compressor (dt0=re)2.Switch off the compressor and connect a heat resistor to output 2 (dt0=re)3.Switch on the compressor and connect an electro-valve to output 2 to reverse the cycle (dt0=in)St1+rt1St1St1St1-rt1St1+St2St1+St2St1+rt3St1St1-rt3St1+At1St1+At1-At0St1-At2St1-At2+At0Sh1Sh1Sh1-rh1。

WI-QP007-13油温机操作指导书.doc

WI-QP007-13油温机操作指导书.doc

1 目的:为了达到正确地使用模具控温机,保证生产的顺利进行,提高产品品质的稳定性,延长模具控温机使用寿命的目的,特制定此操作说明书。

工作原理:模具自动控温机是利用热交换原理,直接加热机内油(或水),根据产品所需而调节该机的温度,使油(或水)在极短的时间内达到设定的温度,通过油泵(或水泵)快速循环于模具内,使模具在成型的时间里,保持设定的温度,以确保成型产品质量,效率得以提高。

2 范围:适用于本公司所使用的油温机。

3 定义(无)4 职责:由技工负责油温机的安装连接、开启和关闭,其他没有通过相关培训的人员不得操作。

5 作业内容:5.1安装:5.1.1按驳电源时,上面都有字码R、S、T、O E,其中R、S、T是三相电源火线,0是零线,E黄绿双色地线,若油泵逆转请将三相电源的任意两相调换即可。

5.1.2将水塔出水口接至本机的冷却水入口(一般入水口带有Y型过滤网)。

5.1.3接好耐高温油管,将本机与模具出口连接好。

请确认所有的配管都巳拧紧。

5.1.4注入耐高温传热油,加油时,要将本机水泵打开,加到满载即可使用。

5.2开机程序:5.2.1打开水塔出入水,作散热降温用途;5.2.2电源开关;5.2.3开启油泵开关,若出现缺油警报,请加油至满油灯亮为止;5.2.4调节温控表,设定所需温度;5.2.5待油泵正常运作后,按【运转/停止】开关,给模具加热。

运转/停止灯全亮。

若不能启动,打开“热油出口”球阀,排出油泵内的空气,直到出油为止。

再按【运转/停止】按钮开关,则机台停。

运转/停止灯熄。

5.2.6在初次使用本机或更模或换油时,为排除机器、配管、模具内的空气,将温控仪设定在0C,请数次按动〖运转〗按钮,使油充满整个系统。

5.3保养与检查:5.3.1保持散热水塔水清洁,保持Y型过滤器无堵塞;5.3.2传热油油质好,无杂质,定期进行更换与清理;三个月须更换一次。

5.3.3过滤网:每二个星期取下清扫;5.3.4电磁阀每一个月取下清扫;5.3.5浮子开关每一个月取下清扫;5.3.6本机(包括外部连接的阀门和配管)在运转中处于高温状态,运转后余热温度仍很高,因此,当本机及配管未降到40 C以下时,请不要用手触摸;5.3.7严禁高温时进行拆除模具运水管路,以防喷出油雾,烫伤身体。

温湿度控制程序

温湿度控制程序

1.目的
为了确保掌握温度及湿度变化情况,建立起因天气变化而采取相应的措施。

2.适用范围
本程序适用全厂车间
3.职责
3.1 各车间负责本车间的温度、湿度的统计及管理工作。

3.2 管理者代表负责监督统计工作及相关车间采取的相应处理措施是否妥当。

4.工作程序
4.1 由管理者代表负责相关事项。

4.2 根据车间分区的情况划分区域,各车间显眼处挂温度计、湿度计,并作统计工
作及填写相关的处理事项。

4.3 各车间必须每天按表格形式准时填写数据,确保认真无误。

4.4 每月一张温度或湿度统计表,每月初把上月统计表交给文控室存档。

4.5 如发现温度计或湿度计不准确时,应及时更换。

4.6 温度在10-30℃,濕度在35-75%,确保在适当的温湿度下进行产品生产及储存,
避免产品受到影响。

5.相关文件
《温度与湿度记录表》 FM-PC-22。

单片机温度湿度控制程序(dht11)

单片机温度湿度控制程序(dht11)

1、温度湿度控制主程序(单片机)#include<reg52.h>#include "dht11.h"#define uchar unsigned char#define uint unsigned intsbit beep=P2^3;sbit k1=P3^2;sbit k2=P3^3;sbit k3=P3^6;sbit k4=P3^7;sbit rs=P3^5;sbit lcden=P3^4;uchar table0[]="T:00.00 TM:00.0 ";//初始化液晶温度实测值以及门限值缓存uchar table1[]="H:00.00 HM:00.0 ";//初始化液晶湿度实测值以及门限值缓存uchar table3[]="This is T/H test";//系统开机显示内容初始化缓存uchar table4[]="Result is coming";//系统开机显示内容初始化缓存static uchar flag;extern int temp_value,humi_value;void Delay_1ms(uint ms);uint TM,HM;void delay(uint x)//{uint a,b;for(a=x;a>0;a--)for(b=10;b>0;b--);}void delay1(uint x)//延时程序{uint a,b;for(a=x;a>0;a--)for(b=100;b>0;b--);}void write_com(uchar com)//液晶写指令操作{P0=com;rs=0;lcden=0;delay(10);lcden=1;delay(10);lcden=0;}void write_date(uchar date)//液晶写数据操作{P0=date;rs=1;lcden=0;delay(10);lcden=1;delay(10);lcden=0;}void init()//液晶初始化{write_com(0x38);delay(1);write_com(0x0c);delay(1);write_com(0x06);delay(1);write_com(0x01);delay(1);}void LCD_Display(uchar buff1[],uchar buff2[])//液晶显示程序{uchar aa;init();//液晶初始化write_com(0x80+16);//写入第一行数据指令delay(1);for(aa=0;aa<16;aa++)//写入第一行待显示数据{write_date(buff1[aa]);}write_com(0xc0+16); //写入第二行数据指令for(aa=0;aa<16;aa++)//写入第一行待显示数据{write_date(buff2[aa]);}for(aa=0;aa<16;aa++){write_com(0x18);delay(1);}}void Tem_Ch(uchar AA,uchar nn)//T门限数值替换{switch(AA){case 0:table0[nn]='0';break;case 1:table0[nn]='1';break;case 2:table0[nn]='2';break;case 3:table0[nn]='3';break;case 4:table0[nn]='4';break;case 5:table0[nn]='5';break;case 6:table0[nn]='6';break;case 7:table0[nn]='7';break;case 8:table0[nn]='8';break;case 9:table0[nn]='9';break;}}void Hum_Ch(uchar BB,uchar mm)//H门限数值替换{switch(BB){case 0:table1[mm]='0';break;case 1:table1[mm]='1';break;case 2:table1[mm]='2';break;case 3:table1[mm]='3';break;case 4:table1[mm]='4';break;case 5:table1[mm]='5';break;case 6:table1[mm]='6';break;case 7:table1[mm]='7';break;case 8:table1[mm]='8';break;case 9:table1[mm]='9';break;}}///////////void YZ_Resh()//门限值更新{uchar A1,A2,A3;A1=TM/10;//取十位A2=TM%10;//取个位A3=0;Tem_Ch(A1,11);//写入对应的液晶显示缓存Tem_Ch(A2,12);//写入对应的液晶显示缓存Tem_Ch(A3,14);//写入对应的液晶显示缓存A1=HM/10;A2=HM%10;A3=0;Hum_Ch(A1,11);Hum_Ch(A2,12);Hum_Ch(A3,14);}void key_test()//按键检测/*根据按键的检测结果进行温度湿度门限值的设定*/{bit kk1;bit kk2;bit kk3;bit kk4;uchar temp;k1=0;k2=1;k3=1;k4=1;kk1=k1;kk2=k2;kk3=k3;kk4=k4;if(kk3!=1){delay1(100);if(kk3!=1)//若可开=0且持续一段时间后任然为0,则执行有关操作{temp=P3;//按键一操作TM=TM+1;//提高温度门限值YZ_Resh();////更新液晶显示缓存的门限值LCD_Display(table0,table1);//液晶显示数值}}if(kk4!=1){delay1(100);if(kk4!=1){temp=P3;//按键二操作TM=TM-1;//降低温度门限值YZ_Resh();////更新液晶显示缓存的门限值LCD_Display(table0,table1);//液晶显示数值}}k1=1;k2=0;k3=1;k4=1;kk1=k1;kk2=k2;kk3=k3;kk4=k4;if(kk3!=1){delay1(100);if(kk3!=1){temp=P3;//按键三操作HM=HM+1;//提高湿度门限YZ_Resh();//更新液晶显示缓存的门限值LCD_Display(table0,table1);//液晶显示数值}}if(kk4!=1){delay1(100);if(kk4!=1){temp=P3;//按键四操作HM=HM-1;//降低湿度门限YZ_Resh();//更新液晶显示缓存的门限值LCD_Display(table0,table1);//液晶显示数值}}}void TempAndHumi_Resh()//更新液晶显示缓存中的温度湿度数值/*根据测得的结果将液晶显示缓存中的数据进行替换*/{uchar ge,shi,bai;ge=temp_value%10;shi=temp_value%100/10;bai=temp_value%1000/100;Tem_Ch(bai,2);Tem_Ch(shi,3);Tem_Ch(ge,5);ge=humi_value%10;shi=humi_value%100/10;bai=humi_value%1000/100;Hum_Ch(bai,2);Hum_Ch(shi,3);Hum_Ch(ge,5);}void beep_control()//警报状态控制函数/*如果实测温度超过门限值则报警*/{if(temp_value>(TM*10)){beep=0;}else{if(humi_value>(HM*10)){beep=0;}else{beep=1;}}}void main(){uint m=0;TM=25;//设定温度初始门限值:25°CHM=50;//设定湿度初始门限值:50%YZ_Resh();//更新液晶显示缓存的门限值beep=1;//关闭蜂鸣器LCD_Display(table3,table4);//显示系统本系统信息while(1){key_test();//监测按键状态,并根据对应按键改变温度湿度门限值,并显示if (m<100)//循环计时,3秒钟{m++;Delay_1ms(30);}else//当m=100时即为3秒时间到,则进行温度湿度数据采集{m=0;ReadTempAndHumi();//采集温度湿度数据TempAndHumi_Resh();//更新液晶显示缓存中的温度湿度数值LCD_Display(table0,table1);//显示当前温度湿度实测值以及门限值}beep_control();//根据门限值以及实测值进行警报状态设置}}#include <reg52.h>#include "dht11.h"#define uchar unsigned char#define uint unsigned int#define NUMBER 20#define SIZE 5sbit dht11=P2^2;static uchar status;static uchar value_array[SIZE];//定义存放DHT11采集的5个字节的数组int temp_value,humi_value;static uchar ReadValue(void);extern void Delay_1ms(uint ms)//毫秒延时,延时时间为ms毫秒{uint x,y;for(x=ms;x>0;x--){for(y=124;y>0;y--);}}static void Delay_10us(void)//10微秒延时{uchar i;i--;i--;i--;i--;i--;i--;}static uchar ReadValue(void)//读一个字节数据的程序{uchar count,value=0,i;status=OK;//设定标志位正常状态for(i=8;i>0;i--){value<<=1;//高位在前进行接收数据count=0;while(dht11==0&&count++<NUMBER);if(count>=NUMBER)//若大于最大数值则出错{status=ERROR;//设定错误标志return 0;//函数执行过程发生错误就退出函数}Delay_10us();//进行30us的延时Delay_10us();Delay_10us();if(dht11!=0)//再次检测是否为高电平{value++;//进入本函数说明信号为1,则进行自加while(dht11!=0&&count++<NUMBER){dht11=1;}if(count>=NUMBER){status=ERROR;return 0;}}}return(value);//返回读取的结果}extern uchar ReadTempAndHumi(void)//读取一次温度湿度数据,共5个字节{uchar i=0,check_value=0,count=0;EA=0;dht11=0;//拉低数据线20msDelay_1ms(20);dht11=1;//释放数据线,以用于检测低电平应答信号Delay_10us();//延时40usDelay_10us();Delay_10us();Delay_10us();if(dht11!=0)//检测应答信号,应答信号为低电平{EA=1;//无低电平。

西门子S7-200PLC农业大棚温湿度控制

西门子S7-200PLC农业大棚温湿度控制

西门⼦S7-200PLC农业⼤棚温湿度控制PLC技术及应⽤课程设计(论⽂)题⽬:农业⼤棚温湿度检测系统课程设计(论⽂)任务及评语院(系):电⽓⼯程学院教研室:⾃动化⽬录第1章温湿度检测系统的概述 (1)1.1 概述 (1)第2章主机及扩展模块选择 (2)2.1 主机及扩展模块选择 (2)2.2 温湿度传感器选择 (2)2.3 I/O接⼝分配 (2)2.4 控制机与外围器件的连线 (4)第3章软件设计 (5)3.1 主程序的设计 (5)3.2⼦程序的设计 (6)3.3 中断程序设计 (8)第4章课程设计总结 (10)参考⽂献 (11)第1章温湿度检测系统的概述1.1 概述农业温室⼤棚为现代农业提供新的⽣产环境,取得了良好的经济和社会效益。

它可以提⾼农民收⼊,提⾼产业化⽔平,提⾼抵御⾃然灾害能⼒,延长作物⽣长时间,提⾼作物产量。

对于农作物来说,温度和湿度是两个⾮常重要的条件。

所以能够监控温度和湿度对农业⼤棚的⽣产有着⼗分重要的意义。

温湿度的检测⽅法很多,本⽂将介绍以PLC为控制器的温湿度控制系统的设计。

PLC与其他的控制器相⽐具有较⾼的抗⼲扰的能⼒和⾼的可靠性,并且对环境的适应⾏好。

对温湿度的采集,可以选择相应的温度和湿度传感器,将温度和湿度转换成相应的电信号送⼊控制器中。

PLC拥有丰富的软件功能,在控制器中我们可以⽤相应的程序将采集来的模拟信号转换成相应的数字信号。

由于数字信号的⼤⼩是与被测量有关,但不是温度和湿度的⼯程量值,所以为了显⽰温度和湿度的物理量值的⼤⼩时,要将数字量进⾏标度变换。

然后将标度变换所得的结果送⼊显⽰器中显⽰。

其整体结构如图1.1所⽰图1.1整体结构第2章主机及扩展模块选择2.1 主机及扩展模块选择在温湿度检测系统中,输⼊量为温湿度传感器检测值,输出量为显⽰器和提⽰灯。

主机选择S7-224。

本机集成了14输⼊/10输出,它最多可以有7个扩展模块,有内置时钟,有更强的模拟量和⾼速计数的处理能⼒。

铁塔中兴温湿度监控调试步骤指导

铁塔中兴温湿度监控调试步骤指导

铁塔中兴温湿度监控调试步骤指导
本文档为铁塔中兴温湿度监控设备的调试步骤指导,旨在帮助用户正确进行设备调试操作。

请按照以下步骤进行操作:
步骤一:设备准备
1. 确保铁塔中兴温湿度监控设备已正确安装,并与电源连接稳定。

2. 使用正确的接线工具,将传感器连接至设备相应接口。

3. 确认设备显示屏是否正常。

步骤二:设备设置
1. 打开设备电源开关,等待设备启动。

2. 根据设备说明书,进入设置界面。

3. 在设置界面中,选择语言和日期等基本设置。

4. 根据实际需要,设置温湿度报警阈值。

步骤三:设备校准
1. 在设备校准之前,确保设备周围环境稳定,并避免直接阳光照射。

2. 在设备设置界面中,选择校准功能。

3. 按照屏幕提示,进行设备校准操作。

4. 校准完成后,确认设备显示的温湿度数据与实际情况一致。

步骤四:设备监控
1. 在设备主界面,可以实时监测温湿度数据。

2. 若温湿度数据异常,设备会发出报警提示,请及时处理。

3. 定期检查设备是否正常工作,确保数据准确性。

注意事项
- 在设备操作过程中,避免用力过度,以免损坏设备。

- 定期检查设备和传感器的连接是否稳固。

- 如果发现设备工作异常,及时联系售后服务部门进行维修。

以上为铁塔中兴温湿度监控调试步骤指导,请遵循操作步骤进行设备调试和维护。

如有疑问,请咨询相关技术人员或服务部门。

2023年温、湿度自动控制仪操作规程

2023年温、湿度自动控制仪操作规程

2023年温、湿度自动控制仪操作规程操作规程:2023年温湿度自动控制仪1. 引言温湿度自动控制仪是一种数字化的设备,用于监测和调节环境中的温度和湿度。

本操作规程旨在确保对该设备的正确操作和维护,以保持良好的工作状态和性能。

2. 适用范围本操作规程适用于2023年温湿度自动控制仪及其相关设备的操作人员。

3. 术语和缩写3.1. 温湿度自动控制仪(THC):用于监测和调节环境中温度和湿度的设备。

3.2. 操作人员:指被授权使用和操作温湿度自动控制仪的人员。

3.3. 维护人员:指负责维护和修复温湿度自动控制仪的人员。

3.4. 温度:指环境中的温度,以摄氏度表示。

3.5. 湿度:指环境中的湿度,以百分比表示。

3.6. 警报:指温湿度自动控制仪发出的提示或报警信号。

4. 操作程序4.1. 开机和关机4.1.1. 开机1. 检查电源是否正常连接。

2. 按下开机按钮,等待设备启动。

3. 确认设备进入正常工作状态后,进行后续操作。

4.1.2. 关机1. 关闭温湿度自动控制仪连接的所有设备。

2. 按下关机按钮,等待设备关闭。

3. 断开电源连接。

4.2. 设置温度和湿度4.2.1. 进入设置模式1. 按下设置按钮进入设置模式。

2. 根据设备操作界面的指引,进入温度和湿度设置。

4.2.2. 设置温度1. 通过设备操作界面上的按键或旋钮,设置所需的温度值。

2. 确认设置的温度值,并保存设置。

4.2.3. 设置湿度1. 通过设备操作界面上的按键或旋钮,设置所需的湿度值。

2. 确认设置的湿度值,并保存设置。

4.3. 监测温度和湿度4.3.1. 实时监测1. 在设备操作界面上查看当前的温度和湿度数值。

2. 确保温湿度自动控制仪处于工作状态,并正常显示温湿度数值。

4.3.2. 历史数据查询1. 进入设备操作界面上的历史数据查询功能区。

2. 根据设备的指引,选择查询指定时间段内的温度和湿度数据。

4.4. 报警处理4.4.1. 报警类型1. 温度超过设定范围:温度超过设定的高阈值或低阈值时,温湿度自动控制仪会发出警报。

DHT11检测的温湿度控制系统程序

DHT11检测的温湿度控制系统程序
case 0xbb:number=1;break;
case 0xbd:number=2;break;
case 0xbe:number=3;break;
case 0xd7:number=4;break;
case 0xdb:number=5;break;
case 0xdd:number=6;break;
#include<reg52.h>
#include<intrins.h>
#define uchar unsigned char
#define uint unsigned int
sbit tempAndHumi=P2^0; //温湿传感器数据传输
/*LCD1602液晶显示*/
Delayy_10us();
Delayy_10us();
U8temp=0;
if(tempAndHumi)
U8temp=1;
U8FLAG=2;
while((tempAndHumi)&&U8FLAG++);
if(U8FLAG==1)
break;
U8comdata<<=1;
U8comdata|=U8temp;
void Dis_code()
{ unsigned char num=0;
unsigned char key;
unsigned char j;
unsigned char flag;
init();
write_com(0x80);
{write_data(table2[j]);
//delay_50us(1); //显示温湿字样

2.1f温湿度控制程序

2.1f温湿度控制程序
5.3.3.3調整工作節奏,每工作一小時休息十分鐘。
5.3.3.4公司每班提供一次冰塊或其它降溫、防中暑飲料給員工。
5.3.3.5公司為每班組提供預防和治療中暑的藥品。
5.4各部門根據部門人數申報所需防護措施用品的數量,填寫申購單,交由總經理批准。
5.5人事部根據批准後的申購單,及時採購相關防護措施用品。
1、目的
為了確保公司員工能夠在適應的溫濕度環境中工作,保護員工的健康與安全做出了具體的規定.
範圍
2、適用於在工作環境(生產車間、倉庫、辦公室)的溫度控制.
管理者提供必要的資源和設施。
4.2部門主管負責具體措施的實施。
4.3人事部門負責相應防護物品的購置。
4.4其它部門協助相關工作。
5.2.3辦公室:4-28℃20-80﹪
电子仓库:23±2℃40-70﹪
5.3當工作環境溫度超出安全溫度標準時:
5.3.1長期規劃:公司將安裝空調調溫設施,使工作環境溫度在夏季保持在25-28℃;在冬季時保持16-24℃。
5.3.2當工作環境溫度低於安全溫度標準時:
5.3.2.1倉庫、生產車間的出口增加防風簾,增加保暖。
5.3.2.2對於坐著不動的員工提供防護保暖設施:護腿、手套等。
5.3.2.3調整工作節奏,每工作一小時休息十分鐘,讓員工充分活動身體。
5.3.3當工作環境溫度高於安全溫度標準時:
5.3.3.1對生產車間房頂採取水降溫,倉庫和辦公室開啟空調和風扇等降溫設備。
5.3.3.2對於一線員工儘量避免安排一天中的高溫段(11:00-15:00)工作。
4.5各部門負責溫度的點檢。
5程式
5.1在公司各車間掛入溫濕度測量計,由各部門負責每天檢查工作環境的室內溫度,並記錄到《每日溫度/湿度檢測表》中。

基于Zigbee技术和QT平台的温湿度采集控制程序设计

基于Zigbee技术和QT平台的温湿度采集控制程序设计

文章编号:2096-1472(2018)-09-48-03DOI:10.19644/ki.issn2096-1472.2018.09.014软件工程 SOFTWARE ENGINEERING 第21卷第9期2018年9月V ol.21 No.9Sep. 2018基于Zigbee 技术和QT 平台的温湿度采集控制程序设计王 浩(苏州健雄职业技术学院软件与服务外包学院,江苏 太仓 215411)摘 要:随着无线传感网络通信技术的快速发展,为了实现上位机通过串口通信方式采集温湿度数据,以及控制风扇设备,本文设计一种基于Windows系统下的QT开发平台,采用C++语言编程实现温湿度采集,以及风扇控制操作。

系统硬件由基于CC2530芯片的Zigbee协调器节点、Zigbee终端节点、DHT11温湿度传感器,以及风扇设备组成。

实验测试结果表明:该系统运行性能稳定,操作方便,具有一定的应用前景。

关键词:无线传感网络;QT;Zigbee;DHT11温湿度传感器中图分类号:TP273 文献标识码:ADesign of the Temperature and Humidity Collection and Control ProgramBased on Zigbee Technology and QT PlatformWANG Hao(Software and Service Outsourcing Institute ,Suzhou Chien-Shiung Institute of Technology ,Taicang 215411,China )Abstract:With the rapid development of wireless sensor network communication technology,in order to enable the upper computer to collect temperature and humidity data and to control equipment like fans through serial communication,a platform is designed based on Windows QT development platform,which executes temperature and humidity collection and fan control operation by using C++ programming language.The system hardware is composed of Zigbee coordinator node based on CC2530 chip,Zigbee terminal node,DHT11 temperature and humidity sensor and fans.The experimental results demonstrate that the system performance is stable and convenient with a certain application prospect.Keywords:wireless sensor network;QT;Zigbee;DHT11 temperature and humidity sensor1 引言(Introduction)随着无线传感网络技术在物联网行业中应用范围不断扩大,如果利用常规有线通信方式进行传感器数据采集和执行机构控制,就会存在一定的弊端,当使用有线通信方式进行数据采集和控制时,在建造和施工成本方面都比较高、同时后期软硬件功能扩展和维护也不易。

温湿度采集控制电路及C51程序

温湿度采集控制电路及C51程序

2
R4 510 D2 LED D LED R3 510
VC C IC6 7 8 N0 5 J S1 1 2 GN D LED + CV 1 J S1 2 2 0 UF 12V 1 Vin +5 V 3 D CV 3 0 . 1 UF
CS1 0 . 1 UF D1
VC C
GN D
+ CV 2 1 0 UF
X1 1 1 . 0 5 9 2 .0 M Hz X2 R2 1K X1
VC C 3 1 19 18 RST RD WR 9 17 16
EA/VP X1 X2 RESET RD WR
RX பைடு நூலகம் TXD ALE/P PSEN
10 11 30 29
RX D TXD ALE PSEN J P2 J UM PER B
VCC 3 1 X1 19 18 RST RD WR 9 17 16
485_E 2 1 2 PIN
X2 R2 1K
VCC J S2 1 2 V1 7 8 N0 5 1 Vin
GN D
RXD TXD ALE/P PSEN
10 11 30 29
RXD TXD ALE PSEN
TXD
4
E1 +5 V 3 R3 510 + CV2 1 0 UF CV3 0 .1 U F D1 LED 1 0 UF/1 6 V
J1
J2
VC C
VC C
3 2 1
GN D
GN D 1 2 3 4 5 6 7 8
3 2 1
U1 P1 0 P1 1 P1 2 P1 3 P1 4 P1 5 P1 6 P1 7 INT1 INT0 T1 T0
8 9 C5 1 P0 0 P0 1 P0 2 P0 3 P0 4 P0 5 P0 6 P0 7 P2 0 P2 1 P2 2 P2 3 P2 4 P2 5 P2 6 P2 7 39 38 37 36 35 34 33 32 21 22 23 24 25 26 27 28 D0 D1 D2 D3 D4 D5 D6 D7 A8 A9 A1 0 A1 1 A1 2 A1 3 A1 4 A1 5

仓库温湿度控制系统

仓库温湿度控制系统

仓库温湿度控制系统(总18页)--本页仅作为文档封面,使用时请直接删除即可----内页可以根据需求调整合适字体及大小--仓库温湿度控制系统姓名学号专业班级提交日期目录摘要 (2)1 仓库温湿度控制系统设计任务和性能指标 (3)1.1 设计任务 (3)1.2 性能指标 (3)2 系统总体设计 (3)3 硬件设计 (4)3.1 单片机最小系统 (4)3.2 LCD1602显示模块 (5)3.3 温湿度传感器模块 (6)3.3.1 SHT10温湿度传感器的介绍 (6)3.3.2 SHT10与单片机的接口电路 (7)3.4 报警模块 (7)3.4 按键模块 (8)3.4 控制模块 (8)4 软件设计 (9)4.1 主程序流程图 (9)4.2SHT10子程序流程图 (10)4.3 LCD1602子程序流程图 (10)4.4 输出控制子程序流程图 (11)4.5键盘扫描子程序流程图 (11)5仿真与调试 (12)5.1 调试环境 (12)5.2不足与优化 (13)6 总结 (13)7 参考文献 (13)附件1系统仿真图 (14)摘要防潮、防霉、防腐、防爆是仓库日常工作的重要内容,是衡量仓库管理质量的重要指标。

它直接影响到储备物资的使用寿命和工作可靠性。

为保证日常工作的顺利进行,首要问题是加强仓库内温度与湿度的监测工作。

传统的方法是用湿度表、毛发湿度表、双金属式测量计和湿度试纸等测试器材,通过人工进行检测,对不符合温度和湿度要求的库房进行通风、去湿和降温等工作。

为解决这种传统温湿度检测主要以人为基础、依靠人工轮流值班,人工巡回查看等方式来测量和记录环境状况信息的模式,避免许多由人为因素造成的重大事故,解决效率低下不利于人才充分利用的问题,让测量更具有科学性,本设计提供了一套更方便和精确度更高的测控系统。

本设计是基于AT89C52单片机的仓库温湿度自动控制系统,采用SHT10作为温湿度传感器,LCD1602液晶屏进行显示。

温湿度测试系统校验程序

温湿度测试系统校验程序

温湿度测试系统校验程序温湿度测试系统校验程序一.目的:建立一个温湿度测试系统的校验程序。

二.适用范围:适用于全公司使用的温湿度测试系统。

三.责任者:计量检定员。

四.工作程序:1.概述本程序采用比对法校验温湿度测试系统,我们采用干、湿球法测量房间温湿度与测试系统的温湿度比较,本测试方法的温度误差优于±0.2℃,湿度误差优于±3%RH2. 温、湿度检测2.1校验条件:2.1.1 标准器:两支型号相同的二等标准水银温度计,检定合格并在有效期内。

2.1.2温度:20±5℃湿度:≤75%rh。

2.2 干湿球准备:2.2.1煎取一段长约100mm的120号气象纱布,用清洁水将手和一支二等标准水银温度计的水银泡洗净,然后用纱布无皱折的包围在此水银温度计水银泡上,用纱布线扎好作为湿球,要求不得扎的过紧,纱布重叠部分不超过圆周长的1/4。

2.2.2将另一支二等标准水银温度计和准备好的湿球温度计垂直夹在蝴蝶滴定架上,使2支温度计的传感器平行并且中间保持15cm距离。

2.2.3水杯中盛满纯化水放在湿球下,使水面距离湿球底端3cm,将湿球纱布放入水杯中,保持纱布清洁柔软和润湿。

2.3温、湿度测量:将准备好的干湿球放在温湿计附近,待稳定15分钟后,记录时间并立即读取干湿球温度计示值并记录,算出干湿球温度计差值,根据GB6999-1986查出该温度下的相对湿度值。

再查阅测试系统的温湿度记录,将其数据与我们干湿球法的测量结果相比较,其温度偏差应小于±2℃,湿度偏差应小于±5%RH。

3. 校验结果处理及校验周期3.1 校验合格的仪器贴合格证,不合格者应重新调整修理或报废。

3.2 校验周期为一年。

五.记录:温湿度计校验记录。

恒温恒湿plc编程控制

恒温恒湿plc编程控制

组合式空调恒温恒湿的自动控制【关健词】组合式空调恒温恒湿除湿【摘要】如何符合特殊的生产线温湿度的使用要求,是空调系统及其控制系统设计的难题。

组合式空调的自控系统较好地解决了这难题,它采用了除湿优先的控制方法,利用最小能量能使该系统达到恒温恒湿控制精度。

我国为了更加快速与国际形势市场接轨,在原加入WTO的基础上,历经金融风暴后,大多数医疗手术室、电子、烟草、化工、制药、食品、民用建筑、商场、工业厂房及印刷等洁净空间,都感觉到无形的压力。

这样强迫他们不断地更新设备、更新工业、更新观念,不断提高产品档次,提高产品质量。

特别是国内的喷涂生产线,他们从国外引入先进的机器人喷涂生产线替代即将淘汰残旧的设备。

这种机器人喷涂生产线对环境要求很高,温湿度不稳均会影响产品的外观及喷涂率,甚至导致涂料成本增加、喷涂不匀等质量问题。

面对这烦恼的问题,恰好遇到了组合式空调,它完全可以满足工艺要求。

按国家相关标准要求,室内温度要求±1℃,相对湿度要求±5%。

如何符合特殊的生产线温湿度的使用要求,成为了空调系统及其控制系统设计的难题。

组合式空调的自控系统较好地解决了这难题,它典型结构如图1所示。

图1 组合式空调结构示意图根据喷涂生产线对空气的质量精度要求不同、南北方气候差异,选配较合理功能段的组合式空调对空气进行混合、加热、冷却、加湿、除湿、过滤等处理也相当重要,满足车间温湿度时积极提倡节能回收。

除湿是恒温恒湿系统空气处理过程中必不可少的环节,在空调系统中常采用冷冻除湿技术。

因为制冷系统既要控制温度又要控制湿度,而被控制室内的温湿度也是密切关联,所以较难符合被控制生产线所要求达到理想的温湿度精度。

空气成分的温湿度是密切关联,如:温度精度≤±1℃与湿度精度≤±1%相比,湿度较难控制。

因此±1%湿度所对应的温度精度≤±1℃。

假设在12℃结露点上空气的含水率保持恒定,但空气温度在1.0℃之间变化,那么相对湿度就在47%和53%之间波动,0.2℃的空气温度变化将引起大于0.5%的相对湿度的变化。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

1.0 目的
为了确保掌握温度及湿度变化情况,建立因天气变化对员工的生产、生活健康有影响而采取相应的措施。

2.0 适用范围
本程序适用全厂各部门。

3.0 职责
3.1 各部门负责本部门的温度、湿度的登计及温湿度计的维护管理工作。

3.2 部门负责人监督登计工作及相关车间采取的相应处理措施是否妥当。

4.0 工作程序
4.1 各车间显眼处挂温湿度计,并作登计工作及填写相关的处理事项。

4.2 各车间必须每天填写《温湿度检查表》作好车间温湿度记录并保存。

4.3 如发现温湿度计不准确时,应及时更换。

4.4 湿度在60%-80%属正常,高于80%时,应注意电器防潮,相对湿度50%以下为干燥气候,要注
意防火。

4.5 适宜于作业的温度为16℃-30℃,30℃以上需做好防暑工作,如货仓温度高于29℃,即须做
好相应防暑措施。

防暑措施包括:开窗通风,地面洒水,开启风扇、空调、给员工提供凉茶或防暑降温饮料等降温设施,并保存相关记录。

4.6温度在16℃(轻便工种除外)至2℃(轻便工种)时,通知员工作好防寒、保暖工作。

防寒保
暖措施包括:关好门窗、如有电热扇、空调的车间应开启电热扇、空调等调节温度,适当时工厂可给员工提供姜汤等祛寒物质,并保存相关记录。

4.7 气温在2℃以下时,如车间温度低于此温度,暂停工作。

4.8气温在36℃以上时,要调整工作时间,避开高温时间作业。

5.0 相关记录
《温湿度检查表》。

相关文档
最新文档