EasyManua.ls Logo

Siemens SIMATIC IM151-1 STANDARD

Siemens SIMATIC IM151-1 STANDARD
66 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
Loading...
Interrupt, error, and system messages
4.4 Diagnostics with STEP 7
Interface module IM151-1 STANDARD (6ES7151-1AA06-0AB0)
40 Manual, 07/2015, A5E01075950-AD
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.
The slave diagnostics consist of a maximum of 64 bytes (IM151-1 STANDARD in DPV0
mode).
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

Table of Contents

Related product manuals