Sigma South

MrPLC Member
  • Content count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Sigma South

  • Rank
    Newbie

Profile Information

  • Country United States
  1. Reading TCP Modbus using C# library

    I cannot see both sides of the data.  I can assume AD1024 on the Profinet side is going to be a large number between 900,000 and 20,000,000.  I can also assume AD1036 and AD1040 will be somewhere between 200.000 and 600.000.  These are safe assumptions, so I would like to try and do everything on the Modbus side to see if I can get close before I ask the OEM for further help. Thank you Bill Mobile Phone:  708-556-2929  
  2. Reading TCP Modbus using C# library

    Thanks.  Evening hours work for me.  Call me or text me to schedule.  Do you think it would be this evening or possibly tomorrow?
  3. Reading TCP Modbus using C# library

    Ahh.  Thank you so much.  Lol.  So, I tried converting and I am still struggling.  If you are open to working with me for 2 hours via Team Viewer I would be glad to pay you.  I really need to get this project closed and have been struggling for some time now.   708-556-2929
  4. Reading TCP Modbus using C# library

    I am also wondering how 1.50967693E+28f is the same thing as 238.02f.  What Am I missing?
  5. Reading TCP Modbus using C# library

    Panic Mode, Thank you.  I am so close now.  I notice in the OEM's chart above that the value for the first 3 registers are decimal and they display a value in the OEM's documentation with "L#".  Is "L#" not part of the actual value in your opinion? Thanks
  6. Reading TCP Modbus using C# library

    iAdmin, I tried your method like this:             float vIn = 238.02f;             byte[] vTemp1 = BitConverter.GetBytes(vIn);             byte[] vTemp2 = new byte[] { 0, 0, 0, 0 };             vTemp2[0] = vTemp1[1];             vTemp2[1] = vTemp1[0];             vTemp2[2] = vTemp1[3];             vTemp2[3] = vTemp1[2];             float vOut = Convert.ToSingle(BitConverter.ToDouble(vTemp2, 0 /* Which byte position to convert */));             Console.WriteLine(vOut);             Console.ReadKey(); And I get the following error: "Destination array is not long enough to copy all the items in the collection. Check array index and length". Can you help?
  7. Reading TCP Modbus using C# library

    Notice the first three are not floats.  They are decimals.  I'm not even sure at what register I should start at in the ModBus holding registers.  Also, what method should I use? http://easymodbustcp.net/en/modbusclient-methods
  8. I am willing to pay someone who is knowledgeable in this are to help me remotely solve this problem.  (TeamViewer) I have a Profinet PLC with data as shown in the image below. I have a converter that translates the data into TCP/Modbus. I have tried reading the data using a few existing client applications as well as a C# library called EasyModbus that I have used on projects before. I am getting data back but I cannot make sense of it. I have only used TCP/Modbus with integers before so it was easy. I am looking for someone with extensive experience to assist.