System Word
|
Most Significant Byte
|
Least Significant Byte
|
---|---|---|
%SW49
|
00
|
Days of the week in the range of values 1 - 7 (1 for Monday and 7 for Sunday)
|
%SW50
|
Seconds (0 - 59)
|
00
|
%SW51
|
Hours (0 - 23)
|
Minutes (0 - 59)
|
%SW52
|
Month (1 - 12)
|
Days of the month (1 - 31)
|
%SW53
|
Century (0 - 99)
|
Year (0 - 99)
|
%SW70
|
|
Week (1 - 52)
|
Bit Range
|
Function
|
---|---|
0
|
Increments the day of the week
|
1
|
Increments the seconds
|
2
|
Increments the minutes
|
3
|
Increments the hours
|
4
|
Increments the days
|
5
|
Increments the months
|
6
|
Increments the years
|
7
|
Increments the centuries
|
8
|
Decrements the day of the week
|
9
|
Decrements the seconds
|
10
|
Decrements the minutes
|
11
|
Decrements the hours
|
12
|
Decrements the days
|
13
|
Decrements the months
|
14
|
Decrements the years
|
15
|
Decrements the centuries
|
System Word
|
Most Significant Byte
|
Least Significant Byte
|
---|---|---|
%SW54
|
Seconds (0 to 59)
|
00
|
%SW55
|
Hours (0 to 23)
|
Minutes (0 to 59)
|
%SW56
|
Month (1 to 12)
|
Days of the month (1 to 31)
|
%SW57
|
Century (0 to 99)
|
Year (0 to 99)
|
%SW58
|
Day of the week (1 to 7)
|
Reason for the last application shutdown
|
Word value %SW58
|
Meaning
|
---|---|
1
|
Application switched to STOP mode.
|
2
|
Application stopped by watchdog.
|
4
|
Power loss or memory card lock operation.
|
5
|
Stop on hardware fault.
|
6
|
Stop on software fault (HALT instruction, SFC errors, application CRC check fail, undefined system function call, etc). Details on the software fault type are stored in %SW125.
|