User manual

HTTP server functions/web pages
90 FP Web-Server V.2.8
G = like g, but the exponential display also taken into account
(REAL)
s = FPWIN Pro strings with current string length in the "Header"
(STRING[])
S = string without "Header". Generated like with F95. (WORD[])
c = a single ASCII character
long Type
ld = 32-bit decimal, whole-numbered (DINT)
li = 32-bit decimal, whole-numbered (DINT)
lu = 32-bit unsigned decimal, whole-numbered (DWORD)
lo = 32-bit unsigned octal (DWORD)
lx = 32-bit unsigned hexadecimal, lower case (DWORD)
lX = 32-bit unsigned hexadecimal, upper case (DWORD)
precision
A number that defines the number of decimal positions for displaying
floating point numbers (types: 'f' 'e' 'E' 'g' 'G').
When used with 16- or 32-bit integers (types: 'd' 'i' 'u' 'o' 'x' 'X' 'ld' 'li'
'lu' 'lo' 'lx' 'lX') a decimal point is placed in the integer number string.
The number of decimal places defined with the 'precision' ranges from
1 to 9. Refer to Example f.) in Examples to display PLC data in an
HTML Page (see p. 90).
width
A number that gives the minimum length of the field. If the number is
shorter, the field is filled up with spaces (or zeroes).
flags
The following characters are permitted:
+ = The algebraic sign (+ or -) is always indicated.
0 = Leading zeroes are indicated.
' ' = (blank character) Prefix the output value with a blank if the
output value is signed and positive.
# = Forces the output value of the e, E, or f format to contain a
decimal point (but only if digits follow). When used with the g or G
format, the # flag also prevents the truncation of trailing zeros.
See also the information about 'Defining input fields for PLC data on HTML
pages (see "Defining input fields for PLC data on HTML pages" on p. 100)'.
12.1.8.1 Examples to display PLC data in an HTML page
Signed and unsigned Integers
Format
PLC value
Display
{DT201_5_d}
-1 (FFFFhex)
"-1 "(same as {DT201_5_i})
{DT201_5_u}
-1 (FFFFhex)
"65535"
{DT201_6_d}
-32768 (8000hex)
"-32768"
{DT201_5_u}
-32768 (8000hex)
"32768"
{DT201_6_+d}
12345 (3039hex)
"+12345"
Spaces and zeros
Format
PLC value
Display
{DT201_6_i }
DT201=17
"17 " (HTML suppresses multiple