Siemens SIMATIC S7-300 Manual page 98

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

Advertisement

Programming the FM 354
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 FC 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.
The in/out parameter remains set while the job is running. Data transfer is
complete when the in/out parameter is reset (IN_DIAG = FALSE).
Error evaluation
Errors which occur are indicated in the binary result (BIE = 0).
Possible errors are:
Data transfer error during communication with SFC 59 "RD_REC". The er-
ror is returned in the output parameter RET_VAL (see reference manual Sys-
tem Software for S7-300/400; System and Standard Functions).
6-18
Call in LAD notation
(ladder diagram)
FC DIAG_RD
EN
DB_NO
RET_VAL
IN_DIAG
Name
Data
P type
tpe
WORD
I
Q
BOOL
I/Q
I/Q= 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 354 Servo Drive Positioning Module
:= ,
:= ,
:= );
.

Hide quick links:

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents