EasyManua.ls Logo

Panasonic FP Web-Server2 - Page 114

Panasonic FP Web-Server2
195 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
HTTP server functions/web pages
FP Web-Server V2.810 EN 113
Example 1: Automatic refresh of an html page after sending PLC data
Enter the following lines in the file "s_m_done.htm":
<html><head><title>DONE</title></head><body>
<script language="JavaScript">
opener.location.reload(true);
window.close();
</script></body></html>
Comments:
This script also automatically closes the default window OK or DONE
Find a copy of this file in Example - FTP and
Datalogging\FPWEB_FTP\http in your installation directory
Using this file you can execute Java Script applications after sending
PLC data
The file "s_m_done.htm" must not contain PLC data fields, e.g.
{DT100_6_d}
Restart the FP Web-Server unit after you have modified the file
"s_m_done.htm". (When modifying other HTM files, the unit does not
have to be restarted.)
Example 2: Automatic refresh of an HTML page after sending PLC data, but without closing
the OK window automatically
Using this script you have to click [OK] to close the OK window
<html><head><title>DONE</title></head><body>
<p align="center"><font face="Arial"><strong><big>FP
Web-Server</big><br>
</strong><small>Data values transfered to PLC.</small></font></p>
<form><div align="center"><center><p>
<input type="button" value="OK" + " onClick="self.close()"></p>
</center></div></form>
<script language="JavaScript">
opener.location.reload(true);
</script></body></html>

Table of Contents

Related product manuals