EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 579

Mitsubishi Electric MELSEC FX Series
838 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...
7 Applied Instructions
7.15 Real Time Clock Control
577
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
1. Setting example of clock data (time)
To set the real-time clock. In the case of 15 hours, 20 minutes, 30 seconds, Tuesday, April 25, 2001.
1) When setting the time, first set the time of several minutes ahead, and turn ON the X000 when reaching
the exact time, then the set time is written into the real-time clock, and the clock data is updated.
2) Every time the X001 is turned ON, ±30 seconds can be corrected.
[Structured ladder]
[ST]
M0:=LDP(TRUE,X000);
D0:=MOV(M0,K1);
D1:=MOV(M0,K4);
D2:=MOV(M0,K25);
D3:=MOV(M0,K15);
D4:=MOV(M0,K20);
D5:=MOV(M0,K30);
D6:=MOV(M0,K2);
TWR(M0,D0);
M8017:=X001;
M8017
X001
TWR
EN ENO
s
D0
MOV
EN
s
ENO
d
D0
K1
M0
LDP
EN
s
ENO
d
X000
M0
MOV
EN
s
ENO
d
D1
K4
MOV
EN
s
ENO
d
D2
K25
MOV
EN
s
ENO
d
D3
K15
MOV
EN
s
ENO
d
D4
K20
MOV
EN
s
ENO
d
D5
K30
MOV
EN
s
ENO
d
D6
K2
Year (lower 2 digits)
Month
Day
hour
minute
second
Day of week
Updating of current value of
built-in real-time clock
Correction of 30 seconds
±

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals