This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Is it possible to tag/untag an object with a digital value?
#3
(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.
Reply


Messages In This Thread
RE: Is it possible to tag/untag an object with a digital value? - by Odd Egil Aasheim - 03.06.2022, 21:00

Forum Jump: