08.07.2022, 11:56
Hello to everynone,
I have completed a project using 13 pid control in one script. Everything is working except from the invert function in pid. for example one pid control is the following
if not p then
p = PID:init({
current = '0/0/1',
setpoint = '0/0/2',
manual = '32/1/1',
inverted = true,
output = '32/1/2',
min=0,
max=100,
kp=1,
ki=1,
kd=1
})
end
p:run()
but when i an writhing false in the field inverted nothing is happened.
how i will invert the logic (heating cooling)?
Thank you in advance
I have completed a project using 13 pid control in one script. Everything is working except from the invert function in pid. for example one pid control is the following
if not p then
p = PID:init({
current = '0/0/1',
setpoint = '0/0/2',
manual = '32/1/1',
inverted = true,
output = '32/1/2',
min=0,
max=100,
kp=1,
ki=1,
kd=1
})
end
p:run()
but when i an writhing false in the field inverted nothing is happened.
how i will invert the logic (heating cooling)?
Thank you in advance