21 Applied Instructions (Real Time Clock Control)
21.1 TCMP / RTC Data Compare
543
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
21
Applied Instructions
(Real Time
Clock Control)
22
Applied Instructions
(External Device)
23
Applied Instructions
(Extension
Function)
24
Applied Instructions
(Others)
25
Applied Instructions
(Block Data
Operation)
26
Applied Instructions
(Character
String Control)
27
Applied Instructions
(Data Operation 3)
28
Applied Instructions
(Data Comparison)
29
Applied Instructions
(Data Table
Operation)
30
Applied Instructions
(External Device
Communication)
Program example
[ST][Structured ladder/FBD]
X000
10 hours,
30 minutes,
50 seconds
M0
10 hours,
30 minutes,
50 seconds
and then
turned ON
M1
10 hours,
30 minutes,
50 seconds
and then
turned ON
M2
10 hours,
30 minutes,
50 seconds
and then
turned ON
If TCMP is not executed when X000=OFF,
M0 to M2 are holding the state before X000
is turned OFF.
D1
D0 (hour)
(minute)
(second)
(hour)
(minute)
(second)
(hour)
(minute)
(second)
D2
D1
D0
D2
D1
D0
D2
TCMP
EN
s1
s2
ENO
d
s3
s
K10
D0
K30
K50
M0
TCMP(X000,K10,K30,K50,D0,M0);
:Comparison time "hour" is specified.
:Comparison time "minute" is specified.
:Comparison time "second" is specified.
:Time data "hour" is specified.
+1
+2
:Time data "minute" is specified.
:Time data "second" is specified.
s
s
s
s1
s2
s3
:Three bit devices are turned ON or OFF
depending on the comparison result.
+1, +2
,
d d d
↑
=
>
<