{"id":22804,"date":"2023-08-27T17:46:01","date_gmt":"2023-08-27T09:46:01","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=22804"},"modified":"2023-08-27T17:46:05","modified_gmt":"2023-08-27T09:46:05","slug":"mxydzdyb","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/22804.html","title":{"rendered":"Modbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868"},"content":{"rendered":"\n

\u3000\u3000Modbus\u534f\u8bae\u662f\u4e00\u79cd\u5e38\u7528\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5de5\u4e1a\u81ea\u52a8\u5316\u9886\u57df\u3002\u5728\u4f7f\u7528Modbus\u534f\u8bae\u8fdb\u884c\u901a\u4fe1\u65f6\uff0c\u4e86\u89e3Modbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u672c\u6587\u5c06\u4ecb\u7ecdModbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868\u7684\u6982\u5ff5\u3001\u7ed3\u6784\u4ee5\u53ca\u5176\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u4f5c\u7528\u3002<\/p>\n\n\n\n

\u3000\u3000\u4e00\u3001Modbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868\u7684\u6982\u5ff5<\/h2>\n\n\n\n

\u3000\u3000Modbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868\u662f\u4e00\u79cd\u7528\u4e8e\u6807\u8bc6\u548c\u7ba1\u7406Modbus\u8bbe\u5907\u4e2d\u6570\u636e\u7684\u5de5\u5177\u3002\u5b83\u901a\u8fc7\u5c06\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u4e0e\u7279\u5b9a\u7684\u5730\u5740\u5bf9\u5e94\u8d77\u6765\uff0c\u5b9e\u73b0\u6570\u636e\u5728Modbus\u7f51\u7edc\u4e2d\u7684\u4f20\u8f93\u548c\u8bbf\u95ee\u3002<\/strong>Modbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868\u901a\u5e38\u5305\u542b\u591a\u4e2a\u6570\u636e\u70b9\uff0c\u6bcf\u4e2a\u6570\u636e\u70b9\u90fd\u6709\u4e00\u4e2a\u552f\u4e00\u7684\u5730\u5740\u3002<\/p>\n\n\n\n

\u3000\u3000\u4e8c\u3001Modbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868\u7684\u7ed3\u6784<\/h2>\n\n\n\n

\u3000\u3000Modbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868\u901a\u5e38\u7531\u5bc4\u5b58\u5668(Register)\u548c\u7ebf\u5708(Coil)\u4e24\u90e8\u5206\u7ec4\u6210\u3002<\/p>\n\n\n\n

\u3000\u30001. \u5bc4\u5b58\u5668(Register)<\/h3>\n\n\n\n

\u3000\u3000\u5bc4\u5b58\u5668\u7528\u4e8e\u5b58\u50a8Modbus\u8bbe\u5907\u7684\u8f93\u5165\u548c\u8f93\u51fa\u6570\u636e\u3002\u6839\u636e\u6570\u636e\u7684\u7c7b\u578b\u548c\u7528\u9014\uff0c\u5bc4\u5b58\u5668\u53ef\u4ee5\u5206\u4e3a\u4ee5\u4e0b\u51e0\u79cd\u7c7b\u578b\uff1a<\/p>\n\n\n\n

    \n
  • \u3000\u3000\u8f93\u5165\u5bc4\u5b58\u5668(Input Register)\uff1a\u7528\u4e8e\u5b58\u50a8Modbus\u8bbe\u5907\u7684\u8f93\u5165\u6570\u636e\uff0c\u5982\u4f20\u611f\u5668\u6570\u636e\u7b49\u3002<\/li>\n\n\n\n
  • \u3000\u3000\u4fdd\u6301\u5bc4\u5b58\u5668(Holding Register)\uff1a\u7528\u4e8e\u5b58\u50a8Modbus\u8bbe\u5907\u7684\u8f93\u51fa\u6570\u636e\uff0c\u5982\u63a7\u5236\u547d\u4ee4\u7b49\u3002<\/li>\n<\/ul>\n\n\n\n

    \u3000\u30002. \u7ebf\u5708(Coil)<\/h3>\n\n\n\n

    \u3000\u3000\u7ebf\u5708\u7528\u4e8e\u63a7\u5236Modbus\u8bbe\u5907\u7684\u5f00\u5173\u72b6\u6001\u3002\u6839\u636e\u7ebf\u5708\u7684\u7c7b\u578b\u548c\u7528\u9014\uff0c\u7ebf\u5708\u53ef\u4ee5\u5206\u4e3a\u4ee5\u4e0b\u51e0\u79cd\u7c7b\u578b\uff1a<\/p>\n\n\n\n

      \n
    • \u3000\u3000\u79bb\u6563\u8f93\u51fa\u7ebf\u5708(Discrete Output Coil)\uff1a\u7528\u4e8e\u63a7\u5236Modbus\u8bbe\u5907\u7684\u5f00\u5173\u8f93\u51fa\u72b6\u6001\uff0c\u5982\u5f00\u5173\u706f\u7b49\u3002<\/li>\n\n\n\n
    • \u3000\u3000\u79bb\u6563\u8f93\u5165\u7ebf\u5708(Discrete Input Coil)\uff1a\u7528\u4e8e\u8bfb\u53d6Modbus\u8bbe\u5907\u7684\u5f00\u5173\u8f93\u5165\u72b6\u6001\uff0c\u5982\u5f00\u5173\u6309\u94ae\u7b49\u3002<\/li>\n<\/ul>\n\n\n\n

      \u3000\u3000\u4e09\u3001Modbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868\u7684\u5e94\u7528<\/h2>\n\n\n\n

      \u3000\u3000Modbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u8d77\u7740\u91cd\u8981\u7684\u4f5c\u7528\u3002\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5de5\u7a0b\u5e08\u51c6\u786e\u5730\u8bbf\u95ee\u548c\u914d\u7f6eModbus\u8bbe\u5907\u4e2d\u7684\u6570\u636e\u3002\u4ee5\u4e0b\u662fModbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868\u7684\u51e0\u4e2a\u5e94\u7528\u573a\u666f\uff1a<\/p>\n\n\n\n

      \u3000\u30001. \u6570\u636e\u8bfb\u53d6\u548c\u5199\u5165<\/h3>\n\n\n\n

      \u3000\u3000\u901a\u8fc7Modbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868\uff0c\u5de5\u7a0b\u5e08\u53ef\u4ee5\u51c6\u786e\u5730\u8bfb\u53d6\u548c\u5199\u5165Modbus\u8bbe\u5907\u4e2d\u7684\u6570\u636e\u3002\u4f8b\u5982\uff0c\u901a\u8fc7\u8bfb\u53d6\u4fdd\u6301\u5bc4\u5b58\u5668\u4e2d\u7684\u6570\u636e\uff0c\u5de5\u7a0b\u5e08\u53ef\u4ee5\u83b7\u53d6\u5230Modbus\u8bbe\u5907\u7684\u8f93\u51fa\u72b6\u6001;\u901a\u8fc7\u5199\u5165\u4fdd\u6301\u5bc4\u5b58\u5668\u4e2d\u7684\u6570\u636e\uff0c\u5de5\u7a0b\u5e08\u53ef\u4ee5\u63a7\u5236Modbus\u8bbe\u5907\u7684\u5f00\u5173\u72b6\u6001\u3002<\/p>\n\n\n\n

      \u3000\u30002. \u8bbe\u5907\u914d\u7f6e\u548c\u53c2\u6570\u8bbe\u7f6e<\/h3>\n\n\n\n

      \u3000\u3000\u901a\u8fc7Modbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868\uff0c\u5de5\u7a0b\u5e08\u53ef\u4ee5\u8f7b\u677e\u5730\u914d\u7f6e\u548c\u8bbe\u7f6eModbus\u8bbe\u5907\u7684\u53c2\u6570\u3002\u4f8b\u5982\uff0c\u901a\u8fc7\u5199\u5165\u8f93\u5165\u5bc4\u5b58\u5668\u4e2d\u7684\u6570\u636e\uff0c\u5de5\u7a0b\u5e08\u53ef\u4ee5\u8bbe\u7f6eModbus\u8bbe\u5907\u7684\u91c7\u6837\u9891\u7387;\u901a\u8fc7\u8bfb\u53d6\u8f93\u5165\u5bc4\u5b58\u5668\u4e2d\u7684\u6570\u636e\uff0c\u5de5\u7a0b\u5e08\u53ef\u4ee5\u83b7\u53d6\u5230Modbus\u8bbe\u5907\u7684\u5f53\u524d\u5de5\u4f5c\u72b6\u6001\u3002<\/p>\n\n\n\n

      \u3000\u30003. \u6545\u969c\u8bca\u65ad\u548c\u6570\u636e\u76d1\u6d4b<\/h3>\n\n\n\n

      \u3000\u3000\u901a\u8fc7Modbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868\uff0c\u5de5\u7a0b\u5e08\u53ef\u4ee5\u5b9e\u65f6\u76d1\u6d4b\u548c\u8bca\u65adModbus\u8bbe\u5907\u7684\u6545\u969c\u3002\u4f8b\u5982\uff0c\u901a\u8fc7\u8bfb\u53d6\u79bb\u6563\u8f93\u5165\u7ebf\u5708\u4e2d\u7684\u6570\u636e\uff0c\u5de5\u7a0b\u5e08\u53ef\u4ee5\u83b7\u53d6\u5230Modbus\u8bbe\u5907\u7684\u62a5\u8b66\u72b6\u6001;\u901a\u8fc7\u8bfb\u53d6\u4fdd\u6301\u5bc4\u5b58\u5668\u4e2d\u7684\u6570\u636e\uff0c\u5de5\u7a0b\u5e08\u53ef\u4ee5\u83b7\u53d6\u5230Modbus\u8bbe\u5907\u7684\u8fd0\u884c\u65f6\u95f4\u7b49\u4fe1\u606f\u3002<\/p>\n\n\n\n

      \u3000\u3000\u7ed3\u8bba\uff1a<\/h2>\n\n\n\n

      \u3000\u3000Modbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868\u662f\u5b9e\u73b0Modbus\u901a\u4fe1\u7684\u91cd\u8981\u5de5\u5177\u3002\u901a\u8fc7\u4e86\u89e3\u548c\u5e94\u7528Modbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868\uff0c\u5de5\u7a0b\u5e08\u53ef\u4ee5\u66f4\u597d\u5730\u7ba1\u7406\u548c\u63a7\u5236Modbus\u8bbe\u5907\u4e2d\u7684\u6570\u636e\u3002<\/strong>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5408\u7406\u4f7f\u7528Modbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868\u53ef\u4ee5\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\uff0c\u964d\u4f4e\u6545\u969c\u53d1\u751f\u7387\u3002\u56e0\u6b64\uff0c\u6df1\u5165\u7406\u89e3Modbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868\u7684\u6982\u5ff5\u3001\u7ed3\u6784\u548c\u5e94\u7528\u662f\u975e\u5e38\u6709\u5fc5\u8981\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

      Modbus\u534f\u8bae\u5730\u5740\u5bf9\u5e94\u8868\u662f\u4e00\u79cd\u7528\u4e8e\u6807\u8bc6\u548c\u7ba1\u7406Modbus\u8bbe\u5907\u4e2d\u6570\u636e\u7684\u5de5\u5177\u3002\u5b83\u901a\u8fc7\u5c06\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u4e0e\u7279\u5b9a\u7684\u5730\u5740\u5bf9\u5e94\u8d77\u6765\uff0c\u5b9e\u73b0\u6570\u636e\u5728Modbus\u7f51\u7edc\u4e2d\u7684\u4f20\u8f93\u548c\u8bbf\u95ee\u3002<\/p>\n","protected":false},"author":1,"featured_media":2500,"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-22804","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\/22804","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=22804"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/22804\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/2500"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=22804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=22804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=22804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}