beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 180

background image

U

SING A

C

USTOM

W

EB

S

ITE

V

LINX

F

IELDBUS

G

ATEWAY

M

ANAGER

U

SER

M

ANUAL

P

AGE

164

available within the database. Tags can be added to the page by double-clicking
them in the right-hand list; they can be removed by double-clicking them in the
left-hand list, or by pressing the

Del

key while the tag is selected. The Up and

Down buttons can be used to move tags within the list. Drag-and-drop operation
may one day be implemented to allow easier manipulation of this list!

U

SING A

C

USTOM

W

EB

S

ITE

While the standard web pages provide quick-and-easy access to the data within the terminal,
you may find that your inability to edit their precise formatting leaves your artistic
capabilities somewhat frustrated. You may thus use the terminal’s custom site facility to
create a completely custom web site using your favorite third-party HTML editor, and—by
inserting certain special sequences and storing the resulting files on the Gateway’s
CompactFlash card—expose this site using the Gateway’s web server.

C

REATING THE

S

ITE

The web site may use any HTML facilities supported by your browser, but must not use ASP,
CGI or other server-side tricks. The filenames used for the HTML files and associated
graphics must also comply with the old-style 8.3 naming convention. This means that file
extensions will be—for example—

HTM

instead of

HTML

, and

JPG

instead of

JPEG

. This also

means that the body of the filename must be eight characters or less, and that you must not
rely on the difference between upper- and lower-case to differentiate between pages. You
may use any directory structure, as long as you once again ensure that your directories
observe the 8.3 naming convention and do not rely on case differences.

E

MBEDDING

D

ATA

To embed tag data within a web page, insert the sequence

[[N]]

, replacing

N

with the index

number of the tag in question. This index number is displayed on the status bar when a tag is
selected within the Data Tag window, and more-or-less corresponds to the order in which the
tags were created. When the web page containing this sequence is served, the sequence will
be replaced by the current value of the tag, formatted according to the tag’s properties.

D

EPLOYING THE

S

ITE

To deploy your custom web site, copy it into the

\WEB

directory on the CompactFlash card to

be installed in the terminal. To copy the files, either mount the card as a drive on your PC as
described at the start of this manual, or use a suitable card writer connected to your PC. Make
sure that the Enable Custom Site property is set, and the custom site will appear on the web
server menu. When the site is selected, a file called

DEFAULT.HTM

within the

\WEB

directory

will be displayed. Beyond that point, navigation is according to the links within the site.

C

OMPACT

F

LASH

A

CCESS

Note that in order to serve custom web pages—or to provide access to the Gateway’s data
logger—the web server needs to be able to access the unit’s CompactFlash card. If you have
mounted the card as a drive on your PC and performed write operations, you may have to
wait a minute or so for the PC to unlock the card and allow the terminal to get access. If you