Description of System Words %SW124 to %SW127
Original instructions
Detailed Description
Description of system words %SW124 to %SW127:
Word
Symbol
%SW124
CPUERR
Function
Type of processor or system error
Initial State
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: Yes Momentum: Yes Premium: Yes Atrium: Yes
NOTE: Only used for support.
The last type of system fault encountered is written into this word by the system (these codes are unchanged on a cold restart).
%SW125
BLKERRTYPE
Function
Last fault detected
Initial State
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: Yes Momentum: Yes Premium: Yes Atrium: Yes
The code of the last fault detected is given in this word.
The following error codes cause the PLC to stop if %S78 is set to 1. %S15, %S18 and %S20 are always activated independently of %S78:
  • 16#2258: execution of HALT instruction
  • 16#DE87: calculation error on floating-point numbers (%S18, these errors are listed in the word %SW17)
  • 16#DEB0: Watchdog overflow (%S11)
  • 16#DEF0: division by 0 (%S18)
  • 16#DEF1: character string transfer error (%S15)
  • 16#DEF2: arithmetic error (%S18)
  • 16#DEF3: index overflow (%S20)
NOTE: The following codes 16#8xF4, 16#9xF4, and 16#DEF7 indicate an error on Sequence Function Chart (SFC).
NOTE: The codes listed above is a non-exhaustive list.
%SW126
ERRADDR0
%SW127
ERRADDR1
Function
Blocking error instruction address
Initial State
0
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: Yes Momentum: Yes Premium: Yes Atrium: Yes
NOTE: Only used for support.
Address of the instruction that generated the application blocking error.
For 16 bit processors, TSX P57 1••/2••:
  • %SW126 contains the offset for this address.
  • %SW127 contains the segment number for this address.
For 32 bit processors:
  • %SW126 contains the least significant word for this address.
  • %SW127 contains the most significant word for this address.
For a system STOP due a watchdog overflow:
  • %SW126 contains the number of the MAST task with the overflow.
  • %SW127 contains the value of the MAST task with the overflow.