diff -r 8815b44be31e -r 9b5cb90297e4 targets/plc_main_head.c --- a/targets/plc_main_head.c Fri May 24 18:32:23 2024 +0200 +++ b/targets/plc_main_head.c Fri May 24 18:47:30 2024 +0200 @@ -7,7 +7,7 @@ /* * Prototypes of functions provided by generated C softPLC **/ -void config_run__(unsigned long tick); +void config_run__(unsigned int tick); void config_init__(void); /* @@ -24,13 +24,13 @@ **/ IEC_TIME __CURRENT_TIME; IEC_BOOL __DEBUG = 0; -unsigned long __tick = 0; +unsigned int __tick = 0; char *PLC_ID = NULL; /* * Variable generated by C softPLC and plugins **/ -extern unsigned long greatest_tick_count__; +extern unsigned int greatest_tick_count__; /* Help to quit cleanly when init fail at a certain level */ static int init_level = 0;