AS Series Programming Manual the TZCP instruction to compare the time. 7. If the current time in the device specified by S is less than the lower limit time in the device specified by S 1 , and is less than the upper limit time in the device specified by S 2 , D is ON. If the current time in the device specified by S is larger than the lower limit time in the device specified by S 1 , and is larger than the upper limit time in the device specified by S 2 , D+2 is ON; otherwise D+1 is ON. Example When X0.0 is ON, the TZCP instruction is executed. M10, M11, or M12 is ON.
When X0.0 is OFF, the instruction is not executed, the state of M10, the state of M11, and the state of M12 remain the same as before X0.0 switched to ON. _6 Additional remarks 1. If S 1 +2, S 2 +2, S +2, or D +2 exceeds the device range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 2. If the values in S 1 , S 2 , and S exceed the range, an operation error occurs, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003 3. If you declare the operand S 1 in ISPSoft, the data type is ARRAY [3] of WORD/INT. 4. If you declare the operand S 2 in ISPSoft, the data type is ARRAY [3] of WORD/INT. 5.
If you declare the operand S in ISPSoft, the data type is ARRAY [3] of WORD/INT. 6. If you declare the operand D in ISPSoft, the data type is ARRAY [3] of BOOL. 6-506