ÄãºÃ£¬»¶Ó­À´µ½¾­¹ÜÖ®¼Ò [µÇ¼] [×¢²á]

ÉèΪÊ×Ò³ | ¾­¹ÜÖ®¼ÒÊ×Ò³ | Êղر¾Õ¾

ÏÖ³¡×ÜÏßͨÐÅЭÒéÑо¿¼°Ó¦ÓÃ---ͨÓÃÐÍͨÐÅЭÒé¿Ø¼þÉè¼Æ_×Ô¶¯»¯×¨ÒµÂÛÎÄ

·¢²¼Ê±¼ä£º2015-01-23 À´Ô´£ºÈË´ó¾­¼ÃÂÛ̳
×Ô¶¯»¯×¨ÒµÂÛÎÄ·¶ÎÄ Ä¿ ¼ ÕªÒª Abstract µÚ1Õ Ð÷ÂÛ 1 1.1¡¢ÏÖ³¡×ÜÏ߸ÅÊö 1 1.2¡¢ÏÖ³¡×ÜÏߵĶ¨Òå¼°Ö÷ÒªÌØÕ÷ 1 1.3¡¢ÏÖ ³¡ ×Ü Ïß µÄ º¬ Òå ºÍ ¼¼ Êõ ÌØ µã 2 1.4¡¢ÏÖ ³¡ ×Ü Ïß µÄ Ìå ϵ ½á ¹¹ ºÍ ¸÷ ²ã Ö÷ Òª ¹¦ ÄÜ 3 µÚ2Õ ´®ÐÐͨÐÅ×ÜÏß±ê×¼¼°½Ó¿Ú¼¼Êõ 5 2.1¡¢´®ÐÐͨÐÅϵͳ±ê×¼½Ó¿Ú 5 2.2¡¢RS-232-C×ÜÏß±ê×¼¼°Ó¦Óà 6 2.2.1¡¢RS-232-C×ÜÏß±ê×¼½Ó¿Ú¼°µçÆ÷ÌØÐÔ 6 2.2.2¡¢RS-232-C½Ó¿ÚµÄµçÆøÌØÐÔ 7 2.3¡¢RS-485×ÜÏß±ê×¼¼°Ó¦Óà 9 2.3.1¡¢ÒýÑÔ 9 2.3.2¡¢RS-485·½Ê½¹¹³ÉµÄ¶à»úͨÐÅÔ­Àí 11 2.3.3¡¢Í¨ÐŹæÔò 12 2.3.4¡¢RS-485ͨÐÅÖдæÔÚµÄÁ½¸öÎÊÌâ 14 µÚ3Õ MCS-51µ¥Æ¬»úϵͳ 17 3.1¡¢¸ÅÊö 17 3.2¡¢µ¥Æ¬»úµÄÄÚ²¿½á¹¹ 18 3.3¡¢MCS-51µ¥Æ¬»úÓëPC»úÖ®¼äµÄÒì²½´®ÐÐͨÐŽӿÚÉè¼Æ 20 3.4¡¢¶à»úͨÐÅÔ­Àí 20 µÚ4Õ ͨÐÅЭÒé 22 4.1¡¢Profibus ЭÒé½á¹¹ 22 4.2¡¢ProfibusͨÐÅЭÒé 22 4.3¡¢FDLÖ¡µÄ½á¹¹ 23 4.4¡¢Í¨ÐÅЭÒéÓë±à³Ì»·¾³ 25 µÚ5Õ ͨÐſؼþÓ²¼þÉè¼Æ 27 5.1¡¢´®ÐÐͨÐŵĻù±¾Ô­Àí 27 5.1.1¡¢Í¨ÐŵĻù±¾·½Ê½ 27 5.1.2¡¢½¨Á¢Í¨ÐÅЭÒé 27 5.2¡¢RS-485´®ÐÐͨÐŽӿڵç·µÄ×ÜÌåÉè¼Æ 28 5.3¡¢½Ó¿Úµç·¾ßÌåÉè¼Æ 29 5.3.1¡¢µ¥Æ¬»ú²àRS-485½Ó¿Úµç·µÄÉè¼Æ 29 5.3.2¡¢PC»ú²àRS-485/RS-232ת»»Æ÷µÄÉè¼Æ 29 5.4¡¢Ó²¼þ½á¹¹ 31 5.5¡¢Í¨ÐÅЭÒé 31 µÚ6Õ ͨÐſؼþÈí¼þÉè¼Æ 33 6.1¡¢ÀûÓÃVBʵÏÖPC»úÓë¶àµ¥Æ¬»úͨѶ 33 6.2¡¢VB»·¾³ÏÂͨѶ³ÌÐòµÄÉè¼Æ 33 6.2.1¡¢Mscomm¿Ø¼þµÄÖ÷ÒªÊôÐÔÈçÏ 33 6.2.2¡¢Timer¿Ø¼þµÄÖ÷ÒªÊôÐÔÈçÏ 34 6.3¡¢Í¨ÐÅЭÒéʵÏÖ¹ý³Ì 37 6.4¡¢Î¢»úͨÐųÌÐòÉè¼Æ 38 6.4.1¡¢³õʼ»¯³ÌÐò 38 6.4.2¡¢·¢ËͲÎÊý³ÌÐò 40 6.4.3¡¢½ÓÊÕ²ÎÊý³ÌÐò 40 6.4.4¡¢½áÊø³ÌÐò 41 6.5¡¢µ¥Æ¬»úͨÐųÌÐòÉè¼Æ 41 6.5.1¡¢³õʼ»¯³ÌÐò 41 6.5.2¡¢µ¥Æ¬»úÖ÷³ÌÐò 42 6.5.3¡¢µ¥Æ¬»ú²éѯ·¢ËÍ×Ó³ÌÐò 43 6.5.4¡¢µ¥Æ¬»ú½ÓÊÕÖжϷþÎñ×Ó³ÌÐò 45 ½áÊøÓï 48 Ö л 49 ²Î¿¼ÎÄÏ× 50 ¸½Â¼1£ºPC»úÓëMCS-51µ¥Æ¬»ú¶à»úͨÐÅÔ´³ÌÐò 51 ¸½Â¼2£ºPC»úÓëMCS-51µ¥Æ¬»ú¶à»úͨÐÅÔ­Àíͼ 69 Õª Òª£ºÏÖ³¡×ÜÏßÊÇÁ¬½ÓÖÇÄÜÏÖ³¡É豸ºÍ×Ô¶¯»¯ÏµÍ³µÄÊý×Öʽ¡¢Ë«Ïò´«Êä¡¢¶à·ÖÖ§½á¹¹µÄͨÐÅÍøÂ磬Êǹý³Ì¿ØÖƼ¼Êõ¡¢×Ô¶¯»¯ÒÇ±í¼¼Êõ¡¢¼ÆËã»úÍøÂç¼¼ÊõÈý´ó¼¼Êõ·¢Õ¹µÄ½»»ãµã£¬½«´øÀ´¿ØÖÆϵͳµÄÒ»´ó±ä¸ï¡£ÏÖ³¡×ÜÏß×÷ΪһÖÖ¿ª·ÅµÄ¡¢È«Êý×Ö»¯¡¢Ë«Ïò¡¢¶àÕ¾µÄͨÐÅϵͳ£¬½üÄêÀ´µÃµ½ÁËѸÃ͵ķ¢Õ¹ºÍÓ¦Óᣵ«ÊÇ£¬Í³Ò»µÄÏÖ³¡×ÜÏߵĹú¼Ê±ê×¼ÖÁ½ñÉÐδÖƶ©£¬¸÷´ó¹«Ë¾ÓÖ¶¼·¢Õ¹×Ô¼ºµÄÏÖ³¡×ÜÏߣ¬Òò¶øÔÚÒ»¸öÖÇÄÜ»¯ÅäµçϵͳÖÐÔÊÐí²ÉÓöàÏÖ³¡×ÜÏß¼¼Êõ£¬Òѱä³ÉÍƹãÏÖ³¡×ÜÏßÆÈÇÐÐèÒª½â¾öµÄ¹Ø¼ü¼¼ÊõÎÊÌâ¡£ Ëæ×ŵ¥Æ¬»ú¼¼ÊõºÍPC»ú¼¼ÊõÔÚ¹¤Òµ¿ØÖÆÖеĹ㷺ÔËÓ㬵¥Æ¬»úºÍPC»úÖ®¼äµÄÊý¾ÝͨÐÅÒ²ÒѳÉΪÏÖ´ú¹¤Òµ¿ØÖÆϵͳÖеÄÒ»¸öÖØÒªÑо¿¿ÎÌ⣬ÌرðÊÇÔÚ½øÐÐÔ¶³Ì²Ù×Ý¿ØÖÆʱ£¬PC»úºÍµ¥Æ¬»úÔ¶³ÌͨПüÊǹ¤×÷µÄÇ°Ìá»ù´¡¡£ ±¾Éè¼ÆÔÚPC»úÓ뵥Ƭ»úµÄÁ¬½ÓÖвÉÓÃÁËRS-232ÓëRS-485ת»»Æ÷¡¢ÊµÏֽϿɿ¿µÄ³¤¾àÀëͨÐÅ¡£ÔËÓÃVBµÄ´®ÐÐͨÐſؼþ Mscomm£¬ÊµÏÖPC»úÓëÁ½Ì¨MCS-51µ¥Æ¬»úϵͳ¼äµÄͨÐÅ£¬²ûÃ÷ÁËͨÐÅЭÒ飬¸ø³öÁËϵͳ½á¹¹¿òͼºÍÓ²¼þÏß·ͼ¡£ ¹Ø¼ü´Ê£ºÏÖ³¡×ÜÏߣ»´®ÐÐͨÐÅ£»MCS-51µ¥Æ¬»ú£»RS-232£»RS-485£»VB6.0£»Í¨Ðſؼþ Abstract Fieldbus is a kind of full digital, bi-directional and multi-station communication net between field intelligent instruments and automation control systems in industry. It is a convergence of processing control technology, industrial automation instrument technology and computer network technology. Which will lead to occur a renovation in control systems. As a kind of open, digital, bidirection, multistation communication system, fieldbus has been developed and applied greatly in many fields in recent years. But, up to now, the international standard for fieldbus has not been setup and the products from different companies use their own field bus system. In this case, to solve the multifieldbus technology in a distribution system becomes a key problem for application of fieldbus. With the wide application of single¡ªchip computer and computer in the industrialcontrol field£¬the communications between them have become an important research subject inmodem industrial control system . Especially£¬in the case of remote control£¬ the remote communication between them is the base and prerequisite of operation and work . In this paper we discuss the details of communication between microcomputer and MCS-51 single-chip computer by using VB, and give the source program and its flowing chart. The communication protocols are explained. The system structure charts and the circuit of hardware are given.Keywords£ºFieldbus £»Serial communication£»MCS-51 single-chip computer£»RS-232£»RS-485£» VB6.0 £»MSCON£»communication control
¾­¹ÜÖ®¼Ò¡°Ñ§µÀ»á¡±Ð¡³ÌÐò
  • ɨÂë¼ÓÈë¡°¿¼ÑÐѧϰ±Ê¼ÇȺ¡±
ÍƼöÔĶÁ
¾­¼ÃѧÏà¹ØÎÄÕÂ
±êÇ©ÔÆ
¾­¹ÜÖ®¼Ò¾«²ÊÎÄÕÂÍƼö