beautypg.com

Time_of_day constants, Date_and_time constants, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 1096

background image

L-force | PLC Designer

Programming Reference

1094

DMS 4.1 EN 03/2011 TD29

TIME_OF_DAY Constants
Use this type of constant to store times of the day.
Syntax:
tod#

hour:minute:second

>".

Seconds can be entered as real numbers, that is also fractions of a second can be
specified.
TIME_OF_DAY values are internally handled as DWORD values, containing the time
span in milliseconds since 00:00 clock.

Examples:

TIME_OF_DAY#15:36:30.123
tod#00:00:00

see also: Time Data Types

DATE_AND_TIME Constants
DATE constants and TIME_OF_DAY constants can also be combined to form so-called
DATE_AND_TIME constants.

Syntax:
dt#
Instead of "dt#" also the following can be used: "DT#", "date_and_time",
"DATE_AND_TIME".
The date and time declaration is to be entered in format "<

year-month-day-

hour:minute:second

>".

Seconds can be entered as real numbers, that is also fractions of a second can be
specified.
DATE_AND_TIME values are internally handled as DWORD values, containing the time
span in seconds since 01.01.1970, 00:00 clock.

Examples:

DATE_AND_TIME#1996-05-06-15:36:30
dt#1972-03-29-00:00:00

see also: Time Data Types