targets/plc_main_head.c
changeset 1475 de4ee16f7c6c
parent 1463 de311ffe3961
child 1981 d0718654d9b0
--- a/targets/plc_main_head.c	Sat Dec 06 19:31:51 2014 +0000
+++ b/targets/plc_main_head.c	Wed Oct 21 15:00:32 2015 +0100
@@ -25,15 +25,13 @@
 IEC_TIME __CURRENT_TIME;
 IEC_BOOL __DEBUG = 0;
 unsigned long __tick = 0;
+char *PLC_ID = NULL;
 
 /*
  *  Variable generated by C softPLC and plugins
  **/
 extern unsigned long greatest_tick_count__;
 
-/* Effective tick time with 1ms default value */
-static long long Ttick = 1000000;
-
 /* Help to quit cleanly when init fail at a certain level */
 static int init_level = 0;
 
@@ -72,8 +70,9 @@
     int res = 0;
     init_level = 0;
     
-    if(common_ticktime__)
-        Ttick = common_ticktime__;
+    /* Effective tick time with 1ms default value */
+    if(!common_ticktime__)
+        common_ticktime__ = 1000000;
 
     config_init__();
     __init_debug();