{"id":40440,"date":"2023-10-05T12:44:37","date_gmt":"2023-10-05T04:44:37","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=40440"},"modified":"2023-10-05T12:44:37","modified_gmt":"2023-10-05T04:44:37","slug":"mxysxzdhdhxjs","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/40440.html","title":{"rendered":"Modbus\u534f\u8bae\uff1a\u5b9e\u73b0\u81ea\u52a8\u5316\u7684\u6838\u5fc3\u6280\u672f"},"content":{"rendered":"

  Modbus\u534f\u8bae\u662f\u4e00\u79cd\u5de5\u4e1a\u63a7\u5236\u534f\u8bae\uff0c\u7528\u4e8e\u5b9e\u73b0\u81ea\u52a8\u5316\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u4e0d\u540c\u7c7b\u578b\u7684\u8bbe\u5907\uff0c\u5982PLC\uff0cRTU\u548c\u5176\u4ed6\u7c7b\u578b\u7684\u8bbe\u5907\u3002\u5b83\u662f\u4e00\u79cd\u975e\u5e38\u7a33\u5b9a\u7684\u6280\u672f\uff0c\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u3002Modbus\u534f\u8bae\u4e3b\u8981\u5206\u4e3a\u4e09\u79cd\uff1aModbus RTU\uff0cModbus ASCII\u548cModbus TCP\/IP\u3002\u672c\u6587\u5c06\u6df1\u5165\u8ba8\u8bba\u8fd9\u4e09\u79cd\u534f\u8bae\uff0c\u4ee5\u53ca\u5b83\u4eec\u5728\u81ea\u52a8\u5316\u5e94\u7528\u4e2d\u7684\u91cd\u8981\u6027\u3002<\/p>\n

Modbus RTU\u534f\u8bae<\/h2>\n

  Modbus RTU\u534f\u8bae\u662f\u4e00\u79cd\u5e38\u7528\u7684\u81ea\u52a8\u5316\u63a7\u5236\u534f\u8bae\uff0c\u5b83\u4f7f\u7528\u4e32\u884c\u901a\u4fe1\u6280\u672f\u6765\u4f20\u8f93\u6570\u636e\u3002\u5b83\u4e3b\u8981\u7528\u4e8e\u8fde\u63a5\u5de5\u4e1a\u63a7\u5236\u8bbe\u5907\uff0c\u5982PLC\uff0cRTU\u548c\u5176\u4ed6\u7c7b\u578b\u7684\u8bbe\u5907\u3002\u5b83\u4f7f\u7528\u4e24\u79cd\u4e0d\u540c\u7684\u901a\u4fe1\u6a21\u5f0f\uff1a\u4e3b\u4ece\u6a21\u5f0f\u548c\u5e7f\u64ad\u6a21\u5f0f\u3002\u4e3b\u4ece\u6a21\u5f0f\u4e2d\uff0c\u4e00\u53f0\u8bbe\u5907\u4f5c\u4e3a\u4e3b\u8bbe\u5907\uff0c\u5176\u4ed6\u8bbe\u5907\u4f5c\u4e3a\u4ece\u8bbe\u5907\uff0c\u4e3b\u8bbe\u5907\u53ef\u4ee5\u53d1\u9001\u6307\u4ee4\u5230\u4ece\u8bbe\u5907\uff0c\u4ece\u800c\u63a7\u5236\u5b83\u4eec\u3002\u800c\u5728\u5e7f\u64ad\u6a21\u5f0f\u4e2d\uff0c\u4e3b\u8bbe\u5907\u53ef\u4ee5\u5411\u6240\u6709\u4ece\u8bbe\u5907\u53d1\u9001\u6307\u4ee4\uff0c\u4ece\u800c\u63a7\u5236\u5b83\u4eec\u3002<\/p>\n

  Modbus RTU\u534f\u8bae\u5177\u6709\u5f88\u591a\u4f18\u70b9\uff0c\u5b83\u53ef\u4ee5\u8282\u7ea6\u7f51\u7edc\u5e26\u5bbd\uff0c\u56e0\u4e3a\u5b83\u4f7f\u7528\u4e32\u884c\u901a\u4fe1\u6280\u672f\uff0c\u800c\u4e0d\u662f\u5e76\u884c\u901a\u4fe1\u6280\u672f\u3002\u5b83\u8fd8\u53ef\u4ee5\u63d0\u9ad8\u7f51\u7edc\u7684\u5b89\u5168\u6027\uff0c\u56e0\u4e3a\u5b83\u4f7f\u7528CRC\u6821\u9a8c\u6765\u786e\u4fdd\u6570\u636e\u7684\u5b8c\u6574\u6027\u3002\u6b64\u5916\uff0c\u5b83\u8fd8\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u901a\u4fe1\u6a21\u5f0f\uff0c\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n

Modbus ASCII\u534f\u8bae<\/h2>\n

  Modbus ASCII\u534f\u8bae\u662f\u4e00\u79cd\u5e38\u7528\u7684\u81ea\u52a8\u5316\u63a7\u5236\u534f\u8bae\uff0c\u5b83\u4f7f\u7528\u4e32\u884c\u901a\u4fe1\u6280\u672f\u6765\u4f20\u8f93\u6570\u636e\u3002\u5b83\u4e3b\u8981\u7528\u4e8e\u8fde\u63a5\u5de5\u4e1a\u63a7\u5236\u8bbe\u5907\uff0c\u5982PLC\uff0cRTU\u548c\u5176\u4ed6\u7c7b\u578b\u7684\u8bbe\u5907\u3002\u5b83\u4f7f\u7528ASCII\u5b57\u7b26\u4f5c\u4e3a\u4f20\u8f93\u6570\u636e\u7684\u683c\u5f0f\uff0c\u53ef\u4ee5\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u7684\u53ef\u9760\u6027\u3002 Modbus ASCII\u534f\u8bae\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4e3b\u4ece\u6a21\u5f0f\u548c\u5e7f\u64ad\u6a21\u5f0f\u6765\u4f20\u8f93\u6570\u636e\u3002<\/p>\n

  Modbus ASCII\u534f\u8bae\u5177\u6709\u5f88\u591a\u4f18\u70b9\uff0c\u5b83\u53ef\u4ee5\u8282\u7ea6\u7f51\u7edc\u5e26\u5bbd\uff0c\u56e0\u4e3a\u5b83\u4f7f\u7528\u4e32\u884c\u901a\u4fe1\u6280\u672f\uff0c\u800c\u4e0d\u662f\u5e76\u884c\u901a\u4fe1\u6280\u672f\u3002\u5b83\u8fd8\u53ef\u4ee5\u63d0\u9ad8\u7f51\u7edc\u7684\u5b89\u5168\u6027\uff0c\u56e0\u4e3a\u5b83\u4f7f\u7528CRC\u6821\u9a8c\u6765\u786e\u4fdd\u6570\u636e\u7684\u5b8c\u6574\u6027\u3002\u6b64\u5916\uff0c\u5b83\u8fd8\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u901a\u4fe1\u6a21\u5f0f\uff0c\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n

Modbus TCP\/IP\u534f\u8bae<\/h2>\n

  Modbus TCP\/IP\u534f\u8bae\u662f\u4e00\u79cd\u5e38\u7528\u7684\u81ea\u52a8\u5316\u63a7\u5236\u534f\u8bae\uff0c\u5b83\u4f7f\u7528TCP\/IP\u534f\u8bae\u6765\u4f20\u8f93\u6570\u636e\u3002\u5b83\u4e3b\u8981\u7528\u4e8e\u8fde\u63a5\u5de5\u4e1a\u63a7\u5236\u8bbe\u5907\uff0c\u5982PLC\uff0cRTU\u548c\u5176\u4ed6\u7c7b\u578b\u7684\u8bbe\u5907\u3002\u5b83\u4f7f\u7528TCP\/IP\u534f\u8bae\u6765\u4f20\u8f93\u6570\u636e\uff0c\u53ef\u4ee5\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u7684\u53ef\u9760\u6027\u3002Modbus TCP\/IP\u534f\u8bae\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4e3b\u4ece\u6a21\u5f0f\u548c\u5e7f\u64ad\u6a21\u5f0f\u6765\u4f20\u8f93\u6570\u636e\u3002<\/p>\n

  Modbus TCP\/IP\u534f\u8bae\u5177\u6709\u5f88\u591a\u4f18\u70b9\uff0c\u5b83\u53ef\u4ee5\u63d0\u9ad8\u7f51\u7edc\u7684\u5b89\u5168\u6027\uff0c\u56e0\u4e3a\u5b83\u4f7f\u7528TCP\/IP\u534f\u8bae\u6765\u4f20\u8f93\u6570\u636e\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u9632\u6b62\u6570\u636e\u6cc4\u9732\u3002\u6b64\u5916\uff0c\u5b83\u8fd8\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u901a\u4fe1\u6a21\u5f0f\uff0c\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  Modbus\u534f\u8bae\u662f\u4e00\u79cd\u5de5\u4e1a\u63a7\u5236\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u4e0d\u540c\u7c7b\u578b\u7684\u8bbe\u5907\uff0c\u5982PLC\uff0cRTU\u548c\u5176\u4ed6\u7c7b\u578b\u7684\u8bbe\u5907\u3002<\/strong>\u5b83\u4e3b\u8981\u5206\u4e3a\u4e09\u79cd\uff1aModbus RTU\uff0cModbus ASCII\u548cModbus TCP\/IP\u3002\u5b83\u4eec\u5404\u6709\u4f18\u52bf\uff0c\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u3002Modbus\u534f\u8bae\u662f\u5b9e\u73b0\u81ea\u52a8\u5316\u7684\u6838\u5fc3\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u4f01\u4e1a\u63d0\u9ad8\u751f\u4ea7\u6548\u7387\uff0c\u964d\u4f4e\u6210\u672c\uff0c\u63d0\u9ad8\u5b89\u5168\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Modbus\u534f\u8bae\u662f\u4e00\u79cd\u5de5\u4e1a\u63a7\u5236\u534f\u8bae\uff0c\u7528\u4e8e\u5b9e\u73b0\u81ea\u52a8\u5316\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u4e0d\u540c\u7c7b\u578b\u7684\u8bbe\u5907\uff0c\u5982PLC\uff0cRTU\u548c\u5176\u4ed6\u7c7b\u578b\u7684\u8bbe\u5907\u3002\u5b83\u662f\u4e00\u79cd\u975e\u5e38\u7a33\u5b9a\u7684\u6280\u672f\uff0c\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u5e94\u7528\u573a<\/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":[109],"class_list":["post-40440","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-zdh"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/40440","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=40440"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/40440\/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=40440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=40440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=40440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}