
Chapter 5 Power Supply / CPU
5-35
(2) Read RTC data from special register
Description
Special register Area
(Word)
Upper byte
Lower byte
Data
(BCD format)
F053
Lower 2 digits of year
Month
H0207
F054 Day
Hour
H2313
F055 Minute
Second
H5020
F056
Higher 2 digits of year
Date
H2002
Example : 2002. 07. 23. 13:50:20, Tuesday
2) Write RTC data
There is two ways to write new RTC data to the CPU.
The first one is using a graphic loader (KGLWIN). For detailed information, refer the user’s manual of KGLWIN.
The second one is write sequence program. By switching a special bit on, user can replace the current RTC data with the
reset data stored in a specified memory area. The followings are the memory address of preset data and an example
program.
Description
Data register Area
(Word)
Upper byte
Lower byte
Data
(BCD format)
D4993
Lower 2 digits of year
Month
H0207
D4994 Day
Hour
H1011
D4995 Minute
Second
h5324
D4996
Higher 2 digits of year
Date
H2001
Example : 2002. 7. 10. 11:53:24, Monday
* M1904 : RTC data change bit
When the M1904 bit is switched on, the new data in D4993 ~ D4996 will be moved to F53 ~ F56. After data is
moved, M1904 has to be switched off immediately because current data will be updated every scan while
M1904 is on.
3) Date expression
Number 0
1
2
3
4
5
6
Date Sunday
Monday Tuesday
Wednesday
Thursday
Friday Saturday
REMARK
1) If RTC stops or error occurs, write new data to the RTC then error is called off.
2) There is no written clock data in the RTC when shipped.
3) Before using RTC module, write clock data to the RTC first
Содержание MASTER-K 120S Series
Страница 26: ...Chapter 4 Names of Parts 4 3 2 K7M DRT60U 3 K7M DT60U 4 1 2 40 points main unit Standard 1 K7M DR40U ...
Страница 27: ...Chapter 4 Names of Parts 4 4 2 K7M DRT40U 3 K7M DT40U 4 1 3 30 points main unit Standard 1 K7M DR30U ...
Страница 28: ...Chapter 4 Names of Parts 4 5 2 K7M DRT30U 3 K7M DT30U 4 1 4 20 points main unit Standard 1 K7M DR20U ...
Страница 29: ...Chapter 4 Names of Parts 4 6 2 K7M DRT20U 3 K7M DT20U 4 1 5 30 points main unit Economic 1 K7M DR30UE ...
Страница 138: ...Chapter 7 Usage of Various Functions 7 54 c Program ...
Страница 306: ...Appendix 3 External Dimensions App3 2 2 Slim type G7E DC08A G7E RY08A G7F ADHB G7F DA2V G7F RD2A ...