Momentum-specific System Words
Original instructions
Detailed Description
WARNING
UNEXPECTED APPLICATION BEHAVIOR
Do not use system objects (%Si, %SWi) as variable when they are not documented.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Description of system words %SW128 to %SW152 on Momentum processors:
Word
Symbol
%SW128 and %SW129
Function
I/O-Bus module health
Initial State
0
%SW128.0 is module #1 health; %SW129.15 is module #32 health. If a health bit is set to:
  • 0 = the module is not healthy or the module is not configured.
  • 1 = the module is healthy.
%SW132
Function
I/O compatibility detected error status
Initial State
0
NOTE: The content of this word is significant only if %S118 is set to 1.
Meaning of the different bits of the word %SW132.0 to %SW132.15:
  • %SW132.0 to %SW132.14: These bits contain a value from 1 to 64, signifying the network position of the module that cannot be reached. For example, a value of 8 indicates a detected communications failure in accessing the eighth module on the network.
  • %SW132.15:
    • %SW132.15 = 0 indicates a detected general communication stoppage; for example: no power to the module or a break in its input cable.
    • %SW132.15 = 1 indicates that communication is possible, but the I/O bus ID received from the module does not match the module type contained in the configuration for that position.
%SW134
Function
I/O-Bus detected error
Initial State
0
Meaning of the values of the word %SW134:
  • 0 = no error detected
  • 1 = module ID mismatch
  • 2 = I/O base detected error
  • 3 = missing modules or extra module
  • 4 = bus exchange detected error
  • 5 = bus cable incorrectly connected
NOTE: %SW134 stores the last detected error. The system does not automatically reset this word to 0 when the cause of the detected error no longer exists. You need to set this word to 0 after resolving the cause of the detected error.
%SW135
Function
Local I/O detected error
Initial State
0
Meaning of the values of the word %SW135:
  • 0 = no error detected
  • 1 = read local I/O base ID detected error
  • 2 = I/O base ID does not match the application configuration
  • 3 = I/O base detected errors
NOTE: %SW135 stores the last detected error. The system does not automatically reset this word to 0 when the cause of the detected error no longer exists. You need to set this word to 0 after resolving the cause of the detected error.
%SW137
Function
Modbus slave address - serial port 2
Initial State
0
Read-only system word containing the Modbus slave address for serial port number 2.
NOTE: Applies to Momentum processors with 2 serial ports, for example the 171 CBU 78090.
%SW138
Function
Messages transmitted - serial port 2
Initial State
0
Read-only system word containing the number of messages transmitted to serial port number 2.
NOTE: Applies to Momentum processors with 2 serial ports, for example the 171 CBU 78090.
%SW139
Function
Messages received - serial port 2
Initial State
0
Read-only system word containing the number of messages received by serial port number 2.
NOTE: Applies to Momentum processors with 2 serial ports, for example the 171 CBU 78090.
%SW141 and %SW142
Function
IP netmask
Initial State
0
These words contain the following data:
  • %SW141: the IP subnet mask - low octets
  • %SW142: the IP subnet mask - high octets
NOTE: Applies to Momentum processors with an Ethernet port, for example the 171 CBU 98090 and 171 CBU 98091.
%SW143 and %SW144
Function
IP gateway
Initial State
0
These words contain the following data:
  • %SW143: the IP subnet mask - low octets
  • %SW144: the IP subnet mask - high octets
NOTE: Applies to Momentum processors with an Ethernet port, for example the 171 CBU 98090 and 171 CBU 98091.
%SW145 to %SW147
Function
MAC address
Initial State
0
These words contain the following data:
  • %SW145: the MAC address - low octets
  • %SW146: the MAC address - middle octets
  • %SW147: the MAC address - high octets
NOTE: Applies to Momentum processors with an Ethernet port, for example the 171 CBU 98090 and 171 CBU 98091.
%SW148
Function
ETH services status
Initial State
0
%SW148: FDR client status:
  • 0 = not initialized
  • 1 = IP initialized
  • 2 = Reserved
  • 3 = link ETH down
  • 4 = duplicate IP detected
  • 5 = waiting for server
  • 6 = no configuration, or configuration detected error
%SW151 and %SW152
Function
ETH open connection number
Initial State
0
These words contain the following data:
  • %SW151: the number of open connections in server mode.
  • %SW152: the number of open connections in client mode.