9 Application Instructions API 150-199 API 166 Operands: D : The device for storing the current time read in RTC Explanations: 1. D will occupy 7 consecutive devices. 2. See the specifications of each model for their range of use. 3. Flags: M1016, M1017, M1076. See remarks for more details. 4. The built-in RTC in EH/EH2/SV/EH3/SV2/SA/SX/SC series MPU offers 7 data (year, week, month, day, hour, minute, second) stored in D1319 ~ D1313. TRD instruction is for program designers to read the current data in RTC and store the data to the 7 registers designated. 5. D1319 only reads the 2-digit year in A.D. If you wish D1319 to read the 4-digit year, see remarks for more information.
Program Example: 1. When X0 = On, the instruction will read the current time in RTC to the designated registers D0 ~ D6. 2. The content of D1318: 1 = Monday; 2 = Tuesday … 7 = Sunday. X0 DVP-PLC Application Manual 9-72 Mnemonic Operands Function TRD P Time Read Type 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 EH3 ES EX SS EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS SA SX SC EH SV SA SX SC EH SV SV2 SV2 TRD 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 General D Item D0 Year (A.D.) D1 Day (Mon ~ Sun) D2 Month D3 Date D4 Hour D5 Minute D6 Second