Delta DVP-ES3 — 6.17.2 Explanation of Real-time Clock Instructions

Chapter 6 Applied Instructions 6.17.2 Explanation of Real-time Clock Instructions Symbol D : Device where the result is stored Explanation 1. This instruction reads the current time from the built-in real time clock in the CPU module, and stores the current time 6_ in D . 2. The operand D occupies seven consecutive devices. 3. The built-in real-time clock provides the year, the week, the moth, the day, the minute, and the second. The data is stored in SR391–SR397. 4. The last two digits of the year number for A.D. are stored in SR391. Example When M0 is ON, the instruction reads the current time from the real-time clock into D0–D6.

The value 1 in SR397 represents Monday, the value 2 represents Tuesday, and this continues to the value 7 represents Sunday. 6-477 API Instruction code Operand Function 1600 TRD P D Reading the time Device X Y M S T C HC D FR SM SR E K 16# “$” F D    BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type D    Pulse instruction 16-bit instruction 32-bit instruction ES3 ES3 -