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
#15
(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

Attached Files Thumbnail(s)
   
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: