targets/plc_main_head.c
changeset 3947 9b5cb90297e4
parent 2503 6ffeffb6d635
equal deleted inserted replaced
3946:8815b44be31e 3947:9b5cb90297e4
     5 #include "beremiz.h"
     5 #include "beremiz.h"
     6 #include <string.h>
     6 #include <string.h>
     7 /*
     7 /*
     8  * Prototypes of functions provided by generated C softPLC
     8  * Prototypes of functions provided by generated C softPLC
     9  **/
     9  **/
    10 void config_run__(unsigned long tick);
    10 void config_run__(unsigned int tick);
    11 void config_init__(void);
    11 void config_init__(void);
    12 
    12 
    13 /*
    13 /*
    14  * Prototypes of functions provided by generated target C code
    14  * Prototypes of functions provided by generated target C code
    15  * */
    15  * */
    22 /*
    22 /*
    23  *  Variables used by generated C softPLC and plugins
    23  *  Variables used by generated C softPLC and plugins
    24  **/
    24  **/
    25 IEC_TIME __CURRENT_TIME;
    25 IEC_TIME __CURRENT_TIME;
    26 IEC_BOOL __DEBUG = 0;
    26 IEC_BOOL __DEBUG = 0;
    27 unsigned long __tick = 0;
    27 unsigned int __tick = 0;
    28 char *PLC_ID = NULL;
    28 char *PLC_ID = NULL;
    29 
    29 
    30 /*
    30 /*
    31  *  Variable generated by C softPLC and plugins
    31  *  Variable generated by C softPLC and plugins
    32  **/
    32  **/
    33 extern unsigned long greatest_tick_count__;
    33 extern unsigned int greatest_tick_count__;
    34 
    34 
    35 /* Help to quit cleanly when init fail at a certain level */
    35 /* Help to quit cleanly when init fail at a certain level */
    36 static int init_level = 0;
    36 static int init_level = 0;
    37 
    37 
    38 /*
    38 /*