Author |
Message |
Thillai
|
PostPosted: Fri Jun 22, 2018 6:37 am |
|
Joined: Wed Sep 17, 2014 6:56 am Posts: 20
|
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
|
|
Top |
|
 |
scott_cunningham
|
PostPosted: Fri Jun 22, 2018 12:12 pm |
|
Offline |
Frequent User |
 |
Joined: Fri Sep 02, 2011 8:02 pm Posts: 297
|
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).
_________________ Scott Cunningham KEB America, Inc. www.kebblog.comwww.kebamerica.com
|
|
Top |
|
 |
ph0010421
|
PostPosted: Fri Jun 22, 2018 3:45 pm |
|
Joined: Sun Jun 28, 2015 12:23 pm Posts: 77
|
|
Top |
|
 |