{"id":20204,"date":"2022-04-11T10:41:15","date_gmt":"2022-04-11T02:41:15","guid":{"rendered":"https:\/\/hongtronics.com\/?p=20204"},"modified":"2023-04-06T13:06:11","modified_gmt":"2023-04-06T05:06:11","slug":"tutorial-python-modbus-rtu-read-meter","status":"publish","type":"post","link":"https:\/\/hongtronics.com\/en\/tutorial-python-modbus-rtu-read-meter\/","title":{"rendered":"Industrial Raspberry Pi] Using Python to read meter via Modbus RTU"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"381\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/03\/640-6-1-1024x381.jpg\" alt=\"\" class=\"wp-image-19888\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/03\/640-6-1-1024x381.jpg 1024w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/03\/640-6-1-300x112.jpg 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/03\/640-6-1-600x223.jpg 600w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/03\/640-6-1-768x286.jpg 768w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/03\/640-6-1.jpg 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption><strong>KUNBUS Industrial Raspberry Pi<\/strong>\u00a0High performance \u258eMulti-interfaces \u258eWide temperature for harsh environments<\/figcaption><\/figure>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Industrial Raspberry Pi is a Raspberry Pi based industrial grade industrial controller product with a full range of models and features, including fieldbus protocol gateway ratio and DIO, AIO and other module extensions.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">The Industrial Raspberry Pi is industrial ready, with an operating temperature range of -40 ~55 \u00b0C, ESD protection up to 4 kV \/ 8 kV, and surge\/burst testing and EMI testing to EN61131-2 and IEC 61000-6-2 standards. Supports multiple programming languages such as Node-RED, Python, or pure C. Supports common Industrial Internet of Things (IIoT) protocols such as MQTT and OPC UA. Contains two Ethernet interfaces, one of which can connect to an industrial field network via the Modbus TCP protocol, and the other can be connected to a higher-level IT system or a cloud server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ralph lauren preface<\/h2>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">In this paper, we will use Python to program and read the values of voltage\/current, power, etc. through Modbus RTU\/TCP to realize the functions of data acquisition and transmission, and data uploading to the cloud.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">In this article, by connecting a controller module such as RevPi Core\/Connect to a meter (LEOS AC3-MF1, a full-featured AC 3-item multifunction meter.), a controller module such as RevPi Core\/Connect can be used to connect to the meter. The ports use RS-485 and RevPi's Modbus virtual master feature. In this case, the RevPi Connect will act as the Modbus master and the LEOS model AC3-MF1 will act as the Modbus slave.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"881\" height=\"621\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_02.jpg\" alt=\"\" class=\"wp-image-20205\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_02.jpg 881w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_02-300x211.jpg 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_02-600x423.jpg 600w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_02-768x541.jpg 768w\" sizes=\"(max-width: 881px) 100vw, 881px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u258d\u9810\u8a2d\u914d\u7f6e\uff0c\u67e5\u770b\u5176\u4ed6\u6559\u5b78\u6587\u7ae0<\/h2>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">1. Use RevPi to connect to all devices via remote SSH protocol.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">2. Configure RevPi Core\/RevPi Core 3 to start in GUI mode.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">3. How to use remote desktop with RevPi Core\/RevPi Core 3<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ralph lauren outlet<\/h2>\n\n\n\n<ul class=\"has-medium-font-size wp-block-list\"><li>1 PC<\/li><li>1 RevPi Connect<\/li><li>3 LEOS AC3-MF1<\/li><li>2 sets of 24V DC power supplies<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">ralph lauren polo ralph lauren outlet<\/h2>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">1. The LEOS AC3-MF1 measures 3-phase power and can send measurements via Modbus RTU or RS-485. After powering up all devices, connect them according to the following diagram.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1024\" height=\"458\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_01-1024x458-1.jpg\" alt=\"\" class=\"wp-image-20206\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_01-1024x458-1.jpg 1024w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_01-1024x458-1-300x134.jpg 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_01-1024x458-1-600x268.jpg 600w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_01-1024x458-1-768x344.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">2. Open the Web Server page on your computer, enter the IP address of RevPi Connect, and follow the details below to log in.<\/p>\n\n\n\n<ul class=\"has-medium-font-size wp-block-list\"><li>Username: admin;<\/li><li>Password: Can be found on the side sticker of the RevPi device.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"523\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_01.jpg\" alt=\"\" class=\"wp-image-20207\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_01.jpg 790w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_01-300x199.jpg 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_01-600x397.jpg 600w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_01-768x508.jpg 768w\" sizes=\"(max-width: 790px) 100vw, 790px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">3. The web window of RevPi Connect device will appear, select Services option and click \"Enabled Modbus Master\", then click \"SAVE ALL\".<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"637\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_MODBUS_Robotiq_FT300_RevPi_Connect_Core_Thailand_Price_02-1024x637-1.jpg\" alt=\"\" class=\"wp-image-20208\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_MODBUS_Robotiq_FT300_RevPi_Connect_Core_Thailand_Price_02-1024x637-1.jpg 1024w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_MODBUS_Robotiq_FT300_RevPi_Connect_Core_Thailand_Price_02-1024x637-1-300x187.jpg 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_MODBUS_Robotiq_FT300_RevPi_Connect_Core_Thailand_Price_02-1024x637-1-600x373.jpg 600w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_MODBUS_Robotiq_FT300_RevPi_Connect_Core_Thailand_Price_02-1024x637-1-768x478.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">4. Select \"APP\" application menu and click \"START\" to start the PiCtory program.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"431\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_02-1024x431-1.jpg\" alt=\"\" class=\"wp-image-20209\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_02-1024x431-1.jpg 1024w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_02-1024x431-1-300x126.jpg 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_02-1024x431-1-600x253.jpg 600w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_02-1024x431-1-768x323.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">5. Drag the Modbus RTU Master icon in the virtual device from the left catalog option and move it to one side of the RevPi Connect image (in the empty boxes on both sides).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"485\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_MODBUS_Robotiq_FT300_RevPi_Connect_Core_Thailand_Price_03-1024x485.jpg\" alt=\"\" class=\"wp-image-20210\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_MODBUS_Robotiq_FT300_RevPi_Connect_Core_Thailand_Price_03-1024x485.jpg 1024w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_MODBUS_Robotiq_FT300_RevPi_Connect_Core_Thailand_Price_03-300x142.jpg 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_MODBUS_Robotiq_FT300_RevPi_Connect_Core_Thailand_Price_03-600x284.jpg 600w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_MODBUS_Robotiq_FT300_RevPi_Connect_Core_Thailand_Price_03-768x364.jpg 768w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_MODBUS_Robotiq_FT300_RevPi_Connect_Core_Thailand_Price_03.jpg 1032w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">6. Configure the RS-485 interface of RevPi Connect to adapt to the LEOS AC3-MF1, as shown below<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"648\" height=\"176\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_03.jpg\" alt=\"\" class=\"wp-image-20211\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_03.jpg 648w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_03-300x81.jpg 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_03-600x163.jpg 600w\" sizes=\"(max-width: 648px) 100vw, 648px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">7. Since the user can configure MODBUS to read multiple values from the LEO AC3-MF1, the readings will be tested in detail in this example, as described below.<\/p>\n\n\n\n<ul class=\"has-medium-font-size wp-block-list\"><li>Voltage lines 1 to 0<\/li><li>Voltage lines 2 to 0<\/li><li>Voltage Cord 3 to 0 lines<\/li><li>+\/- Phase current line 1<\/li><li>+\/- Phase current line 2<\/li><li>+\/- Phase current line 3<\/li><li>+\/- Total active power<\/li><li>Total Power Factor<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Therefore, the value editor for Modbus RTU Master has been added, i.e. the name in the following picture.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"472\" height=\"221\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_04.jpg\" alt=\"\" class=\"wp-image-20212\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_04.jpg 472w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_04-300x140.jpg 300w\" sizes=\"(max-width: 472px) 100vw, 472px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">8. Right-click the added Modbus RTU Master image and select the Extended Data directory. the Extended Data for the Modbus RTU Master will appear. the Modbus RTU Master is configured as before as shown below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"279\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_05-1024x279.jpg\" alt=\"\" class=\"wp-image-20213\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_05-1024x279.jpg 1024w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_05-300x82.jpg 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_05-600x163.jpg 600w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_05-768x209.jpg 768w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_05.jpg 1029w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Then follow the steps below to save the values.<\/p>\n\n\n\n<ul class=\"has-medium-font-size wp-block-list\"><li>Select Directory File \u2192 Save As<\/li><li>Select the directory file \u2192 Save As to start the configuration.<\/li><li>Select the directory File \u2192 Load Start-Config.<\/li><li>Select Catalog Tools \u2192 Remake Drivers and click the OK button<\/li><\/ul>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">9. Run the PuTTY program from your computer or open the terminal program on RevPi Connect and enter the following commands. Test the LEOS AC3-MF1 reading via MODBUS RTU.<\/p>\n\n\n\n<ul class=\"has-medium-font-size wp-block-list\"><li>piTest - 1- r L1N<\/li><li>piTest - 1- r CL1<\/li><li>piTest - 1- r AP_Total<\/li><li>piTest - 1- r PF_Total<\/li><\/ul>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">10. Select Directory File and Export to create an offset list file that will reference the location of addresses in the Python program by selecting it as the offset list mode (template e02.json).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"691\" height=\"413\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_08.jpg\" alt=\"\" class=\"wp-image-20214\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_08.jpg 691w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_08-300x179.jpg 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_08-600x359.jpg 600w\" sizes=\"(max-width: 691px) 100vw, 691px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">The result of this getting OffsetList.txt file is listed below.<\/p>\n\n\n\n<ul class=\"has-medium-font-size wp-block-list\"><li>L1N 11 \/\/ Word<\/li><li>L2N 13 \/\/ Word<\/li><li>L3N 15 \/\/ Word<\/li><li>CL1 17 \/\/ Word<\/li><li>CL2 19 \/\/ Word<\/li><li>CL3 21 \/\/ Word<\/li><li>AP_Total 23 \/\/WORD<\/li><li>PF_Total 25 \/\/WORD<\/li><\/ul>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">L1N Indicates the voltage between line 1 and neutral.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">L2N indicates the voltage between line 2 and neutral.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">L3N indicates the voltage between line 3 and neutral.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">CL1 indicates current in phase 1<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">CL2 indicates current in phase 2<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">CL3 indicates current in phase 3<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">AP_Total indicates the total active power<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">PF_Total represents the total power factor.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">11. Visit RevPi Connect using VNC Viewer and run Python 3 (IDLE).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"639\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_10.jpg\" alt=\"\" class=\"wp-image-20215\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_10.jpg 802w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_10-300x239.jpg 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_10-600x478.jpg 600w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python-RevPI-AIO-Thailand-Price-TECHSQUARE_10-768x612.jpg 768w\" sizes=\"(max-width: 802px) 100vw, 802px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">12. Enter the following commands to test all readings.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"653\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/image-1-1024x653.png\" alt=\"\" class=\"wp-image-20216\" srcset=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/image-1-1024x653.png 1024w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/image-1-300x191.png 300w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/image-1-600x383.png 600w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/image-1-768x490.png 768w, https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/image-1.png 1085w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After completing the above steps, you will be able to see that L1N, L2N, L3N, CL1, CL2, CL3, AP_Total and PF_Total are output correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">***Note: If a new port is changed and the reading is 0 or does not work, restart the RevPi device to test again.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/01\/\u5b8f\u8679\u8cc7\u8a0a\u5361-1024x576.png\" alt=\"\" class=\"wp-image-17585\"\/><figcaption>Contact Us<\/figcaption><\/figure><\/div>","protected":false},"excerpt":{"rendered":"<p>\u5de5\u696d\u6a39\u8393\u6d3e\u662f\u57fa\u65bc\u6a39\u8393\u6d3e\u7684\u5de5\u696d\u7d1a\u5de5\u63a7\u6a5f\u7522\u54c1\uff0c\u578b\u865f\u548c\u529f\u80fd\u9f4a\u5168\uff0c\u5305\u62ec\u73fe\u5834\u7e3d\u7dda\u5404\u5354\u8b70\u7db2\u95dc\u6bd4\u8207DIO\u3001AIO\u7b49\u6a21\u584a\u64f4\u5c55\u3002 [&hellip;]<\/p>","protected":false},"author":29,"featured_media":20217,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"minimal","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","iawp_total_views":983,"ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"off","ocean_gallery_id":[],"footnotes":""},"categories":[1824],"tags":[1339],"table_tags":[],"class_list":["post-20204","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-iiot","tag-1339","entry","has-media","owp-thumbs-layout-horizontal","owp-btn-normal","owp-tabs-layout-horizontal","has-no-thumbnails","has-product-nav"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u5de5\u696d\u6a39\u8393\u6d3e\u662f\u57fa\u65bc\u6a39\u8393\u6d3e\u7684\u5de5\u696d\u7d1a\u5de5\u63a7\u6a5f\u7522\u54c1\uff0c\u53ef\u64f4\u5c55\u6578\u4f4d\u985e\u6bd4IO\uff0c\u4ee5\u53ca\u5404\u985e\u73fe\u5834\u7e3d\u7dda\u6216\u5de5\u696d\u4e59\u592a\u7db2\u5354\u8b70\uff0c\u5de5\u4f5c\u6eab\u5ea6\u7bc4\u570d\u9054\u5230 -40 ~55 \u00b0C \uff0c\u6d6a\u6e67\/\u7206\u88c2\u6e2c\u8a66\u4ee5\u53ca EMI\u6e2c\u8a66\u90fd\u7b26\u5408\u5de5\u696d\u6a19\u6e96\u8981\u6c42\u3002\u652f\u63f4 Node-RED\u3001Python\u6216\u7d14C\u7b49\u591a\u7a2e\u7de8\u7a0b\u8a9e\u8a00\uff1b\u652f\u6301MQTT\u548c OPC UA\uff0c\u53ef\u4ee5\u9023\u63a5\u4e0a\u7d1a\u7684IT\u7cfb\u7d71\u6216\u662f\u96f2\u7aef\u670d\u52d9\u5668\u3002\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"Janice Wei\"\/>\n\t<meta name=\"google-site-verification\" content=\"SkpHtpSLB2vAUMP2DE82RvjkPkzsxboRb7ir9XnuNmQ\" \/>\n\t<meta name=\"msvalidate.01\" content=\"75F9DB4D5EFA19B04308C9BEC35BA06B\" \/>\n\t<meta name=\"p:domain_verify\" content=\"9b5f6acf70cc242e0a343b56495c9000\" \/>\n\t<meta name=\"keywords\" content=\"\u5de5\u696d\u6a39\u8393\u6d3e,\u6a39\u8393\u6d3e,\u6a39\u8393\u6d3e\u5de5\u63a7\u6a5f,\u6a39\u8393\u6d3e\u63a7\u5236\u5668,\u6578\u64da\u63a1\u96c6,\u6578\u64da\u4e0a\u96f2,\u8edfplc,modbus\u63a7\u5236\u5668,\u5de5\u696d\u5354\u8b70\u8f49\u63db\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/hongtronics.com\/en\/tutorial-python-modbus-rtu-read-meter\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/tutorial-python-modbus-rtu-read-meter\\\/#article\",\"name\":\"\\u3010\\u5de5\\u696d\\u6a39\\u8393\\u6d3e\\u3011\\u4f7f\\u7528Python \\u900f\\u904eModbus RTU\\u8b80\\u53d6\\u96fb\\u8868 | \\u5b8f\\u8679\\u96fb\\u5b50\\u79d1\\u6280\\u6709\\u9650\\u516c\\u53f8\",\"headline\":\"\\u3010\\u5de5\\u696d\\u6a39\\u8393\\u6d3e\\u3011\\u4f7f\\u7528Python \\u900f\\u904eModbus RTU\\u8b80\\u53d6\\u96fb\\u8868\",\"author\":{\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/author\\\/wmj\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/hongtronics.com\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_02-1.jpg\",\"width\":700,\"height\":700},\"datePublished\":\"2022-04-11T10:41:15+08:00\",\"dateModified\":\"2023-04-06T13:06:11+08:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/tutorial-python-modbus-rtu-read-meter\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/tutorial-python-modbus-rtu-read-meter\\\/#webpage\"},\"articleSection\":\"\\u5de5\\u696d\\u7269\\u806f\\u7db2, \\u5de5\\u696d\\u6a39\\u8393\\u6d3e\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/tutorial-python-modbus-rtu-read-meter\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en#listItem\",\"position\":1,\"name\":\"\\u4e3b\\u9801\",\"item\":\"https:\\\/\\\/hongtronics.com\\\/en\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/category\\\/iiot\\\/#listItem\",\"name\":\"\\u5de5\\u696d\\u7269\\u806f\\u7db2\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/category\\\/iiot\\\/#listItem\",\"position\":2,\"name\":\"\\u5de5\\u696d\\u7269\\u806f\\u7db2\",\"item\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/category\\\/iiot\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/tutorial-python-modbus-rtu-read-meter\\\/#listItem\",\"name\":\"\\u3010\\u5de5\\u696d\\u6a39\\u8393\\u6d3e\\u3011\\u4f7f\\u7528Python \\u900f\\u904eModbus RTU\\u8b80\\u53d6\\u96fb\\u8868\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en#listItem\",\"name\":\"\\u4e3b\\u9801\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/tutorial-python-modbus-rtu-read-meter\\\/#listItem\",\"position\":3,\"name\":\"\\u3010\\u5de5\\u696d\\u6a39\\u8393\\u6d3e\\u3011\\u4f7f\\u7528Python \\u900f\\u904eModbus RTU\\u8b80\\u53d6\\u96fb\\u8868\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/category\\\/iiot\\\/#listItem\",\"name\":\"\\u5de5\\u696d\\u7269\\u806f\\u7db2\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/#organization\",\"name\":\"\\u5b8f\\u8679\\u96fb\\u5b50\\u79d1\\u6280\\u6709\\u9650\\u516c\\u53f8\",\"description\":\"\\u8b93\\u8eca\\u7528\\u96fb\\u5b50\\u8207\\u5de5\\u696d4.0\\u89e3\\u6c7a\\u65b9\\u6848\\u52a9\\u60a8\\u4e00\\u81c2\\u4e4b\\u529b\",\"url\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/\",\"telephone\":\"+88633589488\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/hongtronics.com\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/\\u5b8f\\u8679_\\u753b\\u677f-12.png\",\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/tutorial-python-modbus-rtu-read-meter\\\/#organizationLogo\"},\"image\":{\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/tutorial-python-modbus-rtu-read-meter\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/author\\\/wmj\\\/#author\",\"url\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/author\\\/wmj\\\/\",\"name\":\"Janice Wei\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/tutorial-python-modbus-rtu-read-meter\\\/#webpage\",\"url\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/tutorial-python-modbus-rtu-read-meter\\\/\",\"name\":\"\\u3010\\u5de5\\u696d\\u6a39\\u8393\\u6d3e\\u3011\\u4f7f\\u7528Python \\u900f\\u904eModbus RTU\\u8b80\\u53d6\\u96fb\\u8868 | \\u5b8f\\u8679\\u96fb\\u5b50\\u79d1\\u6280\\u6709\\u9650\\u516c\\u53f8\",\"description\":\"\\u5de5\\u696d\\u6a39\\u8393\\u6d3e\\u662f\\u57fa\\u65bc\\u6a39\\u8393\\u6d3e\\u7684\\u5de5\\u696d\\u7d1a\\u5de5\\u63a7\\u6a5f\\u7522\\u54c1\\uff0c\\u53ef\\u64f4\\u5c55\\u6578\\u4f4d\\u985e\\u6bd4IO\\uff0c\\u4ee5\\u53ca\\u5404\\u985e\\u73fe\\u5834\\u7e3d\\u7dda\\u6216\\u5de5\\u696d\\u4e59\\u592a\\u7db2\\u5354\\u8b70\\uff0c\\u5de5\\u4f5c\\u6eab\\u5ea6\\u7bc4\\u570d\\u9054\\u5230 -40 ~55 \\u00b0C \\uff0c\\u6d6a\\u6e67\\\/\\u7206\\u88c2\\u6e2c\\u8a66\\u4ee5\\u53ca EMI\\u6e2c\\u8a66\\u90fd\\u7b26\\u5408\\u5de5\\u696d\\u6a19\\u6e96\\u8981\\u6c42\\u3002\\u652f\\u63f4 Node-RED\\u3001Python\\u6216\\u7d14C\\u7b49\\u591a\\u7a2e\\u7de8\\u7a0b\\u8a9e\\u8a00\\uff1b\\u652f\\u6301MQTT\\u548c OPC UA\\uff0c\\u53ef\\u4ee5\\u9023\\u63a5\\u4e0a\\u7d1a\\u7684IT\\u7cfb\\u7d71\\u6216\\u662f\\u96f2\\u7aef\\u670d\\u52d9\\u5668\\u3002\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/tutorial-python-modbus-rtu-read-meter\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/author\\\/wmj\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/author\\\/wmj\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/hongtronics.com\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_02-1.jpg\",\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/tutorial-python-modbus-rtu-read-meter\\\/#mainImage\",\"width\":700,\"height\":700},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/tutorial-python-modbus-rtu-read-meter\\\/#mainImage\"},\"datePublished\":\"2022-04-11T10:41:15+08:00\",\"dateModified\":\"2023-04-06T13:06:11+08:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/\",\"name\":\"\\u5b8f\\u8679\\u96fb\\u5b50\\u79d1\\u6280\\u6709\\u9650\\u516c\\u53f8 | \\u53f0\\u7063\\u8679\\u79d1\",\"description\":\"\\u8b93\\u8eca\\u7528\\u96fb\\u5b50\\u8207\\u5de5\\u696d4.0\\u89e3\\u6c7a\\u65b9\\u6848\\u52a9\\u60a8\\u4e00\\u81c2\\u4e4b\\u529b\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/hongtronics.com\\\/en\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\u3010\u5de5\u696d\u6a39\u8393\u6d3e\u3011\u4f7f\u7528Python \u900f\u904eModbus RTU\u8b80\u53d6\u96fb\u8868 | \u5b8f\u8679\u96fb\u5b50\u79d1\u6280\u6709\u9650\u516c\u53f8","description":"\u5de5\u696d\u6a39\u8393\u6d3e\u662f\u57fa\u65bc\u6a39\u8393\u6d3e\u7684\u5de5\u696d\u7d1a\u5de5\u63a7\u6a5f\u7522\u54c1\uff0c\u53ef\u64f4\u5c55\u6578\u4f4d\u985e\u6bd4IO\uff0c\u4ee5\u53ca\u5404\u985e\u73fe\u5834\u7e3d\u7dda\u6216\u5de5\u696d\u4e59\u592a\u7db2\u5354\u8b70\uff0c\u5de5\u4f5c\u6eab\u5ea6\u7bc4\u570d\u9054\u5230 -40 ~55 \u00b0C \uff0c\u6d6a\u6e67\/\u7206\u88c2\u6e2c\u8a66\u4ee5\u53ca EMI\u6e2c\u8a66\u90fd\u7b26\u5408\u5de5\u696d\u6a19\u6e96\u8981\u6c42\u3002\u652f\u63f4 Node-RED\u3001Python\u6216\u7d14C\u7b49\u591a\u7a2e\u7de8\u7a0b\u8a9e\u8a00\uff1b\u652f\u6301MQTT\u548c OPC UA\uff0c\u53ef\u4ee5\u9023\u63a5\u4e0a\u7d1a\u7684IT\u7cfb\u7d71\u6216\u662f\u96f2\u7aef\u670d\u52d9\u5668\u3002","canonical_url":"https:\/\/hongtronics.com\/en\/tutorial-python-modbus-rtu-read-meter\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"\u5de5\u696d\u6a39\u8393\u6d3e,\u6a39\u8393\u6d3e,\u6a39\u8393\u6d3e\u5de5\u63a7\u6a5f,\u6a39\u8393\u6d3e\u63a7\u5236\u5668,\u6578\u64da\u63a1\u96c6,\u6578\u64da\u4e0a\u96f2,\u8edfplc,modbus\u63a7\u5236\u5668,\u5de5\u696d\u5354\u8b70\u8f49\u63db","webmasterTools":{"google-site-verification":"SkpHtpSLB2vAUMP2DE82RvjkPkzsxboRb7ir9XnuNmQ","msvalidate.01":"75F9DB4D5EFA19B04308C9BEC35BA06B","p:domain_verify":"9b5f6acf70cc242e0a343b56495c9000","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hongtronics.com\/en\/tutorial-python-modbus-rtu-read-meter\/#article","name":"\u3010\u5de5\u696d\u6a39\u8393\u6d3e\u3011\u4f7f\u7528Python \u900f\u904eModbus RTU\u8b80\u53d6\u96fb\u8868 | \u5b8f\u8679\u96fb\u5b50\u79d1\u6280\u6709\u9650\u516c\u53f8","headline":"\u3010\u5de5\u696d\u6a39\u8393\u6d3e\u3011\u4f7f\u7528Python \u900f\u904eModbus RTU\u8b80\u53d6\u96fb\u8868","author":{"@id":"https:\/\/hongtronics.com\/en\/author\/wmj\/#author"},"publisher":{"@id":"https:\/\/hongtronics.com\/en\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_02-1.jpg","width":700,"height":700},"datePublished":"2022-04-11T10:41:15+08:00","dateModified":"2023-04-06T13:06:11+08:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/hongtronics.com\/en\/tutorial-python-modbus-rtu-read-meter\/#webpage"},"isPartOf":{"@id":"https:\/\/hongtronics.com\/en\/tutorial-python-modbus-rtu-read-meter\/#webpage"},"articleSection":"\u5de5\u696d\u7269\u806f\u7db2, \u5de5\u696d\u6a39\u8393\u6d3e"},{"@type":"BreadcrumbList","@id":"https:\/\/hongtronics.com\/en\/tutorial-python-modbus-rtu-read-meter\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/hongtronics.com\/en#listItem","position":1,"name":"\u4e3b\u9801","item":"https:\/\/hongtronics.com\/en","nextItem":{"@type":"ListItem","@id":"https:\/\/hongtronics.com\/en\/category\/iiot\/#listItem","name":"\u5de5\u696d\u7269\u806f\u7db2"}},{"@type":"ListItem","@id":"https:\/\/hongtronics.com\/en\/category\/iiot\/#listItem","position":2,"name":"\u5de5\u696d\u7269\u806f\u7db2","item":"https:\/\/hongtronics.com\/en\/category\/iiot\/","nextItem":{"@type":"ListItem","@id":"https:\/\/hongtronics.com\/en\/tutorial-python-modbus-rtu-read-meter\/#listItem","name":"\u3010\u5de5\u696d\u6a39\u8393\u6d3e\u3011\u4f7f\u7528Python \u900f\u904eModbus RTU\u8b80\u53d6\u96fb\u8868"},"previousItem":{"@type":"ListItem","@id":"https:\/\/hongtronics.com\/en#listItem","name":"\u4e3b\u9801"}},{"@type":"ListItem","@id":"https:\/\/hongtronics.com\/en\/tutorial-python-modbus-rtu-read-meter\/#listItem","position":3,"name":"\u3010\u5de5\u696d\u6a39\u8393\u6d3e\u3011\u4f7f\u7528Python \u900f\u904eModbus RTU\u8b80\u53d6\u96fb\u8868","previousItem":{"@type":"ListItem","@id":"https:\/\/hongtronics.com\/en\/category\/iiot\/#listItem","name":"\u5de5\u696d\u7269\u806f\u7db2"}}]},{"@type":"Organization","@id":"https:\/\/hongtronics.com\/en\/#organization","name":"\u5b8f\u8679\u96fb\u5b50\u79d1\u6280\u6709\u9650\u516c\u53f8","description":"\u8b93\u8eca\u7528\u96fb\u5b50\u8207\u5de5\u696d4.0\u89e3\u6c7a\u65b9\u6848\u52a9\u60a8\u4e00\u81c2\u4e4b\u529b","url":"https:\/\/hongtronics.com\/en\/","telephone":"+88633589488","logo":{"@type":"ImageObject","url":"https:\/\/hongtronics.com\/wp-content\/uploads\/2019\/11\/\u5b8f\u8679_\u753b\u677f-12.png","@id":"https:\/\/hongtronics.com\/en\/tutorial-python-modbus-rtu-read-meter\/#organizationLogo"},"image":{"@id":"https:\/\/hongtronics.com\/en\/tutorial-python-modbus-rtu-read-meter\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/hongtronics.com\/en\/author\/wmj\/#author","url":"https:\/\/hongtronics.com\/en\/author\/wmj\/","name":"Janice Wei"},{"@type":"WebPage","@id":"https:\/\/hongtronics.com\/en\/tutorial-python-modbus-rtu-read-meter\/#webpage","url":"https:\/\/hongtronics.com\/en\/tutorial-python-modbus-rtu-read-meter\/","name":"\u3010\u5de5\u696d\u6a39\u8393\u6d3e\u3011\u4f7f\u7528Python \u900f\u904eModbus RTU\u8b80\u53d6\u96fb\u8868 | \u5b8f\u8679\u96fb\u5b50\u79d1\u6280\u6709\u9650\u516c\u53f8","description":"\u5de5\u696d\u6a39\u8393\u6d3e\u662f\u57fa\u65bc\u6a39\u8393\u6d3e\u7684\u5de5\u696d\u7d1a\u5de5\u63a7\u6a5f\u7522\u54c1\uff0c\u53ef\u64f4\u5c55\u6578\u4f4d\u985e\u6bd4IO\uff0c\u4ee5\u53ca\u5404\u985e\u73fe\u5834\u7e3d\u7dda\u6216\u5de5\u696d\u4e59\u592a\u7db2\u5354\u8b70\uff0c\u5de5\u4f5c\u6eab\u5ea6\u7bc4\u570d\u9054\u5230 -40 ~55 \u00b0C \uff0c\u6d6a\u6e67\/\u7206\u88c2\u6e2c\u8a66\u4ee5\u53ca EMI\u6e2c\u8a66\u90fd\u7b26\u5408\u5de5\u696d\u6a19\u6e96\u8981\u6c42\u3002\u652f\u63f4 Node-RED\u3001Python\u6216\u7d14C\u7b49\u591a\u7a2e\u7de8\u7a0b\u8a9e\u8a00\uff1b\u652f\u6301MQTT\u548c OPC UA\uff0c\u53ef\u4ee5\u9023\u63a5\u4e0a\u7d1a\u7684IT\u7cfb\u7d71\u6216\u662f\u96f2\u7aef\u670d\u52d9\u5668\u3002","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/hongtronics.com\/en\/#website"},"breadcrumb":{"@id":"https:\/\/hongtronics.com\/en\/tutorial-python-modbus-rtu-read-meter\/#breadcrumblist"},"author":{"@id":"https:\/\/hongtronics.com\/en\/author\/wmj\/#author"},"creator":{"@id":"https:\/\/hongtronics.com\/en\/author\/wmj\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_02-1.jpg","@id":"https:\/\/hongtronics.com\/en\/tutorial-python-modbus-rtu-read-meter\/#mainImage","width":700,"height":700},"primaryImageOfPage":{"@id":"https:\/\/hongtronics.com\/en\/tutorial-python-modbus-rtu-read-meter\/#mainImage"},"datePublished":"2022-04-11T10:41:15+08:00","dateModified":"2023-04-06T13:06:11+08:00"},{"@type":"WebSite","@id":"https:\/\/hongtronics.com\/en\/#website","url":"https:\/\/hongtronics.com\/en\/","name":"\u5b8f\u8679\u96fb\u5b50\u79d1\u6280\u6709\u9650\u516c\u53f8 | \u53f0\u7063\u8679\u79d1","description":"\u8b93\u8eca\u7528\u96fb\u5b50\u8207\u5de5\u696d4.0\u89e3\u6c7a\u65b9\u6848\u52a9\u60a8\u4e00\u81c2\u4e4b\u529b","inLanguage":"en-US","publisher":{"@id":"https:\/\/hongtronics.com\/en\/#organization"}}]}},"aioseo_meta_data":{"post_id":"20204","title":"#post_title #separator_sa #site_title","description":"\u5de5\u696d\u6a39\u8393\u6d3e\u662f\u57fa\u65bc\u6a39\u8393\u6d3e\u7684\u5de5\u696d\u7d1a\u5de5\u63a7\u6a5f\u7522\u54c1\uff0c\u53ef\u64f4\u5c55\u6578\u4f4d\u985e\u6bd4IO\uff0c\u4ee5\u53ca\u5404\u985e\u73fe\u5834\u7e3d\u7dda\u6216\u5de5\u696d\u4e59\u592a\u7db2\u5354\u8b70\uff0c\u5de5\u4f5c\u6eab\u5ea6\u7bc4\u570d\u9054\u5230 -40 ~55 \u00b0C \uff0c\u6d6a\u6e67\/\u7206\u88c2\u6e2c\u8a66\u4ee5\u53ca EMI\u6e2c\u8a66\u90fd\u7b26\u5408\u5de5\u696d\u6a19\u6e96\u8981\u6c42\u3002\u652f\u63f4 Node-RED\u3001Python\u6216\u7d14C\u7b49\u591a\u7a2e\u7de8\u7a0b\u8a9e\u8a00\uff1b\u652f\u6301MQTT\u548c OPC UA\uff0c\u53ef\u4ee5\u9023\u63a5\u4e0a\u7d1a\u7684IT\u7cfb\u7d71\u6216\u662f\u96f2\u7aef\u670d\u52d9\u5668\u3002","keywords":[{"label":"\u5de5\u696d\u6a39\u8393\u6d3e","value":"\u5de5\u696d\u6a39\u8393\u6d3e"},{"label":"\u6a39\u8393\u6d3e","value":"\u6a39\u8393\u6d3e"},{"label":"\u6a39\u8393\u6d3e\u5de5\u63a7\u6a5f","value":"\u6a39\u8393\u6d3e\u5de5\u63a7\u6a5f"},{"label":"\u6a39\u8393\u6d3e\u63a7\u5236\u5668","value":"\u6a39\u8393\u6d3e\u63a7\u5236\u5668"},{"label":"\u6578\u64da\u63a1\u96c6","value":"\u6578\u64da\u63a1\u96c6"},{"label":"\u6578\u64da\u4e0a\u96f2","value":"\u6578\u64da\u4e0a\u96f2"},{"label":"\u8edfplc","value":"\u8edfplc"},{"label":"modbus\u63a7\u5236\u5668","value":"modbus\u63a7\u5236\u5668"},{"label":"\u5de5\u696d\u5354\u8b70\u8f49\u63db","value":"\u5de5\u696d\u5354\u8b70\u8f49\u63db"}],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":"#post_title #separator_sa #site_title","og_description":"\u5de5\u696d\u6a39\u8393\u6d3e\u662f\u57fa\u65bc\u6a39\u8393\u6d3e\u7684\u5de5\u696d\u7d1a\u5de5\u63a7\u6a5f\u7522\u54c1\uff0c\u53ef\u64f4\u5c55\u6578\u4f4d\u985e\u6bd4IO\uff0c\u4ee5\u53ca\u5404\u985e\u73fe\u5834\u7e3d\u7dda\u6216\u5de5\u696d\u4e59\u592a\u7db2\u5354\u8b70\u3002\u5de5\u696d\u6a39\u8393\u6d3e\u5177\u6709\u5de5\u696d\u9069\u7528\u6027\uff0c\u5de5\u4f5c\u6eab\u5ea6\u7bc4\u570d\u9054\u5230 -40 ~55 \u00b0C \uff0c\u6d6a\u6e67\/\u7206\u88c2\u6e2c\u8a66\u4ee5\u53ca EMI\u6e2c\u8a66\u90fd\u7b26\u5408\u5de5\u696d\u6a19\u6e96\u8981\u6c42\u3002\u652f\u63f4 Node-RED \uff0cPython \uff0c\u6216\u7d14C\u7b49\u591a\u7a2e\u7de8\u7a0b\u8a9e\u8a00\uff1b\u652f\u6301\u901a\u7528\u7684\u5de5\u696d\u7269\u806f\u7db2\uff08IIoT \uff09\u5354\u8b70\uff0c\u5982 MQTT\u548c OPC UA\uff0c\u53ef\u4ee5\u9023\u63a5\u4e0a\u7d1a\u7684IT\u7cfb\u7d71\u6216\u662f\u96f2\u7aef\u670d\u52d9\u5668\u3002","og_object_type":"default","og_image_type":"featured","og_image_url":"https:\/\/hongtronics.com\/wp-content\/uploads\/2022\/04\/Python_RevPi_Raspberry_Power_Meter_Energy_Modbus_Thailand_02-1.jpg","og_image_width":"700","og_image_height":"700","og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":{"id":"#aioseo-article-64101e5c87733","slug":"article","graphName":"Article","label":"Article","properties":{"type":"BlogPosting","name":"#post_title","headline":"#post_title","description":"#post_excerpt","image":"","keywords":"","author":{"name":"#author_name","url":"#author_url"},"dates":{"include":true,"datePublished":"","dateModified":""}}},"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-04-11 01:23:50","updated":"2023-04-06 05:06:13","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/hongtronics.com\/en\" title=\"\u4e3b\u9801\">\u4e3b\u9801<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/hongtronics.com\/en\/category\/iiot\/\" title=\"\u5de5\u696d\u7269\u806f\u7db2\">\u5de5\u696d\u7269\u806f\u7db2<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t\u3010\u5de5\u696d\u6a39\u8393\u6d3e\u3011\u4f7f\u7528Python \u900f\u904eModbus RTU\u8b80\u53d6\u96fb\u8868\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"\u4e3b\u9801","link":"https:\/\/hongtronics.com\/en"},{"label":"\u5de5\u696d\u7269\u806f\u7db2","link":"https:\/\/hongtronics.com\/en\/category\/iiot\/"},{"label":"\u3010\u5de5\u696d\u6a39\u8393\u6d3e\u3011\u4f7f\u7528Python \u900f\u904eModbus RTU\u8b80\u53d6\u96fb\u8868","link":"https:\/\/hongtronics.com\/en\/tutorial-python-modbus-rtu-read-meter\/"}],"_links":{"self":[{"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/posts\/20204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/comments?post=20204"}],"version-history":[{"count":1,"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/posts\/20204\/revisions"}],"predecessor-version":[{"id":20218,"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/posts\/20204\/revisions\/20218"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/media\/20217"}],"wp:attachment":[{"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/media?parent=20204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/categories?post=20204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/tags?post=20204"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/hongtronics.com\/en\/wp-json\/wp\/v2\/table_tags?post=20204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}