{"id":710,"date":"2018-09-19T21:43:15","date_gmt":"2018-09-19T20:43:15","guid":{"rendered":"http:\/\/www.mb200d.nl\/wordpress\/?p=710"},"modified":"2018-10-11T22:19:16","modified_gmt":"2018-10-11T21:19:16","slug":"abb-b23-modbus-rtu","status":"publish","type":"post","link":"http:\/\/www.mb200d.nl\/wordpress\/2018\/09\/abb-b23-modbus-rtu\/","title":{"rendered":"ABB B23 Modbus RTU"},"content":{"rendered":"<p>CONCEPT MESSAGE.<\/p>\n<p>Connecting to ABB B23 Modbus energymeter.<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Using <a href=\"https:\/\/www.digitus.info\/de\/produkte\/computer-zubehoer-und-komponenten\/computer-zubehoer\/seriell-und-parallel-adapter\/da-70157\/\">Digitus USB-RS485<\/a> adapter<\/li>\n<li>A-B are swapped as <a href=\"https:\/\/www.vodnici.net\/community\/loxone-a-arduino\/propojeni-loxone-modbus-abb-elektromer\/paged\/2\/\">found here<\/a><\/li>\n<li>No bus terminating resistors used (only 2 participants on bus, usb-rs485 and abb b23)<\/li>\n<li>User Manual <a href=\"https:\/\/search-ext.abb.com\/library\/Download.aspx?DocumentID=2CMC485003M0201&amp;LanguageCode=en&amp;DocumentPartId=&amp;Action=Launch\">found here<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>I have the USB-RS485 plugged into a Debian Linux pc system (x86_64). I used the ModPoll tool from <a href=\"http:\/\/www.modbusdriver.com\/modpoll.html\">modbusdriver.com<\/a> for basic connection testing.<\/p>\n<pre>#.\/modpoll \/dev\/ttyUSB0 -b 9600 -p none -m rtu -a 1 -r 23296 -t 4:int -c 6\r\n<\/pre>\n<ul>\n<li>Offset addres 23296 (or hex 0x5B00) should have L1-N voltage.<\/li>\n<li>Read 6 next values also (-c 6)<\/li>\n<li>Gave me L-to-N and L-to-L voltages.<\/li>\n<\/ul>\n<p>Wrote a small C application to poll every second and write to MariaDB\/MySQL database table. Should be possible to recompile for Raspberry-PI (ARM) to.<\/p>\n<p>Uses libmodbus(-dev) and libmariadbclient(-dev).<\/p>\n<p>See attachments.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/www.mb200d.nl\/wordpress\/wp-content\/uploads\/2018\/09\/abbb23wiring.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-736\" src=\"http:\/\/www.mb200d.nl\/wordpress\/wp-content\/uploads\/2018\/09\/abbb23wiring.jpg\" alt=\"\" height=\"518\" width=\"700\" srcset=\"http:\/\/www.mb200d.nl\/wordpress\/wp-content\/uploads\/2018\/09\/abbb23wiring.jpg 700w, http:\/\/www.mb200d.nl\/wordpress\/wp-content\/uploads\/2018\/09\/abbb23wiring-300x222.jpg 300w, http:\/\/www.mb200d.nl\/wordpress\/wp-content\/uploads\/2018\/09\/abbb23wiring-624x462.jpg 624w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.mb200d.nl\/wordpress\/wp-content\/uploads\/2018\/10\/abbb23.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-735\" src=\"http:\/\/www.mb200d.nl\/wordpress\/wp-content\/uploads\/2018\/10\/abbb23.jpg\" alt=\"\" height=\"417\" width=\"700\" srcset=\"http:\/\/www.mb200d.nl\/wordpress\/wp-content\/uploads\/2018\/10\/abbb23.jpg 700w, http:\/\/www.mb200d.nl\/wordpress\/wp-content\/uploads\/2018\/10\/abbb23-300x179.jpg 300w, http:\/\/www.mb200d.nl\/wordpress\/wp-content\/uploads\/2018\/10\/abbb23-624x372.jpg 624w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.mb200d.nl\/wordpress\/wp-content\/uploads\/2018\/09\/Selection_023.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-738\" src=\"http:\/\/www.mb200d.nl\/wordpress\/wp-content\/uploads\/2018\/09\/Selection_023.png\" alt=\"\" height=\"547\" width=\"976\" srcset=\"http:\/\/www.mb200d.nl\/wordpress\/wp-content\/uploads\/2018\/09\/Selection_023.png 976w, http:\/\/www.mb200d.nl\/wordpress\/wp-content\/uploads\/2018\/09\/Selection_023-300x168.png 300w, http:\/\/www.mb200d.nl\/wordpress\/wp-content\/uploads\/2018\/09\/Selection_023-768x430.png 768w, http:\/\/www.mb200d.nl\/wordpress\/wp-content\/uploads\/2018\/09\/Selection_023-624x350.png 624w\" sizes=\"auto, (max-width: 976px) 100vw, 976px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CONCEPT MESSAGE. Connecting to ABB B23 Modbus energymeter. Using Digitus USB-RS485 adapter A-B are swapped as found here No bus terminating resistors used (only 2 participants on bus, usb-rs485 and abb b23) User Manual found here I have the USB-RS485 plugged into a Debian Linux pc system (x86_64). I used the ModPoll tool from modbusdriver.com [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[327,1,146],"tags":[],"class_list":["post-710","post","type-post","status-publish","format-standard","hentry","category-electronics","category-robin","category-solar-energy"],"_links":{"self":[{"href":"http:\/\/www.mb200d.nl\/wordpress\/wp-json\/wp\/v2\/posts\/710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.mb200d.nl\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.mb200d.nl\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.mb200d.nl\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mb200d.nl\/wordpress\/wp-json\/wp\/v2\/comments?post=710"}],"version-history":[{"count":9,"href":"http:\/\/www.mb200d.nl\/wordpress\/wp-json\/wp\/v2\/posts\/710\/revisions"}],"predecessor-version":[{"id":739,"href":"http:\/\/www.mb200d.nl\/wordpress\/wp-json\/wp\/v2\/posts\/710\/revisions\/739"}],"wp:attachment":[{"href":"http:\/\/www.mb200d.nl\/wordpress\/wp-json\/wp\/v2\/media?parent=710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.mb200d.nl\/wordpress\/wp-json\/wp\/v2\/categories?post=710"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.mb200d.nl\/wordpress\/wp-json\/wp\/v2\/tags?post=710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}