write on modbus - 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: write on modbus (/showthread.php?tid=4353) |
write on modbus - CristianAgata - 06.11.2022 Hi, I realized this script (resident 10 sec) to read data from Daikin Altherma. It seems works fine in reading mode. Now I need to add a cmd that writes on the 0 register 'on' when the thermostat it is 'on' and 'off' in the other case. Best regards Cristian Code: require('luamodbus') RE: write on modbus - admin - 07.11.2022 If you don't want to use a profile then simply add a write before reading the new values. But using a profile is a better approach as there won't be a delay between the object change and write. Also be careful with USB adapters as some of them are not very reliable. RE: write on modbus - CristianAgata - 07.11.2022 (07.11.2022, 09:04)admin Wrote: If you don't want to use a profile then simply add a write before reading the new values. But using a profile is a better approach as there won't be a delay between the object change and write. Also be careful with USB adapters as some of them are not very reliable. Thanks admin, But this time it was a must...... BR Cristian |