{"id":47084,"date":"2023-10-05T19:47:37","date_gmt":"2023-10-05T11:47:37","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=47084"},"modified":"2023-10-05T19:47:37","modified_gmt":"2023-10-05T11:47:37","slug":"mfzzb","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/47084.html","title":{"rendered":"Modbus\u9632\u6b62\u7c98\u5305"},"content":{"rendered":"

  Modbus\u662f\u4e00\u79cd\u7528\u4e8e\u5de5\u4e1a\u63a7\u5236\u548c\u81ea\u52a8\u5316\u7684\u901a\u7528\u534f\u8bae\uff0c\u53ef\u7528\u4e8e\u8fde\u63a5\u5404\u79cd\u8bbe\u5907\u3002\u5b83\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u7f51\u7edc\u62d3\u6251\uff0c\u5141\u8bb8\u591a\u4e2a\u8bbe\u5907\u901a\u8fc7\u7f51\u7edc\u5171\u4eab\u4fe1\u606f\u3002\u7531\u4e8eModbus\u7684\u7b80\u5355\u6027\u548c\u53ef\u6269\u5c55\u6027\uff0c\u5b83\u5df2\u7ecf\u6210\u4e3a\u5de5\u4e1a\u63a7\u5236\u548c\u81ea\u52a8\u5316\u4e2d\u6700\u5e38\u7528\u7684\u534f\u8bae\u4e4b\u4e00\u3002\u7136\u800c\uff0cModbus\u4e5f\u5b58\u5728\u4e00\u4e9b\u6f5c\u5728\u7684\u5b89\u5168\u95ee\u9898\uff0c\u5176\u4e2d\u4e00\u4e2a\u662f\u7c98\u5305\u95ee\u9898\u3002\u672c\u6587\u5c06\u4ecb\u7ecdModbus\u9632\u6b62\u7c98\u5305\u7684\u4e00\u4e9b\u65b9\u6cd5\uff0c\u4ee5\u671f\u63d0\u9ad8Modbus\u7f51\u7edc\u7684\u5b89\u5168\u6027\u3002<\/p>\n

\u4ec0\u4e48\u662f\u7c98\u5305\uff1f<\/h2>\n

  \u7c98\u5305\u662f\u6307\u5f53\u591a\u4e2a\u6570\u636e\u5305\u88ab\u53d1\u9001\u5230\u4e00\u4e2a\u7f51\u7edc\u5730\u5740\u65f6\uff0c\u5b83\u4eec\u4f1a\u88ab\u805a\u5408\u5728\u4e00\u8d77\uff0c\u5f62\u6210\u4e00\u4e2a\u8f83\u5927\u7684\u6570\u636e\u5305\uff0c\u8fd9\u5c31\u662f\u6240\u8c13\u7684\u201c\u7c98\u5305\u201d\u3002\u7c98\u5305\u53ef\u80fd\u662f\u7531\u4e8e\u7f51\u7edc\u5ef6\u8fdf\u6216\u7f13\u51b2\u533a\u6ea2\u51fa\u6240\u5f15\u8d77\u7684\uff0c\u4e5f\u53ef\u80fd\u662f\u7531\u4e8e\u6076\u610f\u653b\u51fb\u8005\u6076\u610f\u7be1\u6539\u6570\u636e\u5305\u800c\u5f15\u8d77\u7684\u3002\u65e0\u8bba\u662f\u54ea\u79cd\u60c5\u51b5\uff0c\u7c98\u5305\u90fd\u53ef\u80fd\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u6216\u635f\u574f\uff0c\u4ece\u800c\u7834\u574f\u7cfb\u7edf\u7684\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n

Modbus\u9632\u6b62\u7c98\u5305\u7684\u65b9\u6cd5<\/h2>\n

  1.\u4f7f\u7528CRC\u6821\u9a8c<\/h3>\n

  CRC\uff08\u5faa\u73af\u5197\u4f59\u6821\u9a8c\uff09\u662f\u4e00\u79cd\u5e38\u7528\u7684\u6570\u636e\u6821\u9a8c\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7528\u6765\u68c0\u6d4b\u6570\u636e\u4f20\u8f93\u4e2d\u7684\u9519\u8bef\u3002\u5f53\u6570\u636e\u4f20\u8f93\u65f6\uff0cCRC\u4f1a\u8ba1\u7b97\u51fa\u4e00\u4e2a\u7279\u5b9a\u7684\u503c\uff0c\u7136\u540e\u5c06\u8be5\u503c\u4e0e\u63a5\u6536\u5230\u7684\u6570\u636e\u8fdb\u884c\u6bd4\u8f83\uff0c\u5982\u679c\u4e24\u4e2a\u503c\u4e0d\u76f8\u7b49\uff0c\u5219\u8868\u660e\u6570\u636e\u5df2\u635f\u574f\uff0c\u53ef\u80fd\u662f\u7531\u4e8e\u7c98\u5305\u6216\u5176\u4ed6\u539f\u56e0\u3002\u4f7f\u7528CRC\u6821\u9a8c\u53ef\u4ee5\u6709\u6548\u5730\u68c0\u6d4b\u51fa\u7c98\u5305\uff0c\u4ece\u800c\u6709\u6548\u5730\u9632\u6b62\u7c98\u5305\u3002<\/p>\n

  2.\u4f7f\u7528\u5b9a\u957f\u5e27<\/h3>\n

  \u5b9a\u957f\u5e27\u662f\u6307\u6bcf\u4e2a\u6570\u636e\u5e27\u7684\u957f\u5ea6\u90fd\u662f\u56fa\u5b9a\u7684\uff0c\u8fd9\u6837\u53d1\u9001\u7aef\u548c\u63a5\u6536\u7aef\u5c31\u53ef\u4ee5\u77e5\u9053\u4ec0\u4e48\u65f6\u5019\u4e00\u4e2a\u6570\u636e\u5e27\u7ed3\u675f\uff0c\u4ec0\u4e48\u65f6\u5019\u53e6\u4e00\u4e2a\u6570\u636e\u5e27\u5f00\u59cb\u3002\u8fd9\u6837\u53ef\u4ee5\u6709\u6548\u5730\u9632\u6b62\u7c98\u5305\u7684\u53d1\u751f\uff0c\u56e0\u4e3a\u63a5\u6536\u7aef\u53ef\u4ee5\u6839\u636e\u6570\u636e\u5e27\u7684\u957f\u5ea6\u6765\u8bc6\u522b\u51fa\u6b63\u786e\u7684\u6570\u636e\u5e27\uff0c\u800c\u4e0d\u4f1a\u5c06\u591a\u4e2a\u6570\u636e\u5e27\u805a\u5408\u5728\u4e00\u8d77\u3002<\/p>\n

  3.\u4f7f\u7528\u8d85\u65f6\u91cd\u53d1\u673a\u5236<\/h3>\n

  \u8d85\u65f6\u91cd\u53d1\u673a\u5236\u662f\u6307\u53d1\u9001\u7aef\u5728\u53d1\u9001\u4e00\u4e2a\u6570\u636e\u5e27\u540e\uff0c\u4f1a\u7b49\u5f85\u4e00\u6bb5\u65f6\u95f4\uff0c\u5982\u679c\u5728\u89c4\u5b9a\u7684\u65f6\u95f4\u5185\u6ca1\u6709\u6536\u5230\u63a5\u6536\u7aef\u7684\u786e\u8ba4\u4fe1\u606f\uff0c\u5219\u53d1\u9001\u7aef\u4f1a\u91cd\u65b0\u53d1\u9001\u8be5\u6570\u636e\u5e27\u3002\u8fd9\u6837\u53ef\u4ee5\u6709\u6548\u5730\u9632\u6b62\u7c98\u5305\u7684\u53d1\u751f\uff0c\u56e0\u4e3a\u5982\u679c\u63a5\u6536\u7aef\u6536\u5230\u7684\u6570\u636e\u5e27\u4e0d\u6b63\u786e\uff0c\u5219\u53d1\u9001\u7aef\u4f1a\u91cd\u65b0\u53d1\u9001\u8be5\u6570\u636e\u5e27\uff0c\u4ece\u800c\u907f\u514d\u7c98\u5305\u7684\u53d1\u751f\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  Modbus\u662f\u4e00\u79cd\u5e38\u7528\u7684\u5de5\u4e1a\u63a7\u5236\u548c\u81ea\u52a8\u5316\u534f\u8bae\uff0c\u4f46\u662f\u5b83\u4e5f\u5b58\u5728\u4e00\u4e9b\u6f5c\u5728\u7684\u5b89\u5168\u95ee\u9898\uff0c\u5176\u4e2d\u4e00\u4e2a\u662f\u7c98\u5305\u95ee\u9898\u3002<\/strong>\u4e3a\u4e86\u6709\u6548\u5730\u9632\u6b62\u7c98\u5305\u7684\u53d1\u751f\uff0c\u53ef\u4ee5\u4f7f\u7528CRC\u6821\u9a8c\u3001\u5b9a\u957f\u5e27\u548c\u8d85\u65f6\u91cd\u53d1\u673a\u5236\u7b49\u65b9\u6cd5\u3002\u8fd9\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u6709\u6548\u5730\u63d0\u9ad8Modbus\u7f51\u7edc\u7684\u5b89\u5168\u6027\uff0c\u4ece\u800c\u786e\u4fdd\u7cfb\u7edf\u7684\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Modbus\u662f\u4e00\u79cd\u7528\u4e8e\u5de5\u4e1a\u63a7\u5236\u548c\u81ea\u52a8\u5316\u7684\u901a\u7528\u534f\u8bae\uff0c\u53ef\u7528\u4e8e\u8fde\u63a5\u5404\u79cd\u8bbe\u5907\u3002\u5b83\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u7f51\u7edc\u62d3\u6251\uff0c\u5141\u8bb8\u591a\u4e2a\u8bbe\u5907\u901a\u8fc7\u7f51\u7edc\u5171\u4eab\u4fe1\u606f\u3002\u7531\u4e8eModbus\u7684\u7b80\u5355\u6027\u548c\u53ef\u6269\u5c55\u6027\uff0c\u5b83\u5df2\u7ecf\u6210<\/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-47084","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\/47084","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=47084"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/47084\/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=47084"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=47084"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=47084"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}