# HG changeset patch
# User etisserant
# Date 1190646534 -7200
# Node ID ff82e7088ec554d77dd72f61d5771f2c46e113b4
# Parent  805abb954de21d8cdce68f6059ee06a869343b64
Comments...

diff -r 805abb954de2 -r ff82e7088ec5 runtime/plc_common_main.c
--- a/runtime/plc_common_main.c	Mon Sep 24 17:08:35 2007 +0200
+++ b/runtime/plc_common_main.c	Mon Sep 24 17:08:54 2007 +0200
@@ -26,21 +26,35 @@
 
 static int tick = 0;
 
+/*
+ * Prototypes of funcions exported by plugins 
+ **/
 %(calls_prototypes)s
 
+/*
+ * Retrive input variables, run PLC and publish output variables 
+ **/
 void __run()
 {
     %(retrive_calls)s
+    
     config_run__(tick++);
+    
     %(publish_calls)s
 }
 
+/*
+ * Initialize variables according to PLC's defalut values,
+ * and then init plugins with that values  
+ **/
 void __init()
 {
     config_init__();
     %(init_calls)s
 }
-
+/*
+ * Calls plugin cleanup proc.
+ **/
 void __cleanup()
 {
     %(cleanup_calls)s