<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Speed communication of shared memory solution between CodeSYS and C++</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a39b7e5773/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a39b7e5773/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/a39b7e5773/</id><updated>2020-02-27T15:17:02.874000Z</updated><subtitle>Recent posts to Speed communication of shared memory solution between CodeSYS and C++</subtitle><entry><title>Speed communication of shared memory solution between CodeSYS and C++</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a39b7e5773/?limit=25#16b1" rel="alternate"/><published>2020-02-27T15:17:02.874000Z</published><updated>2020-02-27T15:17:02.874000Z</updated><author><name>johnlee</name><uri>https://forge.codesys.com/u/johnlee/</uri></author><id>https://forge.codesys.comf5541507b7373cf86038cffbfc4984d7adb813ba</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi vmphuc,&lt;/p&gt;
&lt;p&gt;I have done the similar project for share memory with VB. net, as my cycle time is about 10ms. And data will not lost.&lt;/p&gt;
&lt;p&gt;to have this kind of share memory or udp data exchange is also depend how you structure the data you want to exchange.&lt;/p&gt;
&lt;p&gt;You can always have a practice that also have a fix length data to transfer, then you can have a fast cycle time to exchange data.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Speed communication of shared memory solution between CodeSYS and C++</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a39b7e5773/?limit=25#27f4" rel="alternate"/><published>2020-02-27T15:17:01.050000Z</published><updated>2020-02-27T15:17:01.050000Z</updated><author><name>vmphuc</name><uri>https://forge.codesys.com/u/vmphuc/</uri></author><id>https://forge.codesys.com30b0e9936c8a9b55328fbd02d107b128b714c1c7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Edwin Schwellinger hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi,&lt;br/&gt;
yes ok should be way faster.... &lt;br/&gt;
Are you using this example here?&lt;br/&gt;
&lt;a class="" href="https://store.codesys.com/shared-memory-communication.html#System" rel="nofollow"&gt;https://store.codesys.com/shared-memory ... tml#System&lt;/a&gt; Requirements&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hi Mr. Edwin,&lt;/p&gt;
&lt;p&gt;I made my code based on this example, but speed communication is very slow. &lt;br/&gt;
Can I use UDP to exchange data between C++ and PLC? What library should I use? I see that there are many library such as CAA net base, SysSocket,...&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
PHUC&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Speed communication of shared memory solution between CodeSYS and C++</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a39b7e5773/?limit=25#0a37" rel="alternate"/><published>2020-02-27T15:17:00.404000Z</published><updated>2020-02-27T15:17:00.404000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com5993c4e156ea7d16122d9ff05fa75f782119415d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
yes ok should be way faster.... &lt;/p&gt;
&lt;p&gt;Are you using this example here?&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://store.codesys.com/shared-memory-communication.html#System" rel="nofollow"&gt;https://store.codesys.com/shared-memory ... tml#System&lt;/a&gt; Requirements&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Speed communication of shared memory solution between CodeSYS and C++</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a39b7e5773/?limit=25#623a" rel="alternate"/><published>2020-02-27T15:16:59.776000Z</published><updated>2020-02-27T15:16:59.776000Z</updated><author><name>vmphuc</name><uri>https://forge.codesys.com/u/vmphuc/</uri></author><id>https://forge.codesys.comc35e47904c927cf39f66d9559dba962bdc34dbee</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Mr. Edwin Schwellinger,&lt;/p&gt;
&lt;p&gt;I use Codesys Control RTE SL which is in following link:&lt;br/&gt;
&lt;a class="" href="https://store.codesys.com/codesys-control-rte-sl.html?___store=en" rel="nofollow"&gt;https://store.codesys.com/codesys-contr ... __store=en&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Anyway, could you please let me know which is fastest way to exchange data between PLC and C++ applicaiton?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Mr. PHUC&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Speed communication of shared memory solution between CodeSYS and C++</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a39b7e5773/?limit=25#5e4f" rel="alternate"/><published>2020-02-27T15:16:57.965000Z</published><updated>2020-02-27T15:16:57.965000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com3359f48581af9a5266b198cf13b0d691308bbaea</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
we need more Information:&lt;br/&gt;
On which plc are you doing this?&lt;br/&gt;
This should work way faster.&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Speed communication of shared memory solution between CodeSYS and C++</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a39b7e5773/?limit=25#05cd" rel="alternate"/><published>2020-02-27T15:16:57.334000Z</published><updated>2020-02-27T15:16:57.334000Z</updated><author><name>vmphuc</name><uri>https://forge.codesys.com/u/vmphuc/</uri></author><id>https://forge.codesys.combe48a0cafabc959e844c953bd358ef7209ed1926</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Dear all,&lt;/p&gt;
&lt;p&gt;I would like to use Shared memory to exchange data between CodeSys and C++ app. However, I realized the speed of communication is very slow.&lt;br/&gt;
Every 50ms, I write data from C++ to memory and Codesys read it, but Codesys missed data in some period cycle.&lt;br/&gt;
Does anyone know how speed of this kind of exchange data using shared memory? Please help me, I would very appreciate and welcome your helps.&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>