<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Read RAW CAN Message or CANbus Spy...</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/bd58905ce0/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/bd58905ce0/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/bd58905ce0/</id><updated>2020-02-27T22:14:27.502000Z</updated><subtitle>Recent posts to Read RAW CAN Message or CANbus Spy...</subtitle><entry><title>Read RAW CAN Message or CANbus Spy...</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/bd58905ce0/?limit=25#97e5" rel="alternate"/><published>2020-02-27T22:14:27.502000Z</published><updated>2020-02-27T22:14:27.502000Z</updated><author><name>nurchi</name><uri>https://forge.codesys.com/u/nurchi/</uri></author><id>https://forge.codesys.com820536a0afaadb6c4e85cd3e6f7154a668744f12</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, everyone.&lt;/p&gt;
&lt;p&gt;I'm new to the world of CoDeSys, but not to Embedded programming.&lt;/p&gt;
&lt;p&gt;I have found some examples of using J1939 protocol, but when reading a message, it expects an address (PGN/SA is "packaged" into the address)&lt;/p&gt;
&lt;p&gt;My controller (TTControl, Hydac International, HY-TTC 32-CD-00-000) has dual CAN bus.&lt;/p&gt;
&lt;p&gt;What I need to do is program it to act as a CAN passthrough device and for certain messages change a byte or two (I need to make a joystick "pretend" to be a pedal).&lt;/p&gt;
&lt;p&gt;I can receive messages from particular devices (CAN ID) and can modify the message and send it on the bus, but I cannot receive a raw message (the full 29 bit ID plus up to 8 bytes of data or something close to that) so if it's not a message of interest, I could pass it through.&lt;/p&gt;
&lt;p&gt;I would appreciate some sample code and a library referenced.&lt;/p&gt;
&lt;p&gt;The CoDeSys version is 2.3&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>