Example - Ladder Diagram
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.
Ladder Diagram Example
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:
- 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.
Every time this instruction executes, it energizes the output only once.
Ladder Diagram Example
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:
- 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.