{"id":27918,"date":"2024-04-29T00:33:05","date_gmt":"2024-04-28T16:33:05","guid":{"rendered":"https:\/\/www.modbus.cn\/?p=27918"},"modified":"2026-06-30T23:54:48","modified_gmt":"2026-06-30T15:54:48","slug":"modbus-gong-zuo-mo-shi","status":"publish","type":"post","link":"https:\/\/www.modbus.cn\/en\/27918.html","title":{"rendered":"Modbus \u5de5\u4f5c\u6a21\u5f0f"},"content":{"rendered":"<h2 class=\"wp-block-heading\" id=\"\u5de5\u4f5c\u6a21\u5f0f\">\u5de5\u4f5c\u6a21\u5f0f<a href=\"https:\/\/getiot.tech\/zh\/modbus\/modbus-working-principle#%E5%B7%A5%E4%BD%9C%E6%A8%A1%E5%BC%8F\" rel=\"noopener noreferrer nofollow\">\u200b<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Modbus \u57fa\u4e8e\u4e3b\u4ece\u6a21\u5f0f\u5de5\u4f5c\u3002\u5728\u4e00\u4e2a\u7f51\u7edc\u4e2d\uff0cModbus \u534f\u8bae\u901a\u8fc7\u4e3b\u8bbe\u5907\uff08\u5ba2\u6237\u7aef\uff09\u548c\u4ece\u8bbe\u5907\uff08\u670d\u52a1\u5668\uff09\u4e4b\u95f4\u7684\u8bf7\u6c42-\u5e94\u7b54\u673a\u5236\u6765\u4ea4\u6362\u4fe1\u606f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0b\u56fe\u5c55\u793a\u4e86\u5178\u578b\u7684 Modbus \u7f51\u7edc\uff0c\u5176\u4e2d\u4e00\u4e2a master \u8bbe\u5907\uff08client\uff09\u63a7\u5236\u4e00\u4e2a\u6216\u591a\u4e2a slave \u8bbe\u5907\uff08server\uff09\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img decoding=\"async\" src=\"https:\/\/image.modbus.cn\/wp-content\/uploads\/2024\/04\/20240429003306547.png\"  style=\"width:840px;height:auto\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u6807\u51c6\u7684 Modbus \u7f51\u7edc\u4e2d\uff0c\u6709 1 \u4e2a\u4e3b\u8bbe\u5907\u548c\u6700\u591a 31 \u4e2a\u4ece\u8bbe\u5907\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u901a\u8baf\u7279\u70b9\">\u901a\u8baf\u7279\u70b9<a href=\"https:\/\/getiot.tech\/zh\/modbus\/modbus-working-principle#%E9%80%9A%E8%AE%AF%E7%89%B9%E7%82%B9\" rel=\"noopener noreferrer nofollow\">\u200b<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e3b\u8bbe\u5907-\u4ece\u8bbe\u5907\u5de5\u4f5c\u539f\u7406\u6709\u5982\u4e0b\u7279\u70b9\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728\u540c\u4e00\u65f6\u95f4\u53ea\u80fd\u6709\u4e00\u4e2a\u4e3b\u8bbe\u5907\u8fde\u63a5\u5230\u7f51\u7edc\uff1b<\/li>\n\n\n\n<li>\u53ea\u6709\u4e3b\u8bbe\u5907\u80fd\u591f\u53d1\u8d77\u901a\u8baf\u5e76\u5411\u4ece\u8bbe\u5907\u53d1\u9001\u8bf7\u6c42\uff1b<\/li>\n\n\n\n<li>\u4e3b\u8bbe\u5907\u53ef\u4ee5\u4f7f\u7528\u4e13\u95e8\u7684\u5730\u5740\u5206\u522b\u8bbf\u95ee\u6bcf\u4e2a\u4ece\u8bbe\u5907\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5730\u5740 0 \u540c\u65f6\u8bbf\u95ee\u6240\u6709\u4ece\u8bbe\u5907\uff1b<\/li>\n\n\n\n<li>\u4ece\u8bbe\u5907\u53ea\u80fd\u5411\u4e3b\u8bbe\u5907\u53d1\u9001\u5e94\u7b54\uff1b<\/li>\n\n\n\n<li>\u4ece\u8bbe\u5907\u4e0d\u80fd\u5411\u4e3b\u8bbe\u5907\u6216\u5176\u5b83\u4ece\u8bbe\u5907\u53d1\u8d77\u901a\u8baf\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u901a\u8baf\u6a21\u5f0f\">\u901a\u8baf\u6a21\u5f0f<a href=\"https:\/\/getiot.tech\/zh\/modbus\/modbus-working-principle#%E9%80%9A%E8%AE%AF%E6%A8%A1%E5%BC%8F\" rel=\"noopener noreferrer nofollow\">\u200b<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Modbus \u534f\u8bae\u652f\u6301\u4e24\u79cd\u901a\u8baf\u6a21\u5f0f\u4ea4\u6362\u4fe1\u606f\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5355\u64ad\u6a21\u5f0f \u2014\u2014 \u4e3b\u8bbe\u5907\u901a\u8fc7\u4e13\u95e8\u7684\u5730\u5740\u8bbf\u95ee\u4ece\u8bbe\u5907\uff0c\u4ece\u8bbe\u5907\u5904\u7406\u8bf7\u6c42\uff0c\u7136\u540e\u5411\u4e3b\u8bbe\u5907\u53d1\u9001\u5e94\u7b54\u3002<\/li>\n\n\n\n<li>\u5e7f\u64ad\u6a21\u5f0f \u2014\u2014 \u4e3b\u8bbe\u5907\u901a\u8fc7\u5730\u5740 0 \u8bbf\u95ee\u6240\u6709\u4ece\u8bbe\u5907\uff0c\u5728\u8fd9\u79cd\u6a21\u5f0f\u4e0b\uff0c\u4ece\u8bbe\u5907\u4e0d\u5bf9\u5e7f\u64ad\u6d88\u606f\u4f5c\u51fa\u5e94\u7b54\u3002\uff08\u56e0\u6b64\uff0c\u5e7f\u64ad\u6a21\u5f0f\u7684\u8bf7\u6c42\u6307\u4ee4\u5fc5\u987b\u662f Modbus \u6807\u51c6\u529f\u80fd\u4e2d\u7684\u5199\u6307\u4ee4\uff09<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5e94\u7b54\u65f6\u95f4\">\u5e94\u7b54\u65f6\u95f4<a href=\"https:\/\/getiot.tech\/zh\/modbus\/modbus-working-principle#%E5%BA%94%E7%AD%94%E6%97%B6%E9%97%B4\" rel=\"noopener noreferrer nofollow\">\u200b<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5e94\u7b54\u65f6\u95f4\u662f\u6307\u4ece\u8bbe\u5907\u5bf9\u4e3b\u8bbe\u5907\u53d1\u51fa\u7684\u8bf7\u6c42\u505a\u51fa\u5e94\u7b54\u6240\u9700\u7684\u65f6\u95f4\u3002\u5176\u4e2d Modbus \u534f\u8bae\u7684\u6570\u503c\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5178\u578b\u503c &lt; 10 ms \uff0890% \u7684\u4fe1\u606f\u4ea4\u6362\uff09<\/li>\n\n\n\n<li>\u6700\u5927\u503c\u5927\u7ea6\u662f 700 ms\uff0c\u56e0\u6b64\u5efa\u8bae\u5728\u53d1\u9001\u5b8c\u4e00\u4e2a Modbus \u8bf7\u6c42\u540e\u6682\u505c 1 \u79d2\u949f\u518d\u7ee7\u7eed\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u6570\u636e\u4ea4\u6362\">\u6570\u636e\u4ea4\u6362<a href=\"https:\/\/getiot.tech\/zh\/modbus\/modbus-working-principle#%E6%95%B0%E6%8D%AE%E4%BA%A4%E6%8D%A2\" rel=\"noopener noreferrer nofollow\">\u200b<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Modbus \u534f\u8bae\u652f\u6301\u4e24\u79cd\u6570\u636e\u7c7b\u578b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5355\u4e2a\u4f4d<\/li>\n\n\n\n<li>\u5bc4\u5b58\u5668\uff0816 \u4f4d\uff09<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u5177\u4f53\u7684\u4f4d\u548c\u5bc4\u5b58\u5668\u5b9a\u4e49\u7531\u4ece\u8bbe\u5907\u51b3\u5b9a\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5730\u5740\">\u5730\u5740<a href=\"https:\/\/getiot.tech\/zh\/modbus\/modbus-working-principle#%E5%9C%B0%E5%9D%80\" rel=\"noopener noreferrer nofollow\">\u200b<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f7f\u7528 Modbus \u534f\u8bae\u4ea4\u6362\u7684\u6d88\u606f\u5305\u542b\u8981\u5904\u7406\u7684\u6570\u636e\u7684\u5730\u5740\u3002\u6bcf\u4e2a\u5bc4\u5b58\u5668\u90fd\u6709\u4e00\u4e2a\u5bc4\u5b58\u5668\u7f16\u53f7\uff0c\u6bcf\u7c7b\u6570\u636e\uff08\u4f4d\u6216\u5bc4\u5b58\u5668\uff09\u90fd\u6709\u4e00\u4e2a 16 \u4f4d\u7684\u5730\u5740\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 Modbus \u534f\u8bae\u89c4\u5b9a\u7684 PDU \u4e2d\uff0c\u89c4\u5b9a\u6240\u6709\u7ebf\u5708\u6216\u5bc4\u5b58\u5668\u5730\u5740\u4ece 0 \u5f00\u59cb\u8ba1\u7b97\u3002\u56e0\u6b64\uff0c\u7b2c n \u53f7\u5bc4\u5b58\u5668\u7684\u5730\u5740\u662f n-1\u3002\u4f8b\u5982\uff0c\u7b2c 12000 \u53f7\u5bc4\u5b58\u5668\u7684\u5730\u5740\u662f 0x2EDF\uff0811999\uff09\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5e27\">\u5e27<a href=\"https:\/\/getiot.tech\/zh\/modbus\/modbus-working-principle#%E5%B8%A7\" rel=\"noopener noreferrer nofollow\">\u200b<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f7f\u7528 Modbus \u534f\u8bae\u4ea4\u6362\u7684\u6240\u6709\u5e27\uff08ADU\uff09\u6700\u5927\u4e3a 256 \u5b57\u8282\uff08ASCII \u683c\u5f0f\u7ffb\u500d\uff09\uff0c\u5176\u4e2d\u5305\u62ec 4 \u4e2a\u57df\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u57df<\/th><th>\u5b9a\u4e49<\/th><th>\u5927\u5c0f\uff08RTU \u683c\u5f0f\uff09<\/th><th>\u63cf\u8ff0<\/th><\/tr><\/thead><tbody><tr><td>1<\/td><td>\u4ece\u8bbe\u5907\u53f7\uff08\u5730\u5740\uff09<\/td><td>1 \u4e2a\u5b57\u8282<\/td><td>\u8bf7\u6c42\u7684\u76ee\u7684\u5730\u5740<br>&#8211; 0 \uff1a\u5e7f\u64ad\uff08\u6d89\u53ca\u6240\u6709\u4ece\u8bbe\u5907\uff09<br>&#8211; 1-247 \uff1a\u5355\u64ad\uff0c\u4ece\u8bbe\u5907\u7684\u552f\u4e00\u5730\u5740<\/td><\/tr><tr><td>2<\/td><td>\u529f\u80fd\u4ee3\u7801<\/td><td>1 \u4e2a\u5b57\u8282<\/td><td>\u53c2\u9605&nbsp;<a href=\"https:\/\/getiot.tech\/zh\/modbus\/modbus-function-codes\" rel=\"noopener noreferrer nofollow\">Modbus \u529f\u80fd\u7801<\/a><\/td><\/tr><tr><td>3<\/td><td>\u6570\u636e<\/td><td>0 \u5230 252 \u4e2a\u5b57\u8282<\/td><td>\u8bf7\u6c42\u6570\u636e\uff08\u6216\u5e94\u7b54\u6570\u636e\uff09<\/td><\/tr><tr><td>4<\/td><td>\u6821\u9a8c\u548c<\/td><td>2 \u4e2a\u5b57\u8282<\/td><td>CRC \u6821\u9a8c\u548c\uff08ASCII \u4e3a LRC\uff09<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0b\u56fe\u5c55\u793a\u4e86\u4e3b\u8bbe\u5907-\u4ece\u8bbe\u5907\u5de5\u4f5c\u6a21\u578b\u4e2d\u7684\u5e27\u4ea4\u6362\u8fc7\u7a0b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img decoding=\"async\" src=\"https:\/\/image.modbus.cn\/wp-content\/uploads\/2024\/04\/20240429003307610.png\"  style=\"width:840px;height:auto\"><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u7f51\u7edc\u62d3\u6251\">\u7f51\u7edc\u62d3\u6251<a href=\"https:\/\/getiot.tech\/zh\/modbus\/modbus-working-principle#%E7%BD%91%E7%BB%9C%E6%8B%93%E6%89%91\" rel=\"noopener noreferrer nofollow\">\u200b<\/a><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"modbus-rtu\">Modbus RTU<a href=\"https:\/\/getiot.tech\/zh\/modbus\/modbus-working-principle#modbus-rtu\" rel=\"noopener noreferrer nofollow\">\u200b<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Modbus RTU \u901a\u5e38\u57fa\u4e8e RS-485 \u4e32\u884c\u901a\u4fe1\u94fe\u8def\uff0cRS-485 \u603b\u7ebf\u5e03\u7ebf\u89c4\u8303\u89c4\u5b9a\u5176\u5fc5\u987b\u662f\u603b\u7ebf\u5f0f\u62d3\u6251\u7ed3\u6784\u3002\u5728\u5b9e\u9645\u5e03\u7ebf\u4e2d\uff0c\u901a\u5e38\u91c7\u7528\u624b\u7275\u624b\u83ca\u82b1\u94fe\u5e03\u7ebf\u65b9\u5f0f\u3002\u4f8b\u5982\uff0cSlave 1\/2\/3 \u4e09\u53f0 RS-485 \u8bbe\u5907\uff0cSlave1 \u7684 485+ \u63a5\u5165 Slave2 \u7684 485+ \u7aef\u53e3\uff0cSlave2 \u7684 485+ \u518d\u8fde\u63a5\u5230 Slave3 \u7684 485+ \u7aef\u53e3\uff0c\u4ee5\u6b64\u7c7b\u63a8\uff0c485- \u7684\u63a5\u7ebf\u65b9\u5f0f\u548c 485+ \u4e00\u6837\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img decoding=\"async\" src=\"https:\/\/image.modbus.cn\/wp-content\/uploads\/2024\/04\/20240429003307515.png\"  style=\"width:840px;height:auto\"><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"modbus-tcp\">Modbus TCP<a href=\"https:\/\/getiot.tech\/zh\/modbus\/modbus-working-principle#modbus-tcp\" rel=\"noopener noreferrer nofollow\">\u200b<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u76f8\u5bf9\u4e8e\u4f7f\u7528\u4e32\u884c\u94fe\u8def\u7684 Modbus RTU\uff0cModbus TCP \u57fa\u4e8e\u4ee5\u592a\u7f51\u901a\u4fe1\uff0c\u56e0\u6b64\u5176\u7f51\u7edc\u62d3\u6251\u7ed3\u6784\u66f4\u4e3a\u7075\u6d3b\u3002\u4ece\u4e32\u884c\u94fe\u8def\u4e0a\u4e00\u4e3b\u591a\u4ece\u7684\u6784\u9020\uff0c\u6f14\u53d8\u4e3a\u591a\u5ba2\u6237\u7aef\/\u591a\u670d\u52a1\u5668\u7aef\u7684\u6784\u9020\u6a21\u578b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f7f\u7528 Modbus TCP\uff0c\u4e3b\u7ad9\u8bbe\u5907\uff08\u5ba2\u6237\u7aef\uff09\u53ef\u4ee5\u901a\u8fc7 IP \u5730\u5740\u627e\u5230 Modbus \u4ece\u8bbe\u5907\uff08\u670d\u52a1\u5668\uff09\uff0c\u5e76\u901a\u8fc7 Modbus \u7f51\u5173\u8fde\u63a5\u5230\u53e6\u4e00\u4e2a Modbus RTU \u7f51\u7edc\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img decoding=\"async\" src=\"https:\/\/image.modbus.cn\/wp-content\/uploads\/2024\/04\/20240429003308463.png\"  style=\"width:840px;height:auto\"><\/figure>\n<span id=\"magicpostMarker\"><\/span>","protected":false},"excerpt":{"rendered":"<p>\u5de5\u4f5c\u6a21\u5f0f\u200b Modbus \u57fa\u4e8e\u4e3b\u4ece\u6a21\u5f0f\u5de5\u4f5c\u3002\u5728\u4e00\u4e2a\u7f51\u7edc\u4e2d\uff0cM&#8230;<\/p>","protected":false},"author":1,"featured_media":27960,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[1394],"tags":[690,562],"class_list":["post-27918","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-modbus-protocol","tag-modbus-protocol","tag-562"],"_links":{"self":[{"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/posts\/27918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/comments?post=27918"}],"version-history":[{"count":0,"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/posts\/27918\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/media\/27960"}],"wp:attachment":[{"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/media?parent=27918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/categories?post=27918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/tags?post=27918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}