EasyManua.ls Logo

Delta VP3000 Series - Page 374

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 PlatformVP3000
365
API Instruction code Operand Function
160 TCMP P S
1
, S
2
, S
3
, S, D
Time comparison
Type
Operand
Bit devices Word devices
16-bit instruction (11 steps)
TCMP
Continuous
execution
type
TCMPP
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
3
S
D
Caution for using operand
See the specification of each model for the scope of device’s usage.
Description
S
1
: hour setting for time comparison, setting range: K0–K23
S
2
: minute setting for time comparison, setting range: K0–K59
S
3
: second setting for time comparison, setting range: K0–K59
S: current time of RTC
D: comparison result
Compare the setting value of S
1
, S
2
, S
3
and the current value of start of S, and the comparison
result is stored in D.
S is the “hour” of the current time (K0–K23) in RTC. S+1 is the “minute” of the current time
(K0–K59) in RTC. S+2 is the “second” of the current time (K0–K59) in RTC.
Usually the current time of RTC that S designates is read by using TRD instruction and then
doing comparison by TCMP instruction. If S value exceeds the available range, it’s operation
error so the instruction is not executed, M1068 = ON.
Example
When X10 = ON, the instruction is executed to compare the current time of RTC D20–D22 and
the setting value 12:20:45. The comparison result is stored in M10–M12. When X10 goes from
ONOFF, the instruction is not executed, but the previous ON / OFF statuses of M10–M12
remain.

Table of Contents

Related product manuals