lib/pid_st.txt
changeset 276 1679f514f38a
parent 192 c6c2a3d487ac
equal deleted inserted replaced
275:af3d0e3ac65d 276:1679f514f38a
       
     1 (* Following taken directly from the IEC 61131.3 draft standard *)
       
     2 
       
     3 (*
       
     4  * An IEC 61131-3 IL and ST compiler.
       
     5  *
       
     6  * Based on the
       
     7  * FINAL DRAFT - IEC 61131-3, 2nd Ed. (2001-12-10)
       
     8  *
       
     9  *)
       
    10 
     1  FUNCTION_BLOCK PID
    11  FUNCTION_BLOCK PID
     2    VAR_INPUT
    12    VAR_INPUT
     3      AUTO : BOOL ;        (* 0 - manual , 1 - automatic *)
    13      AUTO : BOOL ;        (* 0 - manual , 1 - automatic *)
     4      PV : REAL ;          (* Process variable *)
    14      PV : REAL ;          (* Process variable *)
     5      SP : REAL ;          (* Set point *)
    15      SP : REAL ;          (* Set point *)