Display and Setting of Calendar Clock
Example of Use
348
Downloaded from
Elcodis.com
electronic components distributor
1, 2, 3...
1. Set the date and time data in the words where numeral memory table A is
allocated (word A and word A+1, in the illustration below).
A + 1
15
Date
(01 to 31)
2. Set the date and time data in the words where numeral memory table B is
allocated (word B and word B+1, in the illustration below).
B + 1
15
Not used
(always 00)
3. Write the memory table numbers to the PT status control area in 4-digit BCD
as shown below (designation of copy source and copy destination memory
table numbers).
• Second word from the beginning (word n + 1): Table number of numeral
• Third word from the beginning (word n + 2):
4. Set 1 (ON) for bit 2 of the fourth word (word n + 3) from the beginning of the
PT status control area (designation of memory table copy type as numeric
value).
5. Set 1 (ON) for bit 3 of the fourth word (word n + 3) from the beginning of the
PT status control area (designation of memory table copy execution).
The contents of numeral memory table A are copied to numeral memory
table No. 254 and the date, hour, minute, second are set for the PT.
6. Write the memory table numbers to the PT status control area in 4-digit BCD
as shown below (designation of copy source and copy destination memory
table numbers).
• Second word from the beginning (word n + 1): Table number of numeral
• Third word from the beginning (word n + 2):
7. Set 1 (ON) for bit 2 of the fourth word (word n + 3) from the beginning of the
PT status control area (designation of memory table copy type as numeric
value).
8. Set 1 (ON) for bit 3 of the fourth word (word n + 3) from the beginning of the
PT status control area (designation of memory table copy execution).
Contents of numeral memory table B are copied to numeral memory table
No. 255 and the day of week, year, and month are set for the PT.
Refer to the Example of Use (page 349) in 3-10-2 Displaying the Date and T ime .
A
...
0
15
...
Hour
Minute
(00 to 23)
(00 to 59)
B
...
0
15
...
Day of week
Year
to
to
(00
06
(00
99
Sun. – Sat.)
last 2 digits of
the year)
Section
Word
0
Bit
Second
Contents of setting
(00 to 59)
Word
0
Bit
Month
Contents of setting
(01 to 12)
memory table A
0254
memory table B
0255
3-10