6-18
FM 453 Servo Drive / Step Drive Positioning Module
C79000-G7076-C453-01
6.4
Reading Diagnostic Information
FC DIAG_RD (FC 4) and FC DIAG_INF (FC 6) are used to read the diag-
nostic interrupt information for all three channels in the user DB.
FC 4 and FC 6 are intended as alternatives which you can use according to
your needs.
6.4.1
FC DIAG
_
RD (FC 4) – Read Diagnostic Interrupt Data in OB 82
You are only allowed to call FC DIAG_RD in interrupt OB 82.
Call in LAD Notation
(ladder diagram)
Call in STL Notation
(statement list)
EN
ENO
FC DIAG_RD
DB_NO
RET_VAL
IN_DIAG
CALL
DIAG_RD(
DB_NO
:= ,
RET_VAL
:= ,
IN_DIAG
:= );
The following table describes the parameters of the FC DIAG_RD
.
Name
Data
Type
P
Type
Meaning
DB_NO
WORD
I
Data block number
RET_VAL
INT
Q
Return code of SFC 59 “RD_REC”
IN_DIAG
BOOL
I/O
Initiate reading of diagnostic data; is cleared after
execution of FC 4.
Parameter types: I = input parameter, Q = output parameter,
I/O = in/out parameter (initiation parameter)
This function works together with a user DB. The DB number is passed when
you call the function with the DB_NO parameter.
Reading of the diagnostic interrupt data DIAGNOSTIC_INT_INFO (in user
DB starting at address 72) is started when you set the in/out parameter
IN_DIAG to one. The parameter is reset by the FC after the job is executed.
Overview
Task
Call Options
Description of
Parameters
Principle of
Operation
Programming the FM 453
Summary of Contents for SIMATIC FM 453
Page 6: ...vi FM 453 Servo Drive Step Drive Positioning Module C79000 G7076 C453 01 Preface ...
Page 14: ...xiv FM 453 Servo Drive Step Drive Positioning Module C79000 G7076 C453 01 Table of Contents ...
Page 378: ...Index 6 FM 453 Servo Drive Step Drive Positioning Module C79000 G7076 C453 01 Index ...