Using the S7.Net library to read data wrong result
<p>I spent a couple of days to communicate with the PLC, now, I would like to call the read method, strangely, I get an incoherent value returned.</p>

<p>I would like to get the DWord DB172.DW1 value, the first value represents a quantity, the second one is either 0 or 1, my syntax is like this :</p>

<pre><code>Dim result as Object = MyPLC.read(“DB172.DBW1″)
MsgBox(result.ToString &amp; ” ” &amp; result.GetType.ToString)
</code></pre>

<p>I obtain as displayed message :</p>

<blockquote>
  <p>12 System.UInt16</p>
</blockquote>

<p>On DB172.DBW2, I obtain this one :</p>

<blockquote>
  <p>3073 System.UInt16</p>
</blockquote>

<p>What am I doing wrong? Thanks</p>