lib/ramp_st.txt
changeset 276 1679f514f38a
parent 0 fb772792efd1
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 RAMP
    11  FUNCTION_BLOCK RAMP
     2    VAR_INPUT
    12    VAR_INPUT
     3      RUN : BOOL ;      (* 0 - track X0, 1 - ramp to/track X1 *)     
    13      RUN : BOOL ;      (* 0 - track X0, 1 - ramp to/track X1 *)     
     4      X0,X1 : REAL ;
    14      X0,X1 : REAL ;
     5      TR : TIME ;       (* Ramp duration *)
    15      TR : TIME ;       (* Ramp duration *)