//following control strategy illustrate how to configure a 1-second timer.//
//powerup initial;
setvariabletrue(enable_T_1s);
set uptimer preset value(1,T_1s);//
//use cyclic flow chart
if (enable_T_1s) then
starttimer(T_1s);
set variable faulse(enable_T_1s);
endif
if (haduptimerexpired(T_1s)) then
setvariabletrue(enable_T_1s);
endif