{"id":59275,"date":"2023-10-21T20:11:22","date_gmt":"2023-10-21T12:11:22","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=59275"},"modified":"2023-10-21T20:11:22","modified_gmt":"2023-10-21T12:11:22","slug":"mzdsjlxs","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/59275.html","title":{"rendered":"Modbus\u4e2d\u7684\u6570\u636e\u7c7b\u578bString"},"content":{"rendered":"

  Modbus\u662f\u4e00\u79cd\u5de5\u4e1a\u63a7\u5236\u7cfb\u7edf\u4e2d\u5e38\u7528\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u7528\u4e8e\u5b9e\u73b0\u8ba1\u7b97\u673a\u548c\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u3002\u5728Modbus\u4e2d\uff0c\u6570\u636e\u7c7b\u578bString\u662f\u4e00\u79cd\u5e38\u7528\u7684\u6570\u636e\u7c7b\u578b\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u8868\u793a\u5b57\u7b26\u4e32\uff0c\u4e5f\u53ef\u4ee5\u7528\u6765\u8868\u793a\u6570\u5b57\u3002\u672c\u6587\u5c06\u6df1\u5165\u8ba8\u8bbaModbus\u4e2d\u7684\u6570\u636e\u7c7b\u578bString\uff0c\u4ee5\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u7406\u89e3Modbus\u4e2d\u7684\u6570\u636e\u7c7b\u578b\u3002<\/p>\n

String\u7684\u5b9a\u4e49<\/h2>\n

  \u5728Modbus\u4e2d\uff0cString\u662f\u4e00\u79cd\u7c7b\u578b\uff0c\u7528\u4e8e\u8868\u793a\u5b57\u7b26\u4e32\u6216\u5b57\u7b26\u5e8f\u5217\u3002\u5b83\u7531\u4e00\u7cfb\u5217\u5b57\u7b26\u7ec4\u6210\uff0c\u6bcf\u4e2a\u5b57\u7b26\u5360\u7528\u4e00\u4e2a\u5b57\u8282\u3002String\u7c7b\u578b\u7684\u957f\u5ea6\u53ef\u4ee5\u662f\u4efb\u610f\u957f\u5ea6\uff0c\u4f46\u6700\u5927\u957f\u5ea6\u4e00\u822c\u4e0d\u8d85\u8fc7255\u4e2a\u5b57\u7b26\u3002<\/p>\n

  String\u7684\u7f16\u7801<\/h3>\n

  String\u7c7b\u578b\u7684\u6570\u636e\u5728Modbus\u4e2d\u662f\u4ee5ASCII\u7f16\u7801\u7684\u5f62\u5f0f\u5b58\u50a8\u7684\uff0c\u6bcf\u4e2a\u5b57\u7b26\u7684ASCII\u7801\u5360\u7528\u4e00\u4e2a\u5b57\u8282\u3002ASCII\u7f16\u7801\u662f\u4e00\u79cd\u5e38\u7528\u7684\u7f16\u7801\u65b9\u5f0f\uff0c\u5b83\u53ef\u4ee5\u5c06\u5b57\u7b26\u8f6c\u6362\u4e3a\u53ef\u8bc6\u522b\u7684\u6570\u5b57\uff0c\u4ee5\u4fbf\u5728\u8ba1\u7b97\u673a\u4e2d\u8fdb\u884c\u5b58\u50a8\u548c\u4f20\u8f93\u3002<\/p>\n

  String\u7684\u5e94\u7528<\/h3>\n

  String\u7c7b\u578b\u7684\u6570\u636e\u5728Modbus\u4e2d\u6709\u5f88\u591a\u5e94\u7528\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u8868\u793a\u5b57\u7b26\u4e32\uff0c\u4e5f\u53ef\u4ee5\u7528\u6765\u8868\u793a\u6570\u5b57\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528String\u7c7b\u578b\u7684\u6570\u636e\u6765\u5b58\u50a8\u4f20\u611f\u5668\u7684\u6570\u636e\uff0c\u6216\u8005\u5b58\u50a8\u63a7\u5236\u7cfb\u7edf\u7684\u6307\u4ee4\u7b49\u3002\u6b64\u5916\uff0cString\u7c7b\u578b\u7684\u6570\u636e\u8fd8\u53ef\u4ee5\u7528\u4e8e\u8868\u793a\u65e5\u671f\u548c\u65f6\u95f4\uff0c\u4ee5\u53ca\u5176\u4ed6\u7c7b\u578b\u7684\u6570\u636e\u3002<\/p>\n

String\u7684\u4f18\u70b9<\/h2>\n

  String\u7c7b\u578b\u7684\u6570\u636e\u5728Modbus\u4e2d\u6709\u5f88\u591a\u4f18\u70b9\uff0c\u5176\u4e2d\u6700\u91cd\u8981\u7684\u662f\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u8868\u793a\u5b57\u7b26\u4e32\u548c\u6570\u5b57\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u66f4\u5bb9\u6613\u5730\u8fdb\u884c\u6570\u636e\u7684\u5b58\u50a8\u548c\u4f20\u8f93\u3002\u6b64\u5916\uff0cString\u7c7b\u578b\u7684\u6570\u636e\u8fd8\u53ef\u4ee5\u7528\u4e8e\u8868\u793a\u65e5\u671f\u548c\u65f6\u95f4\uff0c\u4ee5\u53ca\u5176\u4ed6\u7c7b\u578b\u7684\u6570\u636e\uff0c\u8fd9\u6837\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8Modbus\u7cfb\u7edf\u7684\u6548\u7387\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u672c\u6587\u4ecb\u7ecd\u4e86Modbus\u4e2d\u7684\u6570\u636e\u7c7b\u578bString\uff0c\u5b83\u662f\u4e00\u79cd\u5e38\u7528\u7684\u6570\u636e\u7c7b\u578b\uff0c\u53ef\u4ee5\u7528\u6765\u8868\u793a\u5b57\u7b26\u4e32\u548c\u6570\u5b57\uff0c\u4ee5\u53ca\u65e5\u671f\u548c\u65f6\u95f4\u7b49\u3002<\/strong>String\u7c7b\u578b\u7684\u6570\u636e\u5728Modbus\u4e2d\u6709\u5f88\u591a\u4f18\u70b9\uff0c\u5b83\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u9ad8Modbus\u7cfb\u7edf\u7684\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Modbus\u662f\u4e00\u79cd\u5de5\u4e1a\u63a7\u5236\u7cfb\u7edf\u4e2d\u5e38\u7528\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u7528\u4e8e\u5b9e\u73b0\u8ba1\u7b97\u673a\u548c\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u3002\u5728Modbus\u4e2d\uff0c\u6570\u636e\u7c7b\u578bString\u662f\u4e00\u79cd\u5e38\u7528\u7684\u6570\u636e\u7c7b\u578b\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u8868\u793a\u5b57\u7b26\u4e32\uff0c\u4e5f\u53ef\u4ee5\u7528<\/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-59275","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\/59275","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=59275"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/59275\/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=59275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=59275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=59275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}