ISaGRAF WinCE ViewPAC User Manual , V.1.6 , 1/2017 by ICP DAS
5-10
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>
The action of the Text object “L11” is defined here.
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 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”
The layout (or location) of the Text object “S31” is defined
here by the “<div” and “</div>” tags.
The layout (or location) of the Text object “L11” is defined here
by the “<div” and “</div>” tags.
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 ...