SCARA, 6-Axis and Modules
Technical Support Notes

Article ID: T1003
Date: 3/28/2000
Product: EPSON RC+
Subject: How to create web pages in SPEL+

Purpose
The purpose of this Technical Support Note is to describe how create a simple web page from a SPEL+ program.

Procedure
Create a function in your application to generate the web page, as shown below.  Then call this function at the appropriate times in your application to update status.  This function creates a text file that contains HTML codes. 

Create a directory on your server called RobotStatus.  Then each robot on your system can create it's own status page on the server.  Users can then navigate to the robot status pages using their Internet browser.

Function UpdateWebPage

      String fName$

      fName$ = "\\server\c\RobotStatus\robot1.html"

      WOpen fName$ As #30
      Print #30, "<html>"

      Print #30, "<head>"
      Print #30, "<title>Robot 1 Status</title>"
      Print #30, "</head>"

      Print #30, "<body>"
      Print #30, "<h1>Robot 1 Status</h1>"
      Print #30, "<p>Total Parts: ", g_TotalParts, "</p>"
      Print #30, "<p>Average Cycle Time: ", g_AvgCycleTime, "</p>"
      Print #30, "</body>"

      Print #30, "</html>"

      Close #30

Fend

To view the web page for robot 1, type in the following address in your browser and press Enter.

\\server\c\RobotStatus\robot1.html

Click here to return to the EPSON Robots home page
The Power of Choice!