12.12.2019, 22:34
(This post was last modified: 12.12.2019, 22:46 by Erwin van der Zwart.)
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
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