Real-Time Clock [M8015 To M8019 And D8013 To D8019] - Mitsubishi Electric MELSEC-Q Structured Programming Manual

Hide thumbs Also See for MELSEC-Q:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
[Device & Common]
4.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)
Number
M8015
Clock stop and preset
M8016
Time display stop
±30-second correction
M8017
M8018
Installation detection
M8019
Real-time clock (RTC) error
Number
D8013
D8014
D8015
D8016
D8017
D8018
D8019
Day-of-the-week data
2. Changing over the year display (from the two-digit year mode to the four-digit year mode)
When displaying year in four digits, add the following program.
D8018 is set to the four-digit year mode in the second scan in the PLC RUN mode.
FX
/FX
PLCs do not support the four-digit year mode.
U
2C
M8002
Initial pulse
1) The PLC is usually operating in the two-digit year mode.
When the above instruction is executed in the RUN mode and "K2000 (fixed value)" is transferred to
D8018 (year data) for only 1 scan time, D8018 switches to the four-digit year mode.
2) Execute this program every time the PLC becomes the RUN mode.
Only the year data is displayed in four digits when "K2000" is transferred. The current date and time are
not affected at all.
3) In the four-digit year mode, the set 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, FX-20DU or FX-25DU
Select the two-digit year mode.
Year is not displayed correctly in the four-digit year mode in the current version of these units.
Note that the clock of the PLC switches to the two-digit year mode when the PLC clock operating in the
four-digit year mode is set from the FX-10DU, FX-20DU or FX-25DU.
220
Name
Stops the clock when set to ON.
The time is written and the clock is activated again at the edge from ON to OFF.
Stops the time display when set to ON (, but continues time counting).
Corrects the second's digit at the edge from OFF to ON.
(Sets the second's digit to "0" when the value in the second's digit is "0" to "29", and carries
over the minute's digit and sets the second's digit to "0" when the value in the second's digit is
"30" to "59".
Always remains ON.
Turns ON when the values of special data registers exceed the setting range at time setting.
Name
Setting range
Second data
Minute data
Hour data
Day data
Month data
Year data
(last two digits of year)
0 to 6 (which corre-
sponds to Sunday to
Saturday)
→ For the real-time clock setting method, refer to Subsection 4.2.8.
MOV
EN
ENO
s
d
K2000
D8018
4 Operations of Special Devices (M8000 and later, D8000 and later)
4.2 Supplement of Special Devices (M8000 and later and D8000 and later)
Operation and function
0 to 59
0 to 59
Use these devices to write the initial value at time setting or read
the current time.
0 to 23
D8018 (year data) can be changed over to the four-digit year
1 to 31
mode.
1 to 12
In the four-digit year mode, 1980 to 2079 can be displayed.
FX
/FX
U
2C
00 to 99
FX
/FX
0
0S
Clock accuracy: ±45 sec/month (at 25°C)
Leap year correction: Provided
Operation and function
PLCs do not support the four-digit year mode.
/FX
PLCs do not support the real-time clock.
0N

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-lMelsec-fFx3sFx3gFx3gcFx3u ... Show all

Table of Contents