<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to modbusTCP raspberry as master arduino mega as slave</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b164d76f88/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b164d76f88/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/b164d76f88/</id><updated>2021-02-28T17:29:33.141000Z</updated><subtitle>Recent posts to modbusTCP raspberry as master arduino mega as slave</subtitle><entry><title>modbusTCP raspberry as master arduino mega as slave</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b164d76f88/?limit=25#a5e2" rel="alternate"/><published>2021-02-28T17:29:33.141000Z</published><updated>2021-02-28T17:29:33.141000Z</updated><author><name>pawel</name><uri>https://forge.codesys.com/u/pawel/</uri></author><id>https://forge.codesys.comdc02e5aa3846d1d6c96a8428ca2d4acaf3e1f8ce</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello&lt;br/&gt;
I want to connect raspberry pi (3B+) with arduino (Mega + ethernet shield) using ArduinoModbus library on arduino and Codesys on Raspberry Pi. The point is to make the arduino (slave) as I/O device while Raspberry (master) is a PLC. I have a problem that i cannot connect to raspberry (program in attachment, ModbusTry_V2). I have noticed that something happens on codesys side as you can see on pic_1 and then come back to proper config (pic_2). I can ping arduino from raspberry. All posts i have seen were about stuff after connecting to modbus master. On youtube i can see few projects about my topic, but arduino program is not attached or link is not valid anymore. According to used library yet, cause i have seen posts about this, after compilation there is left over 6000B of RAM for local variables isn't really sufficent for this purpose? I have also used other library (ModbusTry_V3 and is based on this one &lt;a href="https://forge.codesys.com/forge/talk/Runtime/thread/0d8b6b9f04/"&gt;https://forge.codesys.com/forge/talk/Runtime/thread/0d8b6b9f04/&lt;/a&gt;), but again is not working. But with this one i can see sometimes one shots that modbus slave is working properly. PLC program attached only for modbusTry_v2.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>