ISaGRAF WinCE ViewPAC User Manual , V.1.6 , 1/2017 by ICP DAS
5-12
function refresh_data()
{
if(boolean_val[12]==0)
{
B12.innerText="Ok";
font_B12.color="blue";
B12_blink=0;
}
else
{
B12_blink=1;
}
}
…
<body onLoad="init()">
…
<div style="position: absolute; width: 214px; height: 53px; z-index: 2; left: 102px; top: 79px">
<
font
id=”font_B12” color=”blue” size=”3”>
<b id="
B12
">OK</b>
</font>
</div>
</body>
5.4.2.6 Displaying Float Value With Fixed Digit Number Behind The “.” Symbol
Demo example: vphmi_06 and vphmi_07
The float_str1(para1 , para2 ) function can convert float value to a string with fixed digit number behind
the dot "." symbol
para1 is the float value to be converted, for ex, 1.234567
para2 is the digit number behind the “.” dot symbol, 0 to 6
Ex,
float_str1(1.234567, 3) return “1.234” ,
float_str1(1.234567, 2) return “1.23”
…
function refresh_data()
{
F21.innerText = float_str1(
float_val[21] , 3
) ;
}
Convert float val at Network Address 21 to a string with digit
number = 3 behind the “.” dot symbol
The action of the Text object “B12” is defined
here.
If boolean_val[12]=0, no blink.
However If boolean_val[12]=1, blink.
The layout (or location) of the Text object “B12” is defined
here by the “<div” and “</div>” tags.
The “<font>“ & “</font>” tags can be used for controlling
the font’s color and font’s size.
The declaration of Text object “B12” is defined here by the “<b” tag and id=”B12”
and “</b>” tag, the initial value of this B2 is “OK”
Содержание 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 ...