Delta C2000 series User Manual page 539

Classical field oriented control ac motor drive
Hide thumbs Also See for C2000 series:
Table of Contents

Advertisement

API
TCMP
160
P
Bit Devices
X
M
Y
K
H
S1
S2
S3
S
D
Operands:
Please refer to the specifications of each model for
the range of operands.
Explanation
S1: Hour of comparison time, setting range is K0~K23
S2: Minute of comparison time, setting range is K0~K59 S3:
Second of comparison time, setting range is K0~K59
S: Current time of calendar (occupies 3 continuous devices)
D: Comparison result (occupies 3 continuous devices)
The range of operand S1, S2, S3: S1=0~23, S2 =S3=K0~59
S1, S2, S3 is compared to the current value of the head address S and save the
comparsion result in D.
S1 is the hour of current time and the content is K0~K23. S2 is the minute of
current time and the content is K0~K59. S3 is the second of current time and the
content is K0~K59
The current time of real time clock specified by S is read by using TRD
command previously and then compared by using TCMP command. If the
content of S exceeds the range, it will result in "operation error". At this time, the
command won't be executed and M1067=On, M1068=On, records error code
0E1A (HEX) in D1067.
When X10= On, the command is executed and the current time of real time clock in
Example
(D20~D22) is compared to the set value 12:20:45 and the result is shown at
M10~M12. When X10 goes from On→Off, the command is not executed but the
On/Off state before M10~M12 is kept. Connect M10~M12 in series or in parallel and
then the result of ≧, ≦, ≠ are given.
X10
M10
M11
M12
Word Devices
KnX KnY KnM
T
C
TCMP
K12
K20
D20 (
>
D21
ON when12: 20: 45
D22
D20
=
D21
ON when 12: 20: 45
D22
D20
<
ON when12: 20: 45
D21
D22
16-92
Chapter 16 PLC Function C2000 Series
Comaprison of calendar data
16-bit command (5 STEPS)
D
TCMP
32-bit command
Flag signal: none
K45
D20
M10
)
hr
)
(min
(min)
(sec)
(hr)
(
min
)
TCMPP

Advertisement

Table of Contents
loading

Table of Contents

Save PDF