{"id":2040,"date":"2019-01-08T01:42:32","date_gmt":"2019-01-08T01:42:32","guid":{"rendered":""},"modified":"2019-01-08T09:42:54","modified_gmt":"2019-01-08T01:42:54","slug":"plc%e4%b8%8e%e5%a4%9a%e5%8f%b0%e5%8f%98%e9%a2%91%e5%99%a8%e7%9a%84modbus%2frtu%e9%80%9a%e4%bf%a1%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2040","title":{"rendered":"PLC\u4e0e\u591a\u53f0\u53d8\u9891\u5668\u7684MODBUS\/RTU\u901a\u4fe1\u65b9\u6848"},"content":{"rendered":"
\n\t\u5982\u679c\u73b0\u5728\u6709\u4e2a\u9879\u76ee\uff0c\u9700\u8981MODBUS\u63a7\u5236\u4e94\u4e2a\u53d8\u9891\u5668\uff0c\u90a3\u8be5\u600e\u4e48\u529e\uff1f<\/p>\n
\n\t<\/p>\n
\n\t\u4e5f\u8bb8\u4f60\u4f1a\u8bf4\uff0c\u8fd9\u8fd8\u4e0d\u7b80\u5355\uff0c\u628a\u524d\u9762\u7684\u901a\u4fe1\u7a0b\u5e8f\u590d\u5236\u4e94\u904d\u4e0d\u5c31\u884c\u4e86\uff1f\u7406\u8bba\u4e0a\uff0c\u8fd9\u662f\u53ef\u884c\u7684\uff0c\u4f46\u5374\u662f\u4e0d\u53ef\u884c\u7684\uff0c\u4e3a\u4ec0\u4e48\u5462\uff1f\u56e0\u4e3a\u4e32\u53e3\u5728\u540c\u4e00\u65f6\u95f4\uff0c\u53ea\u80fd\u8fdb\u884c\u4e00\u6b21\u6570\u636e\u4ea4\u4e92\u3002\u8fd9\u4e2a\u4e00\u6b21\uff0c\u662f\u6307\u4e00\u6b21\u8bfb\u6216\u662f\u5199\u64cd\u4f5c\u3002\u8fd9\u5c31\u597d\u6bd4\u4e00\u4e2a\u5f88\u7a84\u7684\u8def\u53e3\uff0c\u4e00\u6b21\u53ea\u80fd\u901a\u8fc7\u4e00\u8f86\u6c7d\u8f66\uff0c\u5982\u679c\u4e94\u8f86\u6c7d\u8f66\u4e00\u8d77\u901a\u8fc7\uff0c\u52bf\u5fc5\u4f1a\u5f15\u8d77\u5835\u585e\uff0c\u4e00\u8f86\u4e5f\u8fc7\u4e0d\u53bb\uff0c\u4f46\u6211\u4eec\u9700\u8981\u8fc7\u4e94\u8f86\u600e\u4e48\u529e\uff1f\u90a3\u5c31\u9700\u8981\u4ea4\u901a\u706f\u6216\u662f\u4ea4\u8b66\u6307\u6325\u4ea4\u901a\uff0c\u901a\u4fe1\u4e5f\u4e00\u6837\uff0c\u4e5f\u9700\u8981\u6709\u4ea4\u901a\u706f\u6216\u662f\u4ea4\u8b66\uff0c\u800c\u5728MODBUS\u901a\u4fe1\u4e2d\uff0c\u5c31\u9700\u8981\u6211\u4eec\u81ea\u5df1\u6765\u5f53\u4ea4\u8b66\uff0c\u901a\u8fc7\u7a0b\u5e8f\u63a7\u5236\u901a\u4fe1\u6d41\u7a0b\uff0c\u8fd9\u5c31\u662f\u8f6e\u8be2\u65b9\u5f0f\u3002<\/p>\n
\n\t\u800cMODBUS\u901a\u4fe1\u5b9e\u73b0\u8f6e\u8be2\uff0c\u6709\u4e24\u4e2a\u5e38\u7528\u7684\u65b9\u6cd5\u3002<\/p>\n
\n\t1 \u65f6\u95f4\u95f4\u9694\u6cd5<\/p>\n
\n\t\u6240\u8c13\u65f6\u95f4\u95f4\u9694\u6cd5\uff0c\u5c31\u662f\u6bcf\u4e2a\u64cd\u4f5c\u5206\u914d\u4e00\u4e2a\u56fa\u5b9a\u7684\u65f6\u95f4\uff0c\u6bd4\u5982\u7b2c\u4e00\u79d2\u5199\u5165\u9891\u7387\uff0c\u7b2c\u4e8c\u79d2\u8bfb\u53d6\u9891\u7387\uff0c\u7b2c\u4e09\u79d2\u8bfb\u53d6\u7535\u6d41<\/u>\uff0c\u5f53\u7136\uff0c\u8fd9\u4e2a\u65f6\u95f4\u662f\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u6765\u8bbe\u7f6e\u7684\uff0c\u6211\u4eec\u770b\u4e00\u4e2a\u4f8b\u5b50\uff1a<\/p>\n
\n\t<\/p>\n
\n\t\u56fe\u4e00\u65f6\u95f4\u95f4\u9694<\/p>\n
\n\t\u5982\u56fe\u4e00\u6240\u793a\uff0c\u8fd9\u662f\u4e00\u4e2aBLINK \u548c\u8ba1\u6570\u5668\u4e24\u4e2a\u529f\u80fd\u5757\u7ec4\u6210\u7684\u7a0b\u5e8f\uff0cBLINK\u4ea7\u751f\u4e00\u4e2a50\u6beb\u79d2\u7684\u8109\u51b2\uff0c\u800c\u8ba1\u6570\u5668\u5bf9\u6b64\u8109\u51b2\u8fdb\u884c\u8ba1\u6570\uff0c\u56e0\u6b64\uff0c\u8ba1\u6570\u5668\u7684\u5f53\u524d\u8ba1\u6570\u503cCV \u4e5f\u5c31\u662f\u56fe\u4e2d\u9ec4\u8272\u8367\u5149\u7b14\u90e8\u5206\uff0c\u5c31\u4f1a\u4ece1 \u52306\u6bcf\u969450\u6beb\u79d2\u9012\u589e\u4e00\u6b21\u3002\u8fd9\u6837\uff0c\u5c31\u4e3a\u6bcf\u4e00\u6b21\u64cd\u4f5c\u5206\u914d\u4e8650\u6beb\u79d2\u7684\u65f6\u95f4\u3002<\/p>\n
\n\t<\/p>\n
\n\t\u56fe\u4e8c \u5229\u7528\u65f6\u95f4\u95f4\u9694\u89e6\u53d1\u901a\u4fe1<\/p>\n
\n\t\u5982\u56fe\u4e8c\uff0c\u7ea2\u8272\u5706\u5708\u90e8\u5206\uff0c\u5f53\u6570\u503c\u7b49\u4e8e1\u7684\u65f6\u5019\uff0c\u6211\u4eec\u5199\u5165\u5730\u57400002\uff0c\u5f53\u6570\u503c\u7b49\u4e8e2\u7684\u65f6\u5019\uff0c\u6211\u4eec\u8bfb\u53d6103\uff0c\u4f9d\u6b21\u7c7b\u63a8\u3002\u9ec4\u8272\u8367\u5149\u7b14\u90e8\u5206\u662f\u89e6\u53d1\u8def\u5f84\u3002<\/p>\n
\n\t2 \u529f\u80fd\u5757\u89e6\u53d1\u6cd5<\/p>\n
\n\t<\/p>\n
\n\t\u529f\u80fd\u5757\u89e6\u53d1\u6cd5\uff0c\u662f\u5229\u7528\u529f\u80fd\u5757\u7684\u72b6\u6001\u53c2\u6570\u6765\u89e6\u53d1\u4e0b\u4e00\u6b21\u901a\u4fe1\uff0c\u4e5f\u5c31\u662f\u6211\u5728\u4ecb\u7ecd\u901a\u4fe1\u7684\u65f6\u5019\u4f7f\u7528\u7684BUSY\u4fe1\u53f7\u3002<\/p>\n
\n\t<\/p>\n
\n\t\u56fe\u4e09 \u5229\u7528BUSY\u4fe1\u53f7\u89e6\u53d1\u4e0b\u4e00\u6b21\u8bfb\u5199<\/p>\n
\n\t\u5982\u56fe\u4e09\u6240\u793a\uff0c\u5f53\u5199\u51650002\u901a\u4fe1\u5b8c\u6210\u540e\uff0c\u5229\u7528BUSY\u4fe1\u53f7\u6765\u89e6\u53d1\u4e0b\u4e00\u6b21\u901a\u4fe1\uff0c\u8bfb\u53d6103\u7684\u503c\u3002\u56fe\u4e2d\u9ec4\u8272\u8367\u5149\u7b14\u7684\u90e8\u5206\uff0c\u5c31\u662f\u89e6\u53d1\u8def\u5f84\uff0c\u5f53\u4e0a\u4e00\u4e2a\u901a\u4fe1\u529f\u80fd\u5757\u7684BUSY\u4fe1\u53f7\u4ea7\u751f\u4e0b\u964d\u6cbf\u7684\u65f6\u5019\uff0c\u8bc1\u660e\u8fd9\u6b21\u901a\u4fe1\u5df2\u7ecf\u5b8c\u6210\uff0c\u4ee5\u6b64\u6765\u89e6\u53d1\u4e0b\u4e00\u6b21\u901a\u4fe1<\/p>\n
\n\t\u4ee5\u4e0a\uff0c\u5c31\u662f\u4e24\u79cd\u5e38\u7528\u7684\u8f6e\u8be2\u65b9\u6cd5\uff0c\u5b83\u4eec\u5404\u6709\u4f18\u7f3a\u70b9\uff0c\u6700\u597d\u7684\u65b9\u5f0f\u5c31\u662f\u4e24\u8005\u7ed3\u5408\u3002\u5229\u7528\u65f6\u95f4\u95f4\u9694\uff0c\u8fd9\u4e2a\u65f6\u95f4\u95f4\u9694\u7684\u8bbe\u7f6e\u5c31\u5f88\u8bb2\u7a76\uff0c\u65f6\u95f4\u592a\u77ed\uff0c\u53ef\u80fd\u901a\u4fe1\u8fd8\u6ca1\u5b8c\u6210\uff0c\u65f6\u95f4\u592a\u957f\u5f71\u54cd\u6548\u7387\u3002\u800c\u5229\u7528\u529f\u80fd\u5757\u7684BUSY\u4fe1\u53f7\uff0c\u53ef\u4ee5\u5f88\u597d\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u4f46\u662f\uff0c\u4e00\u65e6\u4e00\u4e2a\u73af\u8282\u901a\u4fe1\u51fa\u9519\uff0cBUSY\u4fe1\u53f7\u65e0\u6cd5\u7ed9\u51fa\uff0c\u5c31\u4f1a\u9020\u6210\u540e\u9762\u7684\u901a\u4fe1\u65e0\u6cd5\u8fdb\u884c\uff0c\u90a3\u4e48\u8be5\u5982\u4f55\u7ed3\u5408\u5462\uff1f\u90a3\u5c31\u662f\u7528\u65f6\u95f4\u95f4\u9694\u6765\u786e\u5b9a\u4ece\u7ad9\u4e4b\u95f4\u7684\u901a\u4fe1\u95f4\u9694\uff0c\u800c\u540c\u4e00\u4e2a\u4ece\u7ad9\u7684\u8bfb\u5199\u5c31\u7528\u529f\u80fd\u5757\u4fe1\u53f7\u89e6\u53d1\uff0c\u8fd9\u6837\u5373\u4f7f\u901a\u4fe1\u6709\u9519\u8bef\uff0c\u4e5f\u53ea\u662f\u5f71\u54cd\u4e00\u4e2a\u4ece\u7ad9\u3002<\/p>\n
\n\t\u6211\u4eec\u4e3a\u6bcf\u4e2a\u4ece\u7ad9\u5206\u914d30\u6beb\u79d2\u7684\u65f6\u95f4\uff0c\u90a3\u4e48\u8f6e\u8be210\u4e2a\u4ece\u7ad9\u53ea\u9700\u8981300\u6beb\u79d2\uff0c\u8fd9\u57fa\u672c\u80fd\u6ee1\u8db3\u6211\u4eec\u7684\u9700\u6c42\uff0c\u800c\u53c8\u80fd\u4fdd\u8bc1\u6bcf\u4e2a\u7ad9\u7684\u901a\u4fe1\u65f6\u95f4\u3002\u56e0\u4e3a\u8d85\u8fc710\u4e2a\u4ece\u7ad9\uff0c\u5c31\u4e0d\u5efa\u8bae\u7528MODBUS\u901a\u4fe1\u4e86\uff0c\u90a3\u6837\u5c31\u8981\u8003\u8651\u4f7f\u7528\u603b\u7ebf\u4e86\u3002\u800c\u4e00\u4e2a\u4ece\u7ad9\u5185\u90e8\uff0c\u8981\u8bfb\u5199\u591a\u6b21\u7684\u65f6\u5019\uff0c\u5c31\u7528BUSY\u4fe1\u53f7\u89e6\u53d1\u3002\u8fd9\u6837\uff0c\u5373\u4f7f\u4e00\u4e2a\u4ece\u7ad9\u901a\u4fe1\u51fa\u73b0\u95ee\u9898\uff0c\u4e5f\u4e0d\u4f1a\u5f71\u54cd\u4e0b\u4e00\u4e2a\u4ece\u7ad9\u7684\u901a\u4fe1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u5982\u679c\u73b0\u5728\u6709\u4e2a\u9879\u76ee\uff0c\u9700\u8981MODBUS\u63a7\u5236\u4e94\u4e2a\u53d8\u9891\u5668\uff0c\u90a3\u8be5\u600e\u4e48\u529e\uff1f \u4e5f\u8bb8\u4f60\u4f1a\u8bf4\uff0c\u8fd9\u8fd8\u4e0d\u7b80\u5355\uff0c\u628a\u524d\u9762\u7684\u901a\u4fe1\u7a0b\u5e8f\u590d\u5236\u4e94\u904d\u4e0d\u5c31\u884c\u4e86\uff1f\u7406\u8bba\u4e0a\uff0c\u8fd9\u662f\u53ef\u884c\u7684\uff0c\u4f46\u5374\u662f\u4e0d\u53ef\u884c\u7684\uff0c\u4e3a\u4ec0\u4e48\u5462\uff1f\u56e0\u4e3a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2040"}],"collection":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2040"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2040\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2040"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}