Section D Graphic Display
D-51
Name Name of the new format
Format Desired formatting. Use the letter f, for example ff.ffff for two places in
front of the decimal point and four places after the decimal point.
'-' serves as a wild card for negative numbers, and a display with a
leading sign is indicated by '+'.
O
K Adds the new format to the existing format list.
Examples of fixed data formats:
One Standard format is available for each data type, see table:
The following applies to the representation of REAL numbers: Due to internal
representation constraints, conversion of real numbers to displayable values cannot be
made to more than 7 significant digits. Because of this fact, in the standard format, the
number of decimal places is adjusted as a function of the numeric value. Very large and
very small values are displayed in exponential notation.
Data type Name Format Example
REAL Float +f.ffffffE+ee -4.670000E-19
Fixed point 1 f.f 3.1
Fixed point 2 f.ff 3.14
Fixed point 3 f.fff 3.141
Fixed point 4 f.fff 3.1415
BOOL BOOL (= Standard) b TRUE
Decimal +fff 1
INT, UINT, Binary 2#ffffff 2#101010
DINT, UDINT Octal 8#ffffff 8#605301
BYTE, Decimal (= Standard) +fff -145
WORD, WORD Hexadecimal 16#ffff #16#F90C
TIME Duration (= Standard) T#fhffmffsffms T#1h35m50s8ms
hh:mm:ss.sss hh:mm:ss.sss 15:36:55:041
hh:mmm hh:mmm 15:36
ss.sss ss.sss 55.041
DT
Time of day
(=Standard)
DT#yyyy-mm-dd-
hh:mm:ss,sss
1998-09-15-14:36:55,041
Summertime /
wintertime (*)
DT#yyyy-mm-dd-
hh:mm:ss,sss a
1998-09-15-15:36:55,041S
hh:mm:ss.sssa (*) hh:mm:ss.sssa 15:36:55.041S
hh:mm:ss.sss hh:mm:ss.sss 14:36:55.041
dd-mm-yy dd-mm-yy 15-09-98
STRING Pure string s:0:0:n,n ABCDEFG
12345
String (= Standard) s:0:0:y,y 'ABCDEFG$N12345'
(*) If the time to display is in summertime, the value is increased by the summertime differential and flagged with , (both
in DigiVis and in the graphic editor).