Commissioning the PROFIBUS-DP
136
5663600000/1.4/09.09
6.10 Evaluating diagnostic data
in Step7
Whereas the data for inputs and outputs can be ex-
changed and processed directly in Step7 with
PROFIBUS via the input and output image, diagnos-
tic data must be read into the application program
with an SFC.
Diagnostics data (slave diagnostics) of a DP slave is
read with the SFC 13 "DPNRM_DG".
Figure 79
Diagnostics function block
Input variables:
REQ = 1:
Request to read
LADDR:
Planned diagnostics address of the DP slave; this can be read in the hardware con-
figurator.
Note: The address must be entered in hexadecimal, for example, the diagnostic ad-
dress 1022 (3FEH) means: LADDR: = W#16#3FE.
Output variables:
RET_VAL
RET_VAL contains the length of the actual transmitted data.
If an error occurs when the function is being processed, the return value contains an
error code.
RECORD
Target range for the read diagnostic data.
The minimum length of the data record to be read or the target range is 51.
BUSY = 1
The read operation has not been completed.
Table 96
Diagnostics function block
The maximum in Byts amounts to 244 which must be read.
In the example above, 51 bytes following the flag byte M 120.0 are reserved as target range of the diagnos-
tics data for an SAI-AU M12 PB 16D. These are divided up as follows:
Содержание SAI Active Universal Pro Series
Страница 2: ......
Страница 10: ...Notes on Safety 10 5663600000 1 4 09 09...
Страница 11: ...SAI Pro 2 SAI Pro 2 1 Pro Description 12 2 2 PROFIBUS DP 14 5663600000 1 4 09 09 11...
Страница 20: ...Project Planning with the Universal Pro 20 5663600000 1 4 09 09...
Страница 23: ...Mounting SAIs Figure 7 Dimensions of extension I O with digital outputs 5663600000 1 4 09 09 23...
Страница 28: ...Mounting SAIs 28 5663600000 1 4 09 09...
Страница 95: ...Connecting the SAI Distributor 5663600000 1 4 09 09 95...
Страница 106: ...Commissioning the PROFIBUS DP 106 Figure 76 variable table counter value counter stop 5663600000 1 4 09 09...
Страница 177: ......