<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Modbus Slave configuration problem on port 502</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/126e5e1ba9/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/126e5e1ba9/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/126e5e1ba9/</id><updated>2020-02-27T13:52:14.047000Z</updated><subtitle>Recent posts to Modbus Slave configuration problem on port 502</subtitle><entry><title>Modbus Slave configuration problem on port 502</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/126e5e1ba9/?limit=25#7142" rel="alternate"/><published>2020-02-27T13:52:14.047000Z</published><updated>2020-02-27T13:52:14.047000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/</uri></author><id>https://forge.codesys.com825214f8097829af5fb85344f5d5f71e31de8b33</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;That's a wrong statement. Master may use any port.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus Slave configuration problem on port 502</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/126e5e1ba9/?limit=25#489b" rel="alternate"/><published>2020-02-27T13:52:13.901000Z</published><updated>2020-02-27T13:52:13.901000Z</updated><author><name>mikeardy</name><uri>https://forge.codesys.com/u/mikeardy/</uri></author><id>https://forge.codesys.com07f3cd5e5a596251fe4ce3e69be9f2cafae4630f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;yes, it is.&lt;br/&gt;
This because if I configure it as a master with a device attached it works normally without problem.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus Slave configuration problem on port 502</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/126e5e1ba9/?limit=25#f046" rel="alternate"/><published>2020-02-27T13:52:13.754000Z</published><updated>2020-02-27T13:52:13.754000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/</uri></author><id>https://forge.codesys.com50246e9f09164e98f0e9cf81de3c976cd306f887</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is your port 502 free of use before codesys runtime starts ? (netstat -at may help)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus Slave configuration problem on port 502</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/126e5e1ba9/?limit=25#f09e" rel="alternate"/><published>2020-02-27T13:52:13.601000Z</published><updated>2020-02-27T13:52:13.601000Z</updated><author><name>mikeardy</name><uri>https://forge.codesys.com/u/mikeardy/</uri></author><id>https://forge.codesys.comaff1f62211717cac3c63d590a2ffe5bbf3642a01</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm configuring a communication channel in ModbusTCP. The Raspberry Pi must act like a slave and another PLC will be the Master.&lt;br/&gt;
I assigned the right IP address for each partner and the standard port 502 for the Modbus.&lt;br/&gt;
Why if I set 502 as a port in Codesys the bus does not work and if I set 503 does it work?&lt;br/&gt;
I need it to be 502 because the master can't change the port for the slave.&lt;br/&gt;
How can I solve the problem?&lt;br/&gt;
(see picture in attachment)&lt;br/&gt;
thank you&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: modbus port 502.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4249"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: modbus port 503.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4248"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>