Description of System Words %SW70 to %SW99
Original instructions
Detailed Description
Description of system words %SW70 to %SW99:
Word
Symbol
%SW70
WEEKOFYEAR
Function
Real-time clock function
Initial State
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: Yes Momentum: Yes Premium: Yes Atrium: Yes
System word containing the number of the week in the year: 1 to 52 (in BCD).
%SW71
KEY_SWITCH
Function
Position of the switches on the Quantum front panel
Initial State
0
Platforms
M340: No M580: No M580 Safety: No Quantum: Yes Momentum: No Premium: No Atrium: No
This word provides the image of the positions of the switches on the front panel of the Quantum processor. This word is updated automatically by the system:
  • %SW71.0 = 1 switch in the "Memory protected" position.
  • %SW71.1 = 1 switch in the "STOP" position.
  • %SW71.2 = 1 switch in the "START" position.
  • %SW71.8 = 1 switch in the "MEM" position.
  • %SW71.9 = 1 switch in the "ASCII" position.
  • %SW71.10 = 1 switch in the "RTU" position.
  • %SW71.3 to %SW71.7 and %SW71.11 to %SW71.15 are not used.
%SW72
Function
Unity 984 Error Log
Initial State
0
Platforms
M340: Yes M580: No M580 Safety: No Quantum: Yes Momentum: Yes Premium: Yes Atrium: Yes
Extended Math library (EMTH) detected error log errors (as LL984).
Bit / Function:
15 - 8: function code / EMTH sub-function (see below)
7 - 6: not used
4: integer/floating point conversion detected error
3: exponential function power too large
2: invalid floating point value or operation
1: floating point overflow
0: floating point underflow
Function code / EMTH sub-function:
16#01 / ADDDP
16#02 / SUBDP
16#03 / MULDP
16#04 / DIVDP
16#05 / SQRT
16#06 / SQRTP
16#07 / LOG
16#08 / ANLOG
16#09 / CNVIF
16#0A / ADDIF
16#0B / SUBIF
16#0C / MULIF
16#0D / DIVIF
16#0E / SUBFI
16#0F / DIVFI
16#10 / CMPIF
16#11 / CNVFI
16#12 / ADDFP
16#13 / SUBFP
16#14 / MULFP
16#15 / DIVFP
16#16 / CMPFP
16#17 / SQRFP
16#18 / CHSIN
16#19 / PI
16#1A / SINE
16#1B / COS
16#1C / TAN
16#1D / ARSIN
16#1E / ARCOS
16#1F / ARTAN
16#20 / CNVRD
16#21 / CNVDR
16#22 / POW
16#23 / EXP
16#24 / LNFP
16#25 / LOGFP
16#26 / ERLOG
%SW73
TS_DIAGNOSTICS_FLAGS
Function
Time stamping diagnostics flags
Initial State
0
Platforms
M340: No M580: Yes M580 Safety: Yes Quantum: No Momentum: No Premium: No Atrium: No
This word provides diagnostics information about the time stamped events source:
  • %SW73.0 = 1 (TIME_VALID) when time is valid and clock is synchronized (%SW73.1 = 0 and %SW73.2 = 0)
  • %SW73.1 = 1 (CLOCK_FAILURE) when the time source of the sending device is not currently reliable or if the initial synchronization has not been done since the time stamping module start.
  • %SW73.2 = 1 (CLOCK_NOT_SYNC) when the time synchronization is lost while the time stamping module is running.
  • %SW73.3 (BUFF_FULL) is buffer full indication:
    • %SW73.3 = 1 when the buffer becomes full.
    • %SW73.3 = 0 when the percentage of buffer fill is below the threshold.
      NOTE: As long as the %SW73.3 = 1, no event is written in the FIFO.
  • %SW73.4 to %SW73.6 are reserved.
  • %SW73.7 = 1 (SOE_UNCERTAIN) when events might be lost in the following sequence of events.
%SW74
Function
Time stamping status
Initial State
0
Platforms
M340: No M580: Yes M580 Safety: Yes Quantum: No Momentum: No Premium: No Atrium: No
Meaning of the bytes of the word %SW74:
  • Lowest byte (bits 0...7): TS_EVENTS_STATE. Reports the main state of the time stamping event service (for debugging). The byte value (in hex) is described below:
    00 Power on 10 Initial, configuration is valid 20 Wait for client (OFS/SCADA) 31 Values synchronization requested and waiting for buffer below the threshold 32 Values synchronization started 33 Values synchronization done 40 Detection of events in progress 51 Buffer full synchronization requested and waiting for buffer below the threshold 52 Buffer full synchronization started 53 Buffer full synchronization done
  • Highest byte (bits 8...15): TS_BUF_FILLED_PCTAGE. Percentage of buffer filled (0...100).
    NOTE: The percentage of buffer filled includes the events read but not acknowledged.
