{"id":40679,"date":"2023-09-27T05:38:30","date_gmt":"2023-09-26T21:38:30","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=40679"},"modified":"2023-09-27T05:38:30","modified_gmt":"2023-09-26T21:38:30","slug":"mdzl","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/40679.html","title":{"rendered":"Modbus\u7684\u79cd\u7c7b"},"content":{"rendered":"

  Modbus\u662f\u4e00\u79cd\u5de5\u4e1a\u63a7\u5236\u548c\u81ea\u52a8\u5316\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5728\u5404\u79cd\u5de5\u4e1a\u8bbe\u5907\u4e4b\u95f4\u63d0\u4f9b\u901a\u4fe1\u652f\u6301\u3002<\/strong>\u5b83\u53ef\u4ee5\u8ba9\u591a\u53f0\u8bbe\u5907\u4e4b\u95f4\u8fdb\u884c\u901a\u4fe1\uff0c\u6bd4\u5982\u4ecePLC\u4e2d\u8bfb\u53d6\u548c\u5199\u5165\u6570\u636e\uff0c\u4ee5\u53ca\u5728\u5176\u4ed6\u63a7\u5236\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002Modbus\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684\u7f51\u7edc\u7c7b\u578b\uff0c\u6bd4\u5982\u4ee5\u592a\u7f51\u3001RS485\u548cRS232\u3002\u672c\u6587\u5c06\u4ecb\u7ecdModbus\u7684\u5404\u79cd\u7c7b\u578b\uff0c\u4ee5\u53ca\u5b83\u4eec\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n

Modbus RTU\u548cModbus ASCII<\/h2>\n

  Modbus RTU\u548cModbus ASCII\u662fModbus\u7684\u4e24\u79cd\u6700\u5e38\u89c1\u7684\u5b9e\u73b0\u65b9\u5f0f\uff0c\u5b83\u4eec\u90fd\u4f7f\u7528\u4e86\u4e32\u884c\u63a5\u53e3\uff0c\u53ef\u4ee5\u5728RS485\u6216RS232\u7f51\u7edc\u4e0a\u4f20\u8f93\u6570\u636e\u3002Modbus RTU\u662f\u4e00\u79cd\u4e8c\u8fdb\u5236\u7f16\u7801\u65b9\u5f0f\uff0c\u5176\u4e2d\u6bcf\u4e2a\u5b57\u8282\u53ef\u4ee5\u8868\u793a8\u4f4d\u6570\u636e\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u901f\u7387\u3002Modbus ASCII\u662f\u4e00\u79cd\u6587\u672c\u7f16\u7801\u65b9\u5f0f\uff0c\u5176\u4e2d\u6bcf\u4e2a\u5b57\u7b26\u90fd\u53ef\u4ee5\u8868\u793a8\u4f4d\u6570\u636e\uff0c\u4f46\u662f\u5b83\u7684\u6570\u636e\u4f20\u8f93\u901f\u7387\u8981\u6bd4Modbus RTU\u7a0d\u6162\u4e00\u4e9b\u3002<\/p>\n

  Modbus RTU\u7684\u5e94\u7528\u573a\u666f<\/h3>\n

  Modbus RTU\u53ef\u4ee5\u7528\u4e8e\u5404\u79cd\u5de5\u4e1a\u5e94\u7528\u573a\u666f\uff0c\u6bd4\u5982\u667a\u80fd\u5bb6\u5c45\u3001\u667a\u80fd\u5de5\u5382\u3001\u667a\u80fd\u697c\u5b87\u7b49\u3002Modbus RTU\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u8fdc\u7a0b\u63a7\u5236\u3001\u76d1\u63a7\u3001\u6570\u636e\u91c7\u96c6\u548c\u6570\u636e\u4ea4\u6362\u7b49\u529f\u80fd\u3002\u5b83\u53ef\u4ee5\u8ba9\u5f00\u53d1\u4eba\u5458\u66f4\u52a0\u65b9\u4fbf\u5730\u63a7\u5236\u548c\u76d1\u63a7\u8bbe\u5907\uff0c\u4ece\u800c\u63d0\u9ad8\u5de5\u4e1a\u8bbe\u5907\u7684\u8fd0\u884c\u6548\u7387\u3002<\/p>\n

  Modbus ASCII\u7684\u5e94\u7528\u573a\u666f<\/h3>\n

  Modbus ASCII\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u5404\u79cd\u5de5\u4e1a\u5e94\u7528\uff0c\u6bd4\u5982\u667a\u80fd\u5bb6\u5c45\u3001\u667a\u80fd\u5de5\u5382\u3001\u667a\u80fd\u697c\u5b87\u7b49\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u8fdc\u7a0b\u63a7\u5236\u3001\u76d1\u63a7\u3001\u6570\u636e\u91c7\u96c6\u548c\u6570\u636e\u4ea4\u6362\u7b49\u529f\u80fd\u3002\u5b83\u7684\u4f18\u52bf\u5728\u4e8e\u53ef\u4ee5\u652f\u6301\u66f4\u591a\u7684\u8bbe\u5907\uff0c\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u534f\u8bae\uff0c\u5e76\u4e14\u53ef\u4ee5\u66f4\u5feb\u5730\u4f20\u8f93\u5927\u91cf\u7684\u6570\u636e\u3002<\/p>\n

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

  Modbus TCP\/IP\u662f\u4e00\u79cd\u57fa\u4e8eTCP\/IP\u534f\u8bae\u7684Modbus\u5b9e\u73b0\u65b9\u5f0f\uff0c\u5b83\u4f7f\u7528\u4e86\u5c40\u57df\u7f51\u548c\u4ee5\u592a\u7f51\u4f5c\u4e3a\u4f20\u8f93\u4ecb\u8d28\uff0c\u53ef\u4ee5\u5728\u591a\u53f0\u8bbe\u5907\u4e4b\u95f4\u8fdb\u884c\u901a\u4fe1\u3002Modbus TCP\/IP\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\uff0c\u6bd4\u5982\u5b9e\u73b0\u8fdc\u7a0b\u63a7\u5236\u3001\u76d1\u63a7\u3001\u6570\u636e\u91c7\u96c6\u548c\u6570\u636e\u4ea4\u6362\u7b49\u529f\u80fd\u3002<\/p>\n

  Modbus TCP\/IP\u7684\u5e94\u7528\u573a\u666f<\/h3>\n

  Modbus TCP\/IP\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u5404\u79cd\u5de5\u4e1a\u5e94\u7528\uff0c\u6bd4\u5982\u667a\u80fd\u5bb6\u5c45\u3001\u667a\u80fd\u5de5\u5382\u3001\u667a\u80fd\u697c\u5b87\u7b49\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u8fdc\u7a0b\u63a7\u5236\u3001\u76d1\u63a7\u3001\u6570\u636e\u91c7\u96c6\u548c\u6570\u636e\u4ea4\u6362\u7b49\u529f\u80fd\u3002\u5b83\u7684\u4f18\u52bf\u5728\u4e8e\u53ef\u4ee5\u652f\u6301\u66f4\u591a\u7684\u8bbe\u5907\uff0c\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u534f\u8bae\uff0c\u5e76\u4e14\u53ef\u4ee5\u66f4\u5feb\u5730\u4f20\u8f93\u5927\u91cf\u7684\u6570\u636e\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  Modbus\u662f\u4e00\u79cd\u5de5\u4e1a\u63a7\u5236\u548c\u81ea\u52a8\u5316\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5728\u5404\u79cd\u5de5\u4e1a\u8bbe\u5907\u4e4b\u95f4\u63d0\u4f9b\u901a\u4fe1\u652f\u6301\u3002<\/strong>Modbus\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684\u7f51\u7edc\u7c7b\u578b\uff0c\u6bd4\u5982\u4ee5\u592a\u7f51\u3001RS485\u548cRS232\u3002Modbus\u7684\u4e24\u79cd\u6700\u5e38\u89c1\u7684\u5b9e\u73b0\u65b9\u5f0f\u662fModbus RTU\u548cModbus ASCII\uff0c\u5b83\u4eec\u90fd\u4f7f\u7528\u4e86\u4e32\u884c\u63a5\u53e3\uff0c\u53ef\u4ee5\u5728RS485\u6216RS232\u7f51\u7edc\u4e0a\u4f20\u8f93\u6570\u636e\u3002\u6b64\u5916\uff0cModbus\u8fd8\u6709\u4e00\u79cd\u57fa\u4e8eTCP\/IP\u534f\u8bae\u7684\u5b9e\u73b0\u65b9\u5f0f\uff0c\u5373Modbus TCP\/IP\uff0c\u5b83\u4f7f\u7528\u4e86\u5c40\u57df\u7f51\u548c\u4ee5\u592a\u7f51\u4f5c\u4e3a\u4f20\u8f93\u4ecb\u8d28\uff0c\u53ef\u4ee5\u5728\u591a\u53f0\u8bbe\u5907\u4e4b\u95f4\u8fdb\u884c\u901a\u4fe1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Modbus\u662f\u4e00\u79cd\u5de5\u4e1a\u63a7\u5236\u548c\u81ea\u52a8\u5316\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5728\u5404\u79cd\u5de5\u4e1a\u8bbe\u5907\u4e4b\u95f4\u63d0\u4f9b\u901a\u4fe1\u652f\u6301\u3002\u5b83\u53ef\u4ee5\u8ba9\u591a\u53f0\u8bbe\u5907\u4e4b\u95f4\u8fdb\u884c\u901a\u4fe1\uff0c\u6bd4\u5982\u4ecePLC\u4e2d\u8bfb\u53d6\u548c\u5199\u5165\u6570\u636e<\/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-40679","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\/40679","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=40679"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/40679\/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=40679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=40679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=40679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}