Modbus one register to two objects - 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: Modbus one register to two objects (/showthread.php?tid=4381) |
Modbus one register to two objects - a455115 - 15.11.2022 Hello, I need to split a modbus register to control two lamps on one register. i guess i need to put a bitmask on but i'm not sure what it should be. I am attaching the registry table. Code: Address High byte Low byte RE: Modbus one register to two objects - admin - 15.11.2022 0xFF00 and 0x00FF, don't forget to add "write_bitmask": true RE: Modbus one register to two objects - a455115 - 17.11.2022 (15.11.2022, 09:21)admin Wrote: 0xFF00 and 0x00FF, don't forget to add "write_bitmask": true The mask 0xFF00 and 0x00FF, what should I write it in? RE: Modbus one register to two objects - Daniel - 17.11.2022 See this example of bit-mask use https://forum.logicmachine.net/showthread.php?tid=4311&pid=28317#pid28317 RE: Modbus one register to two objects - a455115 - 23.11.2022 (17.11.2022, 13:01)Daniel Wrote: See this example of bit-mask useThanks! |