<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to SDO_WRITE 4byte Index</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4084e091fc/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4084e091fc/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/4084e091fc/</id><updated>2020-02-27T13:50:51.609000Z</updated><subtitle>Recent posts to SDO_WRITE 4byte Index</subtitle><entry><title>SDO_WRITE 4byte Index</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4084e091fc/?limit=25#2431" rel="alternate"/><published>2020-02-27T13:50:51.609000Z</published><updated>2020-02-27T13:50:51.609000Z</updated><author><name>stephan-K</name><uri>https://forge.codesys.com/u/stephan-k/</uri></author><id>https://forge.codesys.com029f88e14c4394e2c3e20cca0d2d447e5883a7b2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for the feedback.&lt;/p&gt;
&lt;p&gt;It was en error to do with the data variable being written. With SDO_WRITE I needed to dynamically change WRITE_SDO.Datalength variable based on data type being transmitted.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SDO_WRITE 4byte Index</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4084e091fc/?limit=25#62cb" rel="alternate"/><published>2020-02-27T13:50:51.473000Z</published><updated>2020-02-27T13:50:51.473000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.com9011bbd4ac157b7a46e0f59b4b49cab990ea0e31</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Sorry. Via sdo you cant write an 8bytes message.&lt;/p&gt;
&lt;p&gt;Try with write2 or write 1&lt;/p&gt;
&lt;p&gt;Enviat des del meu Aquaris M5.5 usant Tapatalk&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SDO_WRITE 4byte Index</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4084e091fc/?limit=25#1b2f" rel="alternate"/><published>2020-02-27T13:50:51.020000Z</published><updated>2020-02-27T13:50:51.020000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.com06daca087a3a439751d3c3f65266c14223fe4553</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The error is about the variable that you try to write, try with write8 or write2.&lt;/p&gt;
&lt;p&gt;Enviat des del meu Aquaris M5.5 usant Tapatalk&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SDO_WRITE 4byte Index</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4084e091fc/?limit=25#2463" rel="alternate"/><published>2020-02-27T13:50:50.886000Z</published><updated>2020-02-27T13:50:50.886000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com743723d0c5c1100badf39ca61a826877c6570518</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;An SDO message is 8 bytes in total:&lt;br/&gt;
1 for the command&lt;br/&gt;
2 for the index&lt;br/&gt;
1 for the sub-index&lt;br/&gt;
4 for the data bytes&lt;/p&gt;
&lt;p&gt;The maximum value of a WORD is 16#FFFF, this means you can also access index 16#5999&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SDO_WRITE 4byte Index</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4084e091fc/?limit=25#cfa2" rel="alternate"/><published>2020-02-27T13:50:50.741000Z</published><updated>2020-02-27T13:50:50.741000Z</updated><author><name>stephan-K</name><uri>https://forge.codesys.com/u/stephan-k/</uri></author><id>https://forge.codesys.combd6565596633be8e6a9a1b36ee9597cec8b17afc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm trying to use the CIA405.SDO_WRITE4 function to write a SDO to a device. My issue is the index input (SDO_WRITE4.INDEX) is of type WORD but I am trying to write a SDO in the Manufacturer Specific range (ie index 16#5999). This index value is 4 bytes but a WORD is only 2. &lt;/p&gt;
&lt;p&gt;Im getting SDO_WRITE4.ERRORINFO 101122066 or 0607 0012h which from the abort code represents: "Data type does not match; length of service parameter too high."&lt;/p&gt;
&lt;p&gt;Any ideas? Is there another way to write higher indices SDO?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>