(04.04.2021, 20:29)Tokatubs Wrote: I am starting an project with loads of SIemens GD181 VAVs.
Vnom, Vmin and Vmax needs to be written to group addresses. But lots of the Vavs have same values.
So before i write every value manually in ETS.
But is there a way to write this more easier from Lm5. For example if i add all with same Vnom and add them with same tag "Vnom315", could i then via an script write same value to all GA with this tag?
Hi,
Yes this is very possible. If you need an example let me know and I'll dig one up
(04.04.2021, 21:02)Seijboldt Wrote:(04.04.2021, 20:29)Tokatubs Wrote: I am starting an project with loads of SIemens GD181 VAVs.
Vnom, Vmin and Vmax needs to be written to group addresses. But lots of the Vavs have same values.
So before i write every value manually in ETS.
But is there a way to write this more easier from Lm5. For example if i add all with same Vnom and add them with same tag "Vnom315", could i then via an script write same value to all GA with this tag?
Hi,
Yes this is very possible. If you need an example let me know and I'll dig one up
Here you go, you need to name your objects correctly though.
The code below searches for the name Vnom in any group object and writes the Value to it.
Code:
obj = db:getall('SELECT name FROM objects WHERE name LIKE "%Vnom%"')
Value=69
for _, addr in ipairs(obj) do
grp.checkwrite(addr.name, Value, 1)
end