{"id":33356,"date":"2023-09-15T09:01:39","date_gmt":"2023-09-15T01:01:39","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=33356"},"modified":"2023-09-15T09:01:39","modified_gmt":"2023-09-15T01:01:39","slug":"xhpdydmdz","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/33356.html","title":{"rendered":"\u4fe1\u5408PLC\u5bf9\u5e94\u7684ModbusTCP\u5730\u5740"},"content":{"rendered":"
Modbus\u662f\u4e00\u79cd\u901a\u7528\u7684\u5de5\u4e1a\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u4f7f\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\u3002\u4fe1\u5408PLC\u662f\u4e00\u79cd\u9ad8\u6027\u80fd\u7684\u53ef\u7f16\u7a0b\u63a7\u5236\u5668\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7ModbusTCP\u534f\u8bae\u4e0e\u5176\u4ed6\u8bbe\u5907\u8fdb\u884c\u901a\u4fe1\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u4fe1\u5408PLC\u5bf9\u5e94\u7684ModbusTCP\u5730\u5740\uff0c\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5730\u5740\u6765\u5b9e\u73b0\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u3002<\/p>\n
ModbusTCP\u5730\u5740\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u7f16\u7801\u65b9\u5f0f\uff0c\u7528\u4e8e\u6807\u8bc6\u8bbe\u5907\u4e2d\u7684\u4e0d\u540c\u5bc4\u5b58\u5668\u3002\u5b83\u7531\u4e09\u4e2a\u90e8\u5206\u7ec4\u6210\uff1a\u8bbe\u5907\u5730\u5740\u3001\u529f\u80fd\u7801\u548c\u5bc4\u5b58\u5668\u5730\u5740\u3002\u8bbe\u5907\u5730\u5740\u7528\u4e8e\u6807\u8bc6\u4e0d\u540c\u7684\u8bbe\u5907\uff0c\u529f\u80fd\u7801\u7528\u4e8e\u6807\u8bc6\u8981\u6267\u884c\u7684\u64cd\u4f5c\uff0c\u5bc4\u5b58\u5668\u5730\u5740\u7528\u4e8e\u6807\u8bc6\u8981\u64cd\u4f5c\u7684\u5bc4\u5b58\u5668\u3002<\/p>\n
\u4fe1\u5408PLC\u53ef\u4ee5\u901a\u8fc7ModbusTCP\u534f\u8bae\u4e0e\u5176\u4ed6\u8bbe\u5907\u8fdb\u884c\u901a\u4fe1\uff0c\u5176\u5bf9\u5e94\u7684ModbusTCP\u5730\u5740\u7531\u8bbe\u5907\u5730\u5740\u3001\u529f\u80fd\u7801\u548c\u5bc4\u5b58\u5668\u5730\u5740\u4e09\u90e8\u5206\u7ec4\u6210\u3002\u8bbe\u5907\u5730\u5740\u662f\u4e00\u4e2a\u5b57\u8282\uff0c\u53d6\u503c\u8303\u56f4\u4e3a0x00~0xFF\uff1b\u529f\u80fd\u7801\u662f\u4e00\u4e2a\u5b57\u8282\uff0c\u53d6\u503c\u8303\u56f4\u4e3a0x01~0xFF\uff1b\u5bc4\u5b58\u5668\u5730\u5740\u662f\u4e24\u4e2a\u5b57\u8282\uff0c\u53d6\u503c\u8303\u56f4\u4e3a0x0000~0xFFFF\u3002<\/p>\n
\u8bbe\u5907\u5730\u5740\u662f\u4e00\u4e2a\u5b57\u8282\uff0c\u53d6\u503c\u8303\u56f4\u4e3a0x00~0xFF\u3002\u5b83\u7528\u4e8e\u6807\u8bc6\u4e0d\u540c\u7684\u8bbe\u5907\uff0c\u4e00\u822c\u7531\u8bbe\u5907\u5236\u9020\u5546\u6307\u5b9a\u3002\u4fe1\u5408PLC\u7684\u8bbe\u5907\u5730\u5740\u4e3a0x01\uff0c\u5176\u4ed6\u8bbe\u5907\u7684\u8bbe\u5907\u5730\u5740\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n
\u529f\u80fd\u7801\u662f\u4e00\u4e2a\u5b57\u8282\uff0c\u53d6\u503c\u8303\u56f4\u4e3a0x01~0xFF\u3002\u5b83\u7528\u4e8e\u6807\u8bc6\u8981\u6267\u884c\u7684\u64cd\u4f5c\uff0c\u4e00\u822c\u7531\u8bbe\u5907\u5236\u9020\u5546\u6307\u5b9a\u3002\u4fe1\u5408PLC\u652f\u6301\u7684\u529f\u80fd\u7801\u6709\uff1a0x01\uff08\u8bfb\u4fdd\u6301\u5bc4\u5b58\u5668\uff09\u30010x02\uff08\u8bfb\u8f93\u5165\u5bc4\u5b58\u5668\uff09\u30010x03\uff08\u8bfb\u591a\u4e2a\u5bc4\u5b58\u5668\uff09\u30010x04\uff08\u5199\u5355\u4e2a\u5bc4\u5b58\u5668\uff09\u30010x05\uff08\u5199\u591a\u4e2a\u5bc4\u5b58\u5668\uff09\u3002<\/p>\n
\u5bc4\u5b58\u5668\u5730\u5740\u662f\u4e24\u4e2a\u5b57\u8282\uff0c\u53d6\u503c\u8303\u56f4\u4e3a0x0000~0xFFFF\u3002\u5b83\u7528\u4e8e\u6807\u8bc6\u8981\u64cd\u4f5c\u7684\u5bc4\u5b58\u5668\uff0c\u4e00\u822c\u7531\u8bbe\u5907\u5236\u9020\u5546\u6307\u5b9a\u3002\u4fe1\u5408PLC\u652f\u6301\u7684\u5bc4\u5b58\u5668\u5730\u5740\u6709\uff1a0x0000~0x00FF\uff08\u4fdd\u6301\u5bc4\u5b58\u5668\uff09\u30010x0100~0x01FF\uff08\u8f93\u5165\u5bc4\u5b58\u5668\uff09\u3002<\/p>\n
\u672c\u6587\u4ecb\u7ecd\u4e86\u4fe1\u5408PLC\u5bf9\u5e94\u7684ModbusTCP\u5730\u5740\uff0c\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5730\u5740\u6765\u5b9e\u73b0\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u3002<\/strong>ModbusTCP\u5730\u5740\u7531\u4e09\u4e2a\u90e8\u5206\u7ec4\u6210\uff1a\u8bbe\u5907\u5730\u5740\u3001\u529f\u80fd\u7801\u548c\u5bc4\u5b58\u5668\u5730\u5740\u3002\u4fe1\u5408PLC\u7684\u8bbe\u5907\u5730\u5740\u4e3a0x01\uff0c\u652f\u6301\u7684\u529f\u80fd\u7801\u6709\uff1a0x01\uff08\u8bfb\u4fdd\u6301\u5bc4\u5b58\u5668\uff09\u30010x02\uff08\u8bfb\u8f93\u5165\u5bc4\u5b58\u5668\uff09\u30010x03\uff08\u8bfb\u591a\u4e2a\u5bc4\u5b58\u5668\uff09\u30010x04\uff08\u5199\u5355\u4e2a\u5bc4\u5b58\u5668\uff09\u30010x05\uff08\u5199\u591a\u4e2a\u5bc4\u5b58\u5668\uff09\uff1b\u652f\u6301\u7684\u5bc4\u5b58\u5668\u5730\u5740\u6709\uff1a0x0000~0x00FF\uff08\u4fdd\u6301\u5bc4\u5b58\u5668\uff09\u30010x0100~0x01FF\uff08\u8f93\u5165\u5bc4\u5b58\u5668\uff09\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" Modbus\u662f\u4e00\u79cd\u901a\u7528\u7684\u5de5\u4e1a\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u4f7f\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\u3002\u4fe1\u5408PLC\u662f\u4e00\u79cd\u9ad8\u6027\u80fd\u7684\u53ef\u7f16\u7a0b\u63a7\u5236\u5668\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7ModbusTCP\u534f\u8bae\u4e0e\u5176\u4ed6\u8bbe\u5907\u8fdb\u884c\u901a\u4fe1\u3002\u672c\u6587\u5c06\u4ecb\u7ecd<\/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-33356","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\/33356","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=33356"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/33356\/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=33356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=33356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=33356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}