Description of System Words %SW100 to %SW117
Original instructions
Introduction
NOTE: For M580, system words %SW110 to %SW117 have a specific meaning.
Detailed Description
Description of system words %SW100 to %SW117:
Word
Symbol
%SW100
CCOTF_COUNT
Function
CCOTF counting status register
Initial State
0
Platforms
M340: No M580: Yes M580 Safety: Yes Quantum: Yes Momentum: No Premium: No Atrium: No
Meaning of the different bits of the word %SW100:XXYY
  • For Quantum platforms:
    • XX increments each time an I/O configuration is done in RUN state in an S908 RIO drop.
    • YY increments each time an I/O configuration is done in RUN state in the local rack.
      It is not changed on other types of application modifications
    NOTE: On a RUN-to-STOP mode transition, %SW100 is reset to 0.
  • For M580 platforms:
    • XX Reserved
    • YY increments each time an I/O configuration is done in the local rack.
      It is not changed on other types of application modifications
    NOTE: On a cold-start, warm-start or application download, %SW100 is reset to 0.
NOTE: When a byte reaches its maximum value of 255, the counter is set to 1.
%SW101
EIO_CCOTF_COUNT
Function
EIO CCOTF counting status register
Initial State
0
Platforms
M340: No M580: Yes M580 Safety: Yes Quantum: Yes Momentum: No Premium: No Atrium: No
Meaning of the bytes of the word %SW101:XXYY
  • For Quantum platforms:
    • XX Reserved.
    • YY increments each time an Ethernet I/O configuration changes.
      It is not changed on other types of application modifications
  • For M580 platforms:
    • XX Reserved.
    • YY increments each time an Ethernet I/O configuration changes.
      NOTE: YY increments twice each time a change is performed on a redundant Quantum S908 remote drop.
      It is not changed on other types of application modifications
NOTE: On a cold-start, warm-start or application download, %SW101 is reset to 0.
%SW102
Function
Counter for the stored Quantum forced bits.
Initial State
0
Platforms
M340: No M580: Yes M580 Safety: Yes Quantum: Yes Momentum: No Premium: No Atrium: No
Each forced bit address is stored in a table which is limited to 1024 entries.
The word %SW102 contains the number of bits stored in the table.
NOTE: It is possible to force more bits than the limit of the table (1024). In this case %SW108 is greater than %SW102 and the complete list of forced bits can not be retrieved even if bits are unforced afterwards.
%SW108
FORCEDIOIM
Function
Forced bit counting status register
Initial State
0
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: Yes Momentum: Yes Premium: Yes Atrium: Yes
Word %SW108:
  • increments each time a discrete bit (%I,%Q, %M or DDDT) is forced.
  • decrements each time a discrete bit is unforced.
%SW109
FORCEDANA
Function
Forced analog channel counting status register
Initial State
0
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: Yes Momentum: No Premium: Yes Atrium: Yes
Word %SW109:
  • increment each time an analog channel is forced.
  • decrement each time an analog channel is unforced.
NOTE: For Quantum platform, limited to analog channels of Modicon M340 Analog Modules in remote I/O drops.
%SW116
REMIOERR
Function
Fipio I/O error
Initial State
Platforms
M340: No M580: No M580 Safety: No Quantum: No Momentum: No Premium: Yes Atrium: Yes
Normally set to 0, each bit for this word signifies the Fipio exchange status of the exchange in which it is being tested.
This word is to be reset to 0 by the user.
More details on bits of word %SW116:
  • %SW116.0 = 1, explicit exchange error (variable has not been exchanged on the bus).
  • %SW116.1 = 1, time-out on an explicit exchange (no reply at the end of time-out).
  • %SW116.2 = 1, maximum number of explicit exchanges achieved at the same time.
  • %SW116.3 = 1, a frame is invalid.
  • %SW116.4 = 1, the length of frame received is greater than the length that was declared.
  • %SW116.5 = reserved on 0.
  • %SW116.6 = 1, a frame is invalid, or an agent is initializing.
  • %SW116.7 = 1, absence of a configured device.
  • %SW116.8 = 1, channel fault (at least one device channel is indicating a fault).
  • %SW116.8 = 1 to %SW116.15 = reserved on 0.
%SW117
Function
The system word %SW117 contains the Quantum RIO status provided by the PLCSTAT DFB
Initial State
Platforms
M340: No M580: Yes M580 Safety: No Quantum: No Momentum: No Premium: No Atrium: No
RIO_ERR_INIT_FAILED
0x0010
RIO_ERR_CRP_HOTSWAP
0x0020
RIO_ERR_DIAG_FAILED
0x0030
RIO_ERR_BAD_STATE
0x0040
RIO_ERR_WRONG_VERS
0x0050
RIO_ERR_BAD_TCOP
0x0060
RIO_ERR_CRP_COM_ERROR
0x0070
RIO_ERR_CRP_MODE
0x0080
RIO_ERR_CRP_TIMEOUT
0x0090
M580 Specific Function
Description of system words %SW110 to %SW117 for M580:
Word
Symbol
%SW110
%SW111
%SW112
%SW113
%SW114
%SW115
%SW116
Function
M580 CPU load
Initial State
0
  • %SW110 is the CPU load used by the system for internal service.
  • %SW111 is the CPU load used by the MAST task.
  • %SW112 is the CPU load used by the FAST task.
  • %SW113 is the CPU load used by the SAFE task.
  • %SW114 is the CPU load used by the AUX0 task.
  • %SW115 is the CPU load used by the AUX1 task.
  • %SW116 is the total CPU load (sum of %SW110 to %SW115).
%SW117
Function
Quantum RIO status provided by the PLCSTAT DFB