JavaLikeCalc.JavaScript
if(f_start)	isErr = false, alBlnk = false;

//Display typical for st_open
stCur = -1;
if(st_open == true || st_close == false) {
	fillColor = (stVal=digStts.parse(0,";").parse(1,"-")).length ? stVal : "green";
	stCur = 1;
}
else if(st_open == false || st_close == true) {
	fillColor = (stVal=digStts.parse(1,";").parse(1,"-")).length ? stVal : "blue";
	stCur = 0;
}
else { fillColor = "grey"; return; }

//Notification create
if(ntf.length && (ntf.toInt() == stCur) != isErr) {
	if((isErr=(ntf.toInt()==stCur)))	alarm = "50|"+NAME+"|"+ntf.parse(2,":")+".|"+ntf.parse(1,":");
	else if(alarmSt&0x100)	alarm = "1|"+NAME+"||1";
}
if(!isErr && alarmSt&0x100 && !(alarmSt&0x10000)) alarm = "";
if(alarmSt&0x100) {
	if(!(alarmSt&0x10000) || alBlnk)	fillColor = isErr ? "red" : fillColor;
	else fillColor = "gray";
	alBlnk = !alBlnk;
}