
1. ÏÂÔØÉèÖÃÈí¼þºÍ˵Ã÷Êé
ÉèÖÃÈí¼þ£ºhttp://www.usr.cn/Download/537.html
˵Ã÷Êé: http://www.usr.cn/Download/439.html
Èí¼þÉè¼ÆÊֲ᣺http://www.usr.cn/Download/440.html
2. ²âÊÔ
(1) Ó²¼þÁ¬½Ó: G781µÄ´®¿Úͨ¹ýUSBתRS232/485½Óµ½PCÉÏ£¬LAN¿Úͨ¹ýÍøÏßÁ´½Óµ½µçÄÔµÄÍø¿ÚÉÏ£¬ÓÃÎÒ˾ÌṩµÄÊÊÅäÆ÷¹©µç¡£
±¾´ÎͨÐŲâÊÔ£º
ʵ¼ÊÓ¦Óãº
(2) ָʾµÆ״̬£º
PowerÁÁÆð£ºËµÃ÷¹©µçÕý³£
WorkÉÁ˸£ºËµÃ÷¹Ì¼þÆô¶¯Õý³££¬»ù±¾¿ÉÒԶ϶¨4GÄ£¿éûÓÐÎÊÌâ
linkaÁÁÆð£ºËµÃ÷³É¹¦Á¬½ÓA··þÎñÆ÷
£¨3£©´ò¿ªÍøÂç¹²ÏíÖÐÐÄ£¬Ë«»÷¶ÔÓ¦µÄÍøÂçÊÊÅäÆ÷£¬µã»÷ÊôÐÔ£¬Ñ¡ÔñIPV4£¬µã»÷ÊôÐÔ£¬Ð޸ĵçÄÔΪ×Ô¶¯»ñÈ¡IP£¬È»ºóµã»÷È·¶¨¡££¨Èç¹ûµçÄÔ±¾À´¾ÍÊÇ×Ô¶¯»ñÈ¡IP£¬ÕâÒ»²½¿ÉÒÔÌø¹ý£©µã»÷ÏêϸÐÅÏ¢¿ÉÒԲ鿴µ½µçÄÔ»ñÈ¡µÄIPµØÖ·£º
£¨4£©½øÈëÅäÖÃÍøÒ³
Èç»·½Ú2Ëùʾ£¬PC»ñÈ¡µ½IP192.168.1.1£¬IPV4 ĬÈÏÍø¹Ø192.168.1.1¼´G781µÄLAN¿ÚIP¡£´ò¿ªä¯ÀÀÆ÷£¬ÔÚµØÖ·À¸ÊäÈë192.168.1.1ºó»Ø³µ£¬µ¯³öµÇ¼½çÃ棬Ìîд¿Í‘ôÃûÃÜÂ루³ö³§Ä¬È϶¼ÊÇadmin£©µã»÷È·ÈÏ£¬¼´¿É½øÈëÅäÖÃÍøÒ³¡£
×¢Ò⣺
ÈôÍøÒ³Ìáʾ404±¨´í»òÎÞ·¨·ÃÎÊ£¬¿ÉÒÔ³¢ÊÔ»»¸öä¯ÀÀÆ÷ÊÔÊÔ£¬Èç¹È¸è¡¢QQä¯ÀÀÆ÷
£¨5£©µã»÷×ó²àµÄ͸´«¡ª¡ª>ÍøÂç²ÎÊý£¬ÔÚÒ³ÃæÖеã»÷ģʽѡÔñ£¬ÔÚÀàÐÍÑ¡ÔñÖÐÑ¡ÔñMODBUS£¬È»ºóµã»÷±£´æ¡£¾ßÌå²Ù×÷»·½ÚÈçÏÂͼºìÉ«Êý×ÖËùʾ£º
£¨6£©È»ºóµã»÷SOCKETA°´Å¥£¬ÔÚÏàÓ¦¿òÄÚÌîÈëÏÂͼÖеÄÐÅÏ¢£¬ÈôÐÅÏ¢ÏàͬÔò²»ÐèÒªÐ޸ģ¬ÌîÍêÖ®ºóÑ¡Ôñ±£´æ¡£¾ßÌå²Ù×÷»·½ÚÈçÏÂͼºìÉ«Êý×ÖËùʾ£º
£¨7£©´ò¿ªmodbus slaveÈí¼þ£¬µã»÷Connection°´¼ü£¬Ôڲ˵¥ÖÐÑ¡ÔñConnect£¬µã»÷£¬³öÏÖÈçÏÂÑ¡Ôñ¿ò£¬°´ÕÕÏÂͼ½øÐÐÑ¡Ôñ¡£ConnectionÒ»À¸Ñ¡Ôñserial port,´®¿Ú²ÎÊýÅäÖóɺÍ781µÄ´®¿Ú²ÎÊýÏàͬ£¬modeÑ¡ÔñRTU£¬È»ºóµã»÷ok¡£
£¨8£©´ò¿ªmodbus pollÈí¼þ£¬µã»÷Connection°´¼ü£¬ÔÚÑ¡Ôñ¿òµÄConnectionÏÂÑ¡ÔñModbus TCP/IP·½Ê½£¬ipµØÖ·Óë¶Ë¿ÚÉèÖóɺÍ781ÏàͬµÄµØÖ·£¬¶Ë¿Ú£¬µã»÷ok
£¨9£©´ÓÖÐÈí¼þÐÞ¸ÄÊý¾Ý£¬Ë«»÷Êý¾Ý£¬ÔÚvalue¿òÖн«ÒªÐ޸ĵÄÊý¾ÝдÈ룬µã»÷ok¼´¿É½øÐÐÐ޸ġ££¨slaveºÍpollÈí¼þÖоù¿É½øÐÐÐ޸ģ©
£¨10£©¹Û²ìÁ½¸öÈí¼þµÄÊý¾Ý£¬ÐÞ¸ÄslaveÖеÄÊý¾Ý£¬pollÖеÄÏàÓ¦Êý¾Ý¸Ä±ä¡£ÐÞ¸ÄpollÖеÄÊý¾Ý£¬slaveÖеÄÏàÓ¦Êý¾Ý¸Ä±ä¡£Í¨Ðųɹ¦