{"id":42582,"date":"2026-06-17T23:09:30","date_gmt":"2026-06-17T15:09:30","guid":{"rendered":"https:\/\/www.modbus.cn\/42582.html"},"modified":"2026-06-17T23:21:50","modified_gmt":"2026-06-17T15:21:50","slug":"industrial-data-conversion-calculator-tools","status":"publish","type":"post","link":"https:\/\/www.modbus.cn\/en\/42582.html","title":{"rendered":"\u5de5\u63a7\u6570\u636e\u8f6c\u6362\u4e0e\u8ba1\u7b97\u5668\u5de5\u5177 \u2014 \u6821\u9a8c\u548c\/\u6570\u636e\u7c7b\u578b\u8f6c\u6362\/\u7a0b\u5e8f\u5458\u8ba1\u7b97\u5668"},"content":{"rendered":"<h2>\u4e00\u3001\u5de5\u63a7\u6570\u636e\u5904\u7406\u7684&#8221;\u57fa\u672c\u529f&#8221;<\/h2>\n<p>CRC\u6821\u9a8c\u600e\u4e48\u7b97\uff1f0x42A00000\u8fd9\u4e2a\u5341\u516d\u8fdb\u5236\u6570\u5bf9\u5e94\u7684\u6d6e\u70b9\u6570\u662f\u591a\u5c11\uff1f\u5341\u8fdb\u5236255\u8f6c\u5341\u516d\u8fdb\u5236\u662fFF\u8fd8\u662f0xFF\uff1f\u2014\u2014\u8fd9\u4e9b\u770b\u4f3c\u57fa\u7840\u7684\u6570\u636e\u5904\u7406\u64cd\u4f5c\uff0c\u5728\u5b9e\u9645\u8c03\u8bd5\u4e2d<strong>\u9ad8\u9891\u51fa\u73b0<\/strong>\u3002<\/p>\n<p>\u300cmodbus\u8c03\u8bd5\u52a9\u624b\u300d\u63d0\u4f9b\u4e863\u6b3e\u6570\u636e\u8f6c\u6362\u4e0e\u8ba1\u7b97\u5de5\u5177\uff0c\u8986\u76d6\u5de5\u63a7\u5de5\u7a0b\u5e08\u7684\u65e5\u5e38\u6570\u636e\u5904\u7406\u9700\u6c42\u3002<\/p>\n<h2>\u4e8c\u3001\u6821\u9a8c\u8ba1\u7b97\u5de5\u5177 \u2014 \u591a\u7b97\u6cd5\u4e00\u7ad9\u5f0f<\/h2>\n<p>\u6821\u9a8c\u8ba1\u7b97\u5de5\u5177\u96c6\u6210\u4e86<strong>8\u79cd\u5e38\u7528\u6821\u9a8c\u7b97\u6cd5<\/strong>\uff1a<\/p>\n<table style=\"width:100%;border-collapse:collapse;margin:15px 0;font-size:14px\">\n<tr style=\"background:#f5f5f5\">\n<th style=\"padding:10px\">\u7b97\u6cd5<\/th>\n<th style=\"padding:10px\">\u8f93\u51fa\u4f4d\u6570<\/th>\n<th style=\"padding:10px\">\u5178\u578b\u5e94\u7528<\/th>\n<\/tr>\n<tr>\n<td style=\"padding:10px\"><strong>CRC16-Modbus<\/strong><\/td>\n<td style=\"padding:10px\">16\u4f4d<\/td>\n<td style=\"padding:10px\">Modbus RTU \u5e27\u6821\u9a8c<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:10px\"><strong>CRC16-CCITT<\/strong><\/td>\n<td style=\"padding:10px\">16\u4f4d<\/td>\n<td style=\"padding:10px\">XMODEM\u3001\u84dd\u7259<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:10px\"><strong>CRC32<\/strong><\/td>\n<td style=\"padding:10px\">32\u4f4d<\/td>\n<td style=\"padding:10px\">\u4ee5\u592a\u7f51\/\u538b\u7f29\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:10px\"><strong>LRC<\/strong><\/td>\n<td style=\"padding:10px\">8\u4f4d<\/td>\n<td style=\"padding:10px\">Modbus ASCII \u5e27\u6821\u9a8c<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:10px\"><strong>XOR\/Checksum<\/strong><\/td>\n<td style=\"padding:10px\">8\u4f4d<\/td>\n<td style=\"padding:10px\">PELCO-D\u3001NMEA 0183<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:10px\"><strong>MD5<\/strong><\/td>\n<td style=\"padding:10px\">128\u4f4d<\/td>\n<td style=\"padding:10px\">\u6587\u4ef6\u6821\u9a8c\u3001\u5bc6\u7801\u54c8\u5e0c<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:10px\"><strong>SHA-1<\/strong><\/td>\n<td style=\"padding:10px\">160\u4f4d<\/td>\n<td style=\"padding:10px\">\u6570\u5b57\u7b7e\u540d<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:10px\"><strong>SHA-256<\/strong><\/td>\n<td style=\"padding:10px\">256\u4f4d<\/td>\n<td style=\"padding:10px\">\u5b89\u5168\u54c8\u5e0c\u3001\u56fa\u4ef6\u6821\u9a8c<\/td>\n<\/tr>\n<\/table>\n<p>\u8f93\u5165\u65b9\u5f0f\u7075\u6d3b\u2014\u2014\u5341\u516d\u8fdb\u5236\u5b57\u7b26\u4e32\uff08\u7a7a\u683c\u5206\u9694\u6216\u4e0d\u5206\u9694\u5747\u53ef\uff09\u3001ASCII\u6587\u672c\u3001\u7c98\u8d34\u5b8c\u6574Modbus\u62a5\u6587\u81ea\u52a8\u53bb\u9664\u9996\u5c3e\u8bc6\u522b\u6821\u9a8c\u533a\u57df\u3002CRC16\u7ed3\u679c\u53ef\u4ee5\u9009\u62e9\u4f4e\u5b57\u8282\u5728\u524d\uff08Modbus\u6807\u51c6\uff09\u6216\u9ad8\u5b57\u8282\u5728\u524d\u3002<\/p>\n<h2>\u4e09\u3001\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u5de5\u5177<\/h2>\n<p>\u5de5\u63a7\u901a\u4fe1\u4e2d\u6700\u8ba9\u4eba\u5934\u75bc\u7684\u95ee\u9898\u4e4b\u4e00\u5c31\u662f<strong>\u6570\u636e\u7c7b\u578b\u7684\u8f6c\u6362<\/strong>\u3002<\/p>\n<h3>3.1 \u652f\u6301\u7684\u8f6c\u6362<\/h3>\n<ul>\n<li><strong>\u8fdb\u5236\u8f6c\u6362<\/strong>\uff1a\u4e8c\u8fdb\u5236 \u2194 \u516b\u8fdb\u5236 \u2194 \u5341\u8fdb\u5236 \u2194 \u5341\u516d\u8fdb\u5236\uff0c\u652f\u63018\/16\/32\/64\u4f4d\u5bbd\u5ea6\uff0c\u6709\u7b26\u53f7\/\u65e0\u7b26\u53f7\u5207\u6362<\/li>\n<li><strong>\u6d6e\u70b9\u6570\u89e3\u6790<\/strong>\uff1a\u5341\u516d\u8fdb\u5236 \u2194 IEEE 754\u5355\u7cbe\u5ea6\uff0832\u4f4d\uff09\u548c\u53cc\u7cbe\u5ea6\uff0864\u4f4d\uff09\u6d6e\u70b9\u6570\u3002\u5982\u8f93\u5165 0x42A00000 \u2192 \u8f93\u51fa 80.0\uff08\u5355\u7cbe\u5ea6\uff09<\/li>\n<li><strong>BCD\u7801\u8f6c\u6362<\/strong>\uff1aBCD\uff08Binary-Coded Decimal\uff09\u2194 \u5341\u8fdb\u5236\u3002DL\/T645\u7535\u8868\u534f\u8bae\u5927\u91cf\u4f7f\u7528BCD\u7801<\/li>\n<li><strong>\u5b57\u8282\u5e8f\u8f6c\u6362<\/strong>\uff1a\u5927\u7aef\uff08Big-Endian\uff09\u2194 \u5c0f\u7aef\uff08Little-Endian\uff09\u2194 \u4e2d\u95f4\u7aef\uff08Middle-Endian\uff09\u5b57\u8282\u5e8f\u53cd\u8f6c<\/li>\n<li><strong>ASCII-Hex\u4e92\u8f6c<\/strong>\uff1aASCII\u5b57\u7b26\u4e32 \u2194 \u5341\u516d\u8fdb\u5236\u5b57\u8282\uff08\u5982 &#8220;Hello&#8221; \u2194 48 65 6C 6C 6F\uff09<\/li>\n<li><strong>\u6bd4\u7279\u4f4d\u63d0\u53d6<\/strong>\uff1a\u8f93\u5165\u4e00\u4e2a\u5b57\u8282\/\u5b57\/\u53cc\u5b57\uff0c\u63d0\u53d6\u6307\u5b9a\u6bd4\u7279\u4f4d\u7684\u503c\uff08\u5982 bit3=1, bit7=0\uff09<\/li>\n<\/ul>\n<h3>3.2 \u5de5\u63a7\u5b9e\u6218\u573a\u666f<\/h3>\n<p><strong>\u573a\u666f1<\/strong>\uff1a\u7535\u8868\u8fd4\u56de4\u4e2a\u5b57\u8282 <code>42 A0 00 00<\/code>\uff0c\u7528\u6d6e\u70b9\u6570\u89e3\u6790\u529f\u80fd\u5f97\u77e5\u8fd9\u662f 80.0\uff08\u6709\u529f\u529f\u738780.0kW\uff09\u3002<br \/>\n<strong>\u573a\u666f2<\/strong>\uff1a\u53d8\u9891\u5668\u53c2\u65700x2001\u8fd4\u56de <code>03 E8<\/code>\uff08\u5927\u7aef\uff09\u6216 <code>E8 03<\/code>\uff08\u5c0f\u7aef\uff09\uff0c\u7528\u5b57\u8282\u5e8f\u8f6c\u6362\u786e\u8ba4\u5b9e\u9645\u503c=1000\u3002<br \/>\n<strong>\u573a\u666f3<\/strong>\uff1aDL\/T645\u7535\u8868\u8fd4\u56de <code>00 00 12 34<\/code>\uff0c\u7528BCD\u89e3\u6790\u529f\u80fd\u5f97\u77e5\u8868\u53f7\u662f 00001234\u3002<\/p>\n<h2>\u56db\u3001\u7a0b\u5e8f\u5458\u8ba1\u7b97\u5668<\/h2>\n<p>\u8fd9\u4e0d\u662f\u666e\u901a\u7684\u8ba1\u7b97\u5668\uff0c\u800c\u662f<strong>\u4e3a\u5d4c\u5165\u5f0f\/\u5de5\u63a7\u5de5\u7a0b\u5e08\u8bbe\u8ba1\u7684\u4e13\u4e1a\u8ba1\u7b97\u5668<\/strong>\uff1a<\/p>\n<ul>\n<li><strong>\u591a\u8fdb\u5236\u540c\u65f6\u663e\u793a<\/strong>\uff1a\u8f93\u5165\u4efb\u610f\u8fdb\u5236\u7684\u503c\uff0c\u540c\u6b65\u663e\u793aHEX\/DEC\/OCT\/BIN\u56db\u79cd\u683c\u5f0f<\/li>\n<li><strong>\u4f4d\u8fd0\u7b97<\/strong>\uff1aAND\/OR\/XOR\/NOT\/\u5de6\u79fb\/\u53f3\u79fb\/\u5faa\u73af\u5de6\u79fb\/\u5faa\u73af\u53f3\u79fb<\/li>\n<li><strong>\u5b57\u957f\u8bbe\u7f6e<\/strong>\uff1a8\u4f4d\uff08Byte\uff09\/16\u4f4d\uff08Word\uff09\/32\u4f4d\uff08DWord\uff09\/64\u4f4d\uff08QWord\uff09<\/li>\n<li><strong>\u6709\u7b26\u53f7\/\u65e0\u7b26\u53f7\u5207\u6362<\/strong>\uff1a\u540c\u4e00\u5341\u516d\u8fdb\u5236\u503c\u5728\u4e24\u79cd\u89e3\u91ca\u4e0b\u7684\u4e0d\u540c\u5341\u8fdb\u5236\u503c<\/li>\n<li><strong>\u5bc4\u5b58\u5668\u8fd0\u7b97<\/strong>\uff1a\u6a21\u62dfPLC\u5bc4\u5b58\u5668\u7684\u7b97\u672f\u8fd0\u7b97\uff08ADD\/SUB\/MUL\/DIV\uff09<\/li>\n<li><strong>\u5e38\u7528\u5e38\u6570<\/strong>\uff1a\u4e00\u952e\u8f93\u5165\u5e38\u7528\u503c\u2014\u20140xFF\uff08255\uff09\u30010xFFFF\uff0865535\uff09\u30010xFFFFFFFF\uff084294967295\uff09<\/li>\n<\/ul>\n<h2>\u4e94\u3001\u603b\u7ed3<\/h2>\n<p>3\u6b3e\u6570\u636e\u8f6c\u6362\u4e0e\u8ba1\u7b97\u5de5\u5177\u662f\u5de5\u63a7\u5de5\u7a0b\u5e08\u7684&#8221;\u968f\u8eab\u8ba1\u7b97\u5668&#8221;\u3002\u5f53\u4f60\u9700\u8981\u6821\u9a8c\u4e00\u4e2aCRC\u3001\u89e3\u6790\u4e00\u4e2a\u6d6e\u70b9\u6570\u3001\u6216\u8005\u5728\u73b0\u573a\u5feb\u901f\u6362\u7b97\u8fdb\u5236\u65f6\uff0c\u638f\u51fa\u624b\u673a\u5c31\u80fd\u641e\u5b9a\u3002<\/p>\n<p>\u6253\u5f00\u5fae\u4fe1\u641c\u7d22 <strong>\u300cmodbus\u8c03\u8bd5\u52a9\u624b\u300d<\/strong>\uff0c\u5de5\u7a0b\u5e08\u7684\u968f\u8eab\u6570\u636e\u5de5\u5177\u7bb1\u3002<\/p>\n<hr \/>\n<h2>\ud83c\udfaf \u672c\u6587\u6240\u8ff0\u5168\u90e8\u5de5\u5177\u5747\u5728\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u4e2d\u514d\u8d39\u4f7f\u7528<\/h2>\n<p>\u6253\u5f00\u5fae\u4fe1 \u2192 \u70b9\u51fb\u9876\u90e8\u641c\u7d22 \u2192 \u8f93\u5165 <strong>\u300cmodbus\u8c03\u8bd5\u52a9\u624b\u300d<\/strong> \u2192 \u8fdb\u5165\u5c0f\u7a0b\u5e8f\u3002<br \/>\n<strong>\u65e0\u9700\u4e0b\u8f7dAPP\u3001\u65e0\u9700\u6ce8\u518c\u767b\u5f55\u3001\u65e0\u9700\u7535\u8111<\/strong>\u2014\u201470+ \u6b3e\u5de5\u63a7\u8c03\u8bd5\u5de5\u5177\uff0c\u638f\u51fa\u624b\u673a\u5c31\u80fd\u7528\u3002<\/p>\n<p>\u65e0\u8bba\u4f60\u662f\u5728\u5de5\u7a0b\u73b0\u573a\u3001\u51fa\u5dee\u9014\u4e2d\u3001\u8fd8\u662f\u5728\u5bb6\u5b66\u4e60\uff0cmodbus\u8c03\u8bd5\u52a9\u624b\u90fd\u662f\u4f60\u968f\u8eab\u7684\u5de5\u4e1a\u81ea\u52a8\u5316\u8c03\u8bd5\u5de5\u4f5c\u7ad9\u3002<\/p>\n<span id=\"magicpostMarker\"><\/span>","protected":false},"excerpt":{"rendered":"<p>\u5fae\u4fe1\u5c0f\u7a0b\u5e8fmodbus\u8c03\u8bd5\u52a9\u624b\u63d0\u4f9b\u6821\u9a8c\u8ba1\u7b97\u5668\/\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u5de5\u5177\/\u7a0b\u5e8f\u5458\u8ba1\u7b97\u5668\u51713\u6b3e\u6570\u636e\u8f6c\u6362\u4e0e\u8ba1\u7b97\u5de5\u5177\uff0c\u652f\u6301CRC16\/CRC32\/MD5\/SHA\/\u8fdb\u5236\u8f6c\u6362\/\u6d6e\u70b9\u6570\u89e3\u6790\u7b49\u5de5\u63a7\u5e38\u7528\u6570\u636e\u64cd\u4f5c\u3002<\/p>","protected":false},"author":1,"featured_media":27977,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[198],"tags":[2627,2628,2564,2624,2623,2625,2626],"class_list":["post-42582","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-modbus-debugging-tool","tag-crc","tag-modbus","tag-2564","tag-2624","tag-2623","tag-2625","tag-2626"],"_links":{"self":[{"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/posts\/42582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/comments?post=42582"}],"version-history":[{"count":0,"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/posts\/42582\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/media\/27977"}],"wp:attachment":[{"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/media?parent=42582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/categories?post=42582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.modbus.cn\/en\/wp-json\/wp\/v2\/tags?post=42582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}