{"id":48069,"date":"2023-10-03T22:29:38","date_gmt":"2023-10-03T14:29:38","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=48069"},"modified":"2023-10-03T22:29:52","modified_gmt":"2023-10-03T14:29:52","slug":"mjszgs","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/48069.html","title":{"rendered":"Modbus\u63a5\u6536\u5e27\u683c\u5f0f"},"content":{"rendered":"

  Modbus\u662f\u4e00\u79cd\u5de5\u4e1a\u63a7\u5236\u7cfb\u7edf\u7684\u901a\u7528\u534f\u8bae\uff0c\u5b83\u5b9a\u4e49\u4e86\u4e00\u79cd\u63a5\u6536\u5e27\u683c\u5f0f\uff0c\u7528\u4e8e\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\uff0c\u4ee5\u5b9e\u73b0\u6570\u636e\u7684\u53ef\u9760\u4f20\u8f93\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdModbus\u63a5\u6536\u5e27\u683c\u5f0f\u7684\u7ec4\u6210\uff0c\u4ee5\u53ca\u5176\u4e2d\u5404\u4e2a\u90e8\u5206\u7684\u4f5c\u7528\u3002<\/p>\n

Modbus\u63a5\u6536\u5e27\u683c\u5f0f\u7684\u7ec4\u6210<\/h2>\n

  Modbus\u63a5\u6536\u5e27\u683c\u5f0f\u7531\u591a\u4e2a\u5b57\u8282\u7ec4\u6210\uff0c\u5b83\u4eec\u5206\u522b\u88ab\u79f0\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u90e8\u5206\uff1a<\/p>\n

  1.\u8bbe\u5907\u5730\u5740\uff08Device Address\uff09<\/h3>\n

  \u8bbe\u5907\u5730\u5740\u662fModbus\u63a5\u6536\u5e27\u683c\u5f0f\u4e2d\u7684\u7b2c\u4e00\u4e2a\u5b57\u8282\uff0c\u5b83\u7528\u4e8e\u6807\u8bc6\u53d1\u9001\u5e27\u7684\u8bbe\u5907\uff0c\u5b83\u7684\u53d6\u503c\u8303\u56f4\u662f0\u5230255\uff0c\u5176\u4e2d0\u8868\u793a\u5e7f\u64ad\u53d1\u9001\u3002<\/p>\n

  2.\u529f\u80fd\u7801\uff08Function Code\uff09<\/h3>\n

  \u529f\u80fd\u7801\u662fModbus\u63a5\u6536\u5e27\u683c\u5f0f\u4e2d\u7684\u7b2c\u4e8c\u4e2a\u5b57\u8282\uff0c\u5b83\u7528\u4e8e\u6807\u8bc6\u53d1\u9001\u5e27\u7684\u529f\u80fd\uff0c\u6bd4\u5982\u8bfb\u53d6\u6570\u636e\u3001\u5199\u5165\u6570\u636e\u7b49\uff0c\u5b83\u7684\u53d6\u503c\u8303\u56f4\u662f0\u5230255\uff0c\u5176\u4e2d0\u8868\u793a\u9519\u8bef\u3002<\/p>\n

  3.\u6570\u636e\u5730\u5740\uff08Data Address\uff09<\/h3>\n

  \u6570\u636e\u5730\u5740\u662fModbus\u63a5\u6536\u5e27\u683c\u5f0f\u4e2d\u7684\u7b2c\u4e09\u4e2a\u5b57\u8282\uff0c\u5b83\u7528\u4e8e\u6807\u8bc6\u53d1\u9001\u5e27\u7684\u6570\u636e\u5730\u5740\uff0c\u5b83\u7684\u53d6\u503c\u8303\u56f4\u662f0\u523065535\uff0c\u5176\u4e2d0\u8868\u793a\u65e0\u6548\u5730\u5740\u3002<\/p>\n

  4.\u6570\u636e\u957f\u5ea6\uff08Data Length\uff09<\/h3>\n

  \u6570\u636e\u957f\u5ea6\u662fModbus\u63a5\u6536\u5e27\u683c\u5f0f\u4e2d\u7684\u7b2c\u56db\u4e2a\u5b57\u8282\uff0c\u5b83\u7528\u4e8e\u6807\u8bc6\u53d1\u9001\u5e27\u7684\u6570\u636e\u957f\u5ea6\uff0c\u5b83\u7684\u53d6\u503c\u8303\u56f4\u662f0\u523065535\uff0c\u5176\u4e2d0\u8868\u793a\u65e0\u6570\u636e\u3002<\/p>\n

  5.\u6570\u636e\uff08Data\uff09<\/h3>\n

  \u6570\u636e\u662fModbus\u63a5\u6536\u5e27\u683c\u5f0f\u4e2d\u7684\u6700\u540e\u4e00\u4e2a\u5b57\u8282\uff0c\u5b83\u7528\u4e8e\u6807\u8bc6\u53d1\u9001\u5e27\u7684\u6570\u636e\uff0c\u5b83\u7684\u53d6\u503c\u8303\u56f4\u662f0\u523065535\uff0c\u5176\u4e2d0\u8868\u793a\u65e0\u6570\u636e\u3002<\/p>\n

Modbus\u63a5\u6536\u5e27\u683c\u5f0f\u7684\u4f5c\u7528<\/h2>\n

  Modbus\u63a5\u6536\u5e27\u683c\u5f0f\u7684\u4f5c\u7528\u662f\u7528\u4e8e\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\uff0c\u4ee5\u5b9e\u73b0\u6570\u636e\u7684\u53ef\u9760\u4f20\u8f93\u3002\u5b83\u7684\u8bbe\u5907\u5730\u5740\u3001\u529f\u80fd\u7801\u3001\u6570\u636e\u5730\u5740\u3001\u6570\u636e\u957f\u5ea6\u548c\u6570\u636e\u5b57\u6bb5\u7b49\u90fd\u662f\u7528\u4e8e\u6807\u8bc6\u53d1\u9001\u5e27\u7684\u76f8\u5173\u4fe1\u606f\uff0c\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u6b63\u786e\u4f20\u8f93\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  Modbus\u63a5\u6536\u5e27\u683c\u5f0f\u662f\u4e00\u79cd\u7528\u4e8e\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\u7684\u6807\u51c6\u683c\u5f0f\uff0c\u5b83\u7684\u7ec4\u6210\u5305\u62ec\u8bbe\u5907\u5730\u5740\u3001\u529f\u80fd\u7801\u3001\u6570\u636e\u5730\u5740\u3001\u6570\u636e\u957f\u5ea6\u548c\u6570\u636e\u5b57\u6bb5\u7b49\uff0c\u5b83\u7684\u4f5c\u7528\u662f\u7528\u4e8e\u6807\u8bc6\u53d1\u9001\u5e27\u7684\u76f8\u5173\u4fe1\u606f\uff0c\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u6b63\u786e\u4f20\u8f93\u3002<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"

Modbus\u662f\u4e00\u79cd\u5de5\u4e1a\u63a7\u5236\u7cfb\u7edf\u7684\u901a\u7528\u534f\u8bae\uff0c\u5b83\u5b9a\u4e49\u4e86\u4e00\u79cd\u63a5\u6536\u5e27\u683c\u5f0f\uff0c\u7528\u4e8e\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\uff0c\u4ee5\u5b9e\u73b0\u6570\u636e\u7684\u53ef\u9760\u4f20\u8f93\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdModbus\u63a5\u6536\u5e27\u683c\u5f0f\u7684\u7ec4\u6210\uff0c\u4ee5\u53ca\u5176\u4e2d\u5404\u4e2a\u90e8\u5206\u7684<\/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-48069","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\/48069","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=48069"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/48069\/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=48069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=48069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=48069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}