Siemens SIMATIC S5-95F Manual page 301

Table of Contents

Advertisement

S5-95F
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.
Variable
Permissible Parameters
Seconds
0 to 59
Minutes
0 to 59
Hours
In the 24-hour mode:
0 to 23
In the 12-hour mode:
for AM:
(12 = 12 o'clock noon)
for PM:
(81 = 1 o'clock PM)
0 to 999999 when entering
the operating hours
Weekday
1 to 7
1=Sunday
2=Monday
3=Tuesday
4=Wednesday
5=Thursday
6=Friday
7=Saturday
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
Table 10-2. Range Definitions for Clock Data
1 to 12
81 to 92
The Integral Real-Time Clock
Variable
Permissible Parameters
Day
1 to 31
Month
1 to 12
Year
0 to 99
10-5

Advertisement

Table of Contents
loading

Table of Contents