Search the Community
Showing results for tags 'WriteOperands'.
Hi, I am looking at the C# example provided by Unitronics for reading and writing values to a PLC via Ethernet. I am able to connect and do a number of things but I can't seem to write a value greater than 127 to the PLC. I can write values less than 127, and I am able to read a number greater than 127 but having trouble when I try to write a value greater than 127. My assumption is that it has something to do with sending a "byte" versus "short" but am still new to Visual Studio and C#. Here is the code, if the line in BIG BOLD LETTERS below is changed to anything below 127, it works but 128