Btext start,on_text,off_text, Bimage start,on_file,off_file,alignment – ProSoft Technology 5201-104S-103M User Manual

Page 27

Advertising
background image

Web Page Construction

Web Server

ProSoft Technology, Inc.

Page 27 of 35

September 28, 2005

5.7.7 <--BTEXT

start,on_text,off_text

-->

This tag displays a text value representing the state of a single binary point. The
parameters have the following definitions:

Start

-- This parameter defines the address of the binary point in the internal

database. Each bit is individually accessible from the database. The first bit in the
database has an address of 0. The first bit of word 2 in the database is 16.
Therefore, to use this point, enter 16 for the parameter.

On_text

-- This is the text string to be displayed if the bit is set (on). The string

cannot contain any space or the ',' characters. Example strings are On,
Pump_On, Power_On and Running.

Off_text

-- This is the text string to be displayed if the bit is clear (off). The string

cannot contain any space or the ',' characters. Example strings are Off,
Pump_Off, Power_Off and Stopped.

5.7.8 <--BIMAGE

start,on_file,off_file,alignment -->

This tag displays a user defined image file based on the state of a single binary
point. The parameters have the following definitions:

Start

-- This parameter defines the address of the binary point in the internal

database. Each bit is individually accessible from the database. The first bit in the
database has an address of 0. The first bit of word 2 in the database is 16.
Therefore, to use this point, enter 16 for the parameter.

On_file

-- This is the name of the file to be displayed if the bit is set (on).

Off_file

-- This is the name of the file to be displayed if the bit is clear (off).

Alignment

-- This parameter defines the placement of text around the inserted

image. The single character values for the parameter are as follows:

T

-- align text at the top of the image.

M

-- align text in the middle of the image.

B

-- align text at the bottom of the image.

R

-- align text to the right of the image

L

-- align text to the left of the image.

5.8

Automatically Refreshing a Page

Many times you will want the displayed Web page to automatically display. There
are several methods to accomplish this task. The simplest is to place a <meta>
command in the <HEAD> section of the HTML file to force the browser to request
the page. The format for the auto-refresh <meta> command is a follows:

Advertising