09.12.2021, 09:19
I disabled my scripts.CPU I/O level is now 0.05 1.65 2.92.I used block editor to create PID control for floor heating script.
Here's my script could help me to find why its looping.
Here's my script could help me to find why its looping.
Quote:require('custom.fbeditor20.Control')
Setpoint = grp.getvalue('21/1/0')
Current_value = grp.getvalue('15/1/6')
Manual = nil
Enable_manual_value = nil
Manual_value = nil
Invert = nil
min = 0
max = 100
kp = 200
ki = 10
kd = 0
Output_type = 'bit'
out = fbe_pid_controller(Setpoint, Current_value, Manual, Enable_manual_value, Manual_value, Invert, min, max, kp, ki, kd, Output_type, 'fb__1__Kat_Yerden_Is__tma_1__fbe_pid_controller__id')
if out ~= nil then
grp.write('21/1/5', out)
end