¹Ø¼ü×Ö£º |
È«Ãæ×ÛÊöÁËʵʱÒÔÌ«Íø¼¼Êõ¹úÄÚÍâµÄÏÖ×´£¬Ñо¿Á˹¤ÒµÍøÂçʵʱÐÔÒªÇ󣬸ø³ö¹¤ÒµÒÔÌ«ÍøºÍʵʱÒÔÌ«Íø¶¨Ò壬½ÏÉîÈëÆÊÎöÁËÁùÖÖÖ÷ҪʵʱÒÔÌ«ÍøµÄͨÐÅÐÒ顣ͬʱÂÛÊöÁËʵʱÒÔÌ«Íø½ñºóµÄ·¢Õ¹Ç÷ÊÆ¡£ |
1 ¹¤Òµ¿ØÖÆÍøÂçµÄʵʱÐÔÒªÇó
ÈËÃÇÖªµÀ£¬ÓÃÓÚ¹¤Òµ×Ô¶¯»¯ÏµÍ³µÄÍøÂçͨÐż¼ÊõÀ´Ô´ÓÚITÐÅÏ¢¼¼ÊõµÄ¼ÆËã»úÍøÂç¼¼Êõ£¬µ«ÊÇÓÖ²»Í¬ÓÚÒ»°ãµÄ¼ÆËã»úÍøÂçͨÐÅ£¬ÕâÊÇÒòΪITÍøÂçͨÐÅÊÇÒÔ´«µÝÐÅϢΪ×îÖÕÄ¿µÄ£¬¶ø¹¤Òµ¿ØÖÆÍøÂç´«µÝÐÅÏ¢ÊÇÒÔÒýÆðÎïÖÊ»òÄÜÁ¿µÄÔ˶¯Îª×îÖÕÄ¿±ê¡£ËùÒÔ£¬ÓÃÓÚ²âÁ¿ºÍ¿ØÖƵÄÊý¾ÝͨÐŵÄÖ÷ÒªÌصãÊÇ£ºÔÊÐí¶Ôʼþ½øÐÐʵʱÏìÓ¦µÄʼþÇý¶¯Í¨ÐÅ£»ºÜ¸ßµÄ¿ÉÓÃÐÔ£»ºÜ¸ßµÄÊý¾ÝÍêÕûÐÔ£»ÔÚÓеç´Å¸ÉÈź͵صçλ²îµÄÇé¿öÏÂÄÜÕý³£¹¤×÷£»ÒÔ¼°Ê¹Óù¤³§ÄÚרÓõĴ«ÊäÏߵȡ£ÆäÖУ¬×îÖ÷ÒªµÄÒªÇóÊÇÍøÂçͨÐŵĸßʵʱÐÔ¡£ÊµÊ±£¨real time£©µÄº¬ÒåÊÇÖ¸Êý¾Ý´¦Àí¾ÍÏñ·¢ÉúÔÚÊý¾Ý²úÉúµÄʱ¿Ì£¬ÆäÏìӦûÓдóµÄÑÓʱ¡£
¶ÔÓÚ¹¤Òµ×Ô¶¯»¯ÏµÍ³À´Ëµ£¬Ä¿Ç°¸ù¾Ý²»Í¬µÄÓ¦Óó¡ºÏ£¬½«Êµ½øÐÔÒªÇó»®·ÖΪÈý¸ö·¶Î§£¬ËüÃÇÊÇ£ºÐÅÏ¢¼¯³ÉºÍ½ÏµÍÒªÇóµÄ¹ý³Ì×Ô¶¯»¯Ó¦Óó¡ºÏ£¬ÊµÊ±ÏìӦʱ¼äÒªÇóÊÇ100ms»ò¸ü³¤£»¾ø´ó¶àÊýµÄ¹¤³§×Ô¶¯»¯Ó¦Óó¡ºÏʵʱÏìӦʱ¼äµÄÒªÇó×îÉÙΪ5¡«10ms£»¶ÔÓÚ¸ßÐÔÄܵÄͬ²½Ô˶¯¿ØÖÆÓ¦Óã¬ÌرðÊÇÔÚ100¸ö½ÚµãϵÄËÅ·þÔ˶¯¿ØÖÆÓ¦Óó¡ºÏ£¬ÊµÊ±ÏìӦʱ¼äÒªÇóµÍÓÚ1ms£¬Í¬²½´«ËͺͶ¶¶¯Ð¡ÓÚ1¦Ìs¡£¹¤Òµ¿ØÖÆÍøÂçµÄʵʱÐÔ»¹¹æ¶¨ÁËÐí¶à¼¼ÊõÖ¸±ê£¬Èç½»¸¶Ê±¼ä¡¢ÍÌÍÂÁ¿¡¢Ê±¼äͬ²½¡¢Ê±¼äͬ²½¾«¶È¡¢ÒÔ¼°ÈßÓà»Ö¸´Ê±¼äµÈ¡£¶ÔÓÚÕâЩÐÔÄÜÖ¸±ê¶¼ÓÐÏêϸµÄ¹æ¶¨£¬ÈçÎÒ¹úÖƶ¨µÄ¡°ÓÃÓÚ¹¤Òµ²âÁ¿Óë¿ØÖÆϵͳµÄEPAϵͳ½á¹¹ÓëͨÐűê×¼¡±µÄ¹ú¼Ò±ê×¼Öй涨ÍøÂçµÄʱ¼äͬ²½¾«¶ÈΪ8¸öµÈ¼¶£¬¼´£º0¨DÎÞ¾«¶ÈÒªÇó;1¨Dʱ¼äͬ²½¾«¶È<1s;2¨Dʱ¼äͬ²½¾«¶È<100ms;3¨Dʱ¼äͬ²½¾«¶È<10ms;4¨Dʱ¼äͬ²½¾«¶È<1ms;5¨Dʱ¼äͬ²½¾«¶È<100¦Ìs;6¨Dʱ¼äͬ²½¾«¶È<10¦Ìs;7¨Dʱ¼äͬ²½¾«¶È<1¦Ìs¡£
2 ¹¤ÒµÒÔÌ«ÍøÓëʵʱÒÔÌ«Íø
³¤ÆÚÒÔÀ´£¬ÓÉÓÚÏÖ³¡×ÜÏßÕùÒé²»ÐÝ£¬»¥Í¨Ó뻥²Ù×÷ÎÊÌâºÜÄѽâ¾ö£¬ÓÚÊÇÏÖ³¡×ÜÏß¿ªÊ¼×ªÏòÒÔÌ«Íø¡£¾¹ý½ü¼¸ÄêµÄŬÁ¦£¬ÒÔÌ«Íø¼¼ÊõÒѾ±»¹¤Òµ×Ô¶¯»¯ÏµÍ³¹ã·º½ÓÊÜ¡£ÖÚËùÖÜÖªEthernetÍøÂç³öÏÖÓÚ1975Ä꣬²¢ÓÚ1982ÄêÖƶ¨³ÉΪIEEE 802.3±ê×¼µÄµÚÒ»°æ±¾¡£1990Äê2Ô¸ñê×¼Õýʽ³ÉΪISO/IEC 8802.3¹ú¼Ê±ê×¼¡£ÔÚÕâÆڼ䣬Ethernet´Ó×î³õ10MbpsÒÔÌ«Íø£¬¹ý¶Éµ½100Mbps¿ìËÙÒÔÌ«ÍøºÍ½»»»Ê½ÒÔÌ«Íø£¬Ö±ÖÁ·¢Õ¹µ½½ñÌìµÄ¹âÏËÒÔÌ«ÍøºÍÍòÕ×ÒÔÌ«Íø¡£¿ÉÒÔ˵£¬¿ª·ÅµÄEthernetÊÇÈýÊ®ÄêÀ´·¢Õ¹×î³É¹¦µÄÍøÂç¼¼Êõ£¬ËüÊÇÔÚÓëIEEE 802.4ÁîÅÆ×ÜÏß¾ÖÓòÍøºÍIEEE 802.5ÁîÅÆ»·¾ÖÓòÍøÁ½¸ö¶ÔÊֵľºÕùÖÐÍÑÓ±¶ø³öµÄ£¬²¢µ¼ÖÂÁËÒ»³¡ÐÅÏ¢¼¼ÊõµÄ¸ïÃü¡£EthernetÍøµÄ¿ìËÙ·¢Õ¹ºÍ¹ã·ºÓ¦ÓÃÓÐÁ¦µØÍƶ¯Á˸߼¼ÊõоƬºÍϵͳ¿ª·¢£¬´Ó¶ø´ó´óÌá¸ßÁËÍøÂçÐÔÄܺͽµµÍÁËϵͳ³É±¾¡£Òò¶ø£¬EthernetÿÄêÔÚÊÀ½çÉϵݲװÁ¿³¬¹ýÉÏÒÚ¸ö½Úµã¡£
ͨ³££¬ÈËÃÇÏ°¹ßÉϽ«ÓÃÓÚ¹¤Òµ¿ØÖÆϵͳµÄÒÔÌ«Íøͳ³ÆΪ¹¤ÒµÒÔÌ«Íø¡£µ«ÊÇ£¬Èç¹û×Ðϸ»®·Ö£¬°´ÕÕ¹ú¼Êµç¹¤Î¯Ô±»áSC65CµÄ¶¨Ò壬¹¤ÒµÒÔÌ«ÍøÊÇÓÃÓÚ¹¤Òµ×Ô¶¯»¯»·¾³£¬·ûºÏIEEE 802.3±ê×¼£¬°´ÕÕIEEE 802.1D¡°Ã½Ìå·ÃÎÊ¿ØÖÆ£¨MAC£©ÍøÇÅ¡±¹æ·¶ºÍIEEE 802.1Q¡°¾ÖÓòÍøÐéÄâÍøÇÅ¡±¹æ·¶£¬¶ÔÆäûÓнøÐÐÈκÎʵʱÀ©Õ¹£¨extension£©¶øʵÏÖµÄÒÔÌ«Íø¡£Í¨¹ý²ÉÓüõÇáÒÔÌ«Íø¸ººÉ¡¢Ìá¸ßÍøÂçËٶȡ¢²ÉÓý»»»Ê½ÒÔÌ«ÍøºÍÈ«Ë«¹¤Í¨ÐÅ¡¢²ÉÓÃÐÅÏ¢¼¶ºÍÁ÷Á¿¿ØÖƼ°ÐéÄâ¾ÖÓòÍøµÈ¼¼Êõ£¬µ½Ä¿Ç°ÎªÖ¹¿ÉÒÔ½«¹¤ÒµÒÔÌ«ÍøµÄʵʱÏìӦʱ¼ä×öµ½5¡«10ms£¬Ï൱ÓÚÏÖÓеÄÏÖ³¡×ÜÏß¡£¹¤ÒµÒÔÌ«ÍøÔÚ¼¼ÊõÉÏÓëÉÌÓÃÒÔÌ«ÍøÊǼæÈݵġ£
¶ÔÓÚÏìӦʱ¼äСÓÚ5msµÄÓ¦Ó㬹¤ÒµÒÔÌ«ÍøÒѲ»ÄÜʤÈΣ¬ÎªÁËÂú×ã¸ßʵʱÐÔÄÜÓ¦ÓõÄÐèÒª£¬¸÷´ó¹«Ë¾ºÍ±ê×¼×éÖ¯·×·×Ìá³ö¸÷ÖÖÌáÉý¹¤ÒµÒÔÌ«ÍøʵʱÐԵļ¼Êõ½â¾ö·½°¸¡£ÕâЩ·½°¸½¨Á¢ÔÚIEEE 802.3±ê×¼µÄ»ù´¡ÉÏ£¬Í¨¹ý¶ÔÆäºÍÏà¹Ø±ê×¼µÄʵʱÀ©Õ¹Ìá¸ßʵʱÐÔ£¬²¢ÇÒ×öµ½Óë±ê×¼ÒÔÌ«ÍøµÄÎÞ·ìÁ¬½Ó£¬Õâ¾ÍÊÇʵʱÒÔÌ«Íø£¨Real Time Ethernet£¬¼ò³ÆRTE£©¡£ÎªÁ˹淶Õⲿ·Ö¹¤×÷µÄÐÐΪ£¬2003Äê5Ô£¬IEC/SC65CרÃųÉÁ¢ÁËWG11ʵʱÒÔÌ«Íø¹¤×÷×飬¸Ã¹¤×÷×鸺ÔðÖƶ¨ IEC 61784-2¡°»ùÓÚISO/IEC 8802.3µÄʵʱӦÓÃϵͳÖй¤ÒµÍ¨ÐÅÍøÂçÐй桱¹ú¼Ê±ê×¼£¬Ôڸñê×¼ÖаüÀ¨£ºCommunication Profile Family 2 Ethernet/IP;CPF 3 PROFINET;CPF4 P-NET;CPF6 Interbus;CPF10 VNET/IP;CPF11 TCNET;CPF12 EtherCAT;CPF13 Ethernet Powerlink;CPF14 EPA(Öйú);CPF15 MODBUS/TCPºÍCPF16SERCOSµÈ11ÖÖʵʱÒÔÌ«ÍøÐй漯¡£ÆäÖУ¬°üÀ¨ÎÒ¹úEPAʵʱÒÔÌ«Íø±ê×¼µÄ6¸öÐÂÔöʵʱÒÔÌ«Íø½«ÒÔIEC PAS£¨Publicly Available Specification£©¹«¹²¿ÉÓù淶ÓèÒÔ·¢±í¡£ÔÚÉÏÊöʵʱÒÔÌ«Íø¼¼ÊõÖУ¬½«ÓÐÁù¸öÖ÷ÒªµÄ¾ºÕùÕߣºEPA¡¢EtherCAT¡¢Ethernet PowerLink¡¢PROFINET¡¢MODBUS-IDAºÍEthernet/IP¡£
3 ÁùÖÖÖ÷ҪʵʱÒÔÌ«ÍøͨÐÅÐÒé·ÖÎö
¸ù¾ÝʵʱÒÔÌ«ÍøʵʱÀ©Õ¹µÄ²»Í¬¼¼Êõ·½°¸£¬¿É½«ÊµÊ±ÒÔÌ«ÍøͨÐÅÐÒéÄ£ÐÍ·ÖΪ4À࣬Èçͼ1Ëùʾ¡£
ͼ1 ʵʱÒÔÌ«Íø°´ÊµÊ±À©Õ¹·½°¸·ÖÀà
ͼ1ÖеĢÙÊǾ¹ý³£¹æ×î´óŬÁ¦Ìá¸ßʵʱÐÔ£¬Ò»°ã¹¤ÒµÒÔÌ«ÍøµÄͨÐÅÐÒéÄ£ÐÍ£»¢ÚÊDzÉÓÃÔÚTCP/IPÖ®ÉϽøÐÐʵʱÊý¾Ý½»»»·½°¸£»¢ÛÊDzÉÓþÓÅ»¯´¦ÀíºÍÌṩÅÔ·ʵʱͨµÀµÄͨÐÅÐÒéÄ£ÐÍ£»¢ÜÊDzÉÓü¯Öе÷¶ÈÌá¸ßʵʱÐԵĽâ¾ö·½°¸£»¢ÝÊDzÉÓÃÀàËÆInterbusÏÖ³¡×ÜÏß¡°¼¯×ÜÖ¡¡±Í¨ÐÅ·½Ê½ºÍÔÚÎïÀí²ãʹÓÃ×ÜÏßÍØÆ˽ṹÌáÉýÒÔÌ«ÍøʵʱÐÔÄÜ¡£Í¼1ÖÐͬʱ¸ø³öÁËÁùÖÖʵʱÒÔÌ«Íø¼¼Êõ·½°¸µÄ¹éÀàÇé¿ö¡£ÓÉÓÚʵʱÒÔÌ«Íø¼¼ÊõÉæ¼°ºÜ¶à·½Ã棬ÏÞÓÚƪ·ù£¬ÕâÀï½ö¶ÔͨÐÅÐÒé×ö¼òÒªÂÛÊöÓë·ÖÎö¡£
3.1 EPAʵʱÒÔÌ«Íø
EPA£¨Ethernet for Plant Automation£©ÓÃÓÚ¹¤Òµ²âÁ¿Óë¿ØÖÆϵͳµÄÒÔÌ«Íø±ê×¼ÊÇÔÚ¹ú¼Ò¿Æ¼¼²¿¡°863¡±¼Æ»®µÄÖ§³ÖÏ£¬ÓÉÕã½´óѧ¡¢Õã´óÖпء¢ÖпÆÔºÉòÑô×Ô¶¯»¯Ëù¡¢ÖØÇìÓʵçѧԺ¡¢´óÁ¬Àí¹¤´óѧ¡¢Ç廪´óѧµÈµ¥Î»ÁªºÏ³ÉÁ¢µÄ±ê×¼Æð²Ý¹¤×÷×éÆð²Ý¡£
EPAÍøÂçÍØÆӽṹÈçͼ2Ëùʾ£¬ËüÓÉÁ½¼¶ÍøÂç×é³É£¬¼´¹ý³Ì¼à¿Ø¼¶L2ÍøºÍÏÖ³¡É豸¼¶L1Íø¡£
ͼ2 EPAϵͳÍøÂçÍØÆӽṹ
ÏÖ³¡É豸¼¶L1ÍøÓÃÓÚ¹¤ÒµÉú²úÏÖ³¡µÄ¸÷ÖÖÏÖ³¡É豸£¨Èç±äËÍÆ÷¡¢Ö´Ðлú¹¹ºÍ·ÖÎöÒÇÆ÷µÈ£©Ö®¼äÒÔ¼°ÏÖ³¡É豸ÓëL2ÍøµÄÁ¬½Ó£»¹ý³Ì¼à¿Ø¼¶L2ÍøÖ÷ÒªÓÃÓÚ¿ØÖÆÊÒÒÇ±í¡¢×°ÖÃÒÔ¼°ÈË»ú½Ó¿ÚÖ®¼äµÄÁ¬½Ó¡£ÎÞÂÛÊÇL1Íø»¹ÊÇL2Íø£¬¾ù¿É·ÖΪһ¸ö»ò¼¸¸ö΢Íø¶Î¡£
ÔÚEPAϵͳÖУ¬½«¿ØÖÆÍøÂç»®·ÖΪÈô¸É¸ö¿ØÖÆÇøÓò£¬Ã¿¸ö¿ØÖÆÇøÓò¼´ÎªÒ»¸ö΢Íø¶Î¡£Ã¿¸ö΢Íø¶Îͨ¹ýEPAÍøÇÅÓëÆäËüÍø¶Î·Ö¸ô£¬¸Ã΢Íø¶ÎÄÚEPAÉ豸¼äµÄͨÐű»ÏÞÖÆÔÚ±¾¿ØÖÆÇøÓòÄÚ½øÐУ¬¶ø²»»áÕ¼ÓÃÆäËüÍø¶ÎµÄ´ø¿í×ÊÔ´¡£´¦ÓÚ²»Í¬Î¢Íø¶ÎÄÚµÄEPAÉ豸¼äµÄͨÐÅ£¬ÐèÓÉÏàÓ¦µÄEPAÍøÇÅת·¢¿ØÖÆ¡£
ΪÁËÌá¸ßÍøÂçµÄʵʱÐÔÄÜ£¬EPA¶ÔISO/IEC 8802.3ÐÒé¹æ¶¨µÄÊý¾ÝÁ´Â·²ã½øÐÐÁËÀ©Õ¹£¬ÔÚÆäÖ®ÉÏÔö¼ÓÁËÒ»¸öEPAͨÐŵ÷¶È¹ÜÀíʵÌ壨Communication Scheduling Management Entity£¬¼ò³ÆEPA-CSME£©¡£EPA-CSME²»¸Ä±äIEC 8802.3Êý¾ÝÁ´Â·²ãÌṩ¸øDLS-UserµÄ·þÎñ£¬Ò²²»¸Ä±äÓëÎïÀí²ãµÄ½Ó¿Ú£¬Ö»ÊÇÍê³É¶ÔÊý¾Ý±¨Îĵĵ÷¶È¹ÜÀí¡£¸ÃÊý¾ÝÁ´Â·²ãÄ£ÐÍÈçͼ3Ëùʾ¡£
ͼ3 EPAÊý¾ÝÁ´Â·²ãÄ£ÐÍ
EPA-CSMEͨÐŵ÷¶È¹ÜÀíʵÌåÖ§³Ö£ºÍêÈ«»ùÓÚCSMA/CDµÄ×ÔÓɾºÕùµÄͨÐŵ÷¶ÈºÍ»ùÓÚ·Öʱ·¢Ë͵ÄÈ·¶¨ÐÔͨÐŵ÷¶È¡£¶ÔÓÚµÚÒ»ÖÖͨÐŵ÷¶È£¬EPA-CSMEÖ±½Ó´«ÊäDLEÓëDLS-UserÖ®¼ä½»»¥µÄÊý¾Ý£¬¶ø²»×÷Èκλº´æºÍ´¦Àí¡£¶ÔÓÚµÚ¶þÖÖͨÐŵ÷¶È£¬Ã¿¸öEPAÉ豸ÖеÄEPA-CSME½«DLS-Use DATA¸ù¾ÝÊÂÏÈ×é̬ºÃµÄ¿ØÖÆʱÐòºÍÓÅÏȼ¶´óС£¬´«Ë͸øDLE£¬ÓÉDLE´¦Àíºóͨ¹ýPhLE·¢Ë͵½ÍøÂ磬ÒÔ±ÜÃâÁ½¸öÉ豸ÔÚͬһʱ¿ÌÏòÍøÂçÉÏͬʱ·¢ËÍÊý¾Ý£¬±ÜÃⱨÎÄÅöײ¡£ÏÂÃæ½éÉÜEPAͨÐŵ÷¶ÈµÄ¾ßÌå¹æ³Ì¡£
ÔÚÒ»¸öEPA΢Íø¶ÎÄÚ£¬ËùÓÐEPAÉ豸µÄͨОù°´ÖÜÆÚ½øÐУ¬Íê³ÉÒ»¸öͨÐÅÖÜÆÚËùÐèµÄʱ¼äT³ÆΪһ¸öͨÐźêÖÜÆÚ¡£Í¨ÐźêÖÜÆÚT·ÖΪÁ½¸ö½×¶Î£¬µÚÒ»¸ö½×¶ÎΪÖÜÆÚ±¨ÎÄ´«Êä½×¶ÎTp£¬µÚ¶þ¸ö½×¶ÎΪ·ÇÖÜÆÚ±¨ÎÄ´«Êä½×¶ÎTn£¬Èçͼ4Ëùʾ¡£
ͼ4 EPAͨÐŵ÷¶ÈʾÒâͼ
ÔÚÖÜÆÚ±¨ÎÄ´«Êä½×¶ÎTp£¬Ã¿¸öEPAÉ豸ÏòÍøÂçÉÏ·¢Ë͵ı¨ÎÄÊÇ°üº¬ÖÜÆÚÊý¾ÝµÄ±¨ÎÄ¡£ÖÜÆÚÊý¾ÝÊÇÖ¸Óë¹ý³ÌÓйصÄÊý¾Ý£¬ÈçÐèÒª°´¿ØÖƻطµÄ¿ØÖÆÖÜÆÚ´«ÊäµÄ²âÁ¿Öµ¡¢¿ØÖÆÖµ£¬»ò¹¦ÄÜ¿éÊäÈë¡¢Êä³öÖ®¼äÐèÒª°´ÖÜÆÚ¸üеÄÊý¾Ý¡£ÖÜÆÚ±¨Îĵķ¢ËÍÓÅÏȼ¶Ó¦Îª×î¸ß¡£
ÔÚ·ÇÖÜÆÚ±¨ÎÄ´«Êä½×¶ÎTn£¬Ã¿¸öEPAÉ豸ÏòÍøÂçÉÏ·¢Ë͵ı¨ÎÄ°üº¬·ÇÖÜÆÚÊý¾ÝµÄ±¨ÎÄ¡£·ÇÖÜÆÚÊý¾ÝÊÇÖ¸ÓÃÓÚÒÔ·ÇÖÜÆÚ·½Ê½ÔÚÁ½¸öͨÐÅ»ï°é¼ä´«ÊäµÄÊý¾Ý£¬Èç³ÌÐòµÄÉÏÏÂÔØÊý¾Ý¡¢±äÁ¿¶ÁдÊý¾Ý¡¢Ê¼þ֪ͨ¡¢Ç÷ÊƱ¨¸æµÈÊý¾Ý£¬ÒÔ¼°ÖîÈçARP¡¢RARP¡¢HTTP¡¢FTP¡¢TFTP¡¢ICHP¡¢IGMPµÈÓ¦ÓÃÊý¾Ý¡£·ÇÖÜÆÚ±¨ÎÄ°´ÆäÓÅÏȼ¶¸ßµÍ¡¢IPµØÖ·´óС¼°Ê±¼äÓÐЧ·½Ê½·¢ËÍ¡£
EPAʵʱÒÔÌ«Íø±ê×¼¶¨ÒåÁË»ùÓÚISO/IEC 8802.3¡¢RFC 791¡¢RFC 768ºÍRFC 793µÈÐÒéµÄEPAϵͳ½á¹¹¡¢Êý¾ÝÁ´Â·²ãÐÒé¡¢Ó¦Óòã·þÎñ¶¨ÒåÓëÐÒé¹æ·¶£¬ÒÔ¼°»ùÓÚXMLµÄÉ豸ÃèÊö¹æ·¶¡£¸Ã¹æ·¶ÃæÏò¿ØÖƹ¤³ÌʦµÄÓ¦ÓÃʵ¼Ê£¬Ôڹؼü¼¼Êõ¹¥¹ØµÄ»ù´¡ÉÏ£¬½áºÏ¹¤³ÌÓ¦ÓÃʵ¼ù£¬ÐγÉÁË΢Íø¶Î»¯ÏµÍ³½á¹¹¡¢È·¶¨ÐÔͨÐŵ÷¶È¡¢×ÜÏß¹©µç¡¢·Ö²ãÍøÂ簲ȫ¿ØÖƲßÂÔ¡¢ÈßÓà¹ÜÀí¡¢Èý¼¶Ê½Á´Â··ÃÎʹØϵ¡¢»ùÓÚXMLµÄÉ豸ÃèÊöÓïÑԵȷ½ÃæµÄÌØÉ«£¬²¢ÓµÓÐÍêÈ«µÄ×ÔÖ÷֪ʶ²úȨ¡£Ä¿Ç°£¬EPAÒÑÓжàÖÖ²úÆ·£¬°üÀ¨»ùÓÚEPAµÄ±äËÍÆ÷¡¢Ö´ÐÐÆ÷¡¢ÏÖ³¡¿ØÖÆÆ÷¡¢Êý¾Ý²É¼¯Æ÷¡¢Ô¶³Ì·ÖÉ¢¿ØÖÆÕ¾¡¢ÎÞÖ½¼Ç¼ÒǵȲúÆ·£¬»ùÓÚEPAµÄ·Ö²¼Ê½ÍøÂç¿ØÖÆϵͳÒÑÔÚ»¯¹¤³§µÃµ½³É¹¦Ó¦Óá£
3.2 Ethernet/IPʵʱÒÔÌ«Íø
Ethernet/IPʵʱÒÔÌ«Íø¼¼ÊõÓÉControlNet¹ú¼Ê×éÖ¯CI¡¢¹¤ÒµÒÔÌ«ÍøлáIEAºÍ¿ª·ÅµÄDeviceNet¹©Ó¦ÉÌлáODVAµÈ¹²Í¬¿ª·¢µÄ¹¤ÒµÍøÂç±ê×¼¡£
Ethernet/IPʵʱÀ©Õ¹³É¹¦Ö®´¦ÔÚÓÚTCP/IPÖ®Éϸ½¼ÓCIP£¨Common Industrial Protocol£©£¬ÔÚÓ¦Óòã½øÐÐʵ½øÊý¾Ý½»»»ºÍÔËÐÐʵʱӦÓã¬ÆäͨÐÅÐÒéÄ£ÐÍÈçͼ5Ëùʾ¡£
ͼ5 Ethernet/IPͨÐÅÐÒéÄ£ÐÍ
CIPµÄ¿ØÖƲ¿·ÖÓÃÓÚʵʱI/O±¨ÎÄ»òÒþÐα¨ÎÄ¡£CIPµÄÐÅÏ¢²¿·ÖÓÃÓÚ±¨ÎĽ»»»£¬Ò²³Æ×÷ÏÔÐÔ±¨ÎÄ¡£ControlNet¡¢DeviceNetºÍEthernet/IP¶¼Ê¹ÓøÃÐÒéͨÐÅ£¬ÈýÖÖÍøÂç·ÖÏíÏàͬµÄ¶ÔÏó¿â£¬¶ÔÏóºÍ×°ÖÃÐйæʹµÃ¶à¸ö¹©Ó¦É̵Ä×°ÖÃÄÜÔÚÉÏÊöÈýÖÖÍøÂçÖÐʵÏÖ¼´²å¼´Óá£Ethernet/IPÄܹ»ÓÃÓÚ´¦Àí¶à´ïÿ¸ö°ü1 500¸ö×ֽڵĴóÅúÁ¿Êý¾Ý£¬ËüÒÔ¿ÉÓ豨·½Ê½¹ÜÀí´óÅúÁ¿Êý¾Ý¡£
2003ÄêODVA×éÖ¯½«IEEE 1588¾«È·Ê±¼äͬ²½ÐÒéÓÃÓÚEthernet/IP£¬Öƶ¨ÁËCIPsync±ê×¼ÒÔ½øÒ»²½Ìá¸ßEthernet/IPµÄʵʱÐÔ¡£¸Ã±ê×¼ÒªÇóÿÃëÖÓÓÉÖ÷¿ØÖÆÆ÷¹ã²¥Ò»¸öͬ²½»¯Ðźŵ½ÍøÂçÉϵĸ÷¸ö½Úµã£¬ÒªÇóËùÓнڵãµÄͬ²½¾«¶È׼ȷµ½Î¢Ã뼶¡£Îª´Ë£¬Ð¾Æ¬ÖÆÔìÉÌÔö¼ÓÒ»¸ö¡°¼ÓËÙ¡±Ïß·µ½ÒÔÌ«ÍøоƬ£¬´Ó¶ø½«ÐÔÄܸÄÉƵ½500ºÁ΢ÃëµÄ¾«¶È¡£Óɴ˿ɼû£¬CIPsyncÊÇCIPµÄʵʱÀ©Õ¹¡£
3.3 Modbus-IDAʵʱÒÔÌ«Íø
Modbus×éÖ¯ºÍIDA£¨Interface for Distributed Automation£©¼¯ÍŶ¼ÖÂÁ¦ÓÚ½¨Á¢»ùÓÚEthernet TCP/IPºÍWeb»¥Á¬Íø¼¼ÊõµÄ·Ö²¼Ê½ÖÇÄÜ×Ô¶¯»¯ÏµÍ³£¬ÎªÁËÌá¸ß¾ºÕùÁ¦£¬2003Äê10Ô£¬Á½¸ö×éÖ¯Ðû²¼ºÏ²¢£¬ÁªÊÖ¿ª·¢Modbus-IDAʵʱÒÔÌ«Íø¡£
ͼ6 Modbus-IDAͨÐÅÐÒéÄ£ÐÍ
Modbus-IDAʵʱÀ©Õ¹µÄ·½°¸ÊÇΪÒÔÌ«Íø½¨Á¢Ò»¸öеÄʵʱͨÐÅÓ¦Óò㣬²ÉÓÃÒ»ÖÖеÄͨÐÅÐÒéRTPS£¨Real-Time Publish/Subscribe£©ÊµÏÖʵʱͨÐÅ£¬¸ÃÐÒéµÄʵÏÖÔòÓÉÒ»¸öÖмä¼þÀ´Íê³É¡£Modbus-IDAͨÐÅÐÒéÄ£ÐÍÈçͼ6Ëùʾ£¬¸ÃÄ£Ðͽ¨Á¢ÔÚÃæÏò¶ÔÏóµÄ»ù´¡ÉÏ£¬ÕâЩ¶ÔÏó¿ÉÒÔͨ¹ýAPIÓ¦ÓóÌÐò½Ó¿Ú±»Ó¦Óòãµ÷Óá£Í¨ÐÅÐÒéͬʱÌṩʵʱ·þÎñºÍ·Çʵʱ·þÎñ¡£·ÇʵʱͨÐÅ»ùÓÚTCP/IPÐÒ飬³ä·Ö²ÉÓÃIT³ÉÊì¼¼Êõ£¬Èç»ùÓÚÍøÒ³µÄÕï¶ÏºÍÅäÖã¨HTTP£©¡¢Îļþ´«Ê䣨FTP£©¡¢ÍøÂç¹ÜÀí£¨SNMP£©¡¢µØÖ·¹ÜÀí£¨BOOTP/DHCP£©ºÍÓʼþ֪ͨ£¨SMTP£©µÈ£»ÊµÊ±Í¨ÐÅ·þÎñ½¨Á¢ÔÚRTPSʵʱ·¢²¼Õß/Ô¤¶©ÕßģʽºÍModbusÐÒéÖ®ÉÏ¡£RTPSÐÒé¼°ÆäÓ¦ÓóÌÐò½Ó¿Ú£¨API£©ÓÉÒ»¸ö¶Ô¸÷ÖÖÉ豸¶¼Ò»ÖµÄÖмä¼þÀ´ÊµÏÖ£¬Ëü²ÉÓÃÃÀ¹úRTI£¨Real-Time Innovations£©¹«Ë¾µÄNDDS 3.0£¨Network Data Delivery Service£©ÊµÊ±Í¨ÐÅϵͳ¡£RTPS½¨Á¢ÔÚPubilsh/Subscribeģʽ»ù´¡ÉÏ£¬²¢½øÐÐÁËÀ©Õ¹£¬Ôö¼ÓÁËÉèÖÃÊý¾Ý·¢ËͽØֹʱ¼ä¡¢¿ØÖÆÊý¾ÝÁ÷ËÙÂʺÍʹÓöàÖ·¹ã²¥µÈ¹¦ÄÜ¡£Ëü¿ÉÒÔ¼ò»¯ÎªÒ»¸öÊý¾Ý·¢ËÍÕߺͶà¸öÊý¾Ý½ÓÊÕÕßÖ®¼äͨÐűà³ÌµÄ¹¤×÷£¬¼«´óµØ¼õÇáÍøÂçµÄ¸ººÉ¡£RTPS¹¹½¨ÔÚUDPÐÒéÖ®ÉÏ£¬ModbusÐÒé¹¹½¨ÔÚTCPÐÒéÖ®ÉÏ¡£
3.4 PROFINETʵʱ¹¤ÒµÒÔÌ«Íø
PROFINETʵʱ¹¤ÒµÒÔÌ«ÍøÊÇÓÉProfibus International£¨PI£©×éÖ¯Ìá³öµÄ»ùÓÚÒÔÌ«ÍøµÄ×Ô¶¯»¯±ê×¼¡£´Ó2004Ä꿪ʼ£¬PIÓëInterbus Club£¨Interbus×ÜÏß¾ãÀÖ²¿£©ÁªÊÖ£¬¸ºÔðºÏ×÷¿ª·¢ÓëÖƶ¨±ê×¼¡£PROFINET¹¹³É´ÓI/O¼¶Ö±ÖÁе÷¹ÜÀí¼¶µÄ»ùÓÚ×é¼þµÄ·Ö²¼Ê½×Ô¶¯»¯ÏµÍ³µÄÌåϵ½á¹¹·½°¸£¬PROFIBUS¼¼ÊõºÍINTERBUSÏÖ³¡×ÜÏß¼¼Êõ¿ÉÒÔÔÚÕû¸öϵͳÖÐÎÞ·ìµØ¼¯³É¡£
PROFINETÒÑÓÐÈý¸ö°æ±¾£¬ÔÚÕâЩ°æ±¾ÖУ¬PROFINETÌá³öÁ˶ÔIEEE 802.1DºÍIEEE 1588½øÐÐʵʱÀ©Õ¹µÄ¼¼Êõ·½°¸£¬²¢¶Ô²»Í¬ÊµÊ±ÒªÇóµÄÐÅÏ¢²ÉÓò»Í¬µÄʵʱͨµÀ¼¼Êõ¡£PROFINETͨÐÅÐÒéÄ£ÐÍÈçͼ7Ëùʾ¡£
ͼ7 PROFINETͨÐÅÐÒéÄ£ÐÍ
´Óͼ7ÖпÉÒÔ¿´³ö£¬PROFINETÌṩһ¸ö±ê׼ͨÐÅͨµÀºÍÁ½ÀàʵʱͨÐÅͨµÀ¡£±ê׼ͨµÀÊÇʹÓÃTCP/IPÐÒéµÄ·ÇʵʱͨÐÅͨµÀ£¬Ö÷ÒªÓÃÓÚÉ豸²ÎÊý»¯¡¢×é̬ºÍ¶ÁÈ¡Õï¶ÏÊý¾Ý¡£ÊµÊ±Í¨µÀRTÊÇÈíʵʱSRT£¨Software RT£©·½°¸£¬Ö÷ÒªÓÃÓÚ¹ý³ÌÊý¾ÝµÄ¸ßÐÔÄÜÑ»·´«Ê䡢ʼþ¿ØÖƵÄÐźÅÓ뱨¾¯Ðźŵȡ£ËüÅÔ·µÚÈý²ãºÍµÚËIJ㣬Ìṩ¾«È·Í¨ÐÅÄÜÁ¦¡£ÎªÓÅ»¯Í¨ÐŹ¦ÄÜ£¬PROFINET¸ù¾ÝIEEE 802.1p¶¨ÒåÁ˱¨ÎĵÄÓÅÏȼ¶£¬×î¶à¿ÉÓÃ7¼¶¡£ÊµÊ±Í¨µÀIRT²ÉÓÃÁËIRT£¨Isochronous Real-Time£©µÈʱͬ²½ÊµÊ±µÄASICоƬ½â¾ö·½°¸£¬ÒÔ½øÒ»²½Ëõ¶ÌͨÐÅÕ»Èí¼þµÄ´¦Àíʱ¼ä£¬ÌرðÊÊÓÃÓÚ¸ßÐÔÄÜ´«Êä¡¢¹ý³ÌÊý¾ÝµÄµÈʱͬ²½´«Êä¡¢ÒÔ¼°¿ìËÙµÄʱÖÓͬ²½Ô˶¯¿ØÖÆÓ¦Óã¬ÔÚ1msʱ¼äÖÜÆÚÄÚ£¬ÊµÏÖ¶Ô100¶à¸öÖáµÄ¿ØÖÆ£¬¶ø¶¶¶¯²»×ã1¦Ìs¡£
3.5 Ethernet PowerLinkʵʱÒÔÌ«Íø
Ethernet PowerLinkÓɰµØÀûB&R¹«Ë¾ÓÚ2001Ä꿪·¢£¬²¢ÔÚ2002Äê³ÉÁ¢ÁËEPSG£¨Ethernet PowerLink Standardigation Group£©×éÖ¯¡£EPSGµÄÕ½ÂÔ»ï°éÓÐCIA/CANOpen£¬ÕâÊÇÉ豸¼¶Í¨ÐÅÐÒéºÍÐйæµÄÓû§¼¯ÍÅÒÔ¼°IAONA¹¤Òµ×Ô¶¯»¯¿ª·ÅÍøÂçÌåϵ½á¹¹¼¯Íŵȡ£
PowerLinkÐÒé¶ÔµÚ3ºÍµÚ4²ãµÄTCP/UDP/IPÕ»½øÐÐÁËʵʱÀ©Õ¹¡£Ôö¼ÓµÄ»ùÓÚTCP/IPµÄAsyncÖмä¼þÓÃÓÚÒì²½Êý¾Ý´«Ê䣬IsochronµÈʱÖмä¼þÓÃÓÚ¿ìËÙ¡¢ÖÜÆÚµÄÊý¾Ý´«Êä¡£PowerLinkͨÐÅÐÒéÄ£ÐÍÈçͼ8Ëùʾ¡£
ͼ8 PowerLinkͨÐÅÐÒéÄ£ÐÍ
´Óͼ8¿É¿´³ö£¬ PowerLinkÕ»¿ØÖÆ×ÅÍøÂçÉϵÄÊý¾ÝÁ÷Á¿¡£Ethernet PowerLink±ÜÃâÍøÂçÉÏÊý¾Ý³åÍ»µÄ·½·¨ÊDzÉÓÃSCNM£¨Slot Communication Network Management£©Ê±¼äƬͨÐÅÍøÂç¹ÜÀí»úÖÆ¡£SCNMÄܹ»×öµ½ÎÞ³åÍ»µÄÊý¾Ý´«Ê䣬רÓõÄʱ¼äƬÓÃÓÚµ÷¶ÈµÄµÈʱͬ²½´«Ë͵ÄʵʱÊý¾Ý£»¹²ÏíµÄʱ¼äƬÓÃÓÚÒì²½µÄÊý¾Ý´«Êä¡£ÔÚÍøÂçÉÏ£¬Ö»ÄÜÖ¸¶¨Ò»¸öվΪ¹ÜÀíÕ¾£¬ËüΪËùÓÐÍøÂçÉϵÄÆäËüÕ¾½¨Á¢Ò»¸öÅäÖñíºÍ·ÖÅäµÄʱ¼äƬ£¬Ö»ÓйÜÀíÕ¾ÄܽÓÊպͷ¢ËÍÊý¾Ý£¬ÆäËüÕ¾Ö»ÓÐÔÚ¹ÜÀíÕ¾ÊÚȨϲÅÄÜ·¢ËÍÊý¾Ý¡£Îª´ËPowerLinkÐèÒª²ÉÓûùÓÚIEEE 1588µÄʱ¼äͬ²½¡£
3.6 EtherCATʵʱÒÔÌ«Íø
EtherCAT£¨Ethernet for Control Automation Technology£©Óɵ¹úBeckhoff¹«Ë¾¿ª·¢£¬²¢µÃµ½ETG£¨EtherCAT Technolgy Group£©×éÖ¯µÄÖ§³Ö¡£EtherCATÊÇÒ»¸ö¿ÉÓÃÓÚÏÖ³¡¼¶µÄ³¬¸ßËÙI/OÍøÂ磬ËüʹÓñê×¼µÄÒÔÌ«ÍøÎïÀí²ãºÍ³£¹æµÄÒÔÌ«Íø¿¨£¬Ã½Ìå¿ÉΪ˫½ÊÏß»ò¹âÏË¡£
Ethernet¼¼ÊõÓÃÓÚÏÖ³¡¼¶µÄ×î´óÎÊÌâÊÇͨÐÅЧÂʵͣ¬ÓÃÓÚ´«ËÍÏÖ³¡Êý¾ÝµÄEthernetÖ¡×î¶ÌΪ84×Ö½Ú£¨°üÀ¨·Ö×é¼ä϶IPG£©¡£°´ÕÕÀíÂÛ¼ÆËãÖµ£¬ÒÔÌ«ÍøµÄͨÐÅЧÂʽöΪ0.77%£¬InterbusÏÖ³¡×ÜÏßµÄͨÐÅЧÂʸߴï52%¡£ÓÚÊÇ£¬EtherCAT²ÉÓÃÁËÀàËÆInterbus¼¼ÊõµÄ¼¯×ÜÖ¡µÈʱͨÐŵÄÔÀí£¬Èçͼ9Ëùʾ¡£EtherCAT¿ª·¢ÁËרÓÃASICоƬFMMU£¨Fieldbus Memory Management Unit£©ÓÃÓÚI/OÄ£¿é£¬ ÕâÑùÒ»À´£¬EtherCAT¿É²ÉÓñê×¼ÒÔÌ«ÍøÖ¡£¬²¢ÒÔÌض¨µÄ»·×´ÍØÆÓ·¢ËÍÊý¾Ý£¬ÔÚFMMUÏÖ³¡×ÜÏß´æ´¢Æ÷¹ÜÀíµ¥ÔªµÄ¿ØÖÆÏ£¬ÍøÂçÉϵÄÿ¸öÕ¾£¨»òI/Oµ¥Ôª£©¾ù´ÓÒÔÌ«ÍøÖ¡ÉÏÈ¡×ßÓë¸ÃÕ¾ÓйصÄÊý¾Ý£¬»òÕß²åÈë¸ÃÕ¾ÒªÊä³öµÄÊý¾Ý¡£EtherCAT»¹Í¨¹ýÄÚ²¿ÓÅÏȼ¶ÏµÍ³£¬Ê¹ÊµÊ±ÒÔÌ«ÍøÖ¡±ÈÆäËüÊý¾ÝÖ¡ÓнϸߵÄÓÅÏȼ¶¡£×é̬Êý¾ÝÖ»ÔÚʵʱÊý¾ÝµÄ´«Êä¼ä϶Æڼ䴫ËÍ»òͨ¹ýרÓÃͨµÀ´«ËÍ¡£EtherCAT²ÉÓÃIEEE 1588ʱ¼äͬ²½»úÖÆʵÏÖ·Ö²¼Ê½Ê±ÖÓ¾«È·Í¬²½¡£´Ó¶øʹEtherCAT¿ÉÒÔÔÚ30¦ÌsÄÚ´¦Àí1 000¸ö¿ª¹ØÁ¿£¬»òÔÚ50¦ÌsÄÚ´¦Àí200¸ö16λģÄâÁ¿£¬ÆäͨÐÅÄÜÁ¦¿ÉÒÔʹ100¸öËÅ·þÖáµÄ¿ØÖÆ¡¢Î»ÖúÍ״̬Êý¾ÝÔÚ100¦ÌsÄÚ¸üС£
ͼ9 EtherCAT¼¯×ÜÖ¡µÈʱͨÐÅ