beautypg.com

5 web content - dynamic data, 1 static html files, 1 reg parameter – ocs register read reference – Horner APG XL4 OCS HE-ETN300 User Manual

Page 73: Web content - dynamic data, Static html files, Reg parameter – ocs register read reference

background image

SUP0740-07

CH.11

11/30/2009

Page 73 of 98

# 958

consist of up to 8 characters, followed by an optional dot, and an optional extension with up to 3
characters.

Web content files can be stored into the OCS file system media (such as Compact Flash / Micro
SD), by temporarily plugging the media into a PC with an installed card reader, or via Ethernet
using FTP (File Transfer Protocol). See Chapter 10 for information on using the Ethernet Module
FTP Server.

To keep the web content files organized, multiple files, directories and subdirectories can be
created on the OCS file system media as desired. Normally, it is a good practice to store an
index.htm file in the root directory as a “home page”, but this is not required.

11.5

Web Content - Dynamic Data


An OCS HTML file is either static or dynamic. The application engineer creates a static HTML file
and stores it on the OCS file system media. As a result of special markups in the static HTML file,
the HTTP Server creates dynamic HTML files to access OCS Registers. This technique allows a
static HTML file to read and write OCS registers dynamically.

11.5.1 Static

Html

Files


Custom HTML files are created to suit the application. These files can be created with a simple
text editor or by using a 3

rd

party HTML Editor.


Within the static HTML file,