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.

BOOSTER CONDIZIONATO
#21
(20.04.2020, 16:00)admin Wrote: if value == true then and if value then work the same when value variable type is Boolean (true/false). If value for 7/0/0 is true then summer mode part is executed otherwise winter mode.
Thanks Edgard,

I understand, now I try it and let you know if it works as expected, good evening
Reply
#22
(20.04.2020, 06:54)admin Wrote: Try this:
Code:
value_1 = grp.getvalue('7/0/0')
value_3 = grp.getvalue('6/0/1')

temp = grp.getvalue('2/2/1')
setpoint = grp.getvalue('2/2/11')
delta = grp.getvalue('3/1/201')

out = false

if not value_3 then
  if value1 then
    out = delta <= (setpoint - temp)
  else
    out = delta <= (temp - setpoint)
  end
end

grp.write('3/0/206', out)
sorry Edgard,
in this first script:

value_1 = grp.getvalue ('7/0/0')
value_3 = grp.getvalue ('6/0/1')

temp = grp.getvalue ('2/2/1')
setpoint = grp.getvalue ('2/2/11')
delta = grp.getvalue ('3/1/201')

out = false

if not value_3 then
if value1 then
out = delta <= (setpoint - temp) - I need this in winter
else
out = delta <= (temp - setpoint) - I need this in the summer
end
end

grp.write ('3/0/206', out)


in WINTER (7/0/0 = 1)
3/0/206 = 1 when the setpoint <temp
3/0/206 = 0 when the setpoint> temp

WORKS IN THE OPPOSITE
I had to do this:

value_1 = grp.getvalue ('7/0/0')
value_3 = grp.getvalue ('6/0/1')

temp = grp.getvalue ('2/2/1')
setpoint = grp.getvalue ('2/2/11')
delta = grp.getvalue ('3/1/201')

out = false

if not value_3 then
   if not value1 then
     out = delta <= (setpoint - temp)
   else
     out = delta <= (temp - setpoint)
   end
end

grp.write ('3/0/206', out)
Reply
#23
(20.04.2020, 18:10)Hosutech Wrote:
(20.04.2020, 06:54)admin Wrote: Try this:
Code:
value_1 = grp.getvalue('7/0/0')
value_3 = grp.getvalue('6/0/1')

temp = grp.getvalue('2/2/1')
setpoint = grp.getvalue('2/2/11')
delta = grp.getvalue('3/1/201')

out = false

if not value_3 then
  if value1 then
    out = delta <= (setpoint - temp)
  else
    out = delta <= (temp - setpoint)
  end
end

grp.write('3/0/206', out)
sorry Edgard,
in this first script:

value_1 = grp.getvalue ('7/0/0')
value_3 = grp.getvalue ('6/0/1')

temp = grp.getvalue ('2/2/1')
setpoint = grp.getvalue ('2/2/11')
delta = grp.getvalue ('3/1/201')

out = false

if not value_3 then
if value1 then
out = delta <= (setpoint - temp) - I need this in winter
else
out = delta <= (temp - setpoint) - I need this in the summer
end
end

grp.write ('3/0/206', out)


in WINTER (7/0/0 = 1)
3/0/206 = 1 when the setpoint <temp
3/0/206 = 0 when the setpoint> temp

WORKS IN THE OPPOSITE
I had to do this:

value_1 = grp.getvalue ('7/0/0')
value_3 = grp.getvalue ('6/0/1')

temp = grp.getvalue ('2/2/1')
setpoint = grp.getvalue ('2/2/11')
delta = grp.getvalue ('3/1/201')

out = false

if not value_3 then
   if not value1 then
     out = delta <= (setpoint - temp)
   else
     out = delta <= (temp - setpoint)
   end
end

grp.write ('3/0/206', out)
ok Edgard works correctly, if you have something to think about the previous message, according to me it is now perfect and for this I thank you very much, I have been trying for months and I couldn't have done it.

I salute you
Reply


Forum Jump: