runtime/plc_common_main.c
changeset 137 187a4e2412e5
parent 57 3b53f9a509d9
child 178 2390b409eb93
equal deleted inserted replaced
136:f49f586a0a43 137:187a4e2412e5
    26 
    26 
    27 static int tick = 0;
    27 static int tick = 0;
    28 static int init_level=0;
    28 static int init_level=0;
    29 
    29 
    30 /*
    30 /*
    31  * Prototypes of funcions exported by plugins 
    31  * Prototypes of functions exported by plugins 
    32  **/
    32  **/
    33 %(calls_prototypes)s
    33 %(calls_prototypes)s
    34 
    34 
    35 /*
    35 /*
    36  * Retrive input variables, run PLC and publish output variables 
    36  * Retrieve input variables, run PLC and publish output variables 
    37  **/
    37  **/
    38 void __run()
    38 void __run()
    39 {
    39 {
    40     %(retrive_calls)s
    40     %(retrieve_calls)s
    41     
    41     
    42     config_run__(tick++);
    42     config_run__(tick++);
    43     
    43     
    44     %(publish_calls)s
    44     %(publish_calls)s
    45 }
    45 }