Delta AS Series Programming Manual page 872

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
1605
TCMP
Device
X
Y
M
S
1
S
2
S
3
S
D
Data
type
S
1
S
2
S
3
S
D
Symbol
Explanation
1.
This instruction compares the value of the hour, the minute, and the second specified by S
the hour, the minute, and the second in the devices starting from the device specified by S, and stores the
comparison result in D.
2.
The hour of the current time is in the device specified by S, and the value of the hour between 0–23. The minute of
the current time is in the device specified by S+1, and the value of the minute must be between 0–59. The second
of the current time is in the device specified by S+2, and the value of the second must be between 0–59.
3.
The operand D occupies three consecutive devices. The comparison result is stored in D, D+1, and D+2.
4.
In general, use the TRD instruction (API 1600) to read the current time from the real-time clock first, and then use
the TCMP instruction to compare the time.
5.
If the setting time in S
1
Operand
P
S
, S
, S
1
2
3
S
T
C
HC
Pulse instruction
: Hour for the setting time
S
1
: Minute for the setting time
S
2
: Second for the setting time
S
3
S : Current time
D : Comparison result
-S
is larger than the current time in S, D is ON, D+1 is OFF, and D+2 is OFF.
3
Ch ap te r 6 Ap pl ie d Instruc ti ons
, S, D
D
FR
SM
SR
16-bit instruction
AS
AS
Function
Comparing the time
E
K
16#
"$"
32-bit instruction
-
–S
with the value of
1
3
6 - 5 9 3
F
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents