资源描述
水位检测系统的控制水位检测系统的控制水位检测系统的控制水位检测系统的控制电路电路电路电路?4418501?200413185006??I?PLC?PLC?关键字??II Abstract Water level detection is widely used in our usual life and many industry fields,such as rivers or lakes,water tank?water tower,groundwater,hydropower station,selling water by self.The situations need water level detection to know the changes of water level.In these days,water level detection system has been widely used at home and abroad.Water level detection is the sum of the data cellection,saving,transmission and dealing,which has many methods,such as manual detection,sensor detection and so on.The water level detection system works through the changes in water level on-or off circuit to realize connection or breaking of power,controying the warning system in working or not.The system controls the electric way in many forms.System control circuits take many forms,the transistor,designed by the on-circuit or to control the opening and closing,the impact of the LED light-emitting diodes,which play a direct role in the visually and hearing.At the same time,the sigh of real water level can be changed into controller PLC.By linking the communications portal and configuration software can simulate real water level in order to know the situation of the water level.Keyword:detection;system;control the water level;circuit ?III?U?V I?A R?C?F w?n??IV?帮?.1 1.1?.1 1.2?.1 1.3?.2 建?.3 建.帮?.3 建.帮.帮?.3 2.1.2?.4 2.2?.4 2.2.2?.4 2.2.1?.5 2.3?.5 2.4?.5 2.5?.6 2.5.1?.6 2.5.2?.8 2.5.3?.8 2.5.4?.9 2.5.5?.9 2.5.6?.9 2.6 EWB?.10 2.6.1EWB?.10 2.6.2?.12 2.7?.13 ?V 性?.16 3.1?.16 3.1.1?.16 3.1.2?.16 3.1.3?.16 3.1.4?6.52.17 3.2?.18 3.2.1?.18 3.2.2?.19 3.3?.20 3.3.1?.20 3.3.2?.21 感?紧示点?.22 4.2?PLC.22 4.2.1?PLC?.22 4.2.2?.24 4.2.3PLC?.25 4.2.4PLC?.26 战?.27 5.1?.27 5.2?.27 5.3?.28 5.4?.28 挡?.29 6.1?.29 6.2?.29 6.3?.29 7?.31 ?VI?.32?.33?.34 ?1 帮 帮 帮 帮?1.1?1.2??2 1.3??3 建 建 建 建?建.帮建.帮建.帮建.帮?建.帮.帮建.帮.帮建.帮.帮建.帮.帮?图 2.1 方案一硬件电路图 表 2.1 水箱水位小灯指示表?示版照?LED1?LED2?LED3?LED4?LED5 3/4?LED1?LED2?LED3?LED4 1/2?LED1?LED2?LED3 1/4?LED1?LED2?LED1 ?4 2.1.2?12V?(T1?T5)?(LED1?LED5)?C?T1?LEDl?1/4?T2?LEDl?LED2?T3?LEDl?LED2?LED3?3/4?T4?LEDl?LED4?T5?2.1?2.2?2.2.2?图 2.2 方案二硬件电路图 ?5 2.2.1?CMOS“?”?2.2?AD?U?“?”?G1G4?R?A?U?A?G1?G4?G5?T1?T1?DL?2.3?2.4?220V?12V?D1?D3?U3=U2-UD1-UD3?D2?RL?D4?U3=U2-UD2-UD4??6 图 2.3 二极管桥式整流电路?U2,?2009.0)(sin1UwtwtdUUT=(2.1)?2.1?U3=12V?232.1UU=?102=UV?2.1?0U=9V?25TCRL=(2.2)?=400LR?02.0=T?FC125=2.5?2.5.1?LED?Light Emitting Diode?Ga?AS?P?PN?P?N?N?P?PN?N?P??7?BT?FG?2EF?SLR?SLC?SLR?SLC?KSL-0581UBG?3.6V?20mA?图 2.4 硬件支路电路图?U?R1?U1?R2?U2?ULED?12LEDUUUUU+=膜金?2.3??8?U=12V,UTe=0.7V,ULED=3.6V?U1+U2=7.7V?180?I=0.02A,?R1=10?180I1=I2?2.4?R1I1+R2I2=7.7?2.5?2.3?2.4?I1=0.00011A,R2=384 2.5.2?R1=10,R2=400 2.5.3?PN?PN?(?b?)?(?c?)?(?e?)?NPN?PNP?NPN?PNP?90?9013(NPN)?9012(PNP)?9014(NPN)?9018(NPN)?TO-92?3DG6(?)?3AX31(?)?S9013H?NPN ?9 2.5.4?2.5.5?,?PN?P?,N?P?N?P?N?0.7V?,?,?2CP31?2.5.6?E?C?(?)??10?(Primamary coil);?220V?13.33V?2.1?U1=220V,U2=13.33V?2121UUNNn=(2.6)?n=16.5?n=17?CEI-10 2.6 EWB?2.6.1EWB?Electronics Workbench(EWB)?Interactive Image Technology??11?Protel?EWB?EWB?EWB?;?PNP?NPN?;?ANALYSIS?ANALYSIS?OPTION?ANALYSIS?OPTION??12?EWB?2.6.2?12V?220V?12V?EWB??13 图 2.4 ewb 仿真电路图?2.7?,?10?420?NPN?R 100?R l k?,?,?,?,?,?,?,??14?NPN?PNP?“HFE”?HFE?NPN,S9013?178?186?192?194?178?S9013I?图 2.5 实际焊接电路板正面图 图 2.6 实际焊接电路板反面图 ?15?图 2.7 水位检测电路硬件实物图 ?16 性 性 性 性?3.1?3.1.1?configuration,?Distributed Control System?DCS?3.1.2?80?80?90?1995?3.1.3?Microsoft Windows XP/NT/2000??17?3.1.4?6.52?6.52?King Historian?6.52?6.52?Excel??18?Web Server?PLC?6.52?KingHistorian?10?256?30,000?6.52?PLC?6.52?GPRS?Lonworks?BacNet?3.2?3.2.1?D?“?”?“?”?“?”?-?“?”?“?”?“?”?PLC?PLC?0?I/O?PLC??19?“?”?“exit(0);”?图 3.1 组态软件水位检测主画面建立图 3.2.2?“?”?“ShowPicture(?);”??20 图 3.2 组态软件登陆的画面建立图 3.3?3.3.1?图 3.3 组态软件运行登陆图 ?21 3.3.2?图 3.4 组态软件水位检测运行图 ?22 感 感 感 感?紧示点紧示点紧示点紧示点?4.2?PLC 4.2.1?PLC?(Programmable Controller)?(Programmable Logic Controller)?PLC?(Personal Computer)?PLC?PLC?(CPU)?PLC?PLC?PLC?CPU?1?PLC?I/O?I/O?2??23?PLC?(?)?RAM?I/O?I/O?I/O?RAM?3?PLC?CPU?I/O?PLC?PLC?I/O?PLC?PLC?PLC?(?)?PLC?I/O?S7-200?7?RS-485?PROFIBUS?PG?CPU?I/O?EM?DI24VDC?DO?24VDC?AI??24?-?CP?S7-200?AS-?AS-?248?S7-200?CPU?3?STOP?TERM?/?RUN?LED?SF?CPU?RUN?STOP?DP?I/O?CPU-215?PPI?CPU?4.2.2?表 4.1 PLC 元件地址分配?I0.0?I0.1 1/4?I0.2 1/2?I0.3 3/4?I0.4??25 4.2.3PLC?图 4.1 硬件与 PLC 接线图?Q0.0?L0?Q0.1?L1?Q0.2?L2?Q0.3?L3?Q0.4?L4??26 4.2.4PLC?图 4.2 PLC 梯形图?L0?L4?Q0.0?Q0.4?PLC?I0.0?I0.4?Q0.0?Q0.4?PLC??27 战 战 战 战?5.1?5.1?PLC?PLC?图 5.1 系统结构图?2.1?B?D?A?E?C?PLC?I0.0?I0.1?I0.2?I0.3?I0.4?Q0.0?Q0.1?Q0.2?Q0.3?Q0.4?PLC?PLC?CPU?PLC?PLC?5.2?PLC?S7200?PPI?I/O?PLC?PLC?Q0.0?Q0.5?Bit??28 5.3?图 5.2 软硬件实际连接图 5.4?5.2?PLC?1/4?1/2?3/4??29 挡 挡 挡 挡?6.1?6.2?400?400?350?420?420?S9013?178?194?S9013I?6.3?PLC?PLC?PLC?PLC?PLC?PLC?PLC??30?PLC??31 7??32??33?1?.?.?:?,2001.1 2?.?.?:?,2004.11 3?.?.?:?,2006.2 4?.?.?:?,2006.5 5?.PLC?.?:?,2007.9 6?.?.?:?,2004.10 7?.?.?:?,2005.12 8?,?.?.?:?,2005.8 9?.?.?:?,2005.2 10?.?InTouch?.?:?,2006.6 ?34?RY-0.125?1?1K 5?10 5?400?CD-10?获?挡.性-感战0获 1?100F?(LED)KSL-0583UPG-15?UF/V?4.2 I/mA:20 5?2CP31?Icm/mA:250 U?/V?25 U?/V?1 4
展开阅读全文