Modbus and c# program

Discussion in 'Programmer's Corner' started by btb4198, Jul 8, 2013.

  1. btb4198

    Thread Starter New Member

    Jul 8, 2013
    6
    0
    Ok I am reading a message in from a honeywell experian server in to a c# Program i am writing.
    I am using modbus but I do not understand the message that is coming in for experian.
    I get a 16 bytes message 1st
    follow by 8 bytes message after that every few seconds
    now what is the 16 bytes message? I never read anything on modbus that talked about getting a 16 bytes message.
    the message is
    1
    3
    0
    1
    0
    1
    213
    202
    1
    3
    0
    1
    0
    1
    213
    202
    I have it print out as an int but
    does anyone know what that means ?
    How should I reply back ?
    why is it 16 bytes and not 8 bytes ?
    I know modus master sends

    slave id
    function code
    address
    data
    CRC

    but that should be 8 bytes right?
    I am really new a modbus
    thanks
     
  2. MrChips

    Moderator

    Oct 2, 2009
    12,414
    3,353
    Geez, did you not look at the data represented in the 16 bytes?
    They are 8 bytes repeated.
     
Loading...