<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Modbus TCP/IP Slave Device</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b8000324ea/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b8000324ea/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/b8000324ea/</id><updated>2020-02-27T15:24:01.473000Z</updated><subtitle>Recent posts to Modbus TCP/IP Slave Device</subtitle><entry><title>Modbus TCP/IP Slave Device</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b8000324ea/?limit=25#00f2" rel="alternate"/><published>2020-02-27T15:24:01.473000Z</published><updated>2020-02-27T15:24:01.473000Z</updated><author><name>kelad</name><uri>https://forge.codesys.com/u/kelad/</uri></author><id>https://forge.codesys.comb9d50defbea252aaddc988716db3cfcf1e814cf7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;My mistake, got it working. Here is screendump of working setup. Problem was i used "FC23 Read/Write Multiple Registers" and i dont think the 6050 supports this. From 6050 manual, it says:&lt;/p&gt;
&lt;p&gt;Code (Hex)&lt;br/&gt;
Name Usage&lt;br/&gt;
01 Read Coil Status Read Discrete Output Bit&lt;br/&gt;
02 Read Input Status Read Discrete Input Bit&lt;br/&gt;
03 Read Holding Registers Read 16-bit register. Used to read integer or floating point process data.&lt;br/&gt;
04 Read Input Registers&lt;br/&gt;
05 Force Single Coil Write data to force coil ON/OFF&lt;br/&gt;
06 Preset Single Register Write data in 16-bit integer format&lt;br/&gt;
08 Loopback Diagnosis Diagnostic testing of the communication port&lt;br/&gt;
0F Force Multiple Coils Write multiple data to force coil ON/OFF&lt;br/&gt;
10 Preset Multiple Registers Write multiple data in 16-bit integer format&lt;/p&gt;
&lt;p&gt;so i tried Function code 03 for read inputs and Function code 15 (16#000F) for write outputs. Once did this, all good.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Adam6050_Setup.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=942"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus TCP/IP Slave Device</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b8000324ea/?limit=25#73d4" rel="alternate"/><published>2020-02-27T15:24:00.818000Z</published><updated>2020-02-27T15:24:00.818000Z</updated><author><name>kelad</name><uri>https://forge.codesys.com/u/kelad/</uri></author><id>https://forge.codesys.com8703332b9e985fff1fc0fa6ca2875345f0584f15</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Everyone, having codesys run on he pi is brillant.&lt;/p&gt;
&lt;p&gt;Ok, i have the Adam 6050 Modbus TCP slave (12 in, 6 out). I've configured codesys with a modbus tcp master and modbus tcp slave and entered ip address of the slave. However codesys tells me the ModbusTcpSlave is not running.  The device appears ok as i can connect to it via service tool. Any tips?&lt;br/&gt;
Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus TCP/IP Slave Device</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b8000324ea/?limit=25#a660" rel="alternate"/><published>2020-02-27T15:23:58.920000Z</published><updated>2020-02-27T15:23:58.920000Z</updated><author><name>Hodgy1993</name><uri>https://forge.codesys.com/u/hodgy1993/</uri></author><id>https://forge.codesys.comce2e7d062b843737f9ff0c7968a6b5df5cff3f80</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Many thanks for the support.&lt;br/&gt;
A member of your technical support team managed to remote in to my system and resolve this issue.&lt;/p&gt;
&lt;p&gt;My eDAM IO unit is now up and running as a MODBUS TCP Slave (and only ~9% CPU on the RPi)&lt;/p&gt;
&lt;p&gt;Cheers Guys!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus TCP/IP Slave Device</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b8000324ea/?limit=25#de35" rel="alternate"/><published>2020-02-27T15:23:58.264000Z</published><updated>2020-02-27T15:23:58.264000Z</updated><author><name>Moderator3S</name><uri>https://forge.codesys.com/u/moderator3s/</uri></author><id>https://forge.codesys.com41f1b443e078120397716750d0c57ed6d148a590</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;there's an error in the device description of "CODESYS Control for Raspberry Pi".&lt;br/&gt;
This is only a problem if you use CODESYS V3.5.4.10.&lt;br/&gt;
I attached a corrected version of the device description. Just install this device (Tools -&amp;gt; Device Repository... -&amp;gt; Install...) and then update your device in the device tree or restart CODESYS.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br/&gt;
3S Support&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=516" rel="nofollow"&gt;CODESYS Control for Raspberry Pi.devdesc.zip &lt;span&gt;&lt;span&gt;[9.05 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus TCP/IP Slave Device</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b8000324ea/?limit=25#b731" rel="alternate"/><published>2020-02-27T15:23:56.295000Z</published><updated>2020-02-27T15:23:56.295000Z</updated><author><name>Hodgy1993</name><uri>https://forge.codesys.com/u/hodgy1993/</uri></author><id>https://forge.codesys.comadcf26d9643e4045e9a9e62e8c8fc88a942e6c66</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Still getting the error(s)..&lt;/p&gt;
&lt;p&gt;Here's a screenshot (attached below)&lt;/p&gt;
&lt;p&gt;This guy also had the same problem and managed to get it fixed:&lt;br/&gt;
&lt;a class="" href="http://www.raspberrypi.org/phpBB3/viewtopic.php?p=507270#p507270" rel="nofollow"&gt;http://www.raspberrypi.org/phpBB3/viewt ... 70#p507270&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br/&gt;
Sean.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Capture.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=515"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus TCP/IP Slave Device</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b8000324ea/?limit=25#06ca" rel="alternate"/><published>2020-02-27T15:23:55.628000Z</published><updated>2020-02-27T15:23:55.628000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com560c10df96018123e8e5a89d4749cdad4c663499</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;this should work, how do you get the CmpIecTask library error,&lt;br/&gt;
this should not happen?&lt;br/&gt;
Try to create an empty new Project with Raspberry Pi as plc.&lt;br/&gt;
Then add Ethernet - then Modbus-Master then Modbus-Slave (under the Modbus Master).&lt;br/&gt;
Compile - the this should lead to an error free compile result.&lt;br/&gt;
If not let me know.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
E.Schwellinger&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus TCP/IP Slave Device</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b8000324ea/?limit=25#edfe" rel="alternate"/><published>2020-02-27T15:23:54.950000Z</published><updated>2020-02-27T15:23:54.950000Z</updated><author><name>Hodgy1993</name><uri>https://forge.codesys.com/u/hodgy1993/</uri></author><id>https://forge.codesys.com9bb198bed153b2f9ba7e37adc74de04ab36ac54a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi guys,&lt;/p&gt;
&lt;p&gt;Really encouraging platform you've developed here, especially as I'm going into final year and need project idea's.&lt;/p&gt;
&lt;p&gt;In my current work I have the &lt;strong&gt;eDAM-5029&lt;/strong&gt; Remote IO device communicating with my Pi through MODBUS TCP Protocol (through sockets).&lt;br/&gt;
I'd love to get it up and running with the CODESYS application However I keep getting the CmpIecTask library error when I add &lt;br/&gt;
"Modbus Master -&amp;gt; Modbus Slave" devices.&lt;/p&gt;
&lt;p&gt;If someone could point me in the right direction in terms of configuring my device in the software it would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Manual:&lt;/strong&gt; &lt;a class="" href="http://www.audon.co.uk/downloads/EDAM5000_Manual.pdf" rel="nofollow"&gt;http://www.audon.co.uk/downloads/EDAM5000_Manual.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;-Sean.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>