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.

PID script
#2
Hi,

You are probably missing the functions that are in the user lib, did you add these to user.pid?

To change the setpoint to a static value you probably need to change the function that gets the value from the object in user.pid, but i would advice to create a virtual object and just set the static value there once.

Next to that you also need require('user.pid') at the start of your script.

There is also a PID block in the FBEditor, maybe this one fits better to your needs.

BR,

Erwin
Reply


Messages In This Thread
PID script - by josdegroot - 12.12.2019, 21:22
RE: PID script - by Erwin van der Zwart - 12.12.2019, 22:34
RE: PID script - by josdegroot - 24.12.2019, 18:50
RE: PID script - by Erwin van der Zwart - 25.12.2019, 08:42
RE: PID script - by josdegroot - 25.12.2019, 09:21
RE: PID script - by Erwin van der Zwart - 25.12.2019, 11:00
RE: PID script - by josdegroot - 25.12.2019, 16:05
RE: PID script - by Erwin van der Zwart - 25.12.2019, 16:13
RE: PID script - by josdegroot - 25.12.2019, 16:15
RE: PID script - by admin - 25.12.2019, 11:09
RE: PID script - by stavros - 10.06.2022, 12:48
RE: PID script - by admin - 10.06.2022, 12:54
RE: PID script - by stavros - 10.06.2022, 13:57
RE: PID script - by admin - 10.06.2022, 13:58
RE: PID script - by stavros - 10.06.2022, 14:09
RE: PID script - by admin - 10.06.2022, 14:12
RE: PID script - by stavros - 10.06.2022, 14:35
RE: PID script - by manos@dynamitec - 12.02.2024, 21:42
RE: PID script - by Daniel - 13.02.2024, 08:34

Forum Jump: