EasyManuals Logo

Siemens SIMATIC IM151-1 User Manual

Siemens SIMATIC IM151-1
74 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #46 background imageLoading...
Page #46 background image
Interrupt, error, and system messages
4.3 Diagnostics with STEP 7
IM151-1 HIGH FEATURE interface module (6ES7151-1BA02-0AB0)
46 Manual, 03/2008, A5E01075975-02
Options for reading out the diagnostics
The table below shows the options for reading out the diagnostics with
STEP 7
on
PROFIBUS DP.
Table 4- 2 Reading out the diagnostics with STEP7 on PROFIBUS DP
Automation system with DP
master
Block or tab in
STEP 7
Application Reference
"DP Slave Diagnostics"
tab
Slave diagnostics in plain text on
the STEP 7 user interface
"Diagnosing hardware" in
STEP 7
online help
SFC 13 "DP NRM_DG" Reading slave diagnostics data
(stored in the data area of the
user program)
SFC see
Online Help in
STEP 7
SFC 59 "RD_REC" Reading out data records of the
S7 diagnostics (store in the data
area of the user program)
See the system and standard
functions reference manual
SFB 52
"RDREC"
Read data records from the DP
slave
SFB see
STEP 7 online help
(system functions/-function
blocks)
SIMATIC S7/M7
SFB 54 "RALRM"
1
Receiving interrupts from the
interrupt OBs
SFB see
STEP 7 online help
(system functions/-function
blocks)
1
only for S7-400 from V3.0 and CPU 318 from V3.0
Example of reading out S7 diagnostics using SFC 13 "DP NRM_DG"
Here, you will find an example of how to use SFC 13 to read out the slave diagnostics for a
DP slave in the STEP 7 user program.
For the purpose of this STEP 7 user program, the following is assumed:
The diagnostic address of the ET 200S is 1022 (3FE
H
).
The slave diagnostics are to be stored in DB 82: Starting from address 0.0, length =
64 bytes.
STEP 7 user program
STL Description
CALL SFC 13
REQ :=TRUE Read request
LADDR :=W#16#3FE Diagnostic address of the ET 200S
RET_VAL :=MW0 RET_VAL of SFC 13
RECORD :=P#DB82.DBX 0.0 BYTE 64 Data record for the diagnostics in DB 82
BUSY :=M2.0 The read process runs through several OB 1 cycles

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SIMATIC IM151-1 and is the answer not in the manual?

Siemens SIMATIC IM151-1 Specifications

General IconGeneral
BrandSiemens
ModelSIMATIC IM151-1
CategoryI/O Systems
LanguageEnglish

Related product manuals