03.06.2022, 21:00
(02.06.2022, 05:42)admin Wrote: Which script are you using for maximum calculation? Do you have a separate binary on/off object for each 1-byte value?
Hi.
I'm using a script like this:
Code:
-- Enter tag here
knxTable = grp.tag('Maxvalue')
-- Outputadress
MAX = '32/1/4'
-- Don't change below --
newTable = {}
for i, v in ipairs(knxTable) do
table.insert(newTable, v.value)
end
table.sort(newTable)
grp.checkwrite(MAX, newTable[#newTable], 0.5)
Let's say I have the %-values from 1/1/1 to 1/1/50 where everyone is tagged "Maxvalue", (in real project they are not next to eachother)
I think will have to create separate 1-bit enablesignals for the corresponding 1/2/1 to 1/2/50.
Is there any possibility to "untag" 1/1/10 with setting 1/2/10 to off?
Plan B is making a script to push 1/1/1 into another GA if 1/2/1 is true, else set to 0 and tag the new GA instead of the one I have now.