Delta Electronics VFD037CH23A-21 — сравнение данных календаря в PLC: функции и команды [546/638]

Превью страниц Страница 546 / 638
Delta Electronics VFD037CH23A-21 Руководство по эксплуатации онлайн [546/638] 460294
Chapter 16 PLC Function CH2000 Series
16-93
API
161
TZCP
P
Comparison of calendar data area
Bit Devices Word Devices
X
Y
M
K H KnX KnY KnM T C D
S1
S2
S
D
Operands:
Please refer to the specifications of each model for the
range of operands.
16-bit command (5 STEPS)
TZCP
TZCPP
32-bit command
Flag signal: none
Explanation
S1: Lower limit time data S2: Upper limit time data S: Current time of calendar
D: Comparison result (occupies 3 continuous devices)
S is compared to the time period of S1~ S2 and the comparison result is stored in
D.
S1 , S1 +1, S1 +2: respectively represent “Hours”, “Minutes”, “Seconds” of the
lower limit time data.
S2, S2 +1, S2 +2: respectively represent “Hours”, “Minutes”, “Seconds” of the
upper limit time data
S , S +1, S +2: respectively represent “Hours”, “Minutes”, “Seconds” of the current
time of perpetual calendar.
The current time of real time clock specified by S is read by using TRD command
previously and then compared by using TZCP command. If the content of S, S1, S2
exceeds the range, it will result in “operation error”. At this time, the command won’t
be executed and M1068=On.
If S < S1, and if S < S2 , D is On. If S > S
1
and if S > S2, D +2 is On. Besides these
two situations, D +1 is On.
Example
When X10= On, the TZCP command is executed and one of M10~M12 will be
On. When X10= Off, the TZCP command is not executed but the state of
M10~M12 before X10=Off is kept.
X10
TZCP D0 D20 D10 M10
M10
M11
M12
>
D10 (hr)
D11 (min)
D12 (sec)
=
D10 (hr)
D11 (min)
D12 (sec)
<
D10 (hr)
D11 (min)
D12 (sec)
D0 (hr)
D1 (min)
D2 (sec)
D0 (hr)
D1 (min)
D2 (sec)
=
D20 (hr)
D21 (min)
D22 (sec)
<
>
D20 (hr)
D21(min)
D22 (sec)
ON when
ON when

Содержание

1610

Изучите функции сравнения данных календаря в PLC, включая команды и операнды. Узнайте, как правильно использовать временные данные для управления устройствами.