10.06.2022, 14:09
(10.06.2022, 13:58)admin Wrote: Check that setpoint object address is valid in the pid script.
here is the script
-- init pid algorithm
if not p then
p = PID:init({
current = '32/1/7',
setpoint = '32/1/5',
manual = '32/1/8',
inverted = 0,
output = '32/1/6',
min=0,
max=100,
kp=1,
ki=1,
kd=1
})
end
-- run algorithm
p:run()
and the objects are shown in the attached