Description of Modicon M580-specific System Words %SW185 to %SW640
Original instructions
Detailed Description
Description of system words %SW185 to %SW640:
Word
Symbol
%SW185 to %SW339
IOHEALTHij
i=1...32, j=1...5
Function
Health bits of the S908 drops
Initial State
0
Words %SW185 to %SW339 are associated with drops 2 to 32. Each drop has 5 words assigned to the main and up to four configured extension racks:
  • %SW185: module health bits of the S908 drop 2, rack 1 (main).
  • %SW186: module health bits of the S908 drop 2, rack 2 (extension).
  • %SW187 module health bits of the S908 drop 2, rack 3 (extension).
  • %SW188 module health bits of the S908 drop 2, rack 4 (extension).
  • %SW189 module health bits of the S908 drop 2, rack 5 (extension).
  • ...
  • %SW335: module health bits of the S908 drop 32, rack 1.
  • %SW336: module health bits of the S908 drop 32, rack 2.
  • %SW337 module health bits of the S908 drop 32, rack 3.
  • %SW338 module health bits of the S908 drop 32, rack 4.
  • %SW339 module health bits of the S908 drop 32, rack 5.
NOTE: The Quantum drops support only two racks and system words for rack 3, 4, and 5 are not used. The 800 Series I/O drops support up to five racks.
Bits 0 to 15 of each of these words are associated with the modules located in positions 16 to 1 of these racks.
The bit equals 0 if the module is inoperative and equals 1 if the module is operating correctly.
Example: %SW185.5 = 0: the module located in S908 drop 2, main rack, slot 11 is inoperative.
NOTE: Modules 140 XBE 100 00 require a special management.
%SW535
RIOERRSTAT
Function
CRP error on start-up
Initial State
This word stores the start-up error code. This word is always set to 0 when the system is running; in the event of error, the CRP does not start up, but generates a stop status code.
01: I/O assignment length
02: Remote I/O link number
03: Number of stations in the I/O assignment
04: I/O assignment checksum
10: Length of the station descriptor
11: I/O station number
12: Station autonomy time
13: ASCII port number
14: Number of station modules
15: Station already configured
16: Port already configured
17: More than 1024 output points
18: More than 1024 input points
20: Module slot address
21: Module rack address
22: Number of output bytes
23: Number of input bytes
25: First reference number
26: Second reference number
28: Internal bits outside the 16 bit range
30: Unpaired odd output module
31: Unpaired odd input module
32: Unpaired odd module reference
33: Reference 1x after register 3x
34: Reference of dummy module already used
35: Module 3x is not a dummy module
36: Module 4x is not a dummy module
%SW536
CAERRCNT1
%SW537
CAERRCNT2
%SW538
CAERRCNT3
Function
Communication status on cable A
Initial State
The words %SW536 to %SW538 are the communication error words on cable A.
  • %SW536:
    • most significant byte: counts framing errors
    • least significant byte: counts overruns of the DMA receiver.
  • %SW537:
    • most significant byte: counts receiver errors
    • least significant byte: counts incorrect station receptions.
  • %SW538:
    • %SW538.0 = 1, short frame
    • %SW538.1 = 1, CRC error
    • %SW538.2 = 1, alignment error
    • %SW538.4 = 1, abort
    • %SW538.5 to %SW538.7 = residual char length
    • %SW538.8 to %SW538.15 and %SW538.3 are unused
%SW539
CBERRCNT1
%SW540
CBERRCNT2
%SW541
CBERRCNT3
Function
Communication status on cable B
Initial State
The words %SW539 to %SW541 are the communication error words on cable B.
  • %SW539:
    • most significant byte: counts framing errors.
    • least significant byte: counts overruns of the DMA receiver.
  • %SW540:
    • most significant byte: counts receiver errors.
    • least significant byte: counts incorrect station receptions.
  • %SW541:
    • %SW541.0 = 1, short frame
    • %SW541.1 = 1, CRC error
    • %SW541.2 = 1, alignment error
    • %SW541.4 = 1, abort
    • %SW541.5 to %SW541.7 = residual char length
    • %SW541.8 to %SW541.15 and %SW541.3 are unused
%SW542
GLOBERRCNT0
%SW543
GLOBERRCNT1
%SW544
GLOBERRCNT2
Function
Global communication status
Initial State
The words %SW542 to %SW544 are the global communication error words.
  • %SW542: displays the global communication status:
    • %SW542.15 = 1, communication operating correctly.
    • %SW542.14 = 1, communication on cable A operating correctly.
    • %SW542.13 = 1, communication on cable B operating correctly.
    • %SW542.11 to %SW542.8 = lost communications counter.
    • %SW542.7 to %SW542.0 = retry totalizer counter.
    NOTE: If the cable A is disconnected from the Standby PLC, standby status remains active. So the Primary PLC takes into account standby PLC, but instead of showing %SW542.14 = 0, the Primary %SW542.14 toggles between 0 and 1.
  • %SW543: is the global error totalizer counter for cable A:
    • most significant byte: frame detected error counter.
    • least significant byte: no response counter.
  • %SW544: is the global error totalizer counter for cable B:
    • most significant byte: frame detected error counter.
    • least significant byte: no response counter.
%SW548 to %SW640
MODUNHEALTHi IOERRCNTi IORETRYi
i=2...32
Function
S908 Drops communication status
Initial State
The words %SW548 to %SW640 are used to describe the communication status of the S908 drops. 3 status words are used for each drops:
  • %SW548: displays the global communication status for drop 2:
    • %SW548.15 = 1, communication operating correctly.
    • %SW548.14 = 1, communication on cable A operating correctly.
    • %SW548.13 = 1, communication on cable B operating correctly.
    • %SW548.11 to %SW548.8 = lost communications counter.
    • %SW548.7 to %SW548.0 = retry totalizer counter.
  • %SW549: is the global error totalizer counter for cable A drop 2:
    • most significant byte: frame detected error counter.
    • least significant byte: no response counter.
  • %SW550: is the global error totalizer counter for cable B drop 2:
    • most significant byte: frame detected error counter.
    • least significant byte: no response counter.
The words:
  • %SW551 to %SW553 are assigned to S908 drop 3.
  • %SW554 to %SW556 are assigned to S908 drop 4.
  • ...
  • %SW638 to %SW640 are assigned to S908 drop 32.