L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 772

Advertising
background image

L-force | PLC Designer

PLC Designer Visualization

770

DMS 3.2 EN 02/2011 TD29



Category Time/Date: Here you can define in which format the date or time data
outputs in a visualization should be displayed.
If option Formatted time display is activated, outputs controlled by a variable of the
corresponding time or date datatype (e.g. timevar:TIME;) will be displayed in that
format which is defined in the respective edit field here in the dialog. If the option is
not activated or if for a datatype no formatting is defined here, the output will be
displayed in that format which is used when assigning values to date and time
constants (e.g. "t#12h34m15s").

Note!

During compilation as Target-Visualization a warning will be displayed, if the
functionality is not supported by the target system.

Settings for the following datatypes are possible: Format for TIME/TOD, Format for
DATE
, Format for DT.
You can use the formattings listed in the table stated below. Upper and lower case
must be regarded. Empty spaces inserted in a formatting definition will be displayed
in the output string at the same position. Additional characters, which should not be
interpreted as format definition, must be embraced by single quotation marks.
Example:

You have defined a project variable "timevar" of data type TIME, which is configured
to control the text output of a visualization element. If in the Time/Date settings of
this visualization, in the edit field at "Format for TIME/TOD", you enter the following:

hh':'mm':'ss tt

, then in online mode - e.g. if timevar has the value "t#12h34m15s" - the

output by the respective visualization element will look like follows: 12:24:15 PM.

Advertising