Diagnostics Data
(Original Document)
At a Glance
During diagnostics, the first data to be used are implicit exchange %IW words.
Elsewhere there are diagnostics data which can be consulted by writing some program lines onto the PLC.
The communication function SEND_REQ enables diagnostics to be carried out:
And is used to obtain the history of messaging error messages (130).
NOTE: Code 129 enables the same information to be received as is contained in the implicit exchange input words.
The information provided comes from the PCMCIA card and is updated periodically.
The request reception table contains the information described in the following paragraphs.
NOTE: Information is given in byte tables. Whilst taking into account the possibility of requesting all or part of this table, it is necessary to pay attention to the most significant and least significant words of the %MWi:L table.
NOTE: Diagnostic information complies with the CAN standard. You can find reference information on the following site: http://www.can-cia.de.
Slave Diagnostics
The following table describes the information received following a request for diagnostics on a slave (code 1 to 127).
Byte rank
Description
0
Device status bits:
  • Bit 0: No response
  • Bit 1: Overflow of error messages history table
  • Bit 2: Parameters error
  • Bit 3: Monitoring active device
  • Bit 4 to bit 6: Reserved
  • Bit 7: Deactivated
1 and 2
Complementary information read at bus start-up on the standard object 16#1000 (CAN standardization)
3 and 4
Number of profile read at bus start-up on the standard object 16#1000 (CAN standardization)
5
Slave status:
  • 1: Disconnected
  • 2: Connection in progress
  • 3: In preparation
  • 4: Ready
  • 5: Operating
  • 127: Being prepared or missing
6
Error code (code of the last error generated by the slave)
7
Number of blocks of urgent information on the slave (0 to 5).
Note: These blocks are added to the end of this table. Details of a typical block are given in the following paragraph.
Description of an Information Block on the Slave
The following table describes a typical information block.
Byte rank
Description
0 and 1
Error code
2
Value of error register, object 16#1001 of the slave (CAN standardization)
3 to 6
Register value of the specific manufacturer state, object 16#1002 (CAN normalization)
7
Reserved
Diagnostics on a Card Version
The following table describes the information received following a request for diagnostics on a PCMCIA card (code 128).
Byte rank
Description
0 to 7
Firmware version (character string)
8 to 10
Date of creation of the firmware version (BCD coded, DD.MM.YY)
11 to 13
Date of manufacture (BCD coded, DD.MM.YY)
14 to 17
Serial number (BCD coded)
18 to 25
Protocol name (ASCII, without end of string character, e.g.: "CANopen")
History of Messaging Errors
The following table describes the information received following a request for a history report (code 130).
Byte rank
Description
0 and 1
Number of error blocks
Note: These blocks are added to the end of this table. Details of a typical block are given in the following paragraph.
2 to 49
Contents of the error block (maximum 8 blocks)
Description of a History Report Information Block
The following table describes a typical information block.
Byte rank
Description
0
Service code
1
ID concerned
2 and 3
4 and 5