Delta AH500 Programming Manual page 542

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
1606
TZCP
Device X
Y
M
S
1
S
2
S
D
Symbol:
Explanation:
1.
The instruction is used to compare the current time specified by S with the lower limit time
specified by S
, and compare the current time specified by S with the upper limit time specified
1
by S
, and the comparison result is stored in D.
2
2.
The hour of the lower limit time is in the device specified by S
time e is in the device specified by S
specified by S
+2.
1
3.
The hour of the upper limit time is in the device specified by S
time e is in the device specified by S
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 e 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
If the time in the device specified by S
time in the device specified by S
execution of the instruction TZCP.
6.
Users generally use the instruction TRD to read the current time from the real-time clock first,
and then they use the instruction TZCP 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
, and is less than the upper limit time in the device specified by S
1
the current time in the device specified by S is larger than the lower limit time in the device
specified by S
, and is larger than the upper limit time in the device specified by S
1
In other conditions, D+1 is ON.
Example:
When X0.0 is ON, the instruction TZCP is executed. M10, M11, or M12 is ON. When X0.0 is OFF,
the instruction TZCP is not executed, the state of M10, the state of M11, and the state of M12 remain
the same as those before X0.0's being ON.
6 - 3 7 4
Operand
P
S
, S
, S, D
1
2
S
T
C
HC
D
Pulse instruction 16-bit instruction (9 steps) 32-bit instruction
AH500
: Lower limit time
S
1
: Upper limit time
S
2
S : Current time
D : Comparison result
+1, and the second of the lower limit time is in the device
1
+1, and the second of the upper limit time is in the device
2
must be less than the time in the device specified by S
1
is larger than the time in the device specified by S
1
will be taken as the upper/lower limit time during the
1
Time zone comparison
L
SM SR
E
PR
AH500
Word
Word
Word
Bit
, the minute of the lower limit
1
, the minute of the upper limit
2
Function
K
16# "$"
DF
-
.
2
, the
2
, D is ON. If
2
, D+2 is ON.
2

Advertisement

Table of Contents
loading

Table of Contents