etisserant@0: (* msousa@267: * matiec - a compiler for the programming languages defined in IEC 61131-3 etisserant@0: * msousa@267: * Copyright (C) 2003-2011 Mario de Sousa (msousa@fe.up.pt) etisserant@0: * msousa@267: * This program is free software: you can redistribute it and/or modify msousa@267: * it under the terms of the GNU General Public License as published by msousa@267: * the Free Software Foundation, either version 3 of the License, or msousa@267: * (at your option) any later version. msousa@267: * msousa@267: * This program is distributed in the hope that it will be useful, msousa@267: * but WITHOUT ANY WARRANTY; without even the implied warranty of msousa@267: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the msousa@267: * GNU General Public License for more details. msousa@267: * msousa@267: * You should have received a copy of the GNU General Public License msousa@267: * along with this program. If not, see . msousa@267: * etisserant@0: * etisserant@0: * This code is made available on the understanding that it will not be etisserant@0: * used in safety-critical situations without a full and competent review. etisserant@0: *) etisserant@0: etisserant@0: (* msousa@267: * An IEC 61131-3 compiler. etisserant@0: * etisserant@0: * Based on the etisserant@0: * FINAL DRAFT - IEC 61131-3, 2nd Ed. (2001-12-10) etisserant@0: * etisserant@0: *) etisserant@0: msousa@267: (******************************************************************************************************* msousa@267: * This is the library conatining the standard functions and function blocks defined in the standard. * msousa@267: ******************************************************************************************************* etisserant@0: *) etisserant@0: msousa@267: (* The standard functions *) msousa@267: {#include "standard_functions.txt" } lbessard@32: msousa@267: (* The standard function blocks *) etisserant@0: {#include "edge_detection.txt" } etisserant@0: {#include "bistable.txt" } etisserant@0: {#include "counter.txt" } lbessard@190: {#include "timer.txt" } lbessard@192: {#include "derivative_st.txt" } lbessard@192: {#include "hysteresis_st.txt" } lbessard@192: {#include "integral_st.txt" } lbessard@192: {#include "pid_st.txt" } lbessard@192: {#include "ramp_st.txt" } msousa@267: msousa@267: (* Some usefull non-standard function blocks *) edouard@251: {#include "sema.txt" }