%SW75
TIMEREVTNB
Function
Timer-type event counter
Initial State
0
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: Yes Momentum: No Premium: Yes Atrium: Yes
This word contains the number of timer-type events in the queue.
For Premium and Atrium, not available on the processors TSX 57 1•/2•/3•/4•/5•.
%SW76
DLASTREG
Function
Diagnostics function:
recording
Initial State
0
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: Yes Momentum: Yes Premium: Yes Atrium: Yes
Result of the last registration:
  • = 0 if the recording was successful.
  • = 1 if the diagnostics buffer has not been configured.
  • = 2 if the diagnostics buffer is full.
%SW77
DLASTDEREG
Function
Diagnostics function:
non-recording
Initial State
0
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: Yes Momentum: Yes Premium: Yes Atrium: Yes
Result of the last de-registration:
  • = 0 if the non-recording was successful.
  • = 1 if the diagnostics buffer has not been configured.
  • = 21 if the error identifier is invalid.
  • = 22 if the error has not been recorded.
%SW78
DNBERRBUF
Function
Diagnostics function:
number of errors
Initial State
0
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: Yes Momentum: Yes Premium: Yes Atrium: Yes
Number of errors currently in the diagnostics buffer.
%SW80
MSGCNT0
Function
Message management
Initial State
0
Platforms
M340: Yes M580: No M580 Safety: No Quantum: Yes Momentum: Yes Premium: Yes Atrium: Yes
This word is updated by the system, and can also be reset using %S80.
For Premium:
Number of message sent by the system to the terminal port (Uni-Telway port).
For Modicon M340 and Momentum:
Number of message sent by the system to the terminal port (Modbus serial port).
For Quantum:
Number of Modbus messages sent by the system as client on all communication ports.
NOTE: Modbus messages sent by the system as Master are not counted in this word.
%SW81
MSGCNT1
Function
Message management
Initial State
0
Platforms
M340: Yes M580: No M580 Safety: No Quantum: Yes Momentum: Yes Premium: Yes Atrium: Yes
This word is updated by the system, and can also be reset using %S80.
For Premium:
Number of message received by the system to the terminal port (Uni-Telway port).
For Modicon M340 and Momentum:
Number of message received by the system to the terminal port (Modbus serial port).
For Quantum:
Number of Modbus messages received by the system as client on all communication ports.
NOTE: Modbus messages received as response to the requests sent by the system, as Master, are not counted in this word.
%SW82
MSGCNT2
Function
Message management
Initial State
0
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: Yes Momentum: Yes Premium: Yes Atrium: Yes
This word is updated by the system, and can also be reset using %S80.
For Premium and Atrium:
Number of messages sent by the system to the PCMCIA module.
For M340, Momentum and M580:
Number of Bridged messages of all types, properly routed.
For Quantum:
Number of Modbus messages sent or received on serial port 1, updated at 1 seconde period.
%SW83
MSGCNT3
Function
Message management
Initial State
0
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: Yes Momentum: Yes Premium: Yes Atrium: Yes
This word is updated by the system, and can also be reset using %S80.
For Premium and Atrium:
Number of messages received by the system from the PCMCIA module.
For M340, Momentum and M580:
Number of Bridged messages of all types, not properly routed.
For Quantum:
Number of Modbus messages sent or received on serial port 2, updated at 1 second period.
%SW84
MSGCNT4
Function
Premium: Telegram management
Modicon M340: Message management
Initial State
0
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: No Momentum: Yes Premium: Yes Atrium: Yes
This word is updated by the system, and can also be reset using %S80.
For Premium:
Number of telegrams sent by the system.
For Quantum, M340, M580, and Momentum:
Number of messages sent to the USB port.
%SW85
MSGCNT5
Function
Premium: Telegram management
Modicon M340: Message management
Initial State
0
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: No Momentum: Yes Premium: Yes Atrium: Yes
This word is updated by the system, and can also be reset using %S80.
For Premium:
Number of telegrams received by the system.
For Quantum, M340, M580, and Momentum:
Number of messages received by the USB port.
%SW86
MSGCNT6
Function
Message management
Initial State
0
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: No Momentum: Yes Premium: Yes Atrium: Yes
This word is updated by the system, and can also be reset using %S80.
For Premium and M580:
Number of messages refused by the system.
For Modicon M340 and Momentum:
Number of messages refused by the system, not treated because of lack of resources for example.If the message is refused by Modbus Server then it corresponds to Modbus exception messages, sent by the CPU to the remote Modbus client.
%SW87
MSTSERVCNT
Function
Communication flow management
Initial State
0
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: Yes Momentum: Yes Premium: Yes Atrium: Yes
Number of requests processed by synchronous server per master (MAST) task cycle.
The requests processed may come from all communication ports (having access to the server Modbus/UNI-TE, each of them having its own limitation). This means also that requests from other clients, then communication EFs like IO Scanner, connected HMI and so on should be counted.
%SW88
ASNSERVCNT
Function
Premium: Communication flow management
Modicon M340, M580 and Momentum: HTTP requests received by the processor’s Web server per second
Initial State
0
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: No Momentum: Yes Premium: Yes Atrium: Yes
For Premium:
Number of requests processed by asynchronous server per master (MAST) task cycle.
For Modicon M340, M580 and Momentum:
Number of HTTP requests received by the processor’s Web server per second.
%SW89
APPSERVCNT
Function
Premium: Communication flow management
Modicon M340 and M580:FTP requests received by the FTP server per second
Initial State
0
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: No Momentum: No Premium: Yes Atrium: Yes
For Premium:
Number of requests processed by server functions (immediately) per master (MAST) task cycle.
For Modicon M340, and M580:
Number of FTP requests received by the FTP server per second.
%SW90
MAXREQNB
Function
Maximum number of requests processed per master task cycle
Initial State
N
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: Yes Momentum: Yes Premium: Yes Atrium: Yes
This word is used to set a maximum number of requests (all protocols included: UNI-TE, Modbus, and so on.) which can be processed by the server of the PLC per master task cycle. (Requests sent by the PLC as client are not concerned).
The number of requests to be processed per cycle should take into account requests from all communication ports (having access to the server). This means that requests from other clients than communication EFs, like IO Scanner, connected HMI and so on should also be taken into account.
The Word is initialized by the system with N (default value). If the value 0 is entered, it is the value N that is taken into account. If a value between 1 and minimum is entered, it is the minimum value that is taken into account. If a value greater than maximum is entered, it is maximum value that is taken into account.
NOTE: Requests may come from various modules or embedded communication ports. The communication exchange capacity of each port is limited, therefore the maximum request value set in %SW90 might not be reached.
This number of requests must be between a minimum and a maximum (defined as N+4) depending on the model.
For M340 range:
  • BMX P34 10••/20••: N = 8 (minimum 2, maximum 8 + 4 =  12)
