lib/derivative_st.txt
changeset 276 1679f514f38a
parent 192 c6c2a3d487ac
equal deleted inserted replaced
275:af3d0e3ac65d 276:1679f514f38a
       
     1 
       
     2 (* Following taken directly from the IEC 61131.3 draft standard *)
       
     3 
       
     4 (*
       
     5  * An IEC 61131-3 IL and ST compiler.
       
     6  *
       
     7  * Based on the
       
     8  * FINAL DRAFT - IEC 61131-3, 2nd Ed. (2001-12-10)
       
     9  *
       
    10  *)
       
    11 
       
    12 
     1  FUNCTION_BLOCK DERIVATIVE
    13  FUNCTION_BLOCK DERIVATIVE
     2    VAR_INPUT
    14    VAR_INPUT
     3      RUN : BOOL ;          (* 0 = reset                  *)
    15      RUN : BOOL ;          (* 0 = reset                  *)
     4      XIN : REAL ;          (* Input to be differentiated *)
    16      XIN : REAL ;          (* Input to be differentiated *)
     5      CYCLE : TIME ;        (* Sampling period            *)
    17      CYCLE : TIME ;        (* Sampling period            *)