![]() |
PID in FB editor - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: PID in FB editor (/showthread.php?tid=3423) |
PID in FB editor - KoBra - 17.06.2021 I am using the PID function in FB editor but it is not calculating a value for valve opening. Anybody experienced this before? RE: PID in FB editor - Daniel - 17.06.2021 As far I know FB PID is based on our script version. Have a read trough these threads and it should help you to debug it. https://forum.logicmachine.net/showthread.php?tid=3133&pid=20270#pid20270 https://forum.logicmachine.net/showthread.php?tid=3167&pid=20501#pid20501 RE: PID in FB editor - KoBra - 17.06.2021 I get no output at all. I also removed the PID in FB editor and tried with this info https://openrb.com/example-pid-thermostat-with-lm2/ added the PID to the User Libraries Code: PID = { and added the following script to the Resident Scripts Code: -- init pid algorithm But my output stays 0. I want to control a 3 way valve at the output to get a stable temperature at the valve for cooling. Current is the measured flow temperature Setpoint the requested flow temperature and Output is 0-100% (0-10V) RE: PID in FB editor - Daniel - 18.06.2021 Your setpoint and the output is same group. For PID to work it must be live device with real feedback. RE: PID in FB editor - KoBra - 18.06.2021 (18.06.2021, 07:46)Daniel. Wrote: Your setpoint and the output is same group. For PID to work it must be live device with real feedback. OK, that was the problem, live feedback was already there as it runs to a selector (different PID in cooling and heating) The problem is in the fact it can't be a virtual object. Still in FB editor it won't work. |