Siemens SIMATIC ET 200M Operating Instructions Manual page 185

Distributed i/o device
Hide thumbs Also See for SIMATIC ET 200M:
Table of Contents

Advertisement

Note
For more information on reading out diagnostics information, refer to the "SIMATIC software,
programming with STEP 7 V5.x.
(http://support.automation.siemens.com/WW/view/en/18652056)" manual.
Example for reading the S7 diagnosis with SFC 13 "DPNRM_DG"
Here you will find an example of how to use the SFC 13 to read the slave diagnosis for a DP
slave in the STEP 7 user program.
Assumptions
The following assumptions apply to this STEP 7 user program:
• The diagnosis address of the ET 200M is 1022 (3FE
• The slave diagnosis should be stored in the DB 82:
as of address 0.0, length 64 bytes.
• The slave diagnosis consists of 64 bytes.
STEP 7 user program
STL
CALL SFC 13
REQ
LADDR
RET_VAL
RECORD
BUSY
Example for reading the slave diagnosis with FB 192 "IM308C"
Here you will find an example of how to use the FB 192 to read the slave diagnosis for a DP
slave in the STEP 5 user program.
Assumptions
The following assumptions apply to this STEP 5 user program:
• The IM 308-C connection as a DP master occupies the frames 0 ... 15 (number 0 of the IM
308-C).
• The DP slave has the PROFIBUS address 3.
• The slave diagnosis should be stored in the DB 20. You can also use any other data block
for this.
• The slave diagnosis consists of 29 bytes.
ET 200M
Operating Instructions, 04/2022, EWA-4NEB7806006-09
:=TRUE
:=W#16#3FE
:= MW 0
:=P#DB82.DBX 0.0 BYTE 64
:=M2.0
Interrupt, error and system messages
).
H
Description
Read request
Diagnosis address of the ET 200M
RET_VAL of SFC 13
Data record for the diagnosis in the DB 82
Reading process runs through several OB 1
cycles
9.1 PROFIBUS DP
185

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents