{"id":33345,"date":"2023-09-19T09:07:07","date_gmt":"2023-09-19T01:07:07","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=33345"},"modified":"2023-09-19T09:07:07","modified_gmt":"2023-09-19T01:07:07","slug":"zmzpfcdmdm","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/33345.html","title":{"rendered":"\u600e\u4e48\u6293PLC\u53d1\u51fa\u7684Modbus\u7684\u7801"},"content":{"rendered":"

  Modbus\u662f\u4e00\u79cd\u901a\u7528\u7684\u5de5\u4e1a\u901a\u4fe1\u534f\u8bae\uff0c\u7528\u4e8e\u5728\u5de5\u4e1a\u8bbe\u5907\u548c\u63a7\u5236\u7cfb\u7edf\u4e4b\u95f4\u8fdb\u884c\u6570\u636e\u4f20\u8f93\u3002PLC\u53ef\u4ee5\u4f7f\u7528Modbus\u534f\u8bae\u53d1\u51fa\u4e00\u4e9b\u6307\u4ee4\uff0c\u4ee5\u63a7\u5236\u8fde\u63a5\u7684\u8bbe\u5907\uff0c\u4f46\u662f\u5982\u4f55\u6293\u53d6\u8fd9\u4e9b\u6307\u4ee4\uff1f\u672c\u6587\u5c06\u4e3a\u60a8\u4ecb\u7ecd\u5982\u4f55\u6293\u53d6PLC\u53d1\u51fa\u7684Modbus\u7684\u7801\u3002<\/p>\n

\u4e86\u89e3Modbus\u534f\u8bae<\/h2>\n

  Modbus\u534f\u8bae\u662f\u4e00\u79cd\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u4fe1\u606f\u3002Modbus\u534f\u8bae\u53ef\u4ee5\u5206\u4e3a\u4e24\u79cd\uff1aModbus RTU\u548cModbus ASCII\u3002Modbus RTU\u662f\u4e00\u79cd\u4e8c\u8fdb\u5236\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u4f7f\u75288\u4f4d\u5b57\u8282\u6765\u4f20\u8f93\u6570\u636e\uff0c\u5e76\u4f7f\u7528\u5947\u5076\u6821\u9a8c\u6765\u786e\u4fdd\u6570\u636e\u7684\u5b8c\u6574\u6027\uff1b\u800cModbus ASCII\u5219\u662f\u4e00\u79cd\u6587\u672c\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u4f7f\u75287\u4f4d\u5b57\u8282\u6765\u4f20\u8f93\u6570\u636e\uff0c\u5e76\u4f7f\u7528LRC\uff08Longitudinal Redundancy Check\uff09\u6765\u786e\u4fdd\u6570\u636e\u7684\u5b8c\u6574\u6027\u3002<\/p>\n

\u6293\u53d6PLC\u53d1\u51fa\u7684Modbus\u7684\u7801<\/h2>\n

1.\u4f7f\u7528Modbus\u6293\u53d6\u8f6f\u4ef6<\/h3>\n

  \u73b0\u5728\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528Modbus\u6293\u53d6\u8f6f\u4ef6\u6765\u6293\u53d6PLC\u53d1\u51fa\u7684Modbus\u7684\u7801\u3002\u8fd9\u6b3e\u8f6f\u4ef6\u53ef\u4ee5\u8ba9\u60a8\u67e5\u770b\u548c\u8bfb\u53d6PLC\u53d1\u51fa\u7684Modbus\u6307\u4ee4\uff0c\u5e76\u4e14\u53ef\u4ee5\u76f4\u63a5\u5728\u8f6f\u4ef6\u4e2d\u67e5\u770b\u8fd9\u4e9b\u6307\u4ee4\u7684\u5185\u5bb9\uff0c\u4ece\u800c\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u4e86\u89e3PLC\u53d1\u51fa\u7684Modbus\u6307\u4ee4\u7684\u5177\u4f53\u5185\u5bb9\u3002<\/p>\n

2.\u4f7f\u7528Modbus\u76d1\u89c6\u5668<\/h3>\n

  \u6b64\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528Modbus\u76d1\u89c6\u5668\u6765\u6293\u53d6PLC\u53d1\u51fa\u7684Modbus\u7684\u7801\u3002Modbus\u76d1\u89c6\u5668\u53ef\u4ee5\u5e2e\u52a9\u60a8\u67e5\u770b\u548c\u8bfb\u53d6PLC\u53d1\u51fa\u7684Modbus\u6307\u4ee4\uff0c\u5e76\u4e14\u53ef\u4ee5\u76f4\u63a5\u5728\u8f6f\u4ef6\u4e2d\u67e5\u770b\u8fd9\u4e9b\u6307\u4ee4\u7684\u5185\u5bb9\uff0c\u4ece\u800c\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u4e86\u89e3PLC\u53d1\u51fa\u7684Modbus\u6307\u4ee4\u7684\u5177\u4f53\u5185\u5bb9\u3002<\/p>\n

3.\u4f7f\u7528Modbus\u8c03\u8bd5\u5668<\/h3>\n

  \u6700\u540e\uff0c\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528Modbus\u8c03\u8bd5\u5668\u6765\u6293\u53d6PLC\u53d1\u51fa\u7684Modbus\u7684\u7801\u3002Modbus\u8c03\u8bd5\u5668\u53ef\u4ee5\u5e2e\u52a9\u60a8\u67e5\u770b\u548c\u8bfb\u53d6PLC\u53d1\u51fa\u7684Modbus\u6307\u4ee4\uff0c\u5e76\u4e14\u53ef\u4ee5\u76f4\u63a5\u5728\u8f6f\u4ef6\u4e2d\u67e5\u770b\u8fd9\u4e9b\u6307\u4ee4\u7684\u5185\u5bb9\uff0c\u4ece\u800c\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u4e86\u89e3PLC\u53d1\u51fa\u7684Modbus\u6307\u4ee4\u7684\u5177\u4f53\u5185\u5bb9\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u6293\u53d6PLC\u53d1\u51fa\u7684Modbus\u7684\u7801\uff0c\u5305\u62ec\u4f7f\u7528Modbus\u6293\u53d6\u8f6f\u4ef6\u3001Modbus\u76d1\u89c6\u5668\u548cModbus\u8c03\u8bd5\u5668\u3002<\/strong>\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u4e86\u89e3PLC\u53d1\u51fa\u7684Modbus\u6307\u4ee4\u7684\u5177\u4f53\u5185\u5bb9\uff0c\u4ece\u800c\u66f4\u597d\u5730\u63a7\u5236\u548c\u7ba1\u7406PLC\u8fde\u63a5\u7684\u8bbe\u5907\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Modbus\u662f\u4e00\u79cd\u901a\u7528\u7684\u5de5\u4e1a\u901a\u4fe1\u534f\u8bae\uff0c\u7528\u4e8e\u5728\u5de5\u4e1a\u8bbe\u5907\u548c\u63a7\u5236\u7cfb\u7edf\u4e4b\u95f4\u8fdb\u884c\u6570\u636e\u4f20\u8f93\u3002PLC\u53ef\u4ee5\u4f7f\u7528Modbus\u534f\u8bae\u53d1\u51fa\u4e00\u4e9b\u6307\u4ee4\uff0c\u4ee5\u63a7\u5236\u8fde\u63a5\u7684\u8bbe\u5907\uff0c\u4f46\u662f\u5982\u4f55\u6293\u53d6\u8fd9\u4e9b\u6307\u4ee4\uff1f\u672c\u6587\u5c06<\/p>\n","protected":false},"author":1,"featured_media":3671,"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-33345","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\/33345","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=33345"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/33345\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/3671"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=33345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=33345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=33345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}