Справочник Пользователя для Panasonic FP

Скачать
Страница из 194
FP Web-Server V2.11 
 
7.1 Details on the FP Web-Server's Web Page Functions 
79 
d  = decimal, whole-numbered (16-bit, INT
i   = decimal, whole-numbered (16-bit, INT
u  = unsigned decimal, whole-numbered (16-bit, WORD
o  = unsigned octal (16-bit, WORD) (only display, not for data entry) 
x  = unsigned hexadecimal, lower case (16-bit, WORD
X  = unsigned hexadecimal, upper case (16-bit, WORD
f   = floating point number without exponent (32-bit, REAL
e  = floating point number with exponent (small e for exponent, REAL
E  = floating point number with exponent (capital E for exponent, REAL
g  = either e or f, depending on what seems to be more compact (REAL
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[]
Type 
c = a single ASCII character 
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
long Type 
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 page 79). 
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. 
 
 
7.1.8.1  Examples to Display PLC Data in an HTML Page 
a)  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"