MAXALRMCALL
timechunk = collecttime / MAXALRMCALL;
collecttime = collecttime - timechunk * MAXALRMCALL;
if (alarm(MAXALRMCALL) == 0)