{"id":39886,"date":"2023-10-03T13:39:39","date_gmt":"2023-10-03T05:39:39","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=39886"},"modified":"2023-10-03T13:39:39","modified_gmt":"2023-10-03T05:39:39","slug":"mbwjx","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/39886.html","title":{"rendered":"Modbus Protocol\u62a5\u6587\u89e3\u6790"},"content":{"rendered":"

  Modbus\u534f\u8bae\u662f\u4e00\u79cd\u7528\u4e8e\u5de5\u4e1a\u81ea\u52a8\u5316\u9886\u57df\u7684\u901a\u7528\u6027\u534f\u8bae\uff0c\u7528\u4e8e\u8fde\u63a5\u4e0d\u540c\u7684\u8bbe\u5907\uff0c\u4ee5\u5b9e\u73b0\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u3002Modbus\u534f\u8bae\u53ef\u4ee5\u63d0\u4f9b\u4e00\u79cd\u7b80\u5355\u3001\u53ef\u9760\u7684\u65b9\u6cd5\uff0c\u7528\u4e8e\u63a7\u5236\u548c\u76d1\u63a7\u8bbe\u5907\u3002\u672c\u6587\u5c06\u4ecb\u7ecdModbus\u534f\u8bae\u62a5\u6587\u89e3\u6790\uff0c\u4ee5\u671f\u5e2e\u52a9\u8bfb\u8005\u4e86\u89e3Modbus\u534f\u8bae\u7684\u5de5\u4f5c\u539f\u7406\u3002<\/p>\n

Modbus\u534f\u8bae\u62a5\u6587\u683c\u5f0f<\/h2>\n

  Modbus\u534f\u8bae\u4f7f\u7528ASCII\u6216RTU\u683c\u5f0f\u6765\u4f20\u8f93\u6570\u636e\uff0c\u5176\u4e2dRTU\u683c\u5f0f\u66f4\u5e38\u7528\u3002Modbus\u534f\u8bae\u62a5\u6587\u7531\u56db\u90e8\u5206\u7ec4\u6210\uff0c\u5206\u522b\u662f\u8bbe\u5907\u5730\u5740\u3001\u529f\u80fd\u7801\u3001\u6570\u636e\u5b57\u6bb5\u548cCRC\u6821\u9a8c\u7801\u3002<\/p>\n

  \u8bbe\u5907\u5730\u5740<\/h3>\n

  \u8bbe\u5907\u5730\u5740\u662f\u6307Modbus\u534f\u8bae\u62a5\u6587\u4e2d\u7684\u7b2c\u4e00\u4e2a\u5b57\u8282\uff0c\u7528\u4e8e\u6807\u8bc6\u8bbe\u5907\u7684\u5730\u5740\u3002\u8bbe\u5907\u5730\u5740\u7684\u8303\u56f4\u4e3a1-247\uff0c\u5373\u53ef\u4ee5\u8fde\u63a5247\u53f0\u8bbe\u5907\u3002<\/p>\n

  \u529f\u80fd\u7801<\/h3>\n

  \u529f\u80fd\u7801\u662f\u6307Modbus\u534f\u8bae\u62a5\u6587\u4e2d\u7684\u7b2c\u4e8c\u4e2a\u5b57\u8282\uff0c\u7528\u4e8e\u6807\u8bc6Modbus\u534f\u8bae\u62a5\u6587\u7684\u529f\u80fd\u3002Modbus\u534f\u8bae\u5171\u5b9a\u4e49\u4e8616\u79cd\u529f\u80fd\u7801\uff0c\u5305\u62ec\u8bfb\u53d6\u8f93\u5165\u5bc4\u5b58\u5668\u3001\u8bfb\u53d6\u4fdd\u6301\u5bc4\u5b58\u5668\u3001\u5199\u5355\u4e2a\u4fdd\u6301\u5bc4\u5b58\u5668\u3001\u5199\u591a\u4e2a\u4fdd\u6301\u5bc4\u5b58\u5668\u7b49\u3002<\/p>\n

  \u6570\u636e\u5b57\u6bb5<\/h3>\n

  \u6570\u636e\u5b57\u6bb5\u662f\u6307Modbus\u534f\u8bae\u62a5\u6587\u4e2d\u7684\u7b2c\u4e09\u4e2a\u5b57\u8282\uff0c\u7528\u4e8e\u6807\u8bc6\u6570\u636e\u7684\u5730\u5740\u548c\u6570\u636e\u7684\u503c\u3002\u5176\u4e2d\uff0c\u6570\u636e\u5730\u5740\u7528\u4e8e\u6307\u5b9a\u8981\u8bfb\u53d6\u6216\u5199\u5165\u7684\u5bc4\u5b58\u5668\u5730\u5740\uff0c\u6570\u636e\u503c\u7528\u4e8e\u6307\u5b9a\u8981\u5199\u5165\u7684\u503c\u3002<\/p>\n

  CRC\u6821\u9a8c\u7801<\/h3>\n

  CRC\u6821\u9a8c\u7801\u662f\u6307Modbus\u534f\u8bae\u62a5\u6587\u4e2d\u7684\u7b2c\u56db\u4e2a\u5b57\u8282\uff0c\u7528\u4e8e\u6821\u9a8c\u62a5\u6587\u7684\u5b8c\u6574\u6027\u3002CRC\u6821\u9a8c\u7801\u4f7f\u7528\u7279\u5b9a\u7684\u7b97\u6cd5\uff0c\u5bf9\u62a5\u6587\u4e2d\u7684\u6570\u636e\u8fdb\u884c\u8ba1\u7b97\uff0c\u4ee5\u786e\u4fdd\u62a5\u6587\u7684\u5b8c\u6574\u6027\u3002<\/p>\n

Modbus\u534f\u8bae\u62a5\u6587\u89e3\u6790<\/h2>\n

  Modbus\u534f\u8bae\u62a5\u6587\u89e3\u6790\u662f\u6307\u5c06Modbus\u534f\u8bae\u62a5\u6587\u4e2d\u7684\u6570\u636e\u8fdb\u884c\u89e3\u6790\uff0c\u4ee5\u83b7\u53d6\u8bbe\u5907\u5730\u5740\u3001\u529f\u80fd\u7801\u3001\u6570\u636e\u5b57\u6bb5\u548cCRC\u6821\u9a8c\u7801\u7b49\u4fe1\u606f\u3002Modbus\u534f\u8bae\u62a5\u6587\u89e3\u6790\u7684\u8fc7\u7a0b\u53ef\u4ee5\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a<\/p>\n

  \u6b65\u9aa41\uff1a\u68c0\u67e5CRC\u6821\u9a8c\u7801<\/h3>\n

  \u9996\u5148\uff0c\u4f7f\u7528\u7279\u5b9a\u7684\u7b97\u6cd5\u8ba1\u7b97\u62a5\u6587\u4e2d\u7684CRC\u6821\u9a8c\u7801\uff0c\u5e76\u4e0e\u62a5\u6587\u4e2d\u7684CRC\u6821\u9a8c\u7801\u8fdb\u884c\u6bd4\u8f83\uff0c\u4ee5\u786e\u4fdd\u62a5\u6587\u7684\u5b8c\u6574\u6027\u3002\u5982\u679cCRC\u6821\u9a8c\u7801\u4e0d\u5339\u914d\uff0c\u5219\u8868\u793a\u62a5\u6587\u5df2\u635f\u574f\uff0c\u4e0d\u80fd\u7ee7\u7eed\u8fdb\u884c\u89e3\u6790\u3002<\/p>\n

  \u6b65\u9aa42\uff1a\u89e3\u6790\u8bbe\u5907\u5730\u5740<\/h3>\n

  \u63a5\u4e0b\u6765\uff0c\u89e3\u6790\u62a5\u6587\u4e2d\u7684\u8bbe\u5907\u5730\u5740\uff0c\u4ee5\u786e\u5b9a\u62a5\u6587\u7684\u53d1\u9001\u65b9\u548c\u63a5\u6536\u65b9\u3002\u8bbe\u5907\u5730\u5740\u7684\u8303\u56f4\u4e3a1-247\uff0c\u5373\u53ef\u4ee5\u8fde\u63a5247\u53f0\u8bbe\u5907\u3002<\/p>\n

  \u6b65\u9aa43\uff1a\u89e3\u6790\u529f\u80fd\u7801<\/h3>\n

  \u7136\u540e\uff0c\u89e3\u6790\u62a5\u6587\u4e2d\u7684\u529f\u80fd\u7801\uff0c\u4ee5\u786e\u5b9a\u62a5\u6587\u7684\u529f\u80fd\u3002Modbus\u534f\u8bae\u5171\u5b9a\u4e49\u4e8616\u79cd\u529f\u80fd\u7801\uff0c\u5305\u62ec\u8bfb\u53d6\u8f93\u5165\u5bc4\u5b58\u5668\u3001\u8bfb\u53d6\u4fdd\u6301\u5bc4\u5b58\u5668\u3001\u5199\u5355\u4e2a\u4fdd\u6301\u5bc4\u5b58\u5668\u3001\u5199\u591a\u4e2a\u4fdd\u6301\u5bc4\u5b58\u5668\u7b49\u3002<\/p>\n

  \u6b65\u9aa44\uff1a\u89e3\u6790\u6570\u636e\u5b57\u6bb5<\/h3>\n

  \u6700\u540e\uff0c\u89e3\u6790\u62a5\u6587\u4e2d\u7684\u6570\u636e\u5b57\u6bb5\uff0c\u4ee5\u83b7\u53d6\u6570\u636e\u5730\u5740\u548c\u6570\u636e\u503c\u3002\u6570\u636e\u5730\u5740\u7528\u4e8e\u6307\u5b9a\u8981\u8bfb\u53d6\u6216\u5199\u5165\u7684\u5bc4\u5b58\u5668\u5730\u5740\uff0c\u6570\u636e\u503c\u7528\u4e8e\u6307\u5b9a\u8981\u5199\u5165\u7684\u503c\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  Modbus\u534f\u8bae\u62a5\u6587\u89e3\u6790\u662f\u4e00\u9879\u91cd\u8981\u7684\u5de5\u4f5c\uff0c\u53ef\u4ee5\u5e2e\u52a9\u8bfb\u8005\u4e86\u89e3Modbus\u534f\u8bae\u7684\u5de5\u4f5c\u539f\u7406\u3002<\/strong>Modbus\u534f\u8bae\u62a5\u6587\u7531\u56db\u90e8\u5206\u7ec4\u6210\uff0c\u5206\u522b\u662f\u8bbe\u5907\u5730\u5740\u3001\u529f\u80fd\u7801\u3001\u6570\u636e\u5b57\u6bb5\u548cCRC\u6821\u9a8c\u7801\u3002Modbus\u534f\u8bae\u62a5\u6587\u89e3\u6790\u7684\u8fc7\u7a0b\u53ef\u4ee5\u5206\u4e3a\u68c0\u67e5CRC\u6821\u9a8c\u7801\u3001\u89e3\u6790\u8bbe\u5907\u5730\u5740\u3001\u89e3\u6790\u529f\u80fd\u7801\u548c\u89e3\u6790\u6570\u636e\u5b57\u6bb5\u56db\u4e2a\u6b65\u9aa4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Modbus\u534f\u8bae\u662f\u4e00\u79cd\u7528\u4e8e\u5de5\u4e1a\u81ea\u52a8\u5316\u9886\u57df\u7684\u901a\u7528\u6027\u534f\u8bae\uff0c\u7528\u4e8e\u8fde\u63a5\u4e0d\u540c\u7684\u8bbe\u5907\uff0c\u4ee5\u5b9e\u73b0\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u3002Modbus\u534f\u8bae\u53ef\u4ee5\u63d0\u4f9b\u4e00\u79cd\u7b80\u5355\u3001\u53ef\u9760\u7684\u65b9\u6cd5\uff0c\u7528\u4e8e\u63a7\u5236\u548c\u76d1\u63a7\u8bbe\u5907\u3002\u672c\u6587\u5c06\u4ecb<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[78],"class_list":["post-39886","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-m-3"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/39886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=39886"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/39886\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=39886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=39886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=39886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}