7 Applied Instructions
7.15 Real Time Clock Control
559
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
Program example
[ST][Structured ladder]
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
M0:=TCMP(X000,K10,K30,K50,D0);
M1:=TCMP(X000,K10,K30,K50,D0);
M2:=TCMP(X000,K10,K30,K50,D0);
: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
↑
=
>
<