<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to PLC as CANOpen slave</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/82db082449/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/82db082449/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/82db082449/</id><updated>2020-02-27T23:25:36.999000Z</updated><subtitle>Recent posts to PLC as CANOpen slave</subtitle><entry><title>PLC as CANOpen slave</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/82db082449/?limit=25#2f7b" rel="alternate"/><published>2020-02-27T23:25:36.999000Z</published><updated>2020-02-27T23:25:36.999000Z</updated><author><name>jrw</name><uri>https://forge.codesys.com/u/jrw/</uri></author><id>https://forge.codesys.com61722df4eb2f82222caf085854f902ed2344f63b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm trying to get an ifm CR7032 to act as a CANOpen slave.&lt;/p&gt;
&lt;p&gt;I have added the slave to the device configuration, and when I select "heartbeating" and a heartbeat period I can see the heartbeat messages being broadcast on the bus.&lt;br/&gt;
If I select "automatic startup" then the PLC broadcasts OPERATIONAL status in its heartbeats.&lt;/p&gt;
&lt;p&gt;The problem is that I cannot get it to do anything else.&lt;br/&gt;
For example, without the automatic startup the slave goes to PRE-OPERATIONAL state. NMT messages from the master do not change the state - neither sending a message to all nodes on the network, or sending specifically to the PLC slave works.&lt;br/&gt;
SDO requests are not responded to either. For example, a request for the mandatory device type at 0x1000 is not answered.&lt;/p&gt;
&lt;p&gt;I have not configured any tx or rx PDOs in the default PDO mappings. It is just a minimal slave created through adding a device to the device manager then configuring the options in the tabs for that slave.&lt;/p&gt;
&lt;p&gt;Is there some FB that needs to be called in my program to get the slave to respond?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>