Read Modbus Variable as float(Real) in codesys

Thillai
2018-06-22
2018-06-22
  • Thillai - 2018-06-22

    Hi,
    I am trying to communicate with a modbus slave device to read the floating point variable. In Codesys I can see only the option to read as a 16 bit word. How can i read the real value from my slave 32bit floating point variable. I face this problem both Modbus RTU and Modbus TCP

     
  • Anonymous - 2018-06-22

    Originally created by: scott_cunningham

    Modbus only supports WORD data transfer. You need to read two registers locations (2 words) and then convert your DWORD to REAL. You also may need to confirm the order of your words, too (upper/lower).

     
  • Anonymous - 2018-06-22

    Originally created by: ph0010421

    l viewtopic.php?f=11&t=8922 l

     

Log in to post a comment.