Logic Machine Forum
Modbus TCP Profile - 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: Modbus TCP Profile (/showthread.php?tid=3259)



Modbus TCP Profile - jmir - 26.03.2021

Hi,

Are offsets applied to write function when you define them on the profile? 

It seems that using the code below it reads from holding register 6 but writes on register 0...



Code:
       {"name": "Test_Register",
    "bus_datatype": "int16",
    "type": "register",
    "datatype": "int16",
    "address": 0,
    "read_offset": 6,
    "read_count": 20,
    "bus_address": "33/1/7",    
    "writable": 1,
    "value_delta": 1,
    "value_multiplier": 1,
    "units": "",    
    },

We need to read using blocks and on this blocks there are some writable registers...
Is there any way to solve it?



Thanks.


RE: Modbus TCP Profile - Daniel - 26.03.2021

In RC3 firmware writing with block read is not working. We added this functionality recently. What is your hardware?


RE: Modbus TCP Profile - jmir - 26.03.2021

(26.03.2021, 17:13)Daniel. Wrote: In RC3 firmware writing with block read is not working. We added this functionality recently. What is your hardware?

LM5 Lite i.MX6


RE: Modbus TCP Profile - Daniel - 27.03.2021

Install this package
https://dl.openrb.com/pkg/genohm-scada-modbus_20210122_imx6.ipk


RE: Modbus TCP Profile - jmir - 27.03.2021

(27.03.2021, 11:16)Daniel. Wrote: Install this package
https://dl.openrb.com/pkg/genohm-scada-modbus_20210122_imx6.ipk

Now it works!

Status object is the connection statuts?
Are other new features using this package?

Thanks!


RE: Modbus TCP Profile - admin - 29.03.2021

Yes, status object changes whether the modbus slave is accessible or not. No other new features, just some minor improvements and bug fixes.


RE: Modbus TCP Profile - jmir - 29.03.2021

(29.03.2021, 06:35)admin Wrote: Yes, status object changes whether the modbus slave is accessible or not. No other new features, just some minor improvements and bug fixes.

Ok, thanks!