EasyManua.ls Logo

Siemens SIMATIC FM 351 - Evaluating the Diagnostic Information from the FM

Siemens SIMATIC FM 351
170 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...
6
6-9
FM 351 Positioning Function Module
EWA 4NEB 720 6001-02
You read the diagnostic information from the FM 351, depending on the pa-
rameter DIAGNOSTIC INTERRUPT, in OB1 or in an FC which is called
from OB 1.
STL Explanation
CALL DIAG_INF(
DB_NO := DB_ABS,
RET_VAL := Error code_read fct.
IN_DIAG := DIAGNOSTIC INTERRUPT);
A DIAGNOSTIC INTERRUPT;
JC NWE;
AN BR;
S Disp_error_readfct_Z;
NWE: NOP 0;
// Call FC DIAG_INF
// Parameter was set in OB 82
// Start bit is still set
// Communication error
// Display error during read function
You evaluate the diagnostic data via OB 82 or the channel DB. The parame-
ters which you can evaluate can be taken from the following table:
Table 6-3 Evaluating the Diagnostic Information from the FM 351
Error
Evaluation via OB 82
Channel DB via FC DIAG_INF
Byte Bit Channel DB via FC DIAG_INF
Module fault OB82_MDL_DEFECT
72
0 Bit 0 of DIAGNOSTIC_INT_INFO.BYTE0
Internal fault OB82_INT_FAULT 1 Bit 1 of DIAGNOSTIC_INT_INFO.BYTE0
External fault OB82_EXT_FAULT 2 Bit 2 of DIAGNOSTIC_INT_INFO.BYTE0
Channel error OB82_PNT_INFO 3 Bit 3 of DIAGNOSTIC_INT_INFO.BYTE0
No ext. aux. volt. OB82_EXT_VOLTAG 4 Bit 4 of DIAGNOSTIC_INT_INFO.BYTE0
Internal time monitoring OB82_WTCH_DOG_F 74 3 Bit 3 of DIAGNOSTIC_INT_INFO.BYTE2
Encoder wire break-
age
80
*
0 Bit 0 of DIAGNOSTIC_INT_INFO.BYTE8
error
Error, absolute en-
coder
1 Bit 1 of DIAGNOSTIC_INT_INFO.BYTE8
C
hannel
e
Error pulse, incre-
mental encoder
2 Bit 2 of DIAGNOSTIC_INT_INFO.BYTE8
C
h
Operational error 7 Bit 7 of DIAGNOSTIC_INT_INFO.BYTE8
Machine data error
81
*
0 Bit 0 of DIAGNOSTIC_INT_INFO.BYTE9
Error in incremental
table
1 Bit 1 of DIAGNOSTIC_INT_INFO.BYTE9
*
These details refer to Channel 1. The following values in the channel DB apply for Channel 2: Byte 82 and 83.
Calling the FC
DIAG_INF in OB 1
Diagnostic
Information
Programming the FM 351

Table of Contents

Other manuals for Siemens SIMATIC FM 351

Related product manuals