ISaGRAF WinCE ViewPAC User Manual , V.1.6 , 1/2017 by ICP DAS
5-16
5.4.3.2 Post Word & Long & Float & Timer & String Value to The Controller
…
function Check(form_obj)
{
flag = confirm("Are you sure?");
if(flag)
{
if(GetUserID(form_obj)==false) { return false; }
form_obj.submit();
return true;
}
else
{
return false;
}
}
function refresh_data()
{
L15.innerText=get_long_val(15);
F17.innerText=float_val[17];
}
…
<body onLoad="init()">
…
<div style="position: absolute; width: 195px; height: 25px; z-index: 2; left: 45px; top: 52px" >
L15 = <b id="L15">xxxx</b></div>
<div style="position: absolute; width: 196px; height: 29px; z-index: 3; left: 45px; top: 82px" >
F17 = <b id="F17">xxxx</b></div>
<div style="position:absolute; left:47px; top:131px; width:204px; height:60px">
<form name="form1" method="post" action="./main.dll">
<input name="BEGIN" type="hidden" value="">
<input name="L15" type="text" value="
Enter long val (L15)
">
<input name="F17" type="text" value="
Enter float val (F17)
">
<input name="END" type="hidden" value="">
</form>
</div>
<div style="position:absolute; width:74px; height:31px; left: 234px; top: 150px;">
<input type="button" style="
cursor:hand
" onClick="
return Check(form1)
" value="Enter">
</div>
…
</body>
Demo example:
vphmi_03, vphmi_04,
vphmi_05, vphmi_06 and
vphmi_07
Check( ) is used for
posting any “form”.
Display dynamic value here.
If data is word , please use word_val[ ]
If data is timer , please use timer_val[ ]
If data is string, please use string_val[ ]
text input L15 & F17 inside the “form1” if data is timer, please use
“L” . And “W” for word.“S” for string
“cursor:hand” will display the
mouse arrow as a hand when
entering the button area
When mouse click on this button, it
calls Check( ) to post to the controller
The layout (or location) of the text object “L15” & “F17” are defined
here by the “<div” and “</div>” tags.
Содержание ISaGRAF VP-23W7
Страница 44: ......
Страница 118: ......
Страница 134: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS 9 2 On line help of ICP DAS add on functions function blocks ...
Страница 176: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 16 Appendix C Hardware Interface Dimension ...
Страница 177: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 17 VP 23W7 23W6 Unit mm ...
Страница 178: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 18 VP 25W7 25W6 Unit mm ...
Страница 179: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 19 ...
Страница 180: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 20 VP 41x7 41x6 Unit mm ...
Страница 185: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 25 ...