Date And Time - JUMO LOGOSCREEN 601 Manual

Paperless recorder, st editor
Hide thumbs Also See for LOGOSCREEN 601:
Table of Contents

Advertisement

8.8

Date and time

These are specific functions that are not part of the DIN IEC 61131-3 standard.
For example, these functions can be used to query the input variable rtc.cdt, which returns date and time
of the device.
Admissible data types
Argument: DT, DATE_AND_TIME
Result: UINT
GET_YEAR
Returns the year (with century).
Examples:
iOUT := GET_YEAR(dt#2017-03-20-17:45:12); (* iOUT = 2017 *)
GET_MONTH
Returns the month.
Example:
iOUT := GET_MONTH(dt#2017-03-20-17:45:12); (* iOUT = 03 *)
GET_DAY
Returns the day.
Example:
iOUT := GET_DAY(dt#2017-03-20-17:45:12); (* iOUT = 20 *)
GET_HOUR
Returns the hour.
Example:
iOUT := GET_HOUR(dt#2017-03-20-17:45:12); (* iOUT = 17 *)
GET_MINUTE
Returns the minute.
Example:
iOUT := GET_MINUTE(dt#2017-03-20-17:45:12); (* iOUT = 45 *)
GET_SECOND
Returns the second.
Example:
iOUT := GET_SECOND(dt#2017-03-20-17:45:12); (* iOUT = 12 *)
iOUT := GET_SECOND(rtc_cdt); (* iOUT = 59, if rtc_cdt = 1970-01-01 00:00:59 *)
8 Functions
45

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Logoscreen 700706521706530

Table of Contents