For M580 range:
  • BMX P58 10•0: N = 16 (minimum 2, maximum 16 + 4 =  20)
  • BMX P58 20•0: N = 24 (minimum 2, maximum 24 + 4 =  28)
  • BMX P58 30•0: N = 32 (minimum 2, maximum 32 + 4 =  36)
  • BMX P58 40•0: N = 40 (minimum 2, maximum 40 + 4 =  44)
For Premium range:
  • TSX 57 0•/1•: N = 4 (minimum 2, maximum 4 + 4 =  8)
  • TSX 57 2•: N = 8 (minimum 2, maximum 8 + 4 =  12)
  • TSX 57 3•: N = 12 (minimum 2, maximum 12 + 4 =  16)
  • TSX 57 4•/5•: N = 16 (minimum 2, maximum 16 + 4 =  20)
For Quantum range:
  • 140 CPU 31••/43••/53••/: N = 10 (minimum 5, maximum 10 + 4 =  14)
  • 140 CPU 6••: N = 20 (minimum 5, maximum 20 + 4 =  24)
For Momentum range:
  • 170 CBU 78 090/CBU 98 090: N = 4 (minimum 2, maximum 4 + 4 =  8)
  • 171 CBU 98 091: N = 8 (minimum 2, maximum 8 + 4 =  12)
%SW91 and %SW92
Function
Function blocks message rates
Initial State
0
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: No Momentum: No Premium: Yes Atrium: Yes
  • %SW91: Number of function blocks messages sent per second.
  • %SW92: Number of function block messages received per second.
Can be read by the user program or by the terminal.
These counters does not include other outgoing requests coming from an IO Scanner for example.
%SW93
Function
Memory card file system erasing command & status
Initial State
0
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: No Momentum: No Premium: No Atrium: No
Can be read and written by the user program or the terminal. This word is used by the customer to erase or clean up the memory card.
The erasing operation deletes the web pages. To recover them, perform one of the two following actions:
  • Use FTP:
    • Before performing the erasing, save the web pages using FTP.
    • After performing the erasing, reload the web pages via FTP.
  • Reinstall the firmware operating system of the processor.
