Menu

Reading DWord Value

Anonymous
2016-07-07
2016-07-10
  • Anonymous

    Anonymous - 2016-07-07

    What is the proper way to read double word values? When I read the registers they don't seem to match what is on the PLC.

     
    • Rossmann Engineering

      Do you mean 32 Bit values?

      You can use the static methods

      public static Int32 ConvertRegistersToDouble(int[] registers)

      public static Int32 ConvertRegistersToDouble(int[] registers, RegisterOrder registerOrder)

      with the second method you can change the Order of the two 16-Bit registers using the enumeration
      public enum RegisterOrder { LowHigh = 0, HighLow = 1 };

      give both methods an array of 2 16-Bit values

      Greetings

      Stefan

       

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.