Word (dec)
|
Control Expert-IEC bits
|
M580 Function
|
System Word
|
||
---|---|---|---|---|---|
1
|
Controller Status:
|
–
|
|||
0...3
|
Not used, always 0
|
||||
4
|
Always 0: no battery
|
||||
5
|
Memory protect on SD card: Info available in system
|
||||
6
|
Always 0; in stop mode, EF not executed
|
||||
7
|
Not used, always 0
|
||||
8
|
Not used, always 0
|
||||
9
|
Not used, always 0
|
||||
10
|
Same as periodic mode: 1 if %SW0 is not equal to 0
|
||||
11...15
|
Not used, always 0
|
||||
2
|
Hot standby Status: This status word is updated with T_M_ECPU_HSBY device DDT.
|
–
|
|||
0 and 1
|
local system state:
|
||||
Bit 1
|
Bit 0
|
State
|
|||
0
|
1
|
Off line NOT primary (1 0) AND NOT standby (1 1)
|
|||
1
|
0
|
primary = T_M_ECPU_HSBY.LOCAL_HSBY_STS.RUN_PRIMARY
|
|||
1
|
1
|
standby = T_M_ECPU_HSBY.LOCAL_HSBY_STS.RUN_STANDBY
|
|||
2 and 3
|
remote system state:
|
||||
Bit 3
|
Bit 2
|
State
|
|||
0
|
1
|
Off line: NOT primary (1 0) AND NOT standby (1 1)
|
|||
1
|
0
|
primary = T_M_ECPU_HSBY.REMOTE_STS_VALID AND T_M_ECPU_HSBY.REMOTE_HSBY_STS.RUN_PRIMARY
|
|||
1
|
1
|
standby = T_M_ECPU_HSBY.REMOTE_STS_VALID AND T_M_ECPU_HSBY.REMOTE_HSBY_STS.RUN_STANDBY
|
|||
4
|
Application mismatch = (T_M_ECPU_HSBY.APP_MISMATCH OR T_M_ECPU_HSBY.LOGIC_MISMATCH OR T_M_ECPU_HSBY.OFFLINE_BUILD_MISMATCH)
|
||||
5
|
Unit A or B = T_M_ECPU_HSBY.LOCAL_HSBY_STS.PLC_B
|
||||
6
|
CPU-sync link status = NOT(T_M_ECPU_HSBY.LOCAL_HSBY_STS.HSBY_LINK_ERROR OR T_M_ECPU_HSBY.REMOTE_HSBY_STS.HSBY_LINK_ERROR)
|
||||
7
|
CPU firmware mismatch = T_M_ECPU_HSBY.FW_MISMATCH
|
||||
8
|
not significant, always 0 (there is no copro)
|
||||
9...11
|
Not used, always 0
|
||||
12
|
Info validity = always valid
|
||||
13
|
IP or IP+1
|
||||
14
|
Not used, always 0
|
||||
15
|
Set to 1, if hot standby mode
|
||||
3
|
Controller status (more aspects):
|
–
|
|||
0...3
|
Not used, always 0
|
||||
4...11
|
Not used, always 0
|
||||
12
|
Always 0 (in NOCONF mode, no application)
|
||||
13
|
Period overrun: repetition of %S19
|
||||
14
|
Not used, always 0
|
||||
15
|
1 = first scan: repetition of %S13
|
||||
4
|
Not used, always 0
|
–
|
|||
5
|
Controller stop state:
|
–
|
|||
0...5
|
Not used, always 0
|
||||
6
|
Always 0 (use %S51 instead)
|
||||
7
|
Always 0 (use %S11 instead)
|
||||
8...11
|
Not used, always 0
|
||||
12
|
Always 0 (in HALT mode, no EF executed)
|
||||
13...15
|
Not used, always 0
|
||||
6
|
Not used, always 0
|
–
|
|||
7
|
Not used, always 0
|
–
|
|||
8
|
Not used, always 0
|
–
|
|||
9
|
Not used, always 0
|
–
|
|||
10
|
Not used, always 0
|
–
|
|||
11
|
Not used, always 0
|
–
|
Word (dec)
|
Control Expert-IEC bits
|
M580 Function
|
System Word
|
---|---|---|---|
12...16
|
Not used, always 0
|
–
|
|
17
|
I/O module health status for S908 drop 2 rack 1 (main rack).
|
%SW185
|
|
0
|
slot 16
|
||
...
|
...
|
||
15
|
slot 1
|
||
18
|
I/O module health status for S908 drop 2 rack 2 (extension rack).
|
%SW186
|
|
19
|
I/O module health status for S908 drop 2 rack 3 (extension rack).
|
%SW187
|
|
20
|
I/O module health status for S908 drop 2 rack 4 (extension rack).
|
%SW188
|
|
21
|
I/O module health status for S908 drop 2 rack 5 (extension rack).
|
%SW189
|
|
...
|
...
|
...
|
|
167
|
I/O module health status for S908 drop 32 rack 1 (main rack).
|
%SW335
|
|
168
|
I/O module health status for S908 drop 32 rack 2 (extension rack).
|
%SW336
|
|
169
|
I/O module health status for S908 drop 32 rack 3 (extension rack).
|
%SW337
|
|
170
|
I/O module health status for S908 drop 32 rack 4 (extension rack).
|
%SW338
|
|
171
|
I/O module health status for S908 drop 32 rack 5 (extension rack).
|
%SW339
|
Word (dec)
|
Control Expert-IEC bits
|
M580 Function
|
System Word
|
---|---|---|---|
172
|
S908 startup detected error code: This word is always 0 when the system is running. If an error is detected, the controller does not start, it generates a stop state code of 10 (word 5).
|
%SW535
|
|
173
|
Cable A detected error:
|
%SW536
|
|
0...7
|
counts DMA receiver overruns
|
||
8...15
|
counts detected framing errors
|
||
174
|
Cable A detected error:
|
%SW537
|
|
0...7
|
counts bad drop receptions
|
||
8...15
|
counts detected receiver errors
|
||
175
|
Cable A detected error:
|
%SW538
|
|
0
|
Not used, always 0
|
||
1
|
1 =overrun error detected
|
||
2
|
1 = alignment error detected
|
||
3
|
1 = CRC error detected
|
||
4...13
|
Not used, always 0
|
||
14
|
1 = no end-of- frame
|
||
15
|
1 = short frame
|
||
176
|
Cable B detected error:
|
%SW539
|
|
0...7
|
counts DMA receiver overruns
|
||
8...15
|
counts detected framing errors
|
||
177
|
Cable B detected error:
|
%SW540
|
|
0...7
|
counts bad drop receptions
|
||
8...15
|
counts detected receiver errors
|
||
178
|
Cable B detected error:
|
%SW541
|
|
0
|
Not used, always 0
|
||
1
|
1 =overrun error detected
|
||
2
|
1 = alignment error detected
|
||
3
|
1 = CRC error detected
|
||
4...13
|
Not used, always 0
|
||
14
|
1 = no end-of- frame
|
||
15
|
1 = short frame
|
||
179
|
Global communication status:
|
%SW542
|
|
0...7
|
cumulative retry counter
|
||
8...11
|
lost communication counter
|
||
12
|
Not used, always 0
|
||
13
|
1 = cable B status
|
||
14
|
1 = cable A status
|
||
15
|
1 = comm health
|
||
180
|
Global cumulative detected error counter for Cable A
|
%SW543
|
|
181
|
Global cumulative detected error counter for Cable B
|
%SW544
|
Word (dec)
|
Control Expert-IEC bits
|
M580 Function
|
System Word
|
---|---|---|---|
182
|
First word: Local drop status
|
%SW545
|
|
0...7
|
number of times a module has been seen as unhealthy; counter rolls over at 255
|
||
8...14
|
Not used, always 0
|
||
15
|
1 = all modules healthy
|
||
183
|
Second word: This word is a 16-bit detected error counter, which indicates the number of times a module has been accessed and found to be unhealthy.
Rolls over at 65535.
|
%SW546
|
|
184
|
Third word: This word is a 16-bit detected error counter, which indicates the number of times a communication error was detected while accessing an I/O module.
Rolls over at 65535.
|
%SW547
|
Word (dec)
|
Control Expert-IEC bits
|
M580 Function
|
System Word
|
---|---|---|---|
185
|
First word: Communication status for the appropriate drop 2.
|
%SW548
|
|
0...7
|
cumulative retry counter
|
||
8...11
|
lost communication counter
|
||
12
|
Not used, always 0
|
||
13
|
1 = cable B status
|
||
14
|
1 = cable A status
|
||
15
|
1 = communication health
|
||
186
|
Second word: the drop cumulative detected error counter on cable A for the drop 2.
|
%SW549
|
|
187
|
Third word: the drop cumulative detected error counter on cable B for the drop 2.
|
%SW550
|
|
188...190
|
Drop 3 errors/health status and retry counters: First, second, and third words.
|
%SW551
...
%SW553
|
|
...
|
...
|
...
|
|
275...277
|
Drop 32 errors/health status and retry counters: First, second, and third words.
|
%SW638
...
%SW640
|