{"id":3851,"date":"2023-06-18T19:13:41","date_gmt":"2023-06-18T11:13:41","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=3851"},"modified":"2023-06-18T19:13:43","modified_gmt":"2023-06-18T11:13:43","slug":"mzdjgdnr","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/3851.html","title":{"rendered":"modbus\u5e27\u7684\u7ed3\u6784\u7684\u5185\u5bb9"},"content":{"rendered":"\n
\u3000\u3000Modbus<\/strong>\u662f\u4e00\u79cd\u901a\u4fe1\u534f\u8bae\uff0c\u7528\u4e8e\u5728\u4e0d\u540c\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002\u5b83\u662f\u4e00\u79cd\u57fa\u4e8e\u4e32\u884c\u901a\u4fe1\u7684\u534f\u8bae\uff0c\u5e38\u7528\u4e8e\u5de5\u4e1a\u81ea\u52a8\u5316\u9886\u57df\u3002Modbus\u534f\u8bae\u5305\u62ec\u591a\u4e2a\u4e0d\u540c\u7684\u5e27\u7c7b\u578b\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u7684\u662fModbus RTU\u5e27\u548cModbus ASCII\u5e27<\/strong>\u3002\u672c\u6587\u5c06\u91cd\u70b9\u4ecb\u7ecdModbus RTU\u5e27\u7684\u7ed3\u6784<\/strong>\u3002<\/p>\n\n\n\n \u3000\u3000Modbus RTU\u5e27\u7531\u4e00\u4e2a\u5730\u5740\u57df\u3001\u4e00\u4e2a\u529f\u80fd\u7801\u3001\u4e00\u4e2a\u6570\u636e\u57df\u548c\u4e00\u4e2aCRC\u6821\u9a8c\u7801\u7ec4\u6210\u3002\u5404\u90e8\u5206\u7684\u957f\u5ea6\u4e0d\u56fa\u5b9a\uff0c\u5177\u4f53\u957f\u5ea6\u53d6\u51b3\u4e8e\u6240\u4f20\u8f93\u7684\u6570\u636e\u3002<\/p>\n\n\n\n \u3000\u3000Modbus RTU\u5e27\u7684\u5730\u5740\u57df\u7528\u4e8e\u6307\u5b9a\u901a\u4fe1\u7684\u8bbe\u5907\u5730\u5740\u3002\u5728Modbus\u7f51\u7edc\u4e2d\uff0c\u6bcf\u4e2a\u8bbe\u5907\u90fd\u6709\u552f\u4e00\u7684\u5730\u5740\u3002\u5730\u5740\u57df\u7684\u957f\u5ea6\u4e3a1\u5b57\u8282\uff0c\u53d6\u503c\u8303\u56f4\u4e3a1-247.\u5176\u4e2d1-127\u7528\u4e8e\u6807\u51c6\u8bbe\u5907\u5730\u5740\uff0c128-247\u7528\u4e8e\u6269\u5c55\u8bbe\u5907\u5730\u5740\u3002<\/p>\n\n\n\n \u3000\u3000Modbus RTU\u5e27\u7684\u529f\u80fd\u7801\u7528\u4e8e\u6307\u5b9a\u6240\u6267\u884c\u7684\u64cd\u4f5c\u7c7b\u578b\u3002\u4f8b\u5982\uff0c\u8bfb\u53d6\u5bc4\u5b58\u5668\u3001\u5199\u5165\u5bc4\u5b58\u5668\u7b49\u3002Modbus RTU\u534f\u8bae\u5b9a\u4e49\u4e86\u4e00\u7cfb\u5217\u7684\u529f\u80fd\u7801\uff0c\u6bcf\u4e2a\u529f\u80fd\u7801\u90fd\u6709\u7279\u5b9a\u7684\u542b\u4e49\u3002\u4e0b\u9762\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u529f\u80fd\u7801\uff1a<\/p>\n\n\n\n \u3000\u3000Modbus RTU\u5e27\u7684\u6570\u636e\u57df\u7528\u4e8e\u4f20\u8f93\u6570\u636e\u3002\u6570\u636e\u57df\u7684\u957f\u5ea6\u53d6\u51b3\u4e8e\u6240\u6267\u884c\u7684\u64cd\u4f5c\u7c7b\u578b\u3002\u4f8b\u5982\uff0c\u8bfb\u53d6\u7ebf\u5708\u72b6\u6001\u65f6\uff0c\u6570\u636e\u57df\u7684\u957f\u5ea6\u4e3a2\u5b57\u8282\uff0c\u7528\u4e8e\u8868\u793a\u7ebf\u5708\u7684\u72b6\u6001\u3002\u800c\u8bfb\u53d6\u4fdd\u6301\u5bc4\u5b58\u5668\u65f6\uff0c\u6570\u636e\u57df\u7684\u957f\u5ea6\u4e3a4\u5b57\u8282\uff0c\u7528\u4e8e\u8868\u793a\u4fdd\u6301\u5bc4\u5b58\u5668\u7684\u503c\u3002<\/p>\n\n\n\n \u3000\u3000Modbus RTU\u5e27\u7684CRC\u6821\u9a8c\u7801\u7528\u4e8e\u68c0\u6d4b\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u662f\u5426\u51fa\u73b0\u9519\u8bef\u3002CRC\u6821\u9a8c\u7801\u7531\u53d1\u9001\u65b9\u8ba1\u7b97\u5e76\u6dfb\u52a0\u5230\u5e27\u7684\u672b\u5c3e\u3002\u63a5\u6536\u65b9\u5728\u63a5\u6536\u5230\u5e27\u540e\uff0c\u4e5f\u4f1a\u8ba1\u7b97CRC\u6821\u9a8c\u7801\uff0c\u5e76\u5c06\u8ba1\u7b97\u7ed3\u679c\u4e0e\u63a5\u6536\u5230\u7684CRC\u6821\u9a8c\u7801\u8fdb\u884c\u6bd4\u8f83\uff0c\u4ee5\u68c0\u6d4b\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u662f\u5426\u51fa\u73b0\u9519\u8bef\u3002<\/p>\n\n\n\n \u3000\u3000Modbus RTU\u5e27\u662fModbus\u534f\u8bae\u4e2d\u6700\u5e38\u7528\u7684\u5e27\u7c7b\u578b\u4e4b\u4e00\u3002\u5b83\u7531\u4e00\u4e2a\u5730\u5740\u57df\u3001\u4e00\u4e2a\u529f\u80fd\u7801\u3001\u4e00\u4e2a\u6570\u636e\u57df\u548c\u4e00\u4e2aCRC\u6821\u9a8c\u7801\u7ec4\u6210\u3002\u5730\u5740\u57df\u7528\u4e8e\u6307\u5b9a\u901a\u4fe1\u7684\u8bbe\u5907\u5730\u5740\uff0c\u529f\u80fd\u7801\u7528\u4e8e\u6307\u5b9a\u6240\u6267\u884c\u7684\u64cd\u4f5c\u7c7b\u578b\uff0c\u6570\u636e\u57df\u7528\u4e8e\u4f20\u8f93\u6570\u636e\uff0cCRC\u6821\u9a8c\u7801\u7528\u4e8e\u68c0\u6d4b\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u662f\u5426\u51fa\u73b0\u9519\u8bef\u3002<\/strong>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9700\u8981\u6839\u636e\u5177\u4f53\u7684\u9700\u6c42\u9009\u62e9\u9002\u5408\u7684\u529f\u80fd\u7801\u548c\u6570\u636e\u57df\u957f\u5ea6\u3002\u540c\u65f6\uff0c\u4e3a\u4e86\u786e\u4fdd\u6570\u636e\u4f20\u8f93\u7684\u53ef\u9760\u6027\uff0c\u9700\u8981\u5bf9CRC\u6821\u9a8c\u7801\u8fdb\u884c\u8ba1\u7b97\u548c\u9a8c\u8bc1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" Modbus\u662f\u4e00\u79cd\u901a\u4fe1\u534f\u8bae\uff0c\u7528\u4e8e\u5728\u4e0d\u540c\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002\u5b83\u662f\u4e00\u79cd\u57fa\u4e8e\u4e32\u884c\u901a\u4fe1\u7684\u534f\u8bae\uff0c\u5e38\u7528\u4e8e\u5de5\u4e1a\u81ea\u52a8\u5316\u9886\u57df\u3002Modbus\u534f\u8bae\u5305\u62ec\u591a\u4e2a\u4e0d\u540c\u7684\u5e27\u7c7b\u578b\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u7684\u662fModbus RTU\u5e27\u548cModbus ASCII\u5e27\u3002<\/p>\n","protected":false},"author":1,"featured_media":2500,"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-3851","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\/3851","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=3851"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/3851\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/2500"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=3851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=3851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=3851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\u3000\u30001. Modbus RTU\u5e27\u7684\u57fa\u672c\u7ed3\u6784<\/h2>\n\n\n\n
\n
\u3000\u30002. \u5730\u5740\u57df<\/h2>\n\n\n\n
\u3000\u30003. \u529f\u80fd\u7801<\/h2>\n\n\n\n
\n
\u3000\u30004. \u6570\u636e\u57df<\/h2>\n\n\n\n
\u3000\u30005. CRC\u6821\u9a8c\u7801<\/h2>\n\n\n\n
\u3000\u30006. \u603b\u7ed3<\/h2>\n\n\n\n