Posts: 940
Threads: 161
Joined: Jul 2015
Reputation:
33
I have a question about Modbus. How precisely works on LM?
LM uses user defined interval. But what when I change value? Does user have to wait for checking the change in the system? When the value is sent, immediately or only on interval?
Done is better than perfect
Posts: 1764
Threads: 6
Joined: Jul 2015
Reputation:
117
Hi,
Modbus is polling and not COV so you get the data only on request.
BR,
Erwin
Posts: 4646
Threads: 24
Joined: Aug 2017
Reputation:
207
Hi
Reading data from slave is via pool interval, writing of data is nearly instant.
BR
------------------------------
Ctrl+F5
Posts: 940
Threads: 161
Joined: Jul 2015
Reputation:
33
13.11.2018, 14:18
(This post was last modified: 13.11.2018, 14:20 by buuuudzik.)
Currently I am testing communication with recuperator. And I have such variable:
Code:
3x0066 Manual boosting time Manual boosting time / delay (min) Holding register R W 0 - 60 30
This is my configuration from profile:
Code:
{ "bus_address": "14/2/157", "bus_datatype": "uint8", "type": "register", "datatype": "uint16", "address": 66, "name": "Manual boosting time", "units": "min"},
And of course object exists.
But when I try change the variable in LM it is ok, because object changes and stays changed after update. But when I've check this variable via Read test it has value 26. Strange is that LM doesn't update value when it recognize that device has still another. My current setting is 10s interval. There are a lot of errors(what is strange because on read test device responds 100/100 but I unfortunately that see this is normal) but not every interval but only sometimes which after a few hours looks terrible.
Done is better than perfect
Posts: 7764
Threads: 42
Joined: Jun 2015
Reputation:
447
You need to add "writable": true to your profile entry.
Posts: 940
Threads: 161
Joined: Jul 2015
Reputation:
33
Thanks, this help to change value. I've added this 3 variables to profile a few minutes ago, quickly, by copy another similar values.
But why sometimes variables aren't updated when seems that device is updated because errors aren't every interval but not whole profile is up to date.
Done is better than perfect