ICP DAS USA ISaGRAF WinCE ViewPAC User Manual page 104

Table of Contents

Advertisement

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"
<input name="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>
...
"cursor:hand" will display the
</body>
mouse arrow as a hand when
entering the button area
5-16
The layout (or location) of the text object "L15" & "F17" are defined
here by the "<div" and "</div>" tags.
type="text"
type="text"
text input L15 & F17 inside the "form1" if data is timer, please use
"L" . And "W" for word."S" for string
ISaGRAF WinCE ViewPAC User Manual , V.1.6 , 1/2017 by ICP DAS
Demo example:
vphmi_03, vphmi_04,
vphmi_05, vphmi_06 and
vphmi_07
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[ ]
value="Enter long val (L15)">
value="Enter float val (F17)">
When mouse click on this button, it
calls Check( ) to post to the controller
Check( ) is used for
posting any "form".

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents