(16.01.2025, 12:26)RomansP Wrote: But in this type of script variables are only in this one script.Hello again unfortunately this doesnt work for me the script works fine but the heating actuator doesnt chages the actual value but only the status!
In LogicMachine it only make sense to use local declaration if you use
loops or functions. But for me putting local in this script is just like a
good practice, to do not use global variables.
can you you help me write a script that i will write the value of the actual temperature to another group address but with -1C temperature lower i made this but doesnt work! thank you in advance!
Code:
local actual_temp = ('12/0/1')
local fake_temp_adr = ('32/1/68')
local value = ('12/0/1')-(1)
if grp.getvalue('32/1/66',1)
then
grp.write('32/1/68',value)
else log()
end