±ÏÒµÉè¼Æ(ÂÛÎÄ)-»ùÓÚPLCµÄÖÇÄܼҾӰ²·Àϵͳ ÏÂÔØ±¾ÎÄ

ÄÚÃɹſƼ¼´óѧ

±¾¿ÆÉú±ÏÒµÉè¼ÆËµÃ÷Ê飨±ÏÒµÂÛÎÄ£©

Ìâ Ä¿£º»ùÓÚPLCµÄÖÇÄܼҾӰ²·Àϵͳ ѧÉúÐÕÃû£º ѧ ºÅ£º 0 ר Òµ£º×Ô¶¯»¯ °à ¼¶£º×Ô2005-3°à Ö¸µ¼½Ìʦ£º

ÄÚÃɹſƼ¼´óѧ±ÏÒµÉè¼ÆËµÃ÷Ê飨±ÏÒµÂÛÎÄ£©

»ùÓÚPLCµÄÖÇÄܼҾӰ²·Àϵͳ

ÕªÒª

Ëæ×ÅÎÒ¹ú¾­¼ÃµÄ¿ìËÙ·¢Õ¹£¬Éú»îˮƽµÄ²»¶ÏÌá¸ß£¬ÈËÃǶԾӼҵĸÅÄîÒÑ´Ó×î³õÂú×ã¼òµ¥µÄ¾Óס¹¦ÄÜ·¢Õ¹µ½×¢ÖضÔסլµÄÈËÐÔ»¯ÐèÇó¡£°²È«¡¢ÊæÊÊ¡¢¿ì½Ý¡¢·½±ãµÄÖÇÄÜÐ¡Çø£¬ÒѳÉΪסլ·¢Õ¹µÄÖ÷Á÷Ç÷ÊÆ£¬ÆäÖУ¬°²È«ÐÔÊÇÊ×ҪĿ±ê¡£ÖÇÄÜÐ¡Çø°²È«ÐÔµÄʵÏÖ£¬³ýÁËÈËΪµÄÒòËØÍ⣬Ö÷ÒªÒÀ¿¿Ð¡ÇøµÄÖÇÄÜ»¯°²È«·À·¶ÏµÍ³¡£ËùÒÔÑо¿ºÍ¿ª·¢ÖÇÄܼҾӰ²·Àϵͳ¾ßÓкܸߵÄʵÓüÛÖµ¡£ÔÚ°²·ÀϵͳÖУ¬·À»ðºÍ·ÀµÁÊÇÖ÷ÒªµÄ¡£Òò´Ë£¬Í¨¹ý´«¸ÐÆ÷°Ñ¸÷ÖÖ·À»ð·ÀµÁµÄÐźŴ«Êä¸øÐ¡Çø±¨¾¯ÖÐÐÄ£¬Ð¡Çø±¨¾¯ÖÐÐÄÄÜѸËÙ×ö³ö·´Ó¦£¬×èÖ¹²»·¨·Ö×ӵĵóѺͻðÔֵķ¢Éú¡£ÖÇÄܰ²·Àϵͳ¾ÍÊDZ£ÕÏÁËÈËÃǾӼҵݲȫºÍÀûÒæ£¬Ê¹ÈËÃǵÄÉú»î¸ü¼Ó°²È«¡¢ÊæÊÊ¡£ËùÒÔÉè¼ÆºÍ¿ª·¢ÖÇÄܼҾӰ²·Àϵͳ£¬²»½ö¾ßÓкÜÇ¿µÄÏÖʵÒâÒ壬ҲÓй㷺µÄÊг¡Ç°¾°¡£

±¾Éè¼Æ½éÉÜÁËÎ÷ÃÅ×Ó S7-300µÄͨÐÅЭÒéºÍ¹¤¿Ø×é̬Èí¼þWinCCÔڼҾ߰²·ÀϵͳÖеÄÓ¦ÓÃ,²¢ÌÖÂÛͨ¹ýÓà MPI ÍøÂçʵÏÖ S7-300Ó빤¿Ø×é̬Èí¼þWinCC Ö®¼äͨÐźÍÓÃPROFIBUS-DP×ÜÏßʵÏÖS7-300ÓëS7-300Ö®¼äͨÐŵķ½·¨¡£

¹Ø¼ü×Ö: ÖÇÄÜÐ¡Çø£»°²·Àϵͳ£»WinCC£»×¡Õ¬£»±¨¾¯

I

ÄÚÃɹſƼ¼´óѧ±ÏÒµÉè¼ÆËµÃ÷Ê飨±ÏÒµÂÛÎÄ£©

Based on PLC intelligent household security system

Abstract

With economy rapid developed and living standard continuous improved, people¡¯s concept of home has changed from initial simple living function to the individual demands. The intelligent community, which is safe, convenient and comfortable, has become the housing development tendency. And safety is the primary target in that tendency. The safe of the intelligent community, except for human factors, mainly rely on safe guard system of intelligent community. So the research and development of intelligent household security system has high practical value. In the security system, fireproofing and security system is very important. Therefore, if transmit various fire-theft alarm signal to the community alarm centers through the sensor, community alarm centers can rapid reaction so that prevent the lawbreakers¡¯ actions and prevent fire occurrence. Intelligent surveillance system is the guarantee for the security and interests of the housing people and makes the life of people more safe and comfortable. So the design and development of intelligent household security system, not only has a strong practical significance, bur also has wide prospect of market.

This design introduces application of Siemens S7-300 communication protocol and the industrial control configuration software security system WinCC in furniture security system. Then the paper discusses the methods which use MPI network to realize the communicating between S7-300 and industrial control configuration software WinCC, and use PROFIBUS-DP to realize the communicating between S7-300 and S7-300.

Kye words: Intelligent village; Security systems; WinCC; House; alarm

II

ÄÚÃɹſƼ¼´óѧ±ÏÒµÉè¼ÆËµÃ÷Ê飨±ÏÒµÂÛÎÄ£©

Ŀ¼

ÕªÒª ............................................................................................................................................. I Abstract ...................................................................................................................................... II µÚÒ»Õ ¸ÅÊö .............................................................................................................................. 1

1.1 Ð÷ÂÛ ............................................................................................................................. 1 1.2 PLCµÄÓ¦ÓÃÁìÓòºÍ·¢Õ¹Ç÷ÊÆ ..................................................................................... 2

1.2.1 PLCµÄÓ¦ÓÃÁìÓò ................................................................................................ 2 1.2.2 PLCµÄ·¢Õ¹Ç÷ÊÆ ................................................................................................ 3 1.3 Î÷ÃÅ×ÓS7-300¼ò½é ................................................................................................... 4

1.3.1 Ò»°ãÌØÐÔ ............................................................................................................ 4 1.3.2 Ä£¿éµÄÖÖÀà ........................................................................................................ 4 1.3.3 ͨÐÅ .................................................................................................................... 5 1.3.4 À©Õ¹¹¦ÄÜ ............................................................................................................ 6 1.4 ¼à¿ØÈí¼þWinCC¼ò½é ............................................................................................... 6 1.5 STEP 7±à³ÌÈí¼þ¼ò½é ................................................................................................ 7 1.6 ÖÇÄܼҾӰ²·Àϵͳ¿ª·¢µÄ±ØÒªÐÔ ............................................................................. 8 1.7 ¹úÄÚÍâ·¢Õ¹ÏÖ×´ ......................................................................................................... 8 1.8 ÂÛÎĵÄÖ÷ÒªÑо¿ÄÚÈÝ ................................................................................................. 8 ±¾ÕÂС½á ............................................................................................................................. 9 µÚ¶þÕ ÖÇÄܼҾӰ²·Àϵͳ .................................................................................................... 10

2.1 ÖÇÄܼҾӰ²·ÀϵͳµÄ×é³ÉÓ빤×÷Ô­Àí ................................................................... 10

2.1.1 ÖÇÄܼҾӰ²·ÀϵͳµÄ×é³É .............................................................................. 10 2.1.2 ÖÇÄܼҾӰ²·ÀϵͳµÄ¹¤×÷Ô­Àí ...................................................................... 11 2.2 ÖÇÄܼҾӰ²·ÀϵͳµÄÉè¼Æ ....................................................................................... 11

2.2.1 ϵͳµÄÓ²¼þÉè¼Æ .............................................................................................. 11

2.2.1.1 S7-300ϵÁеÄPLCÓ²¼þϵͳ ............................................................. 11 2.2.1.2 PLCµÄÑ¡ÐÍ ........................................................................................... 15 2.2.1.3 PLCÀ©Õ¹»ú¼ÜºÍ¹©µçµçÔ´µÄÉè¼Æ ....................................................... 15 2.2.2 ϵͳµÄÈí¼þÉè¼Æ .............................................................................................. 15

III

ÄÚÃɹſƼ¼´óѧ±ÏÒµÉè¼ÆËµÃ÷Ê飨±ÏÒµÂÛÎÄ£©

2.2.2.1 ³ÌÐòÁ÷³Ìͼ ........................................................................................... 15 2.2.2.2 PLCµÄI/OµØÖ··ÖÅä±í ....................................................................... 15 2.2.2.3 ³ÌÐò ....................................................................................................... 16

±¾ÕÂС½á ........................................................................................................................... 17 µÚÈýÕ WinCC¶ÔÐ¡Çø±¨¾¯µÄ×é̬ ....................................................................................... 18

3.1 Î÷ÃÅ×ÓS7-300¼°¹¤³Ì×é̬Èí¼þµÄÓ¦Óà ................................................................. 18

3.1.1 S7-300¡¢¶àµã½Ó¿ÚÍøÂç ( MPI ) ¼°PROFIBUS-DP .................................. 18 3.1.2 S7-300ÓëS7-300Ö®¼äµÄͨÐÅÁ¬½Ó ............................................................... 19 3.1.3 S7-300Ó빤¿Ø×é̬Èí¼þWinCCÖ®¼äµÄͨÐÅ ............................................. 27 3.2 ×éÌ¬Ð¡Çø±¨¾¯ ........................................................................................................... 28

3.2.1 ½¨Á¢ÏîÄ¿¼°ÏîÄ¿¹ÜÀíÆ÷½éÉÜ .......................................................................... 28 3.2.2 ×é̬±äÁ¿ .......................................................................................................... 30 3.2.3´´½¨¹ý³Ì»­Ãæ¼°×é̬ÏîÄ¿ ............................................................................... 35

3.2.3.1 ͼÐα༭Æ÷µÄ²¼¾Ö ............................................................................... 35 3.2.3.2. ½¨Á¢¹ý³Ì»­Ãæ ...................................................................................... 36 3.2.3.3. ´´½¨¼°×é̬¹ý³Ì»­Ãæ .......................................................................... 37

±¾ÕÂС½á ........................................................................................................................... 45 µÚËÄÕ WinCCÓëSTEP 7¶ÔÐ¡Çø±¨¾¯µÄ¼à¿Ø ..................................................................... 46

4.1 STEP 7¶ÔPLCµÄÄ£Äâ .............................................................................................. 46

4.1.1 ´´½¨ÏîÄ¿ .......................................................................................................... 46 4.1.2 Ó²¼þ×é̬ .......................................................................................................... 47 4.1.3 ÔÚÏßµ÷ÊÔ .......................................................................................................... 47 4.1.4 PLCSIM ............................................................................................................. 48 4.2 Ð¡Çø±¨¾¯ÏµÍ³µÄÄ£ÄâÔËÐÐ ....................................................................................... 49

4.2.1 ÔÚSTEP 7ÖбàдÔËÐеÄÄ£Äâ³ÌÐò ................................................................ 49 4.2.2ÔËÐÐÖеÄÖ÷»­Ãæ ............................................................................................... 50 4.2.3 ÔËÐÐÖеı¨¾¯»­Ãæ .......................................................................................... 50

4.2.3.1 ÔËÐÐÖеı¨¾¯Ô­Òò»­Ãæ ....................................................................... 50 4.2.3.2 ÔËÐÐÖеı¨¾¯Â¥ºÅ»­Ãæ ....................................................................... 50 4.2.3.3 ÔËÐÐÖеı¨¾¯×¡»§»­Ãæ ....................................................................... 51

IV