Time, Data start,count,cols,fmt – ProSoft Technology 5201-104S-103M User Manual
Page 26
![background image](https://www.manualsdir.com/files/866221/content/doc026.png)
Web Server
Web Page Construction
Page 26 of 35
ProSoft Technology, Inc.
September 28, 2005
5.7.5 <--TIME
-->
This tag displays the current time in the module. The format of the time is
hh:mm:ss.dd (09:00:46.85).
5.7.6 <--DATA
start,count,cols,fmt -->
This tag inserts data from the module's database. The format field of the tag
defines the data type to be derived from the database. For example, if floating-
point data is requested in the format parameter, the module will return data
points that occupy 4-bytes of memory area. The parameters have the following
definitions:
Start
-- This parameter defines the starting register or memory location in the
internal database to be displayed. Values for this parameter range from 0 to the
maximum register value defined in the module. The value selected for the start
address is dependent on the data type referenced. For byte data, the start value
represents the number of bytes from the start of the database. For integer data,
the start value represents the number of words (2-bytes) from the start of the
database. For long and single-precision floating-point data, the start value
represents the number of double words (4-bytes) from the start of the database.
For double precision floating-point data, the start value represents the number of
8-byte offsets from the start of the database.
Count
-- This parameter defines the number of registers or points to be
displayed. If the parameter is set to 1, only one point will be displayed. If the
parameter is set to 20, 20 values will be displayed.
Cols
-- This parameter defines the number of columns to be used when
displaying multiple data points. The valid range for this parameter is 1 to the
maximum number of points selected in the count field. For example, if the count
parameter is set to 20 and the cols parameter is set to 4, the data will be
displayed in 4 columns and 5 rows.
Fmt
-- This parameter contains a standard C-language format string to be used
with each point of data (i.e., %d). The zero fill, width and precision fields in a C-
language formatting string are supported. For example, %10.4f, %04X and %10d
are all valid format strings. The module supports the following data types in the
format field:
byte data -- %c = display as text, %b = display as signed byte value (-128 to
127), %B = display as unsigned byte value (0 to 255)
integer data - %d, %o, %u, %x, and %X
long integer data - %ld, %lo, %lu, %lx, %lX
single-precision float - %f, %e, %g
double-precision float - %Lf, %Le or %Lg
label database record - %r (record from label database file)