Ö§³ÖÖÐÐÄ
USR-M100 Á¬½ÓmodbusTCPÉ豸Éϱ¨TCP·þÎñÆ÷
2023-12-05



Ò»¡¢×ÊÁÏÏÂÔØ

USR-M100˵Ã÷Ê飺/Download/1202.html

ÉèÖÃÈí¼þ£º/Download/1213.html

¶þ¡¢×¼±¸¹¤×÷

M100ÊýÁ¿Ò»Ì¨

ÍøÏß 1¸ù

µçÔ´ÊÊÅäÆ÷ ÊýÁ¿Ò»¸ö

Èý¡¢ÅäÖùý³Ì

1.M100ÅäÖÃ

£¨1£©M100Íø¿Úͨ¹ýÍøÏßÖ±Á¬µçÄÔÍø¿Ú£¬¸øM100ÓÃ12VµçÔ´ÊÊÅäÆ÷¹©µç¡£

£¨2£©µçÄԹرշÀ»ðǽºÍɱ¶¾Èí¼þ£º¿ØÖÆÃæ°å--ϵͳºÍ°²È«--Windows Defender ·À»ðǽ--¹Ø±Õ·À»ðǽ

£¨3£©µçÄÔ£º¿ØÖÆÃæ°å--ÍøÂçºÍ Internet--ÍøÂçÁ¬½Ó£¬IPÉèÖúÍM100 IPͬÍø¶Î£¬M100ĬÈÏIPÊÇ192.168.0.7£¬Íø¹Ø192.168.0.1£¬½«µçÄÔ±¾µØÁ¬½ÓIPv4ÉèÖþ²Ì¬IP£¬192.168.0.201£¬×ÓÍøÑÚÂë255.255.255.0£¬Íø¹Ø192.168.0.1¡£

£¨4£©ÏÂÔز¢´ò¿ªÏµÁÐÉèÖÃÈí¼þ£ºÓÃÅäÖÃÈí¼þËÑË÷M100É豸£¬µ¥»÷ËÑË÷£¬ËÑËѵ½É豸ºóË«»÷É豸¡£

£¨5£©µÇ¼£ºÊäÈë¿Í‘ôÃûadminºÍÃÜÂëadmin£¬µã»÷È·¶¨£¬ÓÒ²àÏÔʾM100²ÎÊýÉèÖÃÒ³Ãæ¡£
M100Íø¿Ú¿ÉÒÔºÍPCÁ´½Óͬһ¸öÉϼ¶Â·ÓÉ£¬ÔÚͬÍø¶ÎʹÓÃMXXÈí¼þËÑË÷É豸£¨´Ë°¸ÀýM100ºÍPCÁ´½Óͬһ·ÓÉÆ÷²âÊÔ£©
2.ÅäÖÃÁ´½Ó·þÎñÆ÷
±¾°¸Àý²âÊÔ·þÎñÆ÷ΪÎÒ˾ TCP·þÎñÆ÷²âÊÔ,¿Í‘ô²âÊÔʱÇëÔÚ¡°¶Ë¿Ú¡±>¡°´®¿Ú1¡± >¡° Socket¡±½çÃæÅäÖÃ×Ô¼ºTCP·þÎñÆ÷µÄ²ÎÊý¡£

±£´æ&Ó¦Óà > ¼ÌÐøÅäÖá£

3¡¢ÅäÖñßÔµ¼ÆËã²É¼¯Éϱ¨¹¦ÄÜ

ÔÚ¡°Íø¹Ø¡±-¡°±ßÔµ¼ÆË㡱½çÃæÖпªÆôÍø¹ØʹÄÜ£¬µã»÷¡°ÏÂÒ»²½¡±ÔÚ¡°Êý¾Ý²É¼¯½çÃ桱ÅäÖÃmodbusTCPµÄÊý¾Ýµã¡£


4.Ìí¼ÓmodbusTCP´Ó»ú
É豸Ãû³Æ:´Ó»úÃû³Æ£¬¿É×Ô¶¨Ò壬²»¿ÉΪÖÐÎÄ£¬´Ó»úÃû²»¿ÉÖظ´¡£

Êý¾ÝÀ´Ô´£ºETHERNET PORT¡£

µã»÷¡°±£´æ¡±¡£

ÅäÖôӻúµã루°¸ÀýÖÐʹÓÃmodbus SLAVEÈí¼þģʽ£©¸ù¾Ýʵ¼ÊµãλÌîд¹¦ÄÜÂë¡¢¼Ä´æÆ÷µØÖ·¡¢Êý¾Ý¸ñʽ

5.ÅäÖÃÊý¾ÝÉϱ¨

ͨµÀÑ¡Ôñ¡°Socket1¡±£»

Êý¾ÝÉϱ¨Ñ¡Ôñ¡°¿ªÆô¡±£¬Éϱ¨ÖÜÆÚ:5s(×Ô¶¨Òå)£»

Éϱ¨Ð­ÒéÅäÖãº
JsonÄ£°å˵Ã÷{"×Ô¶¨Òå˵Ã÷1":"ÒªÏÔʾµÄ¼Ä´æÆ÷Ãû³Æ1",...."×Ô¶¨Òå˵Ã÷N":"ÒªÏÔʾµÄ¼Ä´æÆ÷Ãû³ÆN"}

±£´æ²ÎÊý----É豸ÖØÆô

6.Êý¾Ý²âÊÔ
È·±£½«M100Íø¿Ú½Óµ½¿ÉÒÔÁ¬½Ó·þÎñÆ÷µÄÍøÂç¡£

·þÎñÆ÷¿ÉÒÔ½ÓÊÕµ½É豸Éϱ¨µÄjsonÊý¾Ý¡£


׫дÈË£ºliuyanwei



¹Ø×¢galaxyÒøºÓ¹ú¼Ê΢ÐŹ«ÖÚºÅ
Á˽â¸ü¶àÐÅÏ¢

sitemap¡¢µØͼ