{"id":199,"date":"2023-10-09T13:50:09","date_gmt":"2023-10-09T11:50:09","guid":{"rendered":"https:\/\/beta.ewattch-documentation.com\/?p=199"},"modified":"2023-10-25T15:45:48","modified_gmt":"2023-10-25T13:45:48","slug":"functioning-in-slave-mode","status":"publish","type":"post","link":"https:\/\/ewattch-documentation.com\/?p=199","title":{"rendered":"Functioning in slave mode"},"content":{"rendered":"<p>This mode of functioning will be used when you wish, for example, to send back on the network LoRa the data coming from an existing ModBus network.<br \/>\nThe master of the ModBus network writes the preferred values in the table of the board.<br \/>\nThe table accepts a maximum of 512 words of 16 bits.<br \/>\nAll or part of the table may be the subject of a LoRa frame generation.<br \/>\nThe frame contains a maximum of 20 words of 16 bits.<\/p>\n<h5><span style=\"color: #000000;\"><strong>Ewattchcloud compatibility<\/strong><\/span><\/h5>\n<p>The data can be displayed directly on the Ewattchcloud platform. To do this, the modbus table must respect a format.<br \/>\nAn online tool is <a href=\"https:\/\/tools.ewattchconnect.io\/modbus\/config\">available here<\/a>. It makes it possible to obtain the modbus table model to follow according to the necessary data.<\/p>\n<h5><span style=\"color: #000000;\"><strong>Physical configurations<\/strong><\/span><\/h5>\n<ul>\n<li>Switches 2 and 3 must be in &#8220;OFF&#8221; mode (low position) so as to not setup the Pull Up and Pull Down<\/li>\n<li>Switch 1 must be in \u201cON\u201d mode (high position) if the board is the last slave of the bus. In the contrasting case, switch 1 must be in \u201cOFF\u201d mode (low position).<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-247 size-full aligncenter\" src=\"\/wp-content\/uploads\/Carte_additionnelle_TYNESS-OPT-MODBUS_-_English\/param\u00e9trages-physiques-en-mode-esclave.png\" alt=\"\" width=\"1123\" height=\"794\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-246 size-full aligncenter \" src=\"\/wp-content\/uploads\/Carte_additionnelle_TYNESS-OPT-MODBUS_-_English\/param\u00e9trages-physiques-en-mode-esclave-2.png\" alt=\"\" width=\"1123\" height=\"794\" \/><\/p>\n<h5><span style=\"color: #000000;\"><strong>Software configuration for the writing in the table<\/strong><\/span><\/h5>\n<p>On the Tyness Configurator, it is necessary to:<\/p>\n<ul>\n<li>Allocate an address to the board<\/li>\n<li>Configure the zone(s) of the table authorized in read and\/or write (IN, OUT and IN-OUT)<\/li>\n<li>Configure the LoRa frame generation.<\/li>\n<\/ul>\n<h5><span style=\"color: #000000;\"><strong>Requests accepted:<\/strong><\/span><\/h5>\n<p>In slave mode, the following requests are accepted:<\/p>\n<ul>\n<li>WriteMultipleRegisters : 0x10<\/li>\n<li>ReadDiviceIdentification : 0x2B<\/li>\n<li>ReadHoldingRegisters : 0x03<\/li>\n<li>ReadInputRegister : 0x04<\/li>\n<li>ReadExceptionStatus : 0x07<\/li>\n<li>ReadDiagnostic : 0x08<\/li>\n<\/ul>\n<h5><span style=\"color: #000000;\"><strong>Compatible masters:<\/strong><\/span><\/h5>\n<div id=\"footable_parent_1474\"\n         class=\" footable_parent ninja_table_wrapper loading_ninja_table wp_table_data_press_parent semantic_ui \">\n                <table data-ninja_table_instance=\"ninja_table_instance_0\" data-footable_id=\"1474\" data-filter-delay=\"1000\" aria-label=\"modbus-master\"            id=\"footable_1474\"\n           data-unique_identifier=\"ninja_table_unique_id_734593430_1474\"\n           class=\" foo-table ninja_footable foo_table_1474 ninja_table_unique_id_734593430_1474 ui table  nt_type_ajax_table selectable striped vertical_centered  footable-paging-right\">\n                <colgroup>\n                            <col class=\"ninja_column_0 \">\n                            <col class=\"ninja_column_1 \">\n                            <col class=\"ninja_column_2 \">\n                            <col class=\"ninja_column_3 \">\n                    <\/colgroup>\n            <\/table>\n    \n    \n    \n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>This mode of functioning will be used when you wish, for example, to send back on the network LoRa the data coming from an existing ModBus network. The master of the ModBus network writes the preferred values in the table [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47],"tags":[],"class_list":["post-199","post","type-post","status-publish","format-standard","hentry","category-non-classe-fr"],"_links":{"self":[{"href":"https:\/\/ewattch-documentation.com\/index.php?rest_route=\/wp\/v2\/posts\/199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ewattch-documentation.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ewattch-documentation.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ewattch-documentation.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ewattch-documentation.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=199"}],"version-history":[{"count":7,"href":"https:\/\/ewattch-documentation.com\/index.php?rest_route=\/wp\/v2\/posts\/199\/revisions"}],"predecessor-version":[{"id":2498,"href":"https:\/\/ewattch-documentation.com\/index.php?rest_route=\/wp\/v2\/posts\/199\/revisions\/2498"}],"wp:attachment":[{"href":"https:\/\/ewattch-documentation.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ewattch-documentation.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ewattch-documentation.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}