Mitsubishi Electronics FX3G User Manual

Page of 964
867
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.2 Supplement of Special Devices (M8000 - and D8000 -)
31
FNC277
-F
NC2
79
Da
ta
 
Trans
fer 3
32
FNC28
0-F
NC
289
H
igh-Speed 
Process
ing 2
33
FNC2
90-
FNC299
Ex
tensi
on Fi
le
 
Register C
ontrol
34
FN
C300-
FNC30
5
FX
3U
-C
F-
AD
P
35
SFC
•STL
Programming
36
Interrupt 
Function
37
Sp
ec
ia
l D
evi
ce
38
E
rror Code
A
Ve
rsi
on U
Inform
ati
on
B
Ex
ecuti
on
 T
imes
37.2.7 Real time clock [M8015 to M8019 and D8013 to D8019]
1. Assignment of special auxiliary relays (M8015 to M8019) and special data registers (D8013 to 
D8019) 
→ For the real time clock setting method, refer to Subsection 37.2.8.
2. Changeover of the year display (to the four-digit mode)
When changing the year data to the four-digit mode, add the following program.
D8018 is set to the four-digit year mode on the second ladder scan in RUN mode.
1) The PLC is usually operating in the two-digit year mode.
When the above instruction is executed during RUN and "K2000 (fixed value)" is transferred to D8018 (year data),
D8018 switches to the four-digit year mode.
2) Execute this program every time the PLC enters RUN.
Only the year data display switches to four-digit mode when "K2000" is transferred. The actual time date is not
affected.
3) In the four-digit year mode, the values "80" to "99" correspond to "1980" to "1999" and "00" to "79" correspond to
"2000" to "2079".
Examples: 80 = 1980, 99 = 1999, 00 = 2000, 79 = 2079
4) When connecting the data access unit FX-10DU-E/20DU-E/25DU-E, use the two-digit year mode.
If the four-digit year mode is selected, the year data will not be displayed correctly.
Note that the clock is changed to the 2-digit year mode when the clock is set from the FX-10DU-E/20DU-E/
25DU-E while the PLC is operating in the 4-digit year mode.
Number
Name
Operation and function
M8015
Clock stop and preset
When M8015 turns ON, the real time clock is stopped.
At the edge from ON to OFF, the time from D8013 to D8019 is written to the PLC and the
clock is started again.
M8016
Time read display is stopped
When M8016 turns ON, the time display is stopped (but RTC is continued).
M8017
±30 seconds correction
At the edge from OFF to ON, the RTC is set to the nearest minute.
(When the second data is from 0 to 29, it is set to 0. When the second data is from 30 to 59,
it is set to 0 and the minute data is incriminated by "1".)
M8018
Installation detection
This device is always ON.
M8019
Real time clock (RTC) 
error
When the data stored in special data registers is outside the allowable time, setting range
this device turns ON.
Number
Name
Set value range
Operation and function
D8013
Second data
0 to 59
Use these devices for writing the initial value in time setting or
read the present time.
D8018 (year data) can be changed over to the four-digit year
mode.
In the four-digit year mode, 1980 to 2079 can be displayed.
Clock accuracy: ±45 sec/month (at 25
°C)
Leap year correction: Provided
D8014
Minute data
0 to 59
D8015
Hour data
0 to 23
D8016
Day data
1 to 31
D8017
Month data
1 to 12
D8018
Year data
00 to 99 
(last two digits of year)
D8019
Day-of-the-week data
0 to 6 
(which corresponds to 
Sunday to Saturday)
FNC 12
MOV
K2000
D8018
Initial pulse
M8002