The leader in industrial automation and control solutions

Instruction Parameters

Supported PLC Series

PLC-AESPLC-FBPLC-ES

Supported Data Registers

MXYKLFTCSZRQD@DConstant
D

Supported Flags

FlagBitSupport
ErrorF11.0
ZeroF11.1
CarryF11.2

Number of Steps

Steps
3

Operands

OperandDescription
DThe first operand.
Entries are only WORD data registers.
This is where the values read from the real time clock (RTC) device are stored.
This requires 7 data registers.

Notice

Error Flag (F11.0) Notice

The error flag, F11.0, will be ON for one scan when the address of the data register assigned by @D exceeds the range of the data register, D. The range of the data register, D, is dependent on the CPU type.

RTC Data Storage

The data read from a real time clock (RTC) device are stored in the data register, D, as follows:

Data RegisterValueDate Range
DYear2000 ~ 2099
D+1Month1 ~ 12
D+2Day1 ~ 31
D+3Hour0 ~ 23
D+4Minute0 ~ 59
D+5Second0 ~ 59
D+6Day of the Week0 ~ 6
Sunday ~ Saturday

Instruction Behavior

The DATERD and DATERDP instructions behave as follows:

  • The day of the week is defined by 0 ~ 6.
    • Day 0 is Sunday, day 6 is Saturday.
  • Compensation is made automatically for leap years.

Ladder Diagram Examples

DATERD

The DATERD instruction reads the date from a real time clock (RTC) device and stores the date in 7 WORD data registers starting at D.

The DATERD instruction reads the date from a real time clock (RTC) device and stores the date in 7 WORD data registers starting at D.

Ladder Diagram Example for MapleLogic DATERD/DATERDP instruction.
When the contact, M0.0, is powered ON (1), the instruction reads the current date and time from the real time clock (RTC) device.

When the contact, M0.0, is powered ON (1), the instruction reads the current date and time from the real time clock (RTC) device.

Memory Monitor

The following data is saved into the data registers, D0, D1, D2, D3, D4, D5, and D6:
  • The following data is saved into the data registers, D0, D1, D2, D3, D4, D5, and D6:
    • D0: Year (2025)
    • D1: Month (11, November)
    • D2: Day (6)
    • D3: Hour (16)
    • D4: Minute (32)
    • D5: Second (12)
    • D6: Day of the week (4, Thursday)

The clock time reads: 4:32:12 P.M., Thursday, November 6, 2025.

DATERDP

The DATERDP one-shot instruction reads the date from a real time clock (RTC) device and stores the date in 7 WORD data registers starting at D.

The DATERDP one-shot instruction reads the date from a real time clock (RTC) device and stores the date in 7 WORD data registers starting at D. Every time this instruction executes, it energizes the output only once.

Ladder Diagram Example for MapleLogic DATERD/DATERDP instruction.
When the contact, M0.1, is powered ON (1), the instruction reads the current date and time from the real time clock (RTC) device.

When the contact, M0.1, is powered ON (1), the instruction reads the current date and time from the real time clock (RTC) device.

Memory Monitor

The following data is saved into the data registers, D10, D11, D12, D13, D14, D15, and D16:
  • The following data is saved into the data registers, D10, D11, D12, D13, D14, D15, and D16:
    • D10: Year (2025)
    • D11: Month (11, November)
    • D12: Day (6)
    • D13: Hour (16)
    • D14: Minute (44)
    • D15: Second (47)
    • D16: Day of the week (4, Thursday)

The clock time reads: 4:44:47 P.M., Thursday, November 6, 2025.