{"id":38882,"date":"2023-10-03T09:59:42","date_gmt":"2023-10-03T01:59:42","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=38882"},"modified":"2023-10-03T09:59:42","modified_gmt":"2023-10-03T01:59:42","slug":"mlxjjysrjd","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/38882.html","title":{"rendered":"Modbus\u7c7b\u578b\uff1a\u7b80\u4ecb\u4e0e\u6df1\u5165\u89e3\u8bfb"},"content":{"rendered":"
Modbus\u662f\u4e00\u79cd\u4e13\u95e8\u7528\u4e8e\u5de5\u4e1a\u63a7\u5236\u7cfb\u7edf\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u8ba9\u4e0d\u540c\u7684\u8bbe\u5907\u4e4b\u95f4\u8fdb\u884c\u7b80\u5355\u7684\u6d88\u606f\u4ea4\u6362\u3002\u5b83\u652f\u6301\u7684\u7c7b\u578b\u5305\u62ecModbus RTU\u3001Modbus ASCII\u3001Modbus TCP\/IP\u7b49\uff0c\u5b83\u4eec\u5728\u4e0d\u540c\u7684\u5e94\u7528\u73af\u5883\u4e2d\u6709\u4e0d\u540c\u7684\u529f\u80fd\uff0c\u672c\u6587\u5c06\u5bf9Modbus\u7684\u51e0\u79cd\u7c7b\u578b\u8fdb\u884c\u4ecb\u7ecd\u548c\u6df1\u5165\u89e3\u8bfb\u3002<\/p>\n
Modbus RTU\uff08Remote Terminal Unit\uff09\u662fModbus\u534f\u8bae\u7684\u4e00\u79cd\u5b9e\u73b0\u65b9\u5f0f\uff0c\u5b83\u4f7f\u7528RS-232\u3001RS-485\u6216RS-422\u7b49\u4e32\u884c\u901a\u4fe1\u6280\u672f\u8fdb\u884c\u6570\u636e\u4f20\u8f93\uff0c\u662fModbus\u534f\u8bae\u6700\u5e38\u7528\u7684\u5b9e\u73b0\u65b9\u5f0f\u3002Modbus RTU\u7684\u7279\u70b9\u662f\u4f20\u8f93\u6570\u636e\u91cf\u5c0f\uff0c\u4f20\u8f93\u901f\u7387\u5feb\uff0c\u6570\u636e\u4f20\u8f93\u8ddd\u79bb\u53ef\u8fbe1200\u7c73\uff0c\u5728\u73b0\u573a\u5b9e\u65f6\u63a7\u5236\u7cfb\u7edf\u4e2d\u6709\u7740\u5e7f\u6cdb\u7684\u5e94\u7528\u3002<\/p>\n
Modbus RTU\u7684\u4f20\u8f93\u6a21\u5f0f\u4e3b\u8981\u5206\u4e3a\u4e24\u79cd\uff1a\u4e3b\u52a8\u5f0f\u548c\u88ab\u52a8\u5f0f\u3002\u5728\u4e3b\u52a8\u5f0f\u6a21\u5f0f\u4e0b\uff0c\u4e3b\u8bbe\u5907\u53d1\u9001\u6d88\u606f\u5230\u4ece\u8bbe\u5907\uff0c\u4ece\u8bbe\u5907\u63a5\u6536\u5230\u6d88\u606f\u540e\uff0c\u4f1a\u56de\u590d\u4e00\u4e2a\u786e\u8ba4\u5e94\u7b54\u6d88\u606f\uff0c\u8868\u660e\u6d88\u606f\u5df2\u6536\u5230\u3002\u5728\u88ab\u52a8\u5f0f\u6a21\u5f0f\u4e0b\uff0c\u4ece\u8bbe\u5907\u4f1a\u5b9a\u671f\u53d1\u9001\u6570\u636e\u7ed9\u4e3b\u8bbe\u5907\uff0c\u4e3b\u8bbe\u5907\u63a5\u6536\u5230\u6570\u636e\u540e\uff0c\u4f1a\u56de\u590d\u4e00\u4e2a\u786e\u8ba4\u5e94\u7b54\u6d88\u606f\uff0c\u8868\u660e\u6570\u636e\u5df2\u6536\u5230\u3002<\/p>\n
Modbus RTU\u7684\u5e94\u7528\u975e\u5e38\u5e7f\u6cdb\uff0c\u4e3b\u8981\u7528\u4e8e\u5de5\u4e1a\u63a7\u5236\u7cfb\u7edf\uff0c\u5982\u667a\u80fd\u5bb6\u5c45\u3001\u667a\u80fd\u5236\u9020\u3001\u667a\u80fd\u4ea4\u901a\u3001\u667a\u80fd\u519c\u4e1a\u7b49\u7cfb\u7edf\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u4e0d\u540c\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4ea4\u6362\uff0c\u5b9e\u73b0\u8bbe\u5907\u95f4\u7684\u8fdc\u7a0b\u63a7\u5236\uff0c\u63d0\u9ad8\u7cfb\u7edf\u7684\u53ef\u9760\u6027\u548c\u7075\u6d3b\u6027\u3002<\/p>\n
Modbus ASCII\uff08American Standard Code for Information Interchange\uff09\u662fModbus\u534f\u8bae\u7684\u53e6\u4e00\u79cd\u5b9e\u73b0\u65b9\u5f0f\uff0c\u5b83\u4f7f\u7528\u7c7b\u4f3c\u4e8e\u6587\u672c\u6587\u4ef6\u7684\u683c\u5f0f\u8fdb\u884c\u6570\u636e\u4f20\u8f93\uff0c\u4e3b\u8981\u7528\u4e8e\u8de8\u5e73\u53f0\u7684\u6570\u636e\u4ea4\u6362\uff0c\u5982Windows\u548cLinux\u7b49\u3002Modbus ASCII\u7684\u4f20\u8f93\u901f\u7387\u8f83\u6162\uff0c\u6570\u636e\u4f20\u8f93\u8ddd\u79bb\u8f83\u77ed\uff0c\u53ea\u80fd\u5728\u77ed\u8ddd\u79bb\u5185\u8fdb\u884c\u6570\u636e\u4ea4\u6362\uff0c\u4f46\u5b83\u5177\u6709\u8de8\u5e73\u53f0\u7684\u4f18\u52bf\uff0c\u80fd\u591f\u8ba9\u4e0d\u540c\u7cfb\u7edf\u4e4b\u95f4\u8fdb\u884c\u6570\u636e\u4ea4\u6362\u3002<\/p>\n
Modbus ASCII\u7684\u4f20\u8f93\u6a21\u5f0f\u4e3b\u8981\u5206\u4e3a\u4e24\u79cd\uff1a\u4e3b\u52a8\u5f0f\u548c\u88ab\u52a8\u5f0f\u3002\u5728\u4e3b\u52a8\u5f0f\u6a21\u5f0f\u4e0b\uff0c\u4e3b\u8bbe\u5907\u53d1\u9001\u6d88\u606f\u5230\u4ece\u8bbe\u5907\uff0c\u4ece\u8bbe\u5907\u63a5\u6536\u5230\u6d88\u606f\u540e\uff0c\u4f1a\u56de\u590d\u4e00\u4e2a\u786e\u8ba4\u5e94\u7b54\u6d88\u606f\uff0c\u8868\u660e\u6d88\u606f\u5df2\u6536\u5230\u3002\u5728\u88ab\u52a8\u5f0f\u6a21\u5f0f\u4e0b\uff0c\u4ece\u8bbe\u5907\u4f1a\u5b9a\u671f\u53d1\u9001\u6570\u636e\u7ed9\u4e3b\u8bbe\u5907\uff0c\u4e3b\u8bbe\u5907\u63a5\u6536\u5230\u6570\u636e\u540e\uff0c\u4f1a\u56de\u590d\u4e00\u4e2a\u786e\u8ba4\u5e94\u7b54\u6d88\u606f\uff0c\u8868\u660e\u6570\u636e\u5df2\u6536\u5230\u3002<\/p>\n
Modbus ASCII\u7684\u5e94\u7528\u4e5f\u975e\u5e38\u5e7f\u6cdb\uff0c\u4e3b\u8981\u7528\u4e8e\u8de8\u5e73\u53f0\u7684\u6570\u636e\u4ea4\u6362\uff0c\u5982Windows\u548cLinux\u7b49\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u4e0d\u540c\u7cfb\u7edf\u4e4b\u95f4\u7684\u6570\u636e\u4ea4\u6362\uff0c\u5b9e\u73b0\u8bbe\u5907\u95f4\u7684\u8fdc\u7a0b\u63a7\u5236\uff0c\u63d0\u9ad8\u7cfb\u7edf\u7684\u53ef\u9760\u6027\u548c\u7075\u6d3b\u6027\u3002<\/p>\n
Modbus TCP\/IP\u662fModbus\u534f\u8bae\u7684\u53e6\u4e00\u79cd\u5b9e\u73b0\u65b9\u5f0f\uff0c\u5b83\u4f7f\u7528TCP\/IP\u534f\u8bae\u8fdb\u884c\u6570\u636e\u4f20\u8f93\uff0c\u53ef\u4ee5\u5728\u4efb\u4f55\u7f51\u7edc\u73af\u5883\u4e2d\u5b9e\u73b0\u8fdc\u7a0b\u6570\u636e\u4ea4\u6362\u3002Modbus TCP\/IP\u7684\u7279\u70b9\u662f\u4f20\u8f93\u6570\u636e\u91cf\u5927\uff0c\u4f20\u8f93\u901f\u7387\u5feb\uff0c\u6570\u636e\u4f20\u8f93\u8ddd\u79bb\u53ef\u8fbe1000\u516c\u91cc\uff0c\u5728\u7f51\u7edc\u63a7\u5236\u7cfb\u7edf\u4e2d\u6709\u7740\u5e7f\u6cdb\u7684\u5e94\u7528\u3002<\/p>\n
Modbus TCP\/IP\u7684\u4f20\u8f93\u6a21\u5f0f\u4e3b\u8981\u5206\u4e3a\u4e24\u79cd\uff1a\u5ba2\u6237\u7aef\/\u670d\u52a1\u5668\u6a21\u5f0f\u548c\u70b9\u5bf9\u70b9\u6a21\u5f0f\u3002\u5728\u5ba2\u6237\u7aef\/\u670d\u52a1\u5668\u6a21\u5f0f\u4e0b\uff0c\u5ba2\u6237\u7aef\u53d1\u9001\u6d88\u606f\u5230\u670d\u52a1\u5668\uff0c\u670d\u52a1\u5668\u63a5\u6536\u5230\u6d88\u606f\u540e\uff0c\u4f1a\u56de\u590d\u4e00\u4e2a\u786e\u8ba4\u5e94\u7b54\u6d88\u606f\uff0c\u8868\u660e\u6d88\u606f\u5df2\u6536\u5230\u3002\u5728\u70b9\u5bf9\u70b9\u6a21\u5f0f\u4e0b\uff0c\u670d\u52a1\u5668\u4f1a\u5b9a\u671f\u53d1\u9001\u6570\u636e\u7ed9\u5ba2\u6237\u7aef\uff0c\u5ba2\u6237\u7aef\u63a5\u6536\u5230\u6570\u636e\u540e\uff0c\u4f1a\u56de\u590d\u4e00\u4e2a\u786e\u8ba4\u5e94\u7b54\u6d88\u606f\uff0c\u8868\u660e\u6570\u636e\u5df2\u6536\u5230\u3002<\/p>\n
Modbus TCP\/IP\u7684\u5e94\u7528\u4e5f\u975e\u5e38\u5e7f\u6cdb\uff0c\u4e3b\u8981\u7528\u4e8e\u7f51\u7edc\u63a7\u5236\u7cfb\u7edf\uff0c\u5982\u7269\u8054\u7f51\u3001\u4e91\u8ba1\u7b97\u3001\u5927\u6570\u636e\u7b49\u7cfb\u7edf\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u4e0d\u540c\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4ea4\u6362\uff0c\u5b9e\u73b0\u8bbe\u5907\u95f4\u7684\u8fdc\u7a0b\u63a7\u5236\uff0c\u63d0\u9ad8\u7cfb\u7edf\u7684\u53ef\u9760\u6027\u548c\u7075\u6d3b\u6027\u3002<\/p>\n
Modbus\u662f\u4e00\u79cd\u4e13\u95e8\u7528\u4e8e\u5de5\u4e1a\u63a7\u5236\u7cfb\u7edf\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u652f\u6301\u7684\u7c7b\u578b\u5305\u62ecModbus RTU\u3001Modbus ASCII\u3001Modbus TCP\/IP\u7b49\u3002<\/strong>\u5b83\u4eec\u5728\u4e0d\u540c\u7684\u5e94\u7528\u73af\u5883\u4e2d\u6709\u7740\u4e0d\u540c\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u4e0d\u540c\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4ea4\u6362\uff0c\u5b9e\u73b0\u8bbe\u5907\u95f4\u7684\u8fdc\u7a0b\u63a7\u5236\uff0c\u63d0\u9ad8\u7cfb\u7edf\u7684\u53ef\u9760\u6027\u548c\u7075\u6d3b\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" Modbus\u662f\u4e00\u79cd\u4e13\u95e8\u7528\u4e8e\u5de5\u4e1a\u63a7\u5236\u7cfb\u7edf\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u8ba9\u4e0d\u540c\u7684\u8bbe\u5907\u4e4b\u95f4\u8fdb\u884c\u7b80\u5355\u7684\u6d88\u606f\u4ea4\u6362\u3002\u5b83\u652f\u6301\u7684\u7c7b\u578b\u5305\u62ecModbusRTU\u3001ModbusASCII\u3001Modbus<\/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-38882","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\/38882","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=38882"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/38882\/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=38882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=38882"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=38882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}