<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to CAN trough SPI ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c027eb55f7/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c027eb55f7/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/c027eb55f7/</id><updated>2022-07-12T15:57:46.344000Z</updated><subtitle>Recent posts to CAN trough SPI ?</subtitle><entry><title>CAN trough SPI ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c027eb55f7/?limit=25&amp;page=2#dae9" rel="alternate"/><published>2022-07-12T15:57:46.344000Z</published><updated>2022-07-12T15:57:46.344000Z</updated><author><name>alexmserra</name><uri>https://forge.codesys.com/u/alexmserra/</uri></author><id>https://forge.codesys.com0b24505394fbd0f5c128cc0e29daddf522f45077</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Good afternoon, my at Alexsandro Serra.&lt;br/&gt;
my projects already do with powerlink and modbus rtu communication but I need to implement can. Does anyone have a picture of the raspberry pi 3 card working with the can in codesys, I've done everything and I can't get mine to work, could someone pass it on to me so I could take a look?&lt;br/&gt;
and in case anyone needs help with the Powerlink communication I'm available.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CAN trough SPI ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c027eb55f7/?limit=25&amp;page=2#7c99" rel="alternate"/><published>2020-02-27T16:18:02.656000Z</published><updated>2020-02-27T16:18:02.656000Z</updated><author><name>murdemon</name><uri>https://forge.codesys.com/u/murdemon/</uri></author><id>https://forge.codesys.comafba23f54d3db5fbc2592d2a20241c385d390016</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You can show screen with PDO and SDO configuration?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CAN trough SPI ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c027eb55f7/?limit=25&amp;page=2#8dcd" rel="alternate"/><published>2020-02-27T16:18:00.327000Z</published><updated>2020-02-27T16:18:00.327000Z</updated><author><name>Hartley</name><uri>https://forge.codesys.com/u/hartley/</uri></author><id>https://forge.codesys.comf3f6a092d586847d6b8eeb567473320931b98996</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;span&gt;[quote="yannickasselin1"]&lt;/span&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;I followed all the steps above and CANbus and CANopen_manager seem to work fine but I still cannot communicate with my Festo Servo Drive through CANopen.&lt;br/&gt;
Can someone help me please.&lt;/p&gt;
&lt;p&gt;Yannick, Did you ever resolve this problem? I am trying to do the exact same thing with RPI and 3 axis CMMP-AS.  Please let me know if you did.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CAN trough SPI ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c027eb55f7/?limit=25&amp;page=2#b656" rel="alternate"/><published>2020-02-27T16:17:59.345000Z</published><updated>2020-02-27T16:17:59.345000Z</updated><author><name>murdemon</name><uri>https://forge.codesys.com/u/murdemon/</uri></author><id>https://forge.codesys.com94bcb48346238bffb828c3212d06f3d945de24cd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;PI can success with NiRen Pi mcp2515...  was one problem.. in  /boot/config.txt&lt;br/&gt;
dtparam=spi=on&lt;br/&gt;
dtoverlay=mcp2515-can0,oscillator=8000000,interrupt=25&lt;br/&gt;
dtoverlay=spi1-2cs&lt;/p&gt;
&lt;p&gt;I have 8Mhz oscill .. and maximum speed limit on Canopen 500kbs. For 1Mbs needed 16Mhz osill on canoprn board.. and  chip selesct in my case 2nd dtoverlay=spi1-2cs&lt;/p&gt;
&lt;p&gt;From another sime PC with Runtime and PeakUSB working fine. Pi was tested as salve and as master on canopen bus.&lt;/p&gt;
&lt;p&gt;And have to connect 5V separate to TJA1050 as here descrbed. &lt;a class="" href="https://vimtut0r.com/2017/01/17/can-bus-with-raspberry-pi-howtoquickstart-mcp2515-kernel-4-4-x/" rel="nofollow"&gt;https://vimtut0r.com/2017/01/17/can-bus ... nel-4-4-x/&lt;/a&gt; m &lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: PI_CanOpenSlave.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3530"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Screenshot_Slave_Win64.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3529"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CAN trough SPI ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c027eb55f7/?limit=25&amp;page=2#297c" rel="alternate"/><published>2020-02-27T16:17:58.509000Z</published><updated>2020-02-27T16:17:58.509000Z</updated><author><name>puma80801</name><uri>https://forge.codesys.com/u/puma80801/</uri></author><id>https://forge.codesys.comed20381db8dc9a840f4e195a91faff53abdc90cd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everybody,&lt;/p&gt;
&lt;p&gt;first thank you very much for the fantastic descriptions. &lt;br/&gt;
I got everything running with J1939.&lt;br/&gt;
But why couldn't i get it running with CANOpen? Which CANOpen-Modul in Codesys do i have to choose.&lt;/p&gt;
&lt;p&gt;Thanks for helping&lt;br/&gt;
Timo&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CAN trough SPI ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c027eb55f7/?limit=25&amp;page=2#1961" rel="alternate"/><published>2020-02-27T16:17:56.158000Z</published><updated>2020-02-27T16:17:56.158000Z</updated><author><name>menno</name><uri>https://forge.codesys.com/u/menno/</uri></author><id>https://forge.codesys.com53ccb8cedd03fec796915e0fff8e7cb503d18e8e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I do have exactly the same problem, that I can not get CANopen running properly.&lt;/p&gt;
&lt;p&gt;My setup is: 2x Raspberry Pi 3 with CanberryDual 2.1, connected to each other. SocketCAN is working properly and I can send CAN messages from one Raspberry Pi to the next and vice versa. Also in CodeSys, the SocketCAN driver is working properly as CAN messages are received if I configure one Pi as a CANopen slave that produces heartbeat messages.&lt;/p&gt;
&lt;p&gt;What I did is configure one Pi as a CANopen slave, export the EDS file to the other Pi that adds this CANopen device.&lt;/p&gt;
&lt;p&gt;However, the CANopen manager says it is not running. After added CANOPEN_DEBUG, I noticed in the PLC log that it remains stuck in the SDO exchange phase. The message is: SDO read timeout for object 16#1000sub16#00, AbortCode: 16#05040000.&lt;/p&gt;
&lt;p&gt;Appreciated if someone can give some guidance what goes wrong here?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CAN trough SPI ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c027eb55f7/?limit=25&amp;page=2#40d3" rel="alternate"/><published>2020-02-27T16:17:55.308000Z</published><updated>2020-02-27T16:17:55.308000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com3ed41ca0fc3495b64a2fd4987a78b9ad3836f5b7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
please set the Compiler define: &lt;strong&gt;CANOPEN_DEBUG&lt;/strong&gt;&lt;br/&gt;
After that (compile,download,start the project) check the plc logger for more CANopen debug Information&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: CANopenDebug_and_check_plclog.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2157"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CAN trough SPI ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c027eb55f7/?limit=25&amp;page=2#b8e6" rel="alternate"/><published>2020-02-27T16:17:52.784000Z</published><updated>2020-02-27T16:17:52.784000Z</updated><author><name>Coco</name><uri>https://forge.codesys.com/u/coco/</uri></author><id>https://forge.codesys.comf646e959575b8ed9a3ea7f2f045f41c4bfa59beb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;First, thank you to all of you have contributed to this thread.  Using this, I am able to mostly get everything working.  I am using RPI3 and Codesys v3.5 sp9 sp1 and the PiCAN2.  &lt;/p&gt;
&lt;p&gt;I have a CANOpen bus coupler and have installed the manufacturers EDS file.  The Canbus and CANOpen_manager run fine.&lt;br/&gt;
However, when I try to run the Can slave device, I get the following errors.&lt;br/&gt;
Any advice on how to trouble-shoot this?  &lt;/p&gt;
&lt;p&gt;Any advice/suggestions on where to get started?&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: rpi12016" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2152"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: rpi22016" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2153"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CAN trough SPI ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c027eb55f7/?limit=25&amp;page=2#a737" rel="alternate"/><published>2020-02-27T16:17:51.953000Z</published><updated>2020-02-27T16:17:51.953000Z</updated><author><name>olteanu-eu</name><uri>https://forge.codesys.com/u/olteanu-eu/</uri></author><id>https://forge.codesys.com862d2b75af4be7cd996bb7ec3de9574351759c33</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;i have raspberry pi 3 with pican 2 rev B  i make all setting but the can interface i don't see in cosesys , i check the can interface with candump and receive all packet &lt;br/&gt;
Please help me to config can interface&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: puty.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2093"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: codesys.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2092"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CAN trough SPI ?</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/c027eb55f7/?limit=25&amp;page=2#78d1" rel="alternate"/><published>2020-02-27T16:17:51.128000Z</published><updated>2020-02-27T16:17:51.128000Z</updated><author><name>johnfarrugia</name><uri>https://forge.codesys.com/u/johnfarrugia/</uri></author><id>https://forge.codesys.comf3ac920e6b694fa977983f5daa4c5c294ff59b9d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Edwin,&lt;/p&gt;
&lt;p&gt;Can you please Explain when you would use all the PNG RX and TX messages in the device tree under the can ecu module? &lt;/p&gt;
&lt;p&gt;Can you explain the different ways of communicating over CAN with the Pi? You talked about layer 2 which I assume is a level in which all message transactions are performed on a software level within the codesys program. There does however look to be another layer inwhich you can use the RX and TX PNG messages directly within the device tree. Can you explain the difference and how to use the device tree message selections?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>