DVP-ES3 Series Programming Manual Symbol S 1 : Lower limit time S 2 : Upper limit time S : Current time _6 D : Comparison result Explanation 1. This instruction compares the current time specified by S with the lower limit time specified by S 1 , and with the upper limit time specified by S 2 , and stores the comparison result in D . 2. The hour of the lower limit time is in the device specified by S 1 , the minute of the lower limit time is in the device specified by S 1 +1, and the second of the lower limit time is in the device specified by S 1 +2. 3.
The hour of the upper limit time is in the device specified by S 2 , the minute of the upper limit time is in the device specified by S 2 +1, and the second of the upper limit time is in the device specified by S 2 +2. 4. The hour of the current time is in the device specified by S , the minute of the current time is in the device specified by S +1, and the second of the current time is in the device specified by S +2. 5. The time in the device specified by S 1 must be less than the time in the device specified by S 2 .
If the time in the device specified by S 1 is larger than the time in the device specified by S 2 , the instruction takes the time in the device specified by S 1 as the upper limit time during the execution of the instruction. 6. In general, use the TRD instruction (API 1600) to read the current time from the real-time clock first, and then use 6-490 API Instruction code Operand Function 1606 TZCP P S1,S2,S,D Time zone comparison Device X Y M S T C HC D FR SM SR E K 16# “$” F S1 S2 S D BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1 S2 S D Pulse instruction 16-bit instruction 32-bit instruction ES3 ES3 -