Note that there are some explanatory texts on larger screens.

plurals
  1. POModbus Tcp For silverlight
    primarykey
    data
    text
    <p>Original Question:</p> <p>I'm looking for a silverlight library or example that shows me how to use the silverlight framework to connect to a modbus device by tcp. </p> <p>I've found multiple libraries using the tcpClient <code>from system.net.sockets.tcpclient</code> but this namespace is not availeble in silverlight. So .net librarys won't do the trick</p> <p>also, just for background information, i'm building a windows phone app, and I have allready looked into the example " using sockets in windowsphone" on the msdn site <a href="http://msdn.microsoft.com/en-us/library/hh202858%28v=vs.92%29.aspx" rel="nofollow">(Link)</a></p> <hr> <p>Edit 1:</p> <p>After some time programming, I am able to write the holding registers of the modbus device using the <code>System.net.sockets</code> library only. Problem is, i get a return byte from my modbus device. Also, i had a receive function to read registers on the modbus device which also returns bytes.</p> <p>I used to catch bytes like this (using <code>System.Net.Sockets.TcpClient</code>:</p> <pre><code> // Making a new netwerk stream named ns NetworkStream ns; // Function for receiving protected override int ReceiveByte() { // Check for byte, if byte, read it and put it in a byte array. if (ns.DataAvailable) return ns.ReadByte(); // If there's no data left, return; else return -1; } </code></pre> <p>What I'm asking for is these things: 1. Is there a function in the <code>System.net.Sockets</code> that has the same functionality as the Networkstream.Readbyte? 2. If there is no function able to do the same thing. Are there otherways, and if so, are there examples, or can someone get me started?</p> <p>Thanks :)</p> <hr>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload