<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Discussion</title><link>https://sourceforge.net/p/snap7/discussion/</link><description>Recent posts to Discussion</description><atom:link href="https://sourceforge.net/p/snap7/discussion/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 06 Mar 2026 22:43:32 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/snap7/discussion/feed.rss" rel="self" type="application/rss+xml"/><item><title>Read counter</title><link>https://sourceforge.net/p/snap7/discussion/general/thread/a340004c/?limit=25#f025</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;If the library is updated to include built-in methods for reading and writing counters and handling timers, that would make development much easier for people working with S7 PLCs. Counters are a common part of industrial logic, and having a direct function instead of manually decoding BCD values would simplify the code a lot. It’s similar to how a number  &lt;a href="https://onlinenumbercounter.com/" rel="nofollow"&gt;Counter&lt;/a&gt; works in general software—once the value is properly converted and exposed by the library, developers can simply read and display it without worrying about the underlying format.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ALI</dc:creator><pubDate>Fri, 06 Mar 2026 22:43:32 -0000</pubDate><guid>https://sourceforge.netad43f211cbc6c0111914ff4888746ce4a7d8661f</guid></item><item><title>S71512 Read DB</title><link>https://sourceforge.net/p/snap7/discussion/general/thread/f82ad4fd54/?limit=25#65d4</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Assicurati che la DB non sia ottimizzata e che sia abilitato nel PLC "GET" e "PUT"&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mauro Ruby</dc:creator><pubDate>Mon, 09 Feb 2026 21:02:08 -0000</pubDate><guid>https://sourceforge.netea355980dc3fd7ec1744a807447c8debdf4393cf</guid></item><item><title>BlockInfo  not correct Code and Interface timestamps</title><link>https://sourceforge.net/p/snap7/discussion/bugfix/thread/dc6acd93/?limit=25#b233</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Dear @Davide Nardella,&lt;/p&gt;
&lt;p&gt;I have fixed this issue in the C++ part of the source code, since timestamp information was required for scenario.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Changes related to the fix  : &lt;/strong&gt;&lt;a class="" href="https://github.com/Securenok/snap7/pull/2" rel="nofollow"&gt;https://github.com/Securenok/snap7/pull/2&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In the c++ version of the library -&amp;gt; added two new fields, &lt;code&gt;char CodeDateTime[25];&lt;/code&gt; and &lt;code&gt;char IntfDateTime[25];&lt;/code&gt;, to the structs &lt;code&gt;TS7BlockInfo&lt;/code&gt; and &lt;code&gt;PS7BlockInfo&lt;/code&gt;. &lt;/li&gt;
&lt;li&gt;Added a helper function &lt;code&gt;TSnap7MicroClient::FillDateTime(word SiemensDay, u_int SiemensMs, char *PTime)&lt;/code&gt; to fill the full timestamp information of the memory blocks to the newly added fields &lt;code&gt;CodeDateTime&lt;/code&gt; and &lt;code&gt;IntfDateTime&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;The fixed version is made available for public use :&lt;/strong&gt; &lt;a class="" href="https://github.com/Securenok/snap7" rel="nofollow"&gt;https://github.com/Securenok/snap7&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kindly let me know if you find any issues with the above mentioned changes. &lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; regards,&lt;br/&gt;
Anand&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anandhakumar Palanisamy</dc:creator><pubDate>Fri, 13 Jun 2025 10:01:05 -0000</pubDate><guid>https://sourceforge.net7b1e6ebe29d851ca240649bb0dcd80093aea1434</guid></item><item><title>LabView Random 0xC000005 App Crashes</title><link>https://sourceforge.net/p/snap7/discussion/general/thread/db915f351e/?limit=25#8f84</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, &lt;br/&gt;
Has anyone experienced similar problems in Win11 that do not occur in Win10? The most frustrating thing is that this problem is not being reported online, as if I were the only one struggling with it.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jacek Jemielity</dc:creator><pubDate>Mon, 14 Apr 2025 13:32:24 -0000</pubDate><guid>https://sourceforge.netdcd1af1448c8d407b7bb83dc57a4556421f77a27</guid></item><item><title>Possible causes of random errTCPDataReceive</title><link>https://sourceforge.net/p/snap7/discussion/general/thread/2ba83c8b4f/?limit=25#2ae7/1c82</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;If you don't have an empty PLC, ask the PLC programmer to skip OB1 for some minutes and connect your PC directly to the PLC PN Port.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Davide Nardella</dc:creator><pubDate>Fri, 21 Mar 2025 07:11:56 -0000</pubDate><guid>https://sourceforge.net904f360b481830086ea020253f806f6ce780ca27</guid></item><item><title>Possible causes of random errTCPDataReceive</title><link>https://sourceforge.net/p/snap7/discussion/general/thread/2ba83c8b4f/?limit=25#2ae7</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Currently, it is set to 2000. Increasing it obviously improves the situation&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;this is not good news, if at 2000ms you have more problems than 3000ms it means that, statistically, some transaction takes 2500ms, and this is unacceptable.&lt;/p&gt;
&lt;p&gt;In our high productivity lines we use Snap7 (of course ;-) ) and the maximum time we record is 500ms for a &lt;strong&gt;complete&lt;/strong&gt; transaction (PLC-&amp;gt;SQL-&amp;gt;Feedback to PLC) in a wired network, more than that we cannot tolerate.&lt;/p&gt;
&lt;p&gt;10/15 ms is the maximum time you should expect.&lt;/p&gt;
&lt;p&gt;Possible causes:&lt;br/&gt;
1- PLC very congested (you can do little about it)&lt;br/&gt;
2- Network very congested (check topology, bottlenecks etc..)&lt;br/&gt;
3- Problem on cables (it happens sometimes, try changing them)&lt;br/&gt;
4- Problem on a switch (try moving the cables to another path)&lt;/p&gt;
&lt;p&gt;For problems 3 and 4 you can use WireShark to see if there are TCP packet errors.&lt;/p&gt;
&lt;p&gt;The protocol, apart from the PDU negotiation, is quite simple and is based on TCP/IP, you send the request and wait for the response.&lt;/p&gt;
&lt;p&gt;If the time is high, either the transmission medium is compromised or the device is congested.&lt;/p&gt;
&lt;p&gt;If you want to remove any doubts about the software and if you have the possibility, connect your software to an empty PLC in a controlled network (PC-Switch-PLC) and check the times.&lt;/p&gt;
&lt;p&gt;Let me know.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Davide Nardella</dc:creator><pubDate>Fri, 21 Mar 2025 07:07:31 -0000</pubDate><guid>https://sourceforge.nete5df57a1789deaf1c493591567fae9834420158e</guid></item><item><title>Possible causes of random errTCPDataReceive</title><link>https://sourceforge.net/p/snap7/discussion/general/thread/2ba83c8b4f/?limit=25#a510/a1f8</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I masked the problem as suggested, but since I log every time it disconnects, I would like to address the root causes if possible. How can I act on the communication priority to avoid timeouts? Also, what is a good value for the readtimeout parameter in the msgSocket class of sharp7? Currently, it is set to 2000. Increasing it obviously improves the situation, but I want to avoid any unwanted side effects. Thanks for the suggestions!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stop81</dc:creator><pubDate>Thu, 20 Mar 2025 20:30:49 -0000</pubDate><guid>https://sourceforge.net2d40a435edb054acecb8fea03be912076450ffa4</guid></item><item><title>Possible causes of random errTCPDataReceive</title><link>https://sourceforge.net/p/snap7/discussion/general/thread/2ba83c8b4f/?limit=25#da5b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I masked the problem as suggested, but since I log every time it disconnects, I would like to address the root causes if possible. How can I act on the communication priority to avoid timeouts? Also, what is a good value for the readtimeout parameter in the msgSocket class of sharp7? Currently, it is set to 2000. Increasing it obviously improves the situation, but I want to avoid any unwanted side effects. Thanks for the suggestions!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stop81</dc:creator><pubDate>Thu, 20 Mar 2025 20:30:07 -0000</pubDate><guid>https://sourceforge.netb034ee4ce94ed164f2252643ac1a8b5f2b74393a</guid></item><item><title>Possible causes of random errTCPDataReceive</title><link>https://sourceforge.net/p/snap7/discussion/general/thread/2ba83c8b4f/?limit=25#a510</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Laura,&lt;br/&gt;
These problems are also common in WinCC, it seems that they depend on the communication queues inside the PLC that have become very complex over time.&lt;/p&gt;
&lt;p&gt;You can act on the communication priority, but it depends on the use you make of your automation, it may not be the most efficient way. (In my opinion, the communication load should never affect the CPU cycle time)&lt;/p&gt;
&lt;p&gt;Or, as WinCC does, you can mask the problem: in case of TCP error, disconnect the client, then at the next turn of your communication loop, if you are disconnected reconnect and then read/write.&lt;/p&gt;
&lt;p&gt;Attached the schematic loop.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Davide Nardella</dc:creator><pubDate>Thu, 20 Mar 2025 11:44:31 -0000</pubDate><guid>https://sourceforge.net460da83380b8a1e6fc56bc0bc5d707f48b5d3883</guid></item><item><title>Possible causes of random errTCPDataReceive</title><link>https://sourceforge.net/p/snap7/discussion/general/thread/2ba83c8b4f/?limit=25#9217</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Good morning, I am using the Sharp7 class in a read and write loop. The connection to the PLC is via Wi-Fi (but I have also tried directly with a cable). Occasionally, sometimes every 10 minutes and sometimes more frequently, I receive the code S7Consts.errTCPDataReceive because it times out in the WaitForData method. I have turned off the firewall. What else can I check?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Laura Ferrari</dc:creator><pubDate>Thu, 20 Mar 2025 09:40:24 -0000</pubDate><guid>https://sourceforge.net50a66eb3cfe563903304acee6c2e247a0d9a6175</guid></item></channel></rss>