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 regulator
#5
32/1/5

Code:
--PID Supply
-- init pid algorithm
if not pTV then
  pTV = PID:init({
    manual    ='32/1/3',        -- Setter PID i manuell ved "1"
    kp    = 1,                -- P-Bånd
    ki    = 300,                 -- I-Tid
    kd    = 1,                  -- D-Tid
    current = '32/1/1',            --Faktisk Verdi
    setpoint = '32/1/7',    --Settpunkt
    inverted = true,        --Inverterer utgangen
    min = 0,            -- Minimum utgangssignal
    max    = 80,        -- Maksimum utgangssignal 
    output = '32/1/5'        --Pådrag
  })
end

-- run algorithm
pTV:run()
log(pTV)
--
Reply


Messages In This Thread
PID regulator - by tomnord - 28.01.2021, 08:04
RE: PID regulator - by admin - 28.01.2021, 09:28
RE: PID regulator - by tomnord - 28.01.2021, 10:28
RE: PID regulator - by Daniel - 28.01.2021, 10:55
RE: PID regulator - by tomnord - 28.01.2021, 14:08
RE: PID regulator - by Daniel - 28.01.2021, 14:22
RE: PID regulator - by admin - 28.01.2021, 14:38
RE: PID regulator - by Erwin van der Zwart - 28.01.2021, 18:50
PID regulator - by tomnord - 29.01.2021, 15:36
RE: PID regulator - by tomnord - 01.02.2023, 09:33
RE: PID regulator - by admin - 01.02.2023, 09:37
RE: PID regulator - by tomnord - 01.02.2023, 10:05
RE: PID regulator - by admin - 01.02.2023, 10:28
RE: PID regulator - by tomnord - 01.02.2023, 11:42
RE: PID regulator - by admin - 01.02.2023, 12:03
RE: PID regulator - by tomnord - 01.02.2023, 12:44

Forum Jump: