* Functions and variables provied by generated C softPLC
extern int common_ticktime__;
* Functions and variables provied by plc.c
void run(long int tv_sec, long int tv_nsec);
#define maxval(a,b) ((a>b)?a:b)
* Functions and variables provied by generated C softPLC
void config_run__(int tick);
void config_init__(void);
* Functions and variables to export to generated C softPLC
* Prototypes of functions exported by plugins
* Retrieve input variables, run PLC and publish output variables
* Initialize variables according to PLC's defalut values,
* and then init plugins with that values
int __init(int argc,char **argv)
* Calls plugin cleanup proc.