Examples To Display Plc Data In An Html Page - Panasonic FP Web-Server2 Hardware And Configuration Manual

Table of Contents

Advertisement

12.1.8.1 Examples to display PLC data in an HTML page

FP Web-Server V2.810 EN
(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. 91).
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. 101)'.
Signed and unsigned Integers
Format
{DT201_5_d}
{DT201_5_u}
{DT201_6_d}
{DT201_5_u}
{DT201_6_+d}
Spaces and zeros
Format
{DT201_6_i
}
{DT201_6_06i}
PLC value
Display
-1 (FFFFhex)
"-1
-1 (FFFFhex)
"65535"
-32768 (8000hex)
"-32768"
-32768 (8000hex)
"32768"
12345 (3039hex)
"+12345"
PLC value
Display
DT201=17
"17
" (HTML suppresses multiple
spaces)
DT201=17
"000017"
HTTP server functions/web pages
"(same as {DT201_5_i})
91

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp web-server

Table of Contents