DATATYPE COUNTER
        DINT        PRE;
        DINT        ACC;
        BOOL        CU;
        BOOL        CD;
        BOOL        DN;
        BOOL        OV;
        BOOL        UN;
END_DATATYPE

DATATYPE TIMER
        DINT        PRE;
        DINT        ACC;
        BOOL        EN;
        BOOL        TT;
        BOOL        DN;
        BOOL        FS;
        BOOL        LS;
        BOOL        OV;
        BOOL        ER;
END_DATATYPE












