EasyManua.ls Logo

Inovance H3U Series - TZCP Clock Data Range Comparison

Inovance H3U Series
737 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
267
4
4 Instructions 4.8.1 Clock Comparison Output
Example:
S2S1 S3 DS
ǒTCMP K12 K30 K45 D10 M20Ǔ
M12
M20
M21
M22
M20 (hours) = ON
M21 (hours) = ON
M22 (hours) = ON
12 (Hours)
D10 (Hours)
30 (Minutes)
45 (Seconds)
D11 (Minutes)
D12 (Seconds)
D10 (Hours)
D11 (Minutes)
D12 (Seconds)
D10 (Hours)
D11 (Minutes)
D12 (Seconds)
12 (Hours)
30 (Minutes)
45 (Seconds)
12 (Hours)
30 (Minutes)
45 (Seconds)
When M12 = ON, then M20, M21, or M22 is set to ON.
The TCMP instruction is not executed when M12 switches from ON to OFF, and
M20 to M22 remain in the state prior to M12 = OFF. Use the RST or ZRST
instruction to clear the comparison result of M20 to M22.
Connect M20 to M22 in serial or parallel mode to acquire the ≥, ≤, and ≠ results.
TZCP: Clock data range comparison
Overview
The TZCP instruction compares the time of an internal real-time clock with a specied time range. The
result is stored in three consecutive variable units.
TZCP S1 S2 S D
Clock data range
comparison
Applicable model:
H3U
S1 Lower limit
Lower limit of a time range, which is represented by
hours, minutes, and seconds respectively stored in three
consecutive variable units
16-bit instruction
(9 steps)
TZCP:
Continuous
execution
TZCPP: Pulse
execution
S2 Upper limit
Upper limit of a time range, which is represented by
hours, minutes, and seconds respectively stored in three
consecutive variable units
S
PLC time data
head address
Head address of registers that store the current time
value of a real-time clock, that is, the data read by the
TRD or MOV instruction
D
Comparison
result
Head address of three consecutive variable units that
store the comparison result
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S1 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
S2 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
S X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals