Evaluation Of Diagnostic Information - Siemens SIMATIC S7-300 Manual

Fm 354 servo drive positioning module
Hide thumbs Also See for SIMATIC S7-300:
Table of Contents

Advertisement

Programming the FM 354
Hints to the user
In a diagnostic event, bytes 0 to 3 are automatically transmitted to the CPU,
and the diagnostic organization block (OB82) is called up. The diagnostic OB
should be included in the user program; otherwise the CPU will go to the
Stop state. Byte 0 contains group error messages that are set simultaneously
with the corresponding messages in bytes 2, 3 and 8.
The operating error (byte 8.7) is specified again. The error numbers are avail-
able for display purposes in the diagnostic buffer of the FM 354 and in the
data block for status messages (DB-SS) (see Section 8.1). For special error
evaluations in the user program, these error numbers are available in DS164.
Fig. 6-3
Example call
An example call is shown below for FC DIAG_RD
in OB 82
STL
...
S
DIAG_READ;
CALL DIAG_INF(
DB_NO
:= W#16#1,
RET_VAL
:= FEHLERCODE_LESEN,
IN_DIAG
:= DIAG_READ);
UN
BIE;
S
FEHLER_LESEFKT;
...
6-20
Byte.Bit: 0.0
Module distur-
bance
Byte.Bit: 0.1
Byte.Bit: 0.2
Internal
error
Byte.Bit: 2.1...4
Byte.Bit: 3.2...6

Evaluation of diagnostic information

Explanation
// Initiate read function
// Call diagnostic information FC
// DB number
// Return value
// Initiate reading
// Binary result
// Error on initialization
Byte.Bit: 0.3
External
External
error
channel error
Byte.Bit: 8.0...7
.
FM 354 Servo Drive Positioning Module

Hide quick links:

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents