Delta CT2000 Series User Manual page 533

Table of Contents

Advertisement

Chapter 16 PLC Function CT2000 Series
API
TCMP
160
Bit device
X
Y
M
S1
S2
S3
S
D
Notes on operand usage:
Please refer to the function specifications table for each device in
series for the scope of device usage
X10
P
Word device
K
H
KnX KnY KnM
S
: Sets the hours of the comparison time, setting range is "K0-K23." S
1
minutes of the comparison time, setting range is "K0-K59." S
the comparison time, setting range is "K0-K59." S: current calendar time. D:
Results of comparison.
Compares the time in hours, minutes, and seconds set in S
calendar time in hours, minutes, and seconds, with the results of comparison
expressed in D.
S The hour content of the current calendar time is "K0-K23." S +1 comprises the
minutes of the current calendar time, and consists of "K0-K59." S +2 comprises the
seconds of the current calendar time, and consists of "K0-K59."
The current calendar time designated by S is usually compared using the TCMP
command after using the TRD command to read the current calendar time. If the
content value of S exceeds the range, this is considered an operating error, the
command will not execute, and M1068=On.
When X10=On, the command will execute, and the current calendar time in
D20-D22 will be compared with the preset value of 12:20:45; the results will be
displayed in M10-M12. When X10 On→Off, the command will not be executed, but
the On/Off status prior to M10-M12 will be maintained.
If results in the form of ≥, ≤, or ≠ are needed, they can be obtained by series and
parallel connection of M10-M12.
TCMP
K12
M10
ON when12: 20: 45
M11
ON when 12: 20: 45
M12
ON when12: 20: 45
Comparison of calendar data
16-bit command (11 STEP)
T
C
D
TCMP
32-bit command
Flag signal: none
K20
K45
D20 (
)
hr
>
D21
(min
D22
D20
=
D21
(min)
D22
(sec)
D20
(hr)
<
D21
(
min
D22
16-92
Continuous
TCMPP
execution type
execution type
: Sets the seconds of
3
- S
with the current
1
3
D20
M10
)
)
Pulse
: Sets the
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents