21 Applied Instructions (Real Time Clock Control)
21.7 TRD / Read RTC data
558
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
1. 16-bit operation (TRD)
The clock data (D8013 to D8019) of the real-time clock built in the PLC is read out into the device specified by
in the following format.
This instruction reads out the
real-time clock data of the PLC
into seven data registers.
Cautions
1. Number of devices occupied
Seven devices specified by are occupied.
Be careful not to overlap with the devices used in machine control.
2. Some restrictions to applicable devices.
S1: The FX3G, FX3GC, FX3U and FX3UC PLCs only are applicable.
S2: The FX
3U and FX3UC PLCs only are applicable.
Device Item Clock data Device Item
Special data register
D8018 Year (solar calendar)
0 to 99 (Lower 2 digits of
year)
→
D 0 Year (solar calendar)
D8017 Month 1 to 12
→
D 1 Month
D8016 Day 1 to 31
→
D 2 Day
D8015 hour 0 to 23
→
D 3 hour
D8014 minute 0 to 59
→
D 4 minute
D8013 second 0 to 59
→
D 5 second
D8019 Day of week 0 (Sunday) to 6 (Saturday)
→
D 6 Day of week
TRD(X000,D0);
D0
[Structured ladder/FBD]
[ST]
TRD
EN ENO
d
X000