<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Modicon m241 Modbus TCP server</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/912e920ca6/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/912e920ca6/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/912e920ca6/</id><updated>2020-02-27T14:03:52.270000Z</updated><subtitle>Recent posts to Modicon m241 Modbus TCP server</subtitle><entry><title>Modicon m241 Modbus TCP server</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/912e920ca6/?limit=25#ba17" rel="alternate"/><published>2020-02-27T14:03:52.270000Z</published><updated>2020-02-27T14:03:52.270000Z</updated><author><name>tom vg</name><uri>https://forge.codesys.com/u/tom-vg/</uri></author><id>https://forge.codesys.com9445d1a6ff7ebec2cdab6bf6f6e22be6e249a9c5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;the quantity and position are inputs on the fb it self. check the fb and you'll notice &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modicon m241 Modbus TCP server</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/912e920ca6/?limit=25#e96e" rel="alternate"/><published>2020-02-27T14:03:51.993000Z</published><updated>2020-02-27T14:03:51.993000Z</updated><author><name>hitarth1</name><uri>https://forge.codesys.com/u/hitarth1/</uri></author><id>https://forge.codesys.com21185a62db1ad2e252c40ac2c6d15aeb9215c029</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;tom vg hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
In my case i have 2 TM251MESC  that communicates with modbus tcp to each other. They both can act as a server depending on the fb that you are using to read or write data in plc 1 or 2. There is nothing special to setup for this only implement the FB and set how many data you want to read.&lt;br/&gt;
How much data do you want to read from your server PLC? 100MW? &lt;br/&gt;
This is probeably 1 of many solutions to read or write data over ethernet  &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I think I will try to do the same. But in this approach, how do we define the location of input registers or holding registers? Some help would be greatly appreciated.. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modicon m241 Modbus TCP server</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/912e920ca6/?limit=25#e37e" rel="alternate"/><published>2020-02-27T14:03:51.715000Z</published><updated>2020-02-27T14:03:51.715000Z</updated><author><name>tom vg</name><uri>https://forge.codesys.com/u/tom-vg/</uri></author><id>https://forge.codesys.com2fc08dbc2404dbefd6dea236127f1a2a7f492b34</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
I want my PLC to act like a MODBUS TCP SERVER i.e. other TCP devices to read its holding and input registers&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In my case i have 2 TM251MESC  that communicates with modbus tcp to each other. They both can act as a server depending on the fb that you are using to read or write data in plc 1 or 2. There is nothing special to setup for this only implement the FB and set how many data you want to read.&lt;/p&gt;
&lt;p&gt;How much data do you want to read from your server PLC? 100MW? &lt;/p&gt;
&lt;p&gt;This is probeably 1 of many solutions to read or write data over ethernet  &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modicon m241 Modbus TCP server</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/912e920ca6/?limit=25#9a21" rel="alternate"/><published>2020-02-27T14:03:51.435000Z</published><updated>2020-02-27T14:03:51.435000Z</updated><author><name>hitarth1</name><uri>https://forge.codesys.com/u/hitarth1/</uri></author><id>https://forge.codesys.com7f3dee39d7eaf92423ef32577f46c14794e5a988</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;tom vg hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hello Somachine user &lt;br/&gt;
I'm using a standard PLC_communication library (schneider electric) that operates with a READ/WRITE_VAR functionblocks. These can read write data on other modbus tcp devices in the network. You can set the type of register that you want to read/write along with an quantity and where to start. &lt;br/&gt;
gr Tom&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hello Tom!&lt;/p&gt;
&lt;p&gt;I think I wasn't clear. I want my PLC to act like a MODBUS TCP SERVER i.e. other TCP devices to read its holding and input registers, not the other way round. How to go about doing that?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modicon m241 Modbus TCP server</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/912e920ca6/?limit=25#aac2" rel="alternate"/><published>2020-02-27T14:03:50.601000Z</published><updated>2020-02-27T14:03:50.601000Z</updated><author><name>tom vg</name><uri>https://forge.codesys.com/u/tom-vg/</uri></author><id>https://forge.codesys.comec9f5b58ce9a3b8a693b851dc402102e55e7f81c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Somachine user &lt;/p&gt;
&lt;p&gt;I'm using a standard PLC_communication library (schneider electric) that operates with a READ/WRITE_VAR functionblocks. These can read write data on other modbus tcp devices in the network. You can set the type of register that you want to read/write along with an quantity and where to start. &lt;/p&gt;
&lt;p&gt;gr Tom&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modicon m241 Modbus TCP server</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/912e920ca6/?limit=25#b25c" rel="alternate"/><published>2020-02-27T14:03:50.315000Z</published><updated>2020-02-27T14:03:50.315000Z</updated><author><name>hitarth1</name><uri>https://forge.codesys.com/u/hitarth1/</uri></author><id>https://forge.codesys.comb4c8643179cfe91f46ab7f2389334fe0f4d03956</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everyone! I have been struggling with making my Modicon M241 PLC to act like a MODBUS TCP server. Using a modbus TCP master simulator, I am able to read and modify Holding registers but when I try to read INPUT registers, a modbus message timeout error is displayed. &lt;br/&gt;
For making it act like a Modbus TCP server, I have added ModbusTCP_Slave_Device block to the Ethernet section.&lt;br/&gt;
I have configured the IP addresses and stuffs. What else do I need to configure other than this to enable reading of input registers from PLC?&lt;/p&gt;
&lt;p&gt;PS: I have been configuring the settings using SoMachine software.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>