<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to TCP/IP Server Listening</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9ed49633fc/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9ed49633fc/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/9ed49633fc/</id><updated>2020-02-27T13:47:52.371000Z</updated><subtitle>Recent posts to TCP/IP Server Listening</subtitle><entry><title>TCP/IP Server Listening</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9ed49633fc/?limit=25#d83d" rel="alternate"/><published>2020-02-27T13:47:52.371000Z</published><updated>2020-02-27T13:47:52.371000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com766dddaf2582ca85527c0661e4555712f3e978bf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Add the use case library "Network".&lt;br/&gt;
Then call the function blocks "NBS.TCP_Client" and "NBS.TCP_Read" &lt;/p&gt;
&lt;p&gt;See the screenshot for a (not complete) example.&lt;/p&gt;
&lt;p&gt;PS, the IP address can be initialized e.g. like this:&lt;br/&gt;
stIp: NBS.IP_ADDR := (sAddr := '192.168.1.190');&lt;/p&gt;
&lt;p&gt;PS2, isn't the device a Modbus TCP/IP device. It doesn't seem like a coincidence that the port number is 502...&lt;br/&gt;
In that case it is much easier to use the Modbus TCP/IP communication functionality.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ScreenShot.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1216"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>TCP/IP Server Listening</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9ed49633fc/?limit=25#2e80" rel="alternate"/><published>2020-02-27T13:47:52.305000Z</published><updated>2020-02-27T13:47:52.305000Z</updated><author><name>MBayer</name><uri>https://forge.codesys.com/u/mbayer/</uri></author><id>https://forge.codesys.com01ff813c0ba686b9812f2973f58bb2defc852b1f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I'm using Codesys V3 and I need to make a communication between a RFID reader and plc model M251 from Schneider. I tested the TCP/IP communication between then RFID reader and my PC with a software called Hercules (see the image attached) and saw that the reader shows on the network whats is running through it.&lt;/p&gt;
&lt;p&gt;I believe I have to do a program to be listening what run over the Ethernet network as the same way that this Hercules makes.&lt;/p&gt;
&lt;p&gt;Anyone have any examples of this TCP/IP server program for help me do a program with these same function?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Imagem_Hercules.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1213"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>