lib/timer.txt
changeset 278 050d31dd7c74
parent 277 f88718b71b6c
child 392 9b88b8b6bccd
equal deleted inserted replaced
273:beb05fe75e0c 278:050d31dd7c74
     1 (*
     1 (*
     2  * (c) 2005 Mario de Sousa
     2  *  This file is part of matiec - a compiler for the programming
     3  *
     3  *  languages defined in IEC 61131-3
     4  * Offered to the public under the terms of the GNU General Public License
     4  *
     5  * as published by the Free Software Foundation; either version 2 of the
     5  *  Copyright (C) 2011  Mario de Sousa (msousa@fe.up.pt)
     6  * License, or (at your option) any later version.
     6  *
     7  *
     7  * See COPYING and COPYING.LESSER files for copyright details.
     8  * This program is distributed in the hope that it will be useful, but
     8  * This library is free software; you can redistribute it and/or
     9  * WITHOUT ANY WARRANTY; without even the implied warranty of
     9  * modify it under the terms of the GNU Lesser General Public
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
    10  * License as published by the Free Software Foundation; either
    11  * Public License for more details.
    11  * version 3 of the License, or (at your option) any later version.
       
    12  *
       
    13  * This library is distributed in the hope that it will be useful,
       
    14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    16  * Lesser General Public License for more details.
       
    17  * 
       
    18  * You should have received a copy of the GNU Lesser General Public
       
    19  * License along with this library; if not, write to the Free Software
       
    20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
       
    21  * USA
    12  *
    22  *
    13  * This code is made available on the understanding that it will not be
    23  * This code is made available on the understanding that it will not be
    14  * used in safety-critical situations without a full and competent review.
    24  * used in safety-critical situations without a full and competent review.
    15  *)
    25  *)
    16 
    26 
    17 (*
    27 (*
    18  * An IEC 61131-3 IL and ST compiler.
    28  * An IEC 61131-3 compiler.
    19  *
    29  *
    20  * Based on the
    30  * Based on the
    21  * FINAL DRAFT - IEC 61131-3, 2nd Ed. (2001-12-10)
    31  * FINAL DRAFT - IEC 61131-3, 2nd Ed. (2001-12-10)
    22  *
    32  *
    23  *)
    33  *)
    27  * and function blocks defined in the standard.
    37  * and function blocks defined in the standard.
    28  *
    38  *
    29  * Timer Function Blocks
    39  * Timer Function Blocks
    30  * ---------------------
    40  * ---------------------
    31  *
    41  *
    32  * NOTE: The timing diagrams in the comments were taken from the 
    42  * NOTE: The timing diagrams in the comments (except the state variable) 
    33  *       IEC 61131-3 standard.
    43  *       were taken from the IEC 61131-3 standard.
    34  *)
    44  *)
    35 
    45 
    36 
    46 
    37 
    47 
    38 (****************************************************************
    48 (****************************************************************