Chapter 21 Real Time Clock (RTC) instructions
588 Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
RTC_READ reads the RTC preset and RTC information.
RTC_READ operation
When used with a Micro810 or Micro820 controller with embedded RTC:
• RTCBatLow is always set to zero (0).
• RTCEnabled is always set to one (1).
When the embedded RTC has lost its charge/memory due to loss of power:
• RTCData is set to 2000/1/1/0/0/0.
• RTCEnabled is set to one (1).
Arguments
Parameter
Parameter
type
Data type Description
Enable Input BOOL Function block enable.
When Enable = TRUE, execute RTC information read.
When Enable = FALSE, there is no read operation and output RTC data is invalid.
RTCData Output RTC RTC data information: yy/mm/dd, hh/mm/ss, week.
See RTC data type on page 409.
RTCPresent Output BOOL TRUE - RTC hardware is plugged in.
FALSE - RTC hardware is not plugged in.
RTCEnabled Output BOOL TRUE - RTC hardware is enabled (timing).
FALSE - RTC hardware is disabled (not timing).
RTCBatLow Output BOOL TRUE - RTC battery is low.
FALSE - RTC battery is not low.
ENO Output BOOL Enable out.
Applies only to LD programs.