6
6-30
FM 351 Positioning Function Module
EWA 4NEB 720 6001-02
6.4.1 FC DIAG_INF
With the FC DIAG_INF you read the diagnostic information in the event of a
diagnostic interrupt from the FM 351. The FC carries out the following ac-
tions:
Reading of 14 bytes of diagnostic information from the FM 351 and en-
tering in the channel DB in the data area DIAGNOSTIC_INT_INFO.
Reading of the check-back signals (for example, actual value). The read
values are placed by the FC in the channel DB.
Calling in LAD Representation Calling in STL Representation
FC DIAG_INF
RET_VAL
EN ENO
IN_DIAG
DB_NO
CALL DIAG_INF(
DB_NO := ,
RET_VAL := ,
IN_DIAG := );
Take note of the following requirements which must be satisfied for calling
the FC DIAG_INF:
All the requirements of Chapter 6.4 must be satisfied.
Calling the FC DIAG_INF is possible in OB 82 if you ensure that during
the calling period no other FC has write or read access to an FM.
The following table describes the parameters of the function block FC
DIAG_INF.
Name Data Type P Type Meaning
DB_NO BLOCK_DB I Channel DB number.
RET_VAL INT O Return code of the SFC RD_REC.
IN_DIAG BOOL I/O Start: Read diagnostic data;
TRUE - The transfer of the diagnostic data from the FM 351 into the
channel DB is enabled.
FALSE - The parameter is reset by the FC when the job has been car-
ried out without error.
Parameter types: I = Input Parameter; O = Output Parameter; I/O = In/Out Parameter (start parameter).
Task
Calling Methods
Requirements
Parameter
Description
Programming the FM 351