EasyManuals Logo

Delta DVP-SS2 User Manual

Delta DVP-SS2
1006 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
Page #647 background imageLoading...
Page #647 background image
DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
3-526
API
Mnemonic Operands Function
Controllers
ES2/EX2/
EC5
SS2
SA2
SE
SX2
161 TZCP P
Time zone compare
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
TZCP, TZCPP: 9 steps
S
1
*
*
*
S
2
*
*
*
S
*
*
*
D
*
*
*
PULSE
16-bit
32-bit
ES2/EX2/
EC5
SS2
SA2
SE
SX2
ES2/EX2/
EC5
SS2
SA2
SE
SX2
ES2/EX2/
EC5
SS2
SA2
SE
SX2
Operands:
S
1
: Lower bound of the time for comparison (occupies 3 consecutive devices) S
2
: Upper bound of
the time for comparison (occupies 3 consecutive devices) S: Current time of RTC (occupies 3
consecutive devices) D: Comparison result (occupies 3 consecutive devices)
Explanations:
1. TZCP instruction compares current RTC time in S with the range set in S
1
~ S
2
and the
comparison result is stored in D.
2. S
1
, S
1
+1, S
1
+2: The “hour”, “minute” and “second” of the lower bound value for comparison.
3. S
2
, S
2
+1, S
2
+2: The “hour”, “minute” and “second” of the upper bound value for comparison.
4. S, S +1, S +2: The “hour”, “minute” and “second” of the current time of RTC.
5. Usually the time of RTC in S is read by TRD instruction first then compared by TZMP
instruction. If operand S, S
1
, S
2
exceed the available range, operation error occurs and
M1067 = ON, M1068 = ON. D1067 stores the error code 0E1A (HEX).
6. If S < S
1
and S < S
2
, D is ON. When S > S
1
and S > S
2
, D+2 is ON. For other conditions, D + 1
will be ON. (Lower bound S
1
should be less than upper bound S
2
.)
Program Example:
When X0 = ON, TZCP instruction executes and M10~M12 will be ON to indicate the comparison
results. When X0 = OFF, the instruction is disabled but the ON/OFF status of M10~M12 remains.
X0
M10
TZCP D0 D20 D10 M10
M11
M12
ON when
ON when
ON when
D0 Hour
D1 Minute
D2 Second
D10 Hour
D11 Minute
D12 Second
D10 Hour
D11 Minute
D12 Second
D0 Hour
D1 Minute
D2 Second
D10 Hour
D11 Minute
D12 Second
D20 Hour
D21 Minute
D22 Second
D20 Hour
D21 Minute
D22 Second

Table of Contents

Other manuals for Delta DVP-SS2

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta DVP-SS2 and is the answer not in the manual?

Delta DVP-SS2 Specifications

General IconGeneral
BrandDelta
ModelDVP-SS2
CategoryController
LanguageEnglish

Related product manuals