Ö§³ÖÖÐÐÄ
USR-N510-MODBUS£¨M4£© Íø¹Øģʽ(¶àÖ÷»ú¶ÔÓ¦¶à´Ó»ú£©²âÊÔ
2020-03-23


http://www.usr.cn/Down/USR-N510-software-V1.0.3.pdf

µÚ32Ò³ MODBUSÍø¹ØÉèÖÃ

http://www.usr.cn/Down/USR-N510_V1.0.9.pdf

µÚ12Ò³²¦Â뿪¹Ø

µÚ13Ò³´®¿ÚÒý½Å¶¨Òå

 

Ò»¡¢µ÷ÊÔ·½·¨×¼±¸¹¤×÷£º

USR-N510ʹÓÃÖ±Á÷µçÔ´ÊÊÅäÆ÷12V¹©µç¡£

USR-N510 ÓÃUSB-RS485´®¿ÚÏß½ÓµçÄÔºÍUSR-N510¡£

USR-N510²¦Â뿪¹Ø¶¼³¯ÉÏ£¬ÊÇ485´®¿Ú¹¦ÄÜ¡£

USR-N510Íø¿ÚÓÃÍøÏßÁ¬½ÓµçÄÔÍø¿Ú£¬µçÄÔIPºÍUSR-N510µÄIPÉèÖÃͬһÍø¶Î¡£

£¨»òÕßUSR-N510Íø¿ÚÓÃÍøÏß½Ó·ÓÉÆ÷£¬µçÄÔÒ²Á¬½Óͬһ¸ö·ÓÉÆ÷¡£USR-N510Óô®¿ÚÉèÖÃÈí¼þÉèÖÃDHCP£¬¶¯Ì¬»ñÈ¡IP£©

¶þ¡¢¾²Ì¬IPʱUSR-N510 ÉèÖÃMODBUS Íø¹Ø£º

1¡¢Ó²¼þÁ¬½Ó£º

USR-N510ʹÓÃÖ±Á÷µçÔ´ÊÊÅäÆ÷12V¹©µç¡£

USR-N510 ÓÃUSB-RS485´®¿ÚÏß½ÓµçÄÔºÍUSR-N510¡£

USR-N510²¦Â뿪¹Ø¶¼³¯ÉÏ£¬ÊÇ485´®¿Ú¹¦ÄÜ¡£

USR-N510Íø¿ÚÓÃÍøÏßÁ¬½ÓµçÄÔÍø¿Ú£¬µçÄÔIPºÍUSR-N510µÄIPÉèÖÃͬһÍø¶Î¡£USR-N510ĬÈÏIPÊÇ192.168.0.7¡£Òò´ËµçÄÔÉèÖþ²Ì¬IP£¬192.168.0.201£¬×ÓÍøÑÚÂë 255.255.255.0£¬Íø¹Ø192.168.1.1¡£

 

2¡¢´®¿Ú²ÎÊýÉèÖãº

ÓÃM4ÉèÖÃÈí¼þËÑË÷USR-N510µÄIP¡£È·ÈÏÊÇ192.168.0.7

 

 

3¡¢ÍøÒ³²ÎÊýÉèÖãº

ÔÚµçÄÔ´ò¿ªä¯ÀÀÆ÷£¬ÊäÈ뾲̬IP192.168.0.7 µÇ¼USR-N510µÄÄÚÖÃÍøÒ³¡£

µÇ¼¿Í‘ôÃûÊÇadmin£¬ÃÜÂëÊÇadmin¡£

ÍøÒ³¼ì²é´®¿Ú²ÎÊý£¬¹¤×÷·½Ê½ÉèÖÃTCP serverModbusTCP£¬±¾µØ¶Ë¿ÚºÅĬÈÏÊÇ8899£¬Modbus TCPÂÖѯĬÈÏÊǹرգ¬ÐèÒª¹´Ñ¡¿ªÆôMODBUS TCPÂÖѯ¡£

ÂÖѯ³¬Ê±Ê±¼äĬÈÏÊÇ200ms,ÐèÒª¸Ä´ó£¬¸Ä³É5000ms¡£

 

 

 

ÖØÆôÖ®ºó£¬Èç¹û³öÏÖ404´íÎóÌáʾ£¬ÖØÐÂË¢ÐÂÍøÒ³¾Í¿ÉÒÔ¡£

 

4¡¢MODBUS SLAVEºÍMODBUS POLLÈí¼þÉèÖãº

Ä£Äâ²âÊÔÓÃMODBUS SLAVEÈí¼þ×ö´®¿ÚÉ豸£¬ÓÃMODBUS POLLÈí¼þ×öÍøÂç¶Ë¡£

MODBUS SLAVEÈí¼þÉèÖô®¿Ú²ÎÊý£¬²¨ÌØÂÊ¡¢Êý¾Ýλ¡¢Í£Ö¹Î»¡¢Ð£Ñé룬ÐèÒªºÍUSR-N510µÄ´®¿Ú²ÎÊýÉèÖÃÒ»Ö¡£

MODBUS POLLÈí¼þÉèÖÃMODBUS TCP/IP¡£IPµØÖ·ÌîUSR-N510µÄIPµØÖ·£¬Server PortÌîUSR-N510µÄ¶Ë¿ÚºÅ8899¡£×¢ÒâMODBUS POLLÈí¼þµÄ3¸öʱ¼ä²ÎÊý£¬ÒÀ´ÎÊÇ

response Timeout 5000ms

Delay between Polls 1000ms

Connect Timeout 3000ms¡£

 

MODBUS SLAVEÈí¼þºÍMODBUS POLLÈí¼þµÄÉ豸ID SLAVE IDÐèÒªÉèÖÃÒ»Ö£¬¼Ä´æÆ÷ÆðʼµØÖ·ºÍ¼Ä´æÆ÷ÊýÁ¿ÉèÖÃÒ»Ö¡£¾ÙÀý£¬ÎÒÓõÄÊÇÆðʼµØÖ·0£¬¼Ä´æÆ÷ÊýÁ¿10¡£ÓõÄÊÇ03¹¦ÄÜÂë¡£

SLAVE ID ÊÇ1¡£±¸×¢£ºMODBUS POLLÈí¼þÓÐЩ°æ±¾£¬ÓÐÒ»¸ö¶ÁдѡÏRead/Write Disabled,ÐèҪȡÏû¹´Ñ¡¡£

 

5¡¢»ù±¾Í¨Ñ¶²âÊÔ£º

MODBUS SLAVEÈí¼þÌí¼Ó4¸öSLAVE ID£¬ÒÀ´ÎÊÇID 1 ID 2 ID 3 ID 4¡£

MODBUS POLLÈí¼þ¶ÔÓ¦Ìí¼Ó4¸öSLAVE ID£¬ÒÀ´ÎÊÇID 1 ID 2 ID 3 ID 4¡£

¸Ä±äÿ¸öMODBUS SLAVEÈí¼þµÄÊý¾Ý£¬¶ÔÓ¦µÄMODBUS POLLÈí¼þ¾Í¿ÉÒԲɼ¯µ½ÕýÈ·µÄÊý¾Ý¡£

Ä£ÄâÁËÍøÂç¶ËÏ·¢²éѯÃüÁ´®¿Ú»Ø¸´Êý¾Ý¡£

±¸×¢£ºMODBUS SLAVEÈí¼þºÍMODBUS POLLÈí¼þµÄÑ¡ÏîDisplay£¬µã¿ªÖ®ºó£¬×îÏÂÃæµÄCommunication Traffic£¬ÊÇÁ½¸öÈí¼þÊý¾Ý¼à¿Ø£¬¿ÉÒԲ鿴MODBUS Êý¾Ý£¬ÊÇ·ñÕý³£¡£

 

Èý¡¢DHCP¶¯Ì¬»ñÈ¡IPʱ£¬USR-N510 ÉèÖÃMODBUS Íø¹Ø£º

1¡¢Ó²¼þÁ¬½Ó£º

USR-N510ʹÓÃÖ±Á÷µçÔ´ÊÊÅäÆ÷12V¹©µç¡£

USR-N510 ÓÃUSB-RS485´®¿ÚÏß½ÓµçÄÔºÍUSR-N510¡£

USR-N510²¦Â뿪¹Ø¶¼³¯ÉÏ£¬ÊÇ485´®¿Ú¹¦ÄÜ¡£

USR-N510Íø¿ÚÓÃÍøÏß½Ó·ÓÉÆ÷£¬µçÄÔÒ²Á¬½Óͬһ¸ö·ÓÉÆ÷¡£USR-N510ÓÃM4ÉèÖÃÈí¼þÉèÖÃDHCP£¬¶¯Ì¬»ñÈ¡IP¡£

 

2¡¢´®¿Ú²ÎÊýÉèÖãº

ÓÃM4ÉèÖÃÈí¼þËÑË÷USR-N510µÄIPÊÇ192.168.1.118

 

3¡¢ÍøÒ³²ÎÊýÉèÖãº

ÔÚµçÄÔ´ò¿ªä¯ÀÀÆ÷£¬ÊäÈ뾲̬IP192.168.1.118 µÇ¼USR-N510µÄÄÚÖÃÍøÒ³¡£

µÇ¼¿Í‘ôÃûÊÇadmin£¬ÃÜÂëÊÇadmin¡£

ÍøÒ³¼ì²é´®¿Ú²ÎÊý£¬¹¤×÷·½Ê½ÉèÖÃTCP server ModbusTCP£¬±¾µØ¶Ë¿ÚºÅĬÈÏÊÇ8899£¬Modbus TCPÂÖѯĬÈÏÊǹرÕ£¬ÐèÒª¹´Ñ¡¿ªÆôMODBUS TCPÂÖѯ¡£

ÂÖѯ³¬Ê±Ê±¼äĬÈÏÊÇ200ms,ÐèÒª¸Ä´ó£¬¸Ä³É5000ms¡£

 

 

4¡¢MODBUS SLAVEºÍMODBUS POLLÈí¼þÉèÖãº

Ä£Äâ²âÊÔÓÃMODBUS SLAVEÈí¼þ×ö´®¿ÚÉ豸£¬ÓÃMODBUS POLLÈí¼þ×öÍøÂç¶Ë¡£

MODBUS SLAVEÈí¼þÉèÖô®¿Ú²ÎÊý£¬²¨ÌØÂÊ¡¢Êý¾Ýλ¡¢Í£Ö¹Î»¡¢Ð£Ñé룬ÐèÒªºÍUSR-N510µÄ´®¿Ú²ÎÊýÉèÖÃÒ»Ö¡£

MODBUS POLLÈí¼þÉèÖÃMODBUS TCP/IP¡£IPµØÖ·ÌîUSR-N510µÄIPµØÖ·£¬Server PortÌîUSR-N510µÄ¶Ë¿ÚºÅ8899¡£×¢ÒâMODBUS POLLÈí¼þµÄ3¸öʱ¼ä²ÎÊý£¬ÒÀ´ÎÊÇ

response Timeout 5000ms

Delay between Polls 1000ms

Connect Timeout 3000ms¡£

 

MODBUS SLAVEÈí¼þºÍMODBUS POLLÈí¼þµÄÉ豸ID SLAVE IDÐèÒªÉèÖÃÒ»Ö£¬¼Ä´æÆ÷ÆðʼµØÖ·ºÍ¼Ä´æÆ÷ÊýÁ¿ÉèÖÃÒ»Ö¡£¾ÙÀý£¬ÎÒÓõÄÊÇÆðʼµØÖ·0£¬¼Ä´æÆ÷ÊýÁ¿10¡£ÓõÄÊÇ03¹¦ÄÜÂë¡£

SLAVE ID ÊÇ1¡£±¸×¢£ºMODBUS POLLÈí¼þÓÐЩ°æ±¾£¬ÓÐÒ»¸ö¶ÁдѡÏRead/Write Disabled,ÐèҪȡÏû¹´Ñ¡¡£

 

5¡¢»ù±¾Í¨Ñ¶²âÊÔ£º

MODBUS SLAVEÈí¼þÌí¼Ó4¸öSLAVE ID£¬ÒÀ´ÎÊÇID 1 ID 2 ID 3 ID 4¡£

MODBUS POLLÈí¼þ¶ÔÓ¦Ìí¼Ó4¸öSLAVE ID£¬ÒÀ´ÎÊÇID 1 ID 2 ID 3 ID 4¡£

¸Ä±äÿ¸öMODBUS SLAVEÈí¼þµÄÊý¾Ý£¬¶ÔÓ¦µÄMODBUS POLLÈí¼þ¾Í¿ÉÒԲɼ¯µ½ÕýÈ·µÄÊý¾Ý¡£

Ä£ÄâÁËÍøÂç¶ËÏ·¢²éѯÃüÁ´®¿Ú»Ø¸´Êý¾Ý¡£

±¸×¢£ºMODBUS SLAVEÈí¼þºÍMODBUS POLLÈí¼þµÄÑ¡ÏîDisplay£¬µã¿ªÖ®ºó£¬×îÏÂÃæµÄCommunication Traffic£¬ÊÇÁ½¸öÈí¼þÊý¾Ý¼à¿Ø£¬¿ÉÒԲ鿴MODBUS Êý¾Ý£¬ÊÇ·ñÕý³£¡£

 


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

sitemap¡¢µØͼ