Showing results 1 to 5 of 5

Thread: Reading 64-bit registers via Modbus

  1. #1
    Join Date
    04.09.2009
    Posts
    84

    Default Reading 64-bit registers via Modbus

    Hi Support,

    We are using Zenon 6.51 SP0 on Windows Server 2008 R2

    There is a need to read a 64-bit double precision float value distributed in 4 consecutive modbus registers.

    The data type for modbus variable REAL is supporting only 32 bit range.

    Kindly assist how to acquire this value in zenon runtime.

  2. #2

    Default Re: Reading 64-bit registers via Modbus

    Hi Shikra,

    The easiest way is probably to update to the latest zenon version.

    Best regards,
    Mark

  3. #3
    Join Date
    04.09.2009
    Posts
    84

    Default Re: Reading 64-bit registers via Modbus

    Quote Originally Posted by markclemens View Post
    Hi Shikra,

    The easiest way is probably to update to the latest zenon version.

    Best regards,
    Mark
    Any other alternative?

  4. #4
    Join Date
    01.07.2008
    Location
    Salzburg, AT
    Posts
    955

    Default Re: Reading 64-bit registers via Modbus

    you can also read Modbus registers into 4 UINT variables configured as 'external visible'. Then in Logic you can - using functions SerializeIn/Out - copy them info single LREAL variable of stratonNG driver.

    (* declare:
    BUFFER : array of 8 USINT
    LRVALUE : LREAL value
    assuming UINT1 .. UINT4 are your 4 consecutive MODBUS words
    ... and that everything is big endian
    *)
    SerializeOut (BUFFER, UINT1, 0, TRUE);
    SerializeOut (BUFFER, UINT2, 2, TRUE);
    SerializeOut (BUFFER, UINT3, 4, TRUE);
    SerializeOut (BUFFER, UINT4, 6, TRUE);
    SerializeIn (BUFFER, LRVALUE, 0, TRUE);

  5. #5
    Join Date
    30.05.2007
    Location
    Salzburg
    Posts
    880

    Default Re: Reading 64-bit registers via Modbus

    as this inquiry from Shikra was also treaded via a ticket:
    -> solution to this was updating to the latest BuildVersion of zenon 6.51 SP0 (Build23) where the datatype LREAL for analog input (resp. holding register) is available


Similar Threads

  1. Report Generator, Reading of Parameters from Cells for SQL-Query
    By luc in forum zenon Service Engine Supervisor
    Replies: 4
    Last Post: 9th December 2013, 09:23
  2. Reading Excel
    By navaneet in forum zenon Service Engine Supervisor
    Replies: 1
    Last Post: 27th September 2013, 17:09
  3. Decoding the INT tag bit By Bit
    By paruvathakumar in forum VBA
    Replies: 4
    Last Post: 29th August 2012, 01:29
  4. Replies: 2
    Last Post: 29th March 2011, 10:46
  5. Replies: 1
    Last Post: 1st April 2009, 14:31

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •