S5-95F
The Integral Real-Time Clock
Make certain you are aware of the following points when you make inputs into the clock
data area.
•
Entries into the clock data area must be in BCD code.
•
The clock settings you enter must be within the range defined in Table 10-2.
Table 10-2.
Range Definitions for Clock Data
Day
Month
Year
Variable
Permissible Parameters
Variable
Permissible Parameters
Seconds
Minutes
Hours
Weekday
0 to 59
0 to 59
In the 24-hour mode:
0 to 23
In the 12-hour mode:
for AM:
1 to 12
(12 = 12 o’clock noon)
for PM:
81 to 92
(81 = 1 o’clock PM)
0 to 999999 when entering
the operating hours
1 to 7
1=Sunday
2=Monday
3=Tuesday
4=Wednesday
5=Thursday
6=Friday
7=Saturday
1 to 31
1 to 12
0 to 99
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
•
If you do not wish to modify one of the setting values, you must enter FFH for this value.
•
Entries outside the defined range cause the operating system to set the corresponding error bit
in the status word. The operating system resets these error bits in the status word the next time
you set the clock if the new settings are within the defined range.
•
The AM/PM flag (0 = AM; 1 = PM) is relevant only in the 12-hour mode.
You must, however, observe the following: Whether the clock is to operate in the 12-hour or 24-
hour mode is specified in the status word (see section 10.3).
If you operate the integral real-time clock in the 24-hour mode, then setting of the AM/PM flag
results in setting of the error bit in the status word.
•
Please note that you can define the location of the clock data area and that the word numbers
indicated in Table 10-1 are only relative numbers.
If your clock data area lies in a data block and does not start with DW 0, but with DW x, you
must add the value x to the word number in Table 10-1.
EWA 4NEB 812 6210-02
10-5