{"id":3001,"date":"2024-03-07T08:55:04","date_gmt":"2024-03-07T07:55:04","guid":{"rendered":"https:\/\/beta.ewattch-documentation.com\/?p=3001"},"modified":"2024-04-15T09:05:42","modified_gmt":"2024-04-15T07:05:42","slug":"plc-configuration-2","status":"publish","type":"post","link":"https:\/\/ewattch-documentation.com\/?p=3001","title":{"rendered":"PLC configuration"},"content":{"rendered":"<p>The PLC must write its data to the Tyness memory using a specific format and at a specific address in order for them to be uploaded to EwattchCloud.<\/p>\n<ul>\n<li>The data must be written starting at address 0 of the Tyness.<\/li>\n<li>The maximum number of 16-bits words which can be written to the Tyness is 20.<\/li>\n<li>The PLC must use Modbus command code 6 or 16 to write its data to the Tyness.<\/li>\n<li>The Format of the Modbus Table must conform to the description below.<\/li>\n<\/ul>\n<p><strong>Modbus table format<\/strong><\/p>\n<p>The Modbus table must be composed of a succession of data blocks. Each block contains a data descriptor and a succession of data of the same type (Example: 4 temperatures).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4008\" src=\"https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-table-300x294.png\" alt=\"\" width=\"300\" height=\"294\" srcset=\"https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-table-300x294.png 300w, https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-table-150x147.png 150w, https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-table.png 427w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>The data descriptor indicates:<\/p>\n<ul>\n<li>data type and encoding of the data in the block.<\/li>\n<li>how many data are contained in the data block. A value of 0 means 1 data.<\/li>\n<li>the id number of the first data in the block. Id numbers allow to differentiate between values of the same type. Id 0 refer to the first data.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4007 size-large\" src=\"https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-descriptor-1024x96.png\" alt=\"\" width=\"1024\" height=\"96\" srcset=\"https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-descriptor-1024x96.png 1024w, https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-descriptor-300x28.png 300w, https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-descriptor-150x14.png 150w, https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-descriptor-768x72.png 768w, https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-descriptor-1300x123.png 1300w, https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-descriptor.png 1306w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Here is the list of currently available data types:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4006 size-large\" src=\"https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-types-and-encoding-1024x385.png\" alt=\"\" width=\"1024\" height=\"385\" srcset=\"https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-types-and-encoding-1024x385.png 1024w, https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-types-and-encoding-300x113.png 300w, https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-types-and-encoding-150x56.png 150w, https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-types-and-encoding-768x289.png 768w, https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-types-and-encoding.png 1316w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4005 size-full\" src=\"https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-available-machine-states.png\" alt=\"\" width=\"753\" height=\"233\" srcset=\"https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-available-machine-states.png 753w, https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-available-machine-states-300x93.png 300w, https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-available-machine-states-150x46.png 150w\" sizes=\"auto, (max-width: 753px) 100vw, 753px\" \/><\/p>\n<p>Exemple of a modbus table uploading 4 temperatures, 1 energy, and 2 percentage to EwattchCloud. This table must be written at address 0 of the Tyness.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4004 size-large\" src=\"https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-block-exemple-1024x386.png\" alt=\"\" width=\"1024\" height=\"386\" srcset=\"https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-block-exemple-1024x386.png 1024w, https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-block-exemple-300x113.png 300w, https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-block-exemple-150x57.png 150w, https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-block-exemple-768x290.png 768w, https:\/\/ewattch-documentation.com\/wp-content\/uploads\/modbus-generic-data-block-exemple.png 1199w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The PLC must write its data to the Tyness memory using a specific format and at a specific address in order for them to be uploaded to EwattchCloud. The data must be written starting at address 0 of the Tyness. [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47],"tags":[],"class_list":["post-3001","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\/3001","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ewattch-documentation.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3001"}],"version-history":[{"count":2,"href":"https:\/\/ewattch-documentation.com\/index.php?rest_route=\/wp\/v2\/posts\/3001\/revisions"}],"predecessor-version":[{"id":4021,"href":"https:\/\/ewattch-documentation.com\/index.php?rest_route=\/wp\/v2\/posts\/3001\/revisions\/4021"}],"wp:attachment":[{"href":"https:\/\/ewattch-documentation.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ewattch-documentation.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ewattch-documentation.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}