Structure Of The Status Word - Siemens SIMATIC S5-115U User Manual

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

Integral Real-Time Clock
By changing bit No. 1 in the status word, you can select the 12-hour or 24-hour mode for the
clock (you will find more details under the heading "Structure of the Status Word").
The AM/PM flag (0 = AM; 1 = PM) is only of significance if the hardware clock is operating in
12-hour mode. It corresponds to bit 7 of the following words:
- Word 2
- Word 6
- Word 10
- Word 20.
In this mode, the hours and the AM/PM flag cannot be set independently of each other when
specifying the settings of the clock and the prompting time.
If an AM/PM flag is set in 24-hour mode, this is recognized when the settings for the clock and
prompting time are entered and the relevant error bit is set.
Settings must lie within the definition ranges given in Table 13-4:
Variable
Permissible Parameters
Seconds
Minutes
Hours
Weekday
Any other entries will lead to operating system error messages which are flagged in the status
word. If the settings are within the definition range, error bits in the status word are reset by
the operating system the next time the clock, the prompting time or the operating hours
counter is set.
If a setting (prompting time or operating hours counter) is not to be transferred to the clock
or if the current value is not to be changed on entry of the setting, enter "FF" (hexadecimal)
for this variable.
13-8
Table 13-4. Clock Data Definition Areas
0 to 59
0 to 59
in 24-hour mode:
0 to 23
in 12-hour mode:
for AM 1 to 12
(12 ˆ =00.00 hours)
for PM 81 to 92
(92 ˆ =noon if AM/PM
bit set)
0 to 99 if operating
hour counter
specified
1 to 7
1=Sunday
2=Monday
3=Tuesday
4=Wednesday
5=Thursday
6=Friday
7=Saturday
Variable
Permissible Parameters
Day
1 to 31
Month
1 to 12
Year
0 to 99
Leap year
0 to 3
0=Leap year is
current year
1=Leap year was last
year
2=Leap year was two
years ago
3=Leap year was
three years ago
S5-115U Manual
EWA 4NEB 811 6130-02b

Advertisement

Table of Contents
loading

Table of Contents