Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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).
Originally created by: ph0010421
l viewtopic.php?f=11&t=8922 l