The clean up operation deletes the content of the data storage directory.
Erasing or clean up is possible only in Stop mode:
  • %SW93.0 = 1, a rising edge starts the erasing operation.
  • %SW93.1 gives the file system status after an erasing or a clean up operation request:
    • %SW93.1 = 0, invalid file system or command under progress.
    • %SW93.1 = 1, valid file system.
    NOTE: %SW93.1 default value is 0, %SW93.1 turns to one after a successful erasing or clean up, then when the project is transferred to the PLC, %SW93.1 turns to zero.
  • %SW93.2 = 1, a rising edge starts the clean up operation.
%SW94 and %SW95
Function
Application modification signature
Initial State
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: No Momentum: Yes Premium: No Atrium: No
These two words contain a 32-bit value that changes at every application modification except when:
  • updating upload information.
  • replacing the initial value with the current value.
  • saving the parameter command.
They can be read by the user program or by the terminal.
%SW96
CMDDIAGSAVEREST
Function
Command and Diagnostic of Save and Restore
Initial State
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: No Momentum: Yes Premium: No Atrium: No
This word is used to copy or delete the current value of %MW to or from internal flash memory and to give the action’s status. It can be read by the user program or by the terminal:
  • %SW96.0: Request to copy current value of %MW to internal Flash memory. Set to 1 by the user to request a save, and set to 0 by the system when a save is in progress.
    NOTE: You must stop the processor before copying via %SW96.0.
  • %SW96.1 is set to 1 by the system when a save is finished, and set to 0 by the system when a save is in progress.
  • %SW96.2 = 1 indicates an error on a save or restore operation (see %SW96.8 to %SW96.15 for error code definitions).
  • %SW96.3 = 1 indicates that a restore operation is in progress.
  • %SW96.4 may be set to 1 by the user to delete %MW area in internal Flash memory.
  • %SW96.7 = 1 indicates that internal memory has valid %MW backup.
%SW96.8 to %SW96.15 are error codes when %SW96.2 is set to 1:
  • %SW96.9 = 1 indicates that the saved %MW number is less than the configured number.
  • %SW96.8 = 1 and %SW96.9 = 1 means that the saved %MW number is greater than the configured number.
  • %SW96.8 = 1, %SW96.9 = 1 and %SW96.10 = 1 indicates a detected write error in internal flash memory.
%SW97
CARDSTS
Function
Card status
Initial State
Platforms
M340: Yes M580: Yes M580 Safety: Yes Quantum: No Momentum: No Premium: No Atrium: No
Can be read by the user program or by the terminal. Indicates the status of the card.
%SW97:
  • 0000 = no error.
  • 0001 = application backup or file write sent to a write-protected card.
  • 0002 = card not recognized, or application backup damaged.
  • 0003 = backup of the application requested, but no card available.
  • 0004 = card access error, for example after a card has been removed not properly.
  • 0005 = no file system present in the card, or file system not compatible. Use %SW93.0 to erase the card.
%SW98
Function
CRP/CRA support of CCOTF (Configuration Change On The Fly) low status register
Initial State
0
Platforms
M340: No M580: No M580 Safety: No Quantum: Yes Momentum: No Premium: No Atrium: No
This words contains a bit string indicating at 1 that the corresponding CRP/CRA supports the CCOTF. The bit assignment is the following:
  • %SW98.0 at 0, CRP doesn’t support CCOTF, at 1 CRP supports CCOTF.
  • %SW98.1 to %SW98.15:
    • = 0, the drops 2 to 16 doesn’t support CCOTF.
    • = 1, the drops 2 to 16 support CCOTF.
NOTE: Take care the Drop is powered, otherwise the CRA’s bit is always equal to 0.
%SW99
Function
CRA support of CCOTF (Configuration Change On The Fly) high status register
Initial State
0
Platforms
M340: No M580: No M580 Safety: No Quantum: Yes Momentum: No Premium: No Atrium: No
NOTE: This system word is also used for Premium module but has a different function (see below).
This words contains a bit string indicating at 1 that the corresponding CRA supports the CCOTF. The bit assignment is the following:
  • %SW99.0 to %SW99.15:
    • = 0, the drops 17 to 32 doesn’t support CCOTF.
    • = 1, the drops 17 to 32 support CCOTF.
NOTE: Take care the Drop is powered, otherwise the CRA’s bit is always equal to 0.
%SW99
INPUTADR/SWAP
Function
Communication redundancy management
Initial State
0
Platforms
M340: No M580: No M580 Safety: No Quantum: No Momentum: No Premium: Yes Atrium: Yes
NOTE: This system word is used for Quantum module but has a different function (see above).
Word used to manage the redundancy of network modules.
When a problem is detected on a communication module used to access a network number x (X-WAY), it is possible to switch to another communication module (connected to the same network) by entering the network number in the %SW99 word.
%SW99 is reset to 0 by the system.