Siemens SIMATIC FM 453 Manual page 114

Servo drive / step drive positioning module
Hide thumbs Also See for SIMATIC FM 453:
Table of Contents

Advertisement

Programming the FM 453
6.4
Reading Diagnostic Information
Overview
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
_
Task
You are only allowed to call FC DIAG_RD in interrupt OB 82.
Call Options
Description of
The following table describes the parameters of the FC DIAG_RD
Parameters
DB_NO
RET_VAL INT
IN_DIAG
Parameter types: I = input parameter, Q = output parameter,
Principle of
This function works together with a user DB. The DB number is passed when
Operation
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.
6-18
Call in LAD Notation
(ladder diagram)
FC DIAG_RD
EN
DB_NO
RET_VAL
IN_DIAG
Name
Data
P
Type
Type
WORD
I
Q
BOOL
I/O
I/O = in/out parameter (initiation parameter)
Call in STL Notation
(statement list)
CALL DIAG_RD(
ENO
DB_NO
RET_VAL
IN_DIAG
Meaning
Data block number
Return code of SFC 59 "RD_REC"
Initiate reading of diagnostic data; is cleared after
execution of FC 4.
FM 453 Servo Drive / Step Drive Positioning Module
C79000-G7076-C453-01
:= ,
:= ,
:= );
.

Advertisement

Table of Contents
loading

Table of Contents