L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual
Page 177

L-force | PLC Designer
Visualization
DMS 4.1 EN 03/2011 TD29
175
System time output
If you enter "%t", followed by a sequence of special placeholders in squared brackets,
then in online mode this location will be replaced by the system time. The placeholders
define the display format, see the table below.
Syntax for an entry in the 'Text' property field: %t[
Example: %t[dd.MM.yyyy HH:mm:ss] will create an output of the date and time like
for example: 12.10.2009 08:22:03
Note: Import of V2.3 projects: The time formattings %t, which are used in »PLC
Designer« V2.3 will automatically get converted to the new %t[] format when
importing an old project; however the following placeholders are not supported any
longer: %U, %W, %z, %Z.
Valid placeholders:
ddd
Name of the weekday, abbreviated, for example "Wed"
dddd
Name of the weekday, for example "Wednesday"
ddddd
Weekday as decimal number (0 – 6; Sunday is 0)
MMM
Name of the month, abbreviated, for example "Feb"
MMMM Name of the month, for example "February"
d
Day of month as number (1 – 31), for example "8"
dd
Day of month as number (01 – 31), for example "08"
M
Month as number (1 – 12), for example "4"
MM
Month as number (01 – 12), for example "04"
jjj
Day of the year as number (001-366), for example "067"
y
Year without specifying the century (0-99), for example "9"
yy
Year without specifying the century (00-99), for example "09"
yyy
Year with specifying the century, for example "2009"
HH
Hour, 24-hours format (01-24), for example "16"
hh
Hour, 12-hours format (01-12), for example "8" for 16 o'clock
m
Minutes (0-59), without preceded null, for example "6"
mm
Minutes (00-59), with preceded null, for example "06"
s
Seconds (0-59), without preceded null, for example "6"
ss
Seconds (00-59), with preceded null, for example "06"
ms
Milliseconds (0-999), without preceded null, for example "322"
t
Identifier for the display in 12-hours format: A (hours <12) resp. P (hours >12), for example "A"
in case of 9 o'clock in the morning