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.

TCP Modbus
#21
Hi,

I am writing Modbus Mapping for Komfovent C6 Modbus generation communication.

How correctly write .json Modbus register description of not of all parameters writable:

5 Current mode R/W unsigned char 0-10

READ ONLY:
Stanby = 0,
Away = 1,
Normal = 2,
Intensive = 3,
Boost = 4,
Kitchen = 5,
Fireplace = 6,
Override = 7,
Holiday = 8,
Air quality = 9,
Off = 10
WRITE ONLY:
Away = 1,
Normal = 2,
Intensive = 3,
Boost = 4

I did that way, but in that case all off parameters are writable... :

{
"name": "Current Mode",
"bus_datatype": "uint8",
"datatype": "uint16",
"type": "register",
"address": 5,
"writable": 1,
"value_custom": {
"0": "StandBy",
"1": "Away",
"2": "Normal",
"3": "Intensive",
"4": "Boost",
"5": "Kitchen",
"6": "Fireplace",
"7": "Override",
"8": "Holiday",
"9": "Air Quality",
"10": "Off"
}
},
Reply
#22
I think you should split it in two separate registry, one for read only and second for write only.
------------------------------
Ctrl+F5
Reply
#23
Daniel,

Thank you for the idea, I will write mapping such way.

BR,

Alex
Reply
#24
I tried to do so, but not worked. May be still data types I used not correct, will add comments later. If will not work, will do check of entered data with scripts, where only allowed digits (1-4 in this case) will be used.

Alex
Reply


Forum Jump: