ICP DAS USA ISaGRAF WinCE ViewPAC User Manual page 85

Table of Contents

Advertisement

We need a function "Check_L21 to check the entered T1 value and post it to the ViewPAC.
Please un-mask the sample code to be as below.
// form sample, to check value of L21 & then post val to controller
// For example:
// ********************************************************************************
function Check_L21()
{
var val=form_L21.L21.value;
if(val>12000 || val<4000)
{
alert("T1's value should be in the range of 4000 to 12000");
return;
}
Check(form_L21); // post value to the controller
}
// ********************************************************************************
And also inside the "refresh_data() " function, please insert below code.
// To refresh displayed data, this function is called by IE about every 1.5 sec later
function refresh_data()
{
B1.src = "./img/circle_blue" + boolean_val[1] + ".jpg";
B2.src = "./img/cmd" + boolean_val[2] + ".jpg";
B11.src = "./img/big_Tcircle_red" + boolean_val[11] + ".jpg";
if(boolean_val[12]==0)
{
B12.innerText="Ok";
font_B12.color="blue";
B12_blink=0;
}
else
{
B12_blink=1;
}
T1.innerText=timer_val[21] + " ms";
}
ISaGRAF WinCE ViewPAC User Manual , V.1.6 , 1/2017 by ICP DAS
4-35

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vp-25w7Vp-23w7Vp-4137Vp-25w6Vp-23w6Vp-4136

Table of Contents