Download Siemens NCM S7 Technical data
Transcript
5 DP Diagnostics from the User Program of a SIMATIC S7−300 5.4 DP Single Diagnostics Purpose of Single Diagnostics DP single diagnostics allows diagnostic data to be fetched from specific slaves. These diagnostic data are encoded according to the DP standard with supplementary information in the third status byte (see Table 5-6). Overview DP single diagnostics is generally triggered depending on the result of the diagnostic list evaluation. It is, however, possible to start a single diagnostic job regardless of other statuses. 5.4.1 The DP Diagnostic List Purpose The DP diagnostic list provides information about the DP slaves with changed diagnostic data. The diagnostic data themselves must be fetched with the single diagnostics function. The diagnostic list is kept on the PROFIBUS CP and constantly updated in the DP polling cycle. The updating is achieved by high-priority messages from the DP slaves as soon as the diagnostic information has changed on one of the slaves. Entries can also be made by the DP master. After the user program has read out the diagnostic list once, the diagnostic list is disabled. The diagnostic list can only be enabled again when at least one new entry exists. Reading single diagnostics is possible at any time. Format of the Diagnostic List The DP diagnostic list has a length of 16 bytes or 128 bits. Each bit in the DP diagnostic list corresponds to a PROFIBUS address and therefore to a possible DP slave station. Byte Diagnostic bit Station address* 0 1 7 6 5 4 3 2 1 0 7 6 5 4 0 1 2 3 4 5 6 7 8 9 10 11 3 2−14 15 2 1 0 7 12 13 14 15 120 6 5 4 3 2 1 0 127 *) The bit for the station address 127 is irrelevant since the permitted range for DP slave addresses on the PROFIBUS bus is between 0 and 126. A−120 S7-CPs for PROFIBUS Configuring and Commissioning Release 09/2011 C79000−G8976−C181−05