{"id":42970,"date":"2023-10-02T04:29:36","date_gmt":"2023-10-01T20:29:36","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=42970"},"modified":"2023-10-02T04:29:36","modified_gmt":"2023-10-01T20:29:36","slug":"rysymxym","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/42970.html","title":{"rendered":"RS232\u4e5f\u662f\u7528Modbus\u534f\u8bae\u5417\uff1f"},"content":{"rendered":"

  RS232\u548cModbus\u534f\u8bae\u662f\u4e24\u79cd\u4e0d\u540c\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u4eec\u4e4b\u95f4\u7684\u533a\u522b\u975e\u5e38\u660e\u663e\u3002\u672c\u6587\u5c06\u4ecb\u7ecdRS232\u548cModbus\u534f\u8bae\u7684\u57fa\u672c\u6982\u5ff5\uff0c\u4ee5\u53ca\u5b83\u4eec\u4e4b\u95f4\u7684\u4e0d\u540c\u70b9\u3002<\/p>\n

RS232\uff1a\u4e00\u79cd\u901a\u7528\u7684\u4e32\u884c\u901a\u4fe1\u534f\u8bae<\/h2>\n

  RS232\u662f\u4e00\u79cd\u901a\u7528\u7684\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7\u8ba1\u7b97\u673a\u548c\u5916\u56f4\u8bbe\u5907\u4e4b\u95f4\u7684\u63a5\u53e3\u6765\u5b9e\u73b0\u6570\u636e\u4f20\u8f93\u3002\u5b83\u4f7f\u7528\u4e00\u79cd\u53eb\u505a\u201c\u5f02\u6b65\u4f20\u8f93\u201d\u7684\u65b9\u5f0f\uff0c\u5373\u6570\u636e\u7684\u53d1\u9001\u548c\u63a5\u6536\u53ef\u4ee5\u5728\u4efb\u4f55\u65f6\u95f4\u8fdb\u884c\uff0c\u800c\u4e0d\u5fc5\u7b49\u5f85\u53e6\u4e00\u7aef\u7684\u54cd\u5e94\u3002<\/p>\n

  RS232\u901a\u5e38\u7528\u4e8e\u7b80\u5355\u7684\u6570\u636e\u4f20\u8f93\uff0c\u5982\u6587\u672c\u548c\u547d\u4ee4\uff0c\u4f46\u5b83\u4e5f\u53ef\u4ee5\u7528\u4e8e\u66f4\u590d\u6742\u7684\u5e94\u7528\uff0c\u5982\u89c6\u9891\u548c\u97f3\u9891\u4f20\u8f93\u3002\u5b83\u7684\u4f20\u8f93\u901f\u7387\u53ef\u4ee5\u8fbe\u5230115.2Kbps\uff0c\u8fd9\u4f7f\u5b83\u6210\u4e3a\u4e00\u79cd\u975e\u5e38\u5feb\u901f\u7684\u901a\u4fe1\u534f\u8bae\u3002<\/p>\n

Modbus\uff1a\u4e00\u79cd\u4e13\u7528\u7684\u4e32\u884c\u901a\u4fe1\u534f\u8bae<\/h2>\n

  Modbus\u662f\u4e00\u79cd\u4e13\u7528\u7684\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u4e13\u95e8\u7528\u4e8e\u5de5\u4e1a\u63a7\u5236\u7cfb\u7edf\u3002\u5b83\u53ef\u4ee5\u901a\u8fc7\u4e32\u884c\u901a\u4fe1\u63a5\u53e3\uff08\u5982RS232\uff09\u6765\u5b9e\u73b0\u6570\u636e\u4f20\u8f93\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u4ee5\u592a\u7f51\u8fdb\u884c\u901a\u4fe1\u3002<\/p>\n

  Modbus\u534f\u8bae\u5206\u4e3a\u4e24\u79cd\uff1aModbus RTU\u548cModbus TCP\/IP\u3002Modbus RTU\u662f\u4e00\u79cd\u57fa\u4e8e\u4e32\u884c\u901a\u4fe1\u7684\u534f\u8bae\uff0c\u5b83\u4f7f\u7528\u4e8c\u8fdb\u5236\u6570\u636e\u683c\u5f0f\u6765\u4f20\u8f93\u6570\u636e\uff0c\u5e76\u4e14\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5982RS232\u3001RS485\u548cRS422\u3002Modbus TCP\/IP\u662f\u4e00\u79cd\u57fa\u4e8e\u4ee5\u592a\u7f51\u7684\u534f\u8bae\uff0c\u5b83\u4f7f\u7528TCP\/IP\u534f\u8bae\u6765\u4f20\u8f93\u6570\u636e\uff0c\u53ef\u4ee5\u652f\u6301\u66f4\u9ad8\u7684\u4f20\u8f93\u901f\u7387\u3002<\/p>\n

RS232\u548cModbus\u534f\u8bae\u7684\u533a\u522b<\/h2>\n

  RS232\u548cModbus\u534f\u8bae\u662f\u4e24\u79cd\u4e0d\u540c\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u4eec\u4e4b\u95f4\u6709\u4ee5\u4e0b\u4e0d\u540c\uff1a<\/p>\n

  1.\u5e94\u7528\u9886\u57df<\/h3>\n

  RS232\u662f\u4e00\u79cd\u901a\u7528\u7684\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u53ef\u4ee5\u7528\u4e8e\u7b80\u5355\u7684\u6587\u672c\u548c\u547d\u4ee4\u4f20\u8f93\uff0c\u4e5f\u53ef\u4ee5\u7528\u4e8e\u590d\u6742\u7684\u89c6\u9891\u548c\u97f3\u9891\u4f20\u8f93\u3002\u800cModbus\u662f\u4e00\u79cd\u4e13\u7528\u7684\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u4e13\u95e8\u7528\u4e8e\u5de5\u4e1a\u63a7\u5236\u7cfb\u7edf\u3002<\/p>\n

  2.\u4f20\u8f93\u901f\u7387<\/h3>\n

  RS232\u7684\u4f20\u8f93\u901f\u7387\u53ef\u4ee5\u8fbe\u5230115.2Kbps\uff0c\u800cModbus\u7684\u4f20\u8f93\u901f\u7387\u53ef\u4ee5\u8fbe\u5230\u66f4\u9ad8\u7684\u6c34\u5e73\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u6240\u4f7f\u7528\u7684\u534f\u8bae\u3002<\/p>\n

  3.\u6570\u636e\u683c\u5f0f<\/h3>\n

  RS232\u4f7f\u7528\u5f02\u6b65\u4f20\u8f93\u65b9\u5f0f\uff0c\u800cModbus\u5219\u4f7f\u7528\u4e8c\u8fdb\u5236\u6570\u636e\u683c\u5f0f\u8fdb\u884c\u4f20\u8f93\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  RS232\u548cModbus\u534f\u8bae\u662f\u4e24\u79cd\u4e0d\u540c\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u4eec\u4e4b\u95f4\u6709\u5f88\u591a\u4e0d\u540c\u4e4b\u5904\u3002<\/strong>RS232\u662f\u4e00\u79cd\u901a\u7528\u7684\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u53ef\u4ee5\u7528\u4e8e\u7b80\u5355\u7684\u6587\u672c\u548c\u547d\u4ee4\u4f20\u8f93\uff0c\u4e5f\u53ef\u4ee5\u7528\u4e8e\u590d\u6742\u7684\u89c6\u9891\u548c\u97f3\u9891\u4f20\u8f93\u3002Modbus\u662f\u4e00\u79cd\u4e13\u7528\u7684\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u4e13\u95e8\u7528\u4e8e\u5de5\u4e1a\u63a7\u5236\u7cfb\u7edf\u3002\u5b83\u4f7f\u7528\u4e8c\u8fdb\u5236\u6570\u636e\u683c\u5f0f\u8fdb\u884c\u4f20\u8f93\uff0c\u53ef\u4ee5\u652f\u6301\u66f4\u9ad8\u7684\u4f20\u8f93\u901f\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

RS232\u548cModbus\u534f\u8bae\u662f\u4e24\u79cd\u4e0d\u540c\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u4eec\u4e4b\u95f4\u7684\u533a\u522b\u975e\u5e38\u660e\u663e\u3002\u672c\u6587\u5c06\u4ecb\u7ecdRS232\u548cModbus\u534f\u8bae\u7684\u57fa\u672c\u6982\u5ff5\uff0c\u4ee5\u53ca\u5b83\u4eec\u4e4b\u95f4\u7684\u4e0d\u540c\u70b9\u3002RS232\uff1a\u4e00\u79cd<\/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":[68],"class_list":["post-42970","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-r-3"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/42970","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=42970"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/42970\/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=42970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=42970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=42970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}