EasyManua.ls Logo

Delta VP3000 Series - Page 375

Delta VP3000 Series
714 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...
Chapter 7 Second Development Platform VP3000
366
API Instruction code Operand Function
161 TZCP P S
1
, S
2
, S, D
Time zone comparison
Type
Operand
Bit devices Word devices
16-bit instruction (9 steps)
TZCP
Continuous
execution
type
TZCPP
Pulse
execution
type
32-bit instruction
-
-
-
-
Associated flag: none
X Y M K H KnX KnY KnM T C D
S
1
S
2
S
D
Caution for using operand
See the specification of each model for the scope of device’s usage.
Description
S
1
: the lower bound setting value for time comparison
S
2
: the upper bound setting value for time comparison
S: current time of RTC
D: comparison result
Compare the current time of RTC that S designates with S1–S2, the comparison result is stored
in D.
S
1
, S
1
+ 1, S
1
+ 2: the hour, minute, second of the lower bound setting value for comparison.
S
2
, S
2
+ 1, S
2
+ 2: the hour, minute, second of the upper bound setting value for comparison.
S, S + 1, S + 2: the hour, minute, second of the current time of RTC.
D0 that S designates is usually read the current time of RTC by using TRD instruction and then
doing comparison by TZCP instruction. If S
1
, S
2
and S value exceed the available range, it’s
operation error so the instruction is not executed, M1068 = ON.
If S < S
1
and S < S
2
, then D = ON; if S > S
1
and S < S
2
, then D+2 = ON. For other conditions
are D+1 = ON
Example
When X10 = ON, TZCP instruction is executed, and one of M10, M11, and Y2 will be ON. When
X10 = OFF, TZCP instruction is not executed, and M10, M11, and M12 remain their statuses
before X10 = OFF.

Table of Contents

Related product manuals