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.

Scripting
#16
(16.01.2025, 12:26)RomansP Wrote: But in this type of script variables are only in this one script.
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.
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!
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
Reply


Messages In This Thread
Scripting - by mariosp - 16.01.2025, 09:17
RE: Scripting - by RomansP - 16.01.2025, 10:05
RE: Scripting - by mariosp - 16.01.2025, 10:57
RE: Scripting - by Daniel - 16.01.2025, 11:02
RE: Scripting - by mariosp - 16.01.2025, 11:22
RE: Scripting - by Daniel - 16.01.2025, 11:29
RE: Scripting - by mariosp - 16.01.2025, 11:37
RE: Scripting - by Daniel - 16.01.2025, 11:43
RE: Scripting - by mariosp - 16.01.2025, 11:54
RE: Scripting - by RomansP - 16.01.2025, 11:59
RE: Scripting - by mariosp - 16.01.2025, 12:04
RE: Scripting - by RomansP - 16.01.2025, 12:09
RE: Scripting - by mariosp - 16.01.2025, 12:11
RE: Scripting - by Daniel - 16.01.2025, 12:23
RE: Scripting - by RomansP - 16.01.2025, 12:26
RE: Scripting - by mariosp - 17.01.2025, 12:15
RE: Scripting - by RomansP - 17.01.2025, 12:37
RE: Scripting - by mariosp - 18.01.2025, 08:14
RE: Scripting - by baggins - 18.01.2025, 10:11
RE: Scripting - by mariosp - 18.01.2025, 11:11
RE: Scripting - by admin - 18.01.2025, 11:12
RE: Scripting - by mariosp - 20.01.2025, 09:10
RE: Scripting - by RomansP - 20.01.2025, 10:07
RE: Scripting - by mariosp - 20.01.2025, 12:08
RE: Scripting - by admin - 20.01.2025, 12:24
RE: Scripting - by mariosp - 20.01.2025, 13:55
RE: Scripting - by admin - 20.01.2025, 13:57
RE: Scripting - by Erwin van der Zwart - 20.01.2025, 15:10
RE: Scripting - by mariosp - 20.01.2025, 15:25
RE: Scripting - by mariosp - 21.01.2025, 11:19
RE: Scripting - by admin - 21.01.2025, 11:31

Forum Jump: