DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming API 166 Operand: D : Current time of RTC (occupies 7 consecutive devices) Explanations: 1. TRD instruction reads the 7 real-time data of RTC (year (A.D.), day(Mon.Sun.), month, day, hour, minute, second from D1319~D1313 and stores the read data in registers specified by D. 2. Only when power is on can RTCs of SS2 series perform the fuction of timing. The RTC data registers D1319~D1313 are latched. When power is resumed, the RTC will resume the stored time value before power down. Therefore, we suggest users modify the RTC value every time when power is ON. 3.
RTCs of SA2/SE V1.0 及 ES2/EX2/SX2 V2.0 series can still operate for one or two weeks after the power is off (they vary with the ambient temperature). Therefore, if the machine has not operated since one or two weeks ago, please reset RTC. 4. D1319 only stores the 2-digit year in A.D. If 4-digit year data is required, please refer to Points to note below. 5. For relative flags and registers please refer to Points to note . Program Example: When X0 = ON, TRD instruction reads the current time of RTC to the specified register D0~D6. The content of D1318: 1 = Monday; 2 = Tuesday … 7 = Sunday.
X0 3-418 Operands Function Controllers TRD P Time read ES2/EX2 SS2 SA2 SX2 SE Typ e OP Bit Devices Word devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F TRD, TRDP: 3 steps D * * * PULSE 16-bit 32-bit SA2 SA2 SE ES2/EX2 SS2 SA2 SE SX2 ES2/EX2 SS2 SX2 ES2/EX2 SS2 SX2 SE TRD D0 Special D Item Content D1319 Year (A.D.) 00~99 D1318 Day (Mon.~Sun.) 1~7 D1317 Month 1~12 D1316 Day 1~31 D1315 Hour 0~23 D1314 Minute 0~59 D1313 Second 0~59 Normal D Item D0 Year (A.D.) D1 Day (Mon.~Sun.) D2 Month D3 Day D4 Hour D5 Minute D6 Second