Find the last/ highest group address - 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: Find the last/ highest group address (/showthread.php?tid=2154) |
Find the last/ highest group address - Trond Hoyem - 15.07.2019 Hi I am using quite often a script to create virtual objects in projects. To make sure I am not overwriting an existing object I need to check the object list for the highest object address and use the next as start-address for the next creation. My question is; is there an easy way to let the script find the highest used object address and then use teh next as address for the object to be created? RE: Find the last/ highest group address - admin - 15.07.2019 You will automatically get next free group address if you don't specify group address in grp.create config table. Just add virtual = true to the config table. RE: Find the last/ highest group address - Trond Hoyem - 15.07.2019 Ah. Cool, will test that. Thx |