ICP DAS USA ISaGRAF WinCE ViewPAC User Manual page 98

Table of Contents

Advertisement

5.4.2.3 Displaying Dynamic Long Integer Data
Demo example: vphmi_03 and vphmi_05
If user want to display the dynamic long integer value (32-bit format), the below code can be used.
...
function refresh_data()
{
L11.innerText = get_long_val(11) ;
}
<body onLoad="init()">
...
<div style="position: absolute; width: 214px; height: 53px; z-index: 2; left: 102px; top: 79px">
<b id="L11"> xxx </b> </div>
...
</body>
5.4.2.4 Displaying Dynamic String Data
If user want to display the dynamic string value (max length is 255), the below code can be used.
...
function refresh_data()
{
S31.innerText = string_val[31] ;
}
...
<body onLoad="init()">
...
<div style="position: absolute; width: 214px; height: 53px; z-index: 2; left: 102px; top: 79px">
<b id="S31"> empty </b> </div>
...
</body>
5-10
(section
The action of the Text object "L11" is defined here.
The layout (or location) of the Text object "L11" is defined here
by the "<div" and "</div>" tags.
The declaration of Text object "L11" is defined here by the
"<b" tag and id="L21" and "</b>" tag , the initial value of
this L11 is "xxx"
The action of the Text object "S31" is defined here.
The layout (or location) of the Text object "S31" is defined
here by the "<div" and "</div>" tags.
The declaration of Text object "S31" is defined here by the "<b" tag
and id="S31" and "</b>" tag, the initial value of this S31 is "empty"
ISaGRAF WinCE ViewPAC User Manual , V.1.6 , 1/2017 by ICP DAS
3.1)

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents