More About The Refresh_Data( ) Function And Dynamic Data - ICP DAS USA ISaGRAF WinCE ViewPAC User Manual

Table of Contents

Advertisement

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, refresh_data( ) is
correct, however Refresh_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
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.
boolean_val
word_val
float_val
timer_val
string_val
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).
get_long_val( )
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.
5-8
Boolean value in the ISaGRAF
word value in the ISaGRAF, -32768 to +32767
real value in the ISaGRAF, for ex, 1.234 , -0.456E-02
timer value in the ISaGRAF, unit is ms, max = 86399999 (< 1 day)
message value in the ISaGRAF, max string length is 255
long integer value in the ISaGRAF, -2147483648 ~ +2147483647
ISaGRAF WinCE ViewPAC User Manual , V.1.6 , 1/2017 by ICP DAS
section
4.1.5). The Web HMI only accepts Network

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents