/*******************************************/ /* FILE GENERATED BY iec2c */ /* Editing this file is not recommended... */ /*******************************************/ #include "iec_std_lib.h" // RESOURCE RES0 extern unsigned long long common_ticktime__; #include "accessor.h" #include "POUS.h" #include "Config0.h" __DECLARE_GLOBAL(BOOL,RES0,RUN_BIT) #include "POUS.c" BOOL MAINTASK; MAIN RES0__INSTANCE0; #define INSTANCE0 RES0__INSTANCE0 void RES0_init__(void) { BOOL retain; retain = 0; __INIT_GLOBAL(BOOL,RUN_BIT,__INITIAL_VALUE(__BOOL_LITERAL(FALSE)),retain) MAINTASK = __BOOL_LITERAL(FALSE); MAIN_init__(&INSTANCE0,retain); } void RES0_run__(unsigned long tick) { MAINTASK = !(tick % 1); if (MAINTASK) { MAIN_body__(&INSTANCE0); } }