TCP Modbus - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: TCP Modbus (/showthread.php?tid=688) Pages:
1
2
|
RE: TCP Modbus - AlexLV - 02.07.2020 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" } }, RE: TCP Modbus - Daniel - 02.07.2020 I think you should split it in two separate registry, one for read only and second for write only. RE: TCP Modbus - AlexLV - 03.07.2020 Daniel, Thank you for the idea, I will write mapping such way. BR, Alex RE: TCP Modbus - AlexLV - 03.07.2020 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 |