<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Oscat Network MB_SERVER</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c0fdcf4810/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c0fdcf4810/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/c0fdcf4810/</id><updated>2020-02-27T13:47:44.154000Z</updated><subtitle>Recent posts to Oscat Network MB_SERVER</subtitle><entry><title>Oscat Network MB_SERVER</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c0fdcf4810/?limit=25#18e9" rel="alternate"/><published>2020-02-27T13:47:44.154000Z</published><updated>2020-02-27T13:47:44.154000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/</uri></author><id>https://forge.codesys.combad20be5bb3e6bff8c47f9f13c154a610fee6815</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I don't know about your oscat block, but I can tell your address may be the key.&lt;/p&gt;
&lt;p&gt;on some modbus servers, function code is used to point your request on different data tables. But on some others, you have to also tell it by adressing with an offset.&lt;/p&gt;
&lt;p&gt;For instance, the first holding register (first item in relative holding register table) maybe accessed with request address 01 or 40001.&lt;/p&gt;
&lt;p&gt;Also, I would start reading a register already holding a value different from 0, just to verify it to work, and the possible offset (some system relative addressing starts to 0 instead of 1, because the modbus frame asks the first address sending a 0). Then a range of register. Then write a single register, the multiple write.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Oscat Network MB_SERVER</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c0fdcf4810/?limit=25#9e50" rel="alternate"/><published>2020-02-27T13:47:44.076000Z</published><updated>2020-02-27T13:47:44.076000Z</updated><author><name>MortenL</name><uri>https://forge.codesys.com/u/mortenl/</uri></author><id>https://forge.codesys.com0d2c964bb2df433f7f98b27acc0ca0b9a4c0d77c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Has anyone had success with the MB_SERVER in the oscat library?&lt;/p&gt;
&lt;p&gt;I have created a small program using the MB_SERVER from the 'Demo' directory of the oscat_network library.&lt;br/&gt;
I am able to connect using 'Ananas64' which is a modbus client for windows, but I am unable to read any registers.&lt;/p&gt;
&lt;p&gt;I have also tried setting up a VMAP but I'm not sure I have done this correctly, I get an error 2 which is 'Incorrect data address'&lt;/p&gt;
&lt;p&gt;I want to write 10 holding registers with offset 3000, and then read them with my windows PC running the client software.&lt;/p&gt;
&lt;p&gt;If anyone has a small project with a working mb_server and a few registers that you are able to read from it would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;I have successfully used the modbus-tcp master device of Codesys on PLCs supporting this, but now I need to do it without using the built-in modbus-tcp master.&lt;/p&gt;
&lt;p&gt;The solution is probably simple, but I'm having a hard time wrapping my head around the concept of mb_server&lt;/p&gt;
&lt;p&gt;I have uploaded my own project:&lt;br/&gt;
&lt;a class="" href="http://k-rad.dk/modbus.projectarchive" rel="nofollow"&gt;http://k-rad.dk/modbus.projectarchive&lt;/a&gt; m &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>