<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to ReceiveWatchdog FB not working on J1939 P2P PGNs</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/66457102d2/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/66457102d2/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/66457102d2/</id><updated>2024-07-10T14:43:27.575000Z</updated><subtitle>Recent posts to ReceiveWatchdog FB not working on J1939 P2P PGNs</subtitle><entry><title>ReceiveWatchdog FB not working on J1939 P2P PGNs</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/66457102d2/?limit=25#7b51" rel="alternate"/><published>2024-07-10T14:43:27.575000Z</published><updated>2024-07-10T14:43:27.575000Z</updated><author><name>tyronnosaurus</name><uri>https://forge.codesys.com/u/tyronnosaurus/</uri></author><id>https://forge.codesys.com6d5128e389bde348af0542ca9484886f11491e04</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi guys. I've got a device that sends a status message over J1939 and a PLC running Codesys to receive it. This message uses a P2P PGN (as opposed to a broadcast PGN). Codesys can only read it if I mark the J1939_ECU as "Local" (see screenshot 1).&lt;/p&gt;
&lt;p&gt;The message is received correctly, that is not the problem.&lt;/p&gt;
&lt;p&gt;The problem is detecting if the message stops being received. Local ECUs have no Watchdog checkbox to detect if the message has been received in the last X seconds. In order to implement a watchdog, I've used a ReceiveWatchdog FB. The same code works well for any non-P2P message, but doesn't work for this particular P2P message I'm trying to monitor.&lt;/p&gt;
&lt;p&gt;Is there any caveat in the ReceiveWatchdog FB that makes it unable to monitor P2P PGNs in Local J1939_ECUs?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>