| FP | 7.1 Details on the FP | ||
|
|
|
| |
|
|
|
| |
| Type | d = decimal, |
| |
|
| i = decimal, |
| |
|
| u = unsigned decimal, |
| |
|
| o = unsigned octal |
| |
|
| x = unsigned hexadecimal, lower case |
| |
|
| X = unsigned hexadecimal, upper case |
| |
|
| f = floating point number without exponent |
| |
|
| 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[]) |
| |
|
| c = a single ASCII character |
| |
| long Type | ld = |
| |
|
| li = |
| |
|
| lu = |
| |
|
| lo = |
| |
|
| lx = |
| |
|
| lX = |
| |
| 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 | ||
|
| 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 |
| |
|
| 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.1Examples to Display PLC Data in an HTML Page
a)Signed and unsigned Integers
Format | PLC value | Display |
{DT201_5_d} | ||
|
|
|
{DT201_5_u} | "65535" | |
{DT201_6_d} | ||
|
|
|
{DT201_5_u} | "32768" | |
|
|
|
79