This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Universal Modbus TCP/RTU Slave
#61
(26.02.2024, 09:08)Daniel Wrote: This is how it meant to work. You need to convert it back to float on master device.
mb.setfloat16precision(2) sets how float16 is converted to integer. By default it's 2 decimals (0.01 precision). Change 2 to 0 to convert to integer without any decimals.

Hi! Yes, it works. Not a big problem to convert back to float on master device, but just to clarify. Is it possible to make pure float register (either it can be little or big endian)?
Reply
#62
float32 data type is handled as is without any conversion. The script can be modified to convert float16 to float32 instead of int16.

Edit: script has been updated with optional conversion of float16 to float32: https://kb.logicmachine.net/integration/...tcp-slave/
Reply
#63
How do i set up the script to use slave id 1 on the first RS-485 port and slave id 2 on the second RS-485 port on an LM5 Lite?
Reply
#64
Create two separate scripts, one for each port.
Reply
#65
I am Using Daikin Ac and Ac Guy Given me address and holding register ID. So query is that when I'm triggering from Logic Machine not getting response from AC. even i used json file.

Attached Files Thumbnail(s)
   
Reply
#66
This thread is for modbus slave and you are using master so if you have issues create dedicated topic for your case please.
------------------------------
Ctrl+F5
Reply


Forum Jump: