Download - Mikro Kontrol
Transcript
Appendix B Slave Diagnostics Message Example of Extended Diagnostics Below an example of Extended diagnostics data is given, using the definitions above. The 6 mandatory bytes preceding them are not shown. 7 0 6 0 5 0 4 0 3 0 2 1 1 0 0 0 Header byte Device specific Device related diagnostics: Device specific contents diagnostics field of length 3 0 1 0 0 0 1 1 Header byte 0 Module 1 has diagnostics 1 Module related diagnostics: 1 Channel related diagnostics: Channel related diagnostics: Module 14 has diagnostics 1 0 0 0 0 0 0 1 Module 1 0 1 0 0 0 1 0 0 Channel 4 (Input) 0 1 1 0 0 1 0 0 Overload, bit oriented 1 0 0 0 1 1 1 0 Module 14 0 0 0 0 1 0 0 0 Channel 8 1 0 0 0 0 1 1 1 High Limit exceeded, byte oriented The figure above shows the extended diagnostics of a slave device, which contains: • Device related diagnostics: One header byte and three device specific diagnostics bytes are shown in this example. The contents of the diagnostics is device specific. • Module related diagnostics: One header byte and three module diagnostics bytes. The first of three bytes indicates pending diagnostics in module1, the next byte indicates pending diagnostics in module14. • Channel related diagnostics: Two channel related diagnostics entries are shown: One for module 1 and one for module 14. In module 1, Input channel 4, has detected an overload. In module 14, channel 8, has detected an high-limit exceeded event. B-5 PROFIBUS DP-V1 Error codes The Error codes returned by a PROFIBUS DP-V1 slave device are defined in the PROFIBUS DP-V1 Extension to the PROFIBUS standard. This section lists the Error codes, which can be returned as a result of a PROFIBUS DP-V1 MSAC1 services. From these codes, the user can determine the cause of the failure. The figure below shows the two of the three Error code bytes, returned by a PROFIBUS DP-V1 slave device, in case an MSAC1 service resulted in an error. The third byte, Error code 2, which is not shown below will always contain user specific error codes. 7 6 5 4 3 2 1 0 Error decode byte Error decode 7 6 5 4 3 2 1 0 Error code 1 byte Error code Error class 240