ISaGRAF WinCE ViewPAC User Manual , V.1.6 , 1/2017 by ICP DAS
4-34
Now please go to the
“head” area
In the “head” area, please modify the sample code to be as below.
// variable to record object's blink state, 0:not blink, 1: blink, For example:
// *********************************
var B12_blink=0; // init as 0:not blink
// *********************************
// function to blink object
var blink_step=0;
function blink_obj()
{
if(blink_step==1)
{
blink_step=0;
// display your object here
// blink B12, For example:
// *********************************
if(B12_blink==1)
{
B12.innerText="Error !" ;
font_B12.color="red";
}
// *********************************
}
else
{
blink_step=1;
// un-display your object here
// blink B12, For example:
// *********************************
if(B12_blink==1)
{
B12.innerText="" ;
font_B12.color="red";
}
// *********************************
}
setTimeout("blink_obj()", blink_period);
}
The “Error !” symbol will blink when the K2 = True
in this example. Please un-mask the code inside
these 3 areas.
Summary of Contents for ISaGRAF VP-23W7
Page 44: ......
Page 118: ......
Page 177: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 17 VP 23W7 23W6 Unit mm ...
Page 178: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 18 VP 25W7 25W6 Unit mm ...
Page 179: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 19 ...
Page 180: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 20 VP 41x7 41x6 Unit mm ...
Page 185: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 25 ...