<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to SDO Read Causes Slave PLC To Reset</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/2abacb2d20/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/2abacb2d20/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/2abacb2d20/</id><updated>2020-02-27T20:17:51.556000Z</updated><subtitle>Recent posts to SDO Read Causes Slave PLC To Reset</subtitle><entry><title>SDO Read Causes Slave PLC To Reset</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/2abacb2d20/?limit=25#4e55" rel="alternate"/><published>2020-02-27T20:17:51.556000Z</published><updated>2020-02-27T20:17:51.556000Z</updated><author><name>mccabehm</name><uri>https://forge.codesys.com/u/mccabehm/</uri></author><id>https://forge.codesys.com84a1b025191bd8ecf9e3c2f9a431a797fa2413cf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Further evidence... create a project using the IFM template for CR0032 CANopen slave. In the Objekt1xxxh PRG change ManufacturerSoftwareVersion to be "STRING(3) := '123';". Run PLC. Read 0x100A via SDO. 5 out of 5 times the PLC resets.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SDO Read Causes Slave PLC To Reset</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/2abacb2d20/?limit=25#86b2" rel="alternate"/><published>2020-02-27T20:17:47.788000Z</published><updated>2020-02-27T20:17:47.788000Z</updated><author><name>mccabehm</name><uri>https://forge.codesys.com/u/mccabehm/</uri></author><id>https://forge.codesys.com8c5fc1f0c87bf58ce545fe53ee5ec64d63f96499</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It appears that CANopen for the IFM CR0032 (slave) does not handle SDOs for STRING(n) where n &amp;lt; 4. I verified this on several OD entries. For STRING(n) with n &amp;gt;= 4 an object of 5 or more bytes results, so a segmented SDO is needed rather than expedited. For now this seems to be a reasonable workaround.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SDO Read Causes Slave PLC To Reset</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/2abacb2d20/?limit=25#50fc" rel="alternate"/><published>2020-02-27T20:17:46.380000Z</published><updated>2020-02-27T20:17:46.380000Z</updated><author><name>mccabehm</name><uri>https://forge.codesys.com/u/mccabehm/</uri></author><id>https://forge.codesys.comc3810ab66ac3e3a23b488c12205e3d0f8253b526</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have an IFM CR0032 PLC configured (using CoDeSys v2.3) as a CANopen slave. When the master does an SDO read of 0x100A (SW version) the PLC resets   . Bus trace:&lt;/p&gt;
&lt;p&gt;can0  701   &lt;span&gt;[1]&lt;/span&gt;  05                                 // slave heartbeat, operational&lt;br/&gt;
  &amp;lt;more traffic=""&amp;gt;&lt;br/&gt;
  can0  601   &lt;span&gt;[8]&lt;/span&gt;  40 0A 10 00 00 00 00 00   // master initiates read&lt;br/&gt;
  can0  77E   &lt;span&gt;[1]&lt;/span&gt;  05                                // master heartbeat, operational&lt;br/&gt;
  can0  701   &lt;span&gt;[1]&lt;/span&gt;  00                                // slave heartbeat, initialization implies reset&amp;lt;/more&amp;gt;&lt;/p&gt;
&lt;p&gt;I can also verify that a PLC reset takes place because I hear the internal relays clicking. In the CoDeSys project the variable associated with 0x100A is STRING(3) := '24T', read-only. I expect (and have elsewhere seen) a response of a 4-byte, null-terminated string.&lt;/p&gt;
&lt;p&gt;Anyone have experience with this? Or have insight into why the PLC reacts this way?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>