RTC_READ2 (read real-time clock)

The RTC_READ2 instruction reads present date/time information of the real-time clock.
Languages supported: function block diagram, ladder diagram, structured text.
This instruction applies to the L50E and L70E controllers.
RTC_READ2
RTC_READ2
Parameters for RTC_READ2
Parameter
Parameter Type
Data Type
Description
Enable
Input
BOOL
Instruction block enable.
  • TRUE: Execute RTC information read.
  • FALSE: There is no read operation and output RTC data is not valid.
RTCData
Output
RTC
RTC data information:
yy/mm/dd, hh/mm/ss, week
.
RTCData output is defined using the RTC data type.
RTCPresent
Output
BOOL
  • TRUE: Free Running clock is utilized or RTC hardware is plugged in.
  • FALSE: Free Running clock is not utilized or RTC hardware is not plugged in.
RTCEnabled
Output
BOOL
  • TRUE: Free Running clock is utilized or RTC hardware is enabled (timing).
  • FALSE: Free Running clock is not utilized, RTC hardware is disabled (not timing).
RTCBatLow
Output
BOOL
  • TRUE: RTC battery is low.
  • FALSE: RTC battery is not low.
RTCNoBat
Output
BOOL
  • TRUE: RTC battery is gone.
  • FALSE: RTC battery is not gone.

RTC_READ2 examples

RTC_READ2 function block diagram example
RTC_READ2 function block diagram example
RTC_READ2 ladder diagram example
RTC_READ2 ladder diagram example
RTC_READ2 structured text example
RTC_READ2 structured text example
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal