Logic Machine Forum
Universal Modbus TCP/RTU Slave - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: Universal Modbus TCP/RTU Slave (/showthread.php?tid=4288)

Pages: 1 2 3 4


RE: Universal Modbus TCP/RTU Slave - djaval - 27.03.2024

(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)?


RE: Universal Modbus TCP/RTU Slave - admin - 28.03.2024

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/modbus-rtu-tcp-slave/


RE: Universal Modbus TCP/RTU Slave - Krstfr2k - 12.06.2024

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?


RE: Universal Modbus TCP/RTU Slave - admin - 12.06.2024

Create two separate scripts, one for each port.


RE: Universal Modbus RTU - Ranjeet - 14.06.2024

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.


RE: Universal Modbus TCP/RTU Slave - Daniel - 14.06.2024

This thread is for modbus slave and you are using master so if you have issues create dedicated topic for your case please.