ISaGRAF WinCE ViewPAC User Manual , V.1.6 , 1/2017 by ICP DAS
5-8
5.4.2 More About The refresh_data( ) Function And Dynamic Data
Note:
The code, variable name and function name is case sensitive. For example,
r
efresh_data( ) is
correct, however
R
efresh_data( ) is not correct.
The refresh_data( ) function must always apply in the main.htm and other multi-pages. It is called when
the Internet Explorer has received the requested data from the controller. The calling period is about
1.25 to 5 seconds depends on the communication quality
The refresh_data( ) is often used for refreshing the dynamic data. For example, the Boolean value ,
integer value, timer value or float value of the variables in the ISaGRAF project.
The Internet Explorer can access to the data in the ISaGRAF project only when they are assigned a
unique Modbus Network Address No (refer to
). The Web HMI only accepts Network
Address No in the range of 1 to 1024. The data without a Network Address No (No. = 0) or not in the
range of (1 to 1024) is not accessible by the Internet Explorer.
The main.htm and other multi-pages can use the below variable array to access to the ISaGRAF’s data
(case sensitive). The identifier appeared in the [ ] is the related Network Address No. For example
boolean_val[2] means the Boolean value of the ISaGRAF Boolean data which is assigned with the
Network Address No. = 2.
To access to long integer value (32-bit integer) please use get_long_val( ) function. For example,
get_long_val(11) , get_long_val(13) , get_long_val(15).
Note
:
The long integer, timer and float variable’s Network Address No. must occupy 2 No. in the ISaGRAF
project (refer to section 4.2 of “User’s Manual of ISaGRAF Embedded Controllers” or in the CD-ROM:
\napdos\isagraf\vp-25w7-23w7\english-manu\ ” User_Manual_I_8xx7.pdf”)
.
That means if you assign a Network Address No.= 11 to a Real type variable(or Timer or integer will have
32-bit value – larger than 32767 or smaller than -32768), the next No. 12 should not assigned to any
other variable in the ISaGRAF project. However you may assign No.=13 to one another variable.
boolean_val
Boolean value in the ISaGRAF
word_val
word value in the ISaGRAF, -32768 to +32767
float_val
real value in the ISaGRAF, for ex, 1.234 , -0.456E-02
timer_val
timer value in the ISaGRAF, unit is ms, max = 86399999 (< 1 day)
string_val
message value in the ISaGRAF, max string length is 255
get_long_val( )
long integer value in the ISaGRAF, -2147483648 ~ +2147483647
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 ...