<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to J1939 Codesys 3.5 with a custom / local module</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bef4322e1c/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bef4322e1c/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/bef4322e1c/</id><updated>2021-06-27T09:54:11.288000Z</updated><subtitle>Recent posts to J1939 Codesys 3.5 with a custom / local module</subtitle><entry><title>J1939 Codesys 3.5 with a custom / local module</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bef4322e1c/?limit=25#f040" rel="alternate"/><published>2021-06-27T09:54:11.288000Z</published><updated>2021-06-27T09:54:11.288000Z</updated><author><name>benjamindp</name><uri>https://forge.codesys.com/u/benjamindp/</uri></author><id>https://forge.codesys.com1cff59b65aeb8f17f680e1fbf0358f0c0d2e1724</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Controller Source adress is 0 btw.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>J1939 Codesys 3.5 with a custom / local module</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bef4322e1c/?limit=25#b00e" rel="alternate"/><published>2021-06-27T09:52:31.529000Z</published><updated>2021-06-27T09:52:31.529000Z</updated><author><name>benjamindp</name><uri>https://forge.codesys.com/u/benjamindp/</uri></author><id>https://forge.codesys.com513342f82d29cefe84d52b9500d78f90dc2e0535</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I found some other threads about J1939 communication here but they always try to speak with a default J1939 PGN / SPN and not with a custom module.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>J1939 Codesys 3.5 with a custom / local module</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bef4322e1c/?limit=25#ee28" rel="alternate"/><published>2021-06-27T09:45:36.817000Z</published><updated>2021-06-27T09:45:36.817000Z</updated><author><name>benjamindp</name><uri>https://forge.codesys.com/u/benjamindp/</uri></author><id>https://forge.codesys.com29cccb843e3cdd19092da9ac9f72bbb9a97c07a7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Guys,&lt;/p&gt;
&lt;p&gt;well I have a problem with Codesys 3.5 using an IFM Controller CR 1058 and a custom developed J1939 Module.&lt;br/&gt;
Modules are from Data Panel&lt;br/&gt;
It looks like, if Codesys talks with another CAN-ID as the module have. &lt;/p&gt;
&lt;p&gt;Maybe we have some J1939 experts here...&lt;/p&gt;
&lt;p&gt;I want to add an local J1939 Device on the ECU-Manager and want to force some mapped Values to see if the module works right (e.q. set Output  / read Input) I've already add the Manager and a ECU. Then I add a custom&lt;strong&gt; PGN (61408)&lt;/strong&gt; with &lt;strong&gt;8&lt;/strong&gt; SPN for each Byte. On the &lt;strong&gt;first Byte&lt;/strong&gt; there is a pointer Value &lt;strong&gt;(e.g. 81)&lt;/strong&gt; other &lt;strong&gt;7 Byte&lt;/strong&gt; for some values or configuration bits. I've add some screen may this helps.&lt;/p&gt;
&lt;p&gt;&lt;img src="./attachment/Manual_Forum.jpg" width="50%"/&gt;&lt;/p&gt;
&lt;p&gt;I add the PGN and SPN as you see in the screen. Then compile &amp;gt; log in &amp;gt; run the application. I use a PEAK (pcanview) to see the CAn communication.&lt;/p&gt;
&lt;p&gt;&lt;img src="./attachment/Bild_Codesys.png" width="50%"/&gt;&lt;/p&gt;
&lt;p&gt;It looks like Codesys or my added ECU is talking on another CAN-ID like the Module have this is the reason the module didn't work...&lt;/p&gt;
&lt;p&gt;&lt;img src="./attachment/pcanview_codesys.JPG" width="50%"/&gt;&lt;br/&gt;
&lt;img src="./attachment/pcanview_online.JPG" width="50%"/&gt;&lt;/p&gt;
&lt;p&gt;Some have any Idea's how to setup the right CAN-ID ? I tried to change values in the general tab, but I didn't find the right CAN-ID here?&lt;/p&gt;
&lt;p&gt;&lt;img src="./attachment/Bild_Codesys_General.jpg" width="50%"/&gt;&lt;/p&gt;
&lt;p&gt;Are there any other ways to send this PGN / SPN directly with the J1939 Lib? Some example would be helpful&lt;/p&gt;
&lt;p&gt;May some of you can help me with this problem... &lt;br/&gt;
Normally the module manufacturer should help, but they normally didn't use  Codesys.&lt;/p&gt;
&lt;p&gt;Thank you in advance&lt;/p&gt;
&lt;p&gt;Best regards&lt;br/&gt;
Benjamin&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>