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 whether you accept or reject these cookies being set.

Modbus TCP Profile
#1
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.
Reply
#2
In RC3 firmware writing with block read is not working. We added this functionality recently. What is your hardware?
Reply
#3
(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
Reply
#4
Install this package
http://dl.openrb.com/pkg/genohm-scada-mo...2_imx6.ipk
Reply
#5
(27.03.2021, 11:16)Daniel. Wrote: Install this package
http://dl.openrb.com/pkg/genohm-scada-mo...2_imx6.ipk

Now it works!

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

Thanks!
Reply
#6
Yes, status object changes whether the modbus slave is accessible or not. No other new features, just some minor improvements and bug fixes.
Reply
#7
(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!
Reply


Forum Jump: