EasyManua.ls Logo

Siemens simatic s7-400 FM 450-1 - The FC DIAG_INF function

Siemens simatic s7-400 FM 450-1
130 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Program
6.5 Technical specifications of the blocks
Counter module FM 450-1
50 Manual, 02/2014, A5E03648739-02
6.3
The FC DIAG_INF function
Functionality
The FC DIAG_INF reads data record DS1 from the FM 450-1 and makes it available to you
in the DB of the FC CNT_CTRL. Transfer proceeds as follows:
If initiation parameter (IN_DIAG=TRUE) the DS1 is read out from the FM°450-1.
The DS1 is entered into the DB of the FB CNT_CTRL from DW 54 with the aid of the
SFC RD_REC.
The return code of the SFC (RET_VAL) is copied onto the RET_VAL parameter of the
FC DIAG_INF.
As soon as the function has been performed, the initiation parameter IN_DIAG is reset
and hence the transfer is reported as completed.
A full description of the SFC RD_REC is to be found in manual°/2/.
Call
The FC DIAG_INF can be called in the cycle and in the interrupt program. However, it is not
expedient to call it in the time-controlled program.
Calling the FC DIAG_INF in the STL and LAD representations is rendered below.
Figure 6-2 Calling the FC DIAG_INF
Parameters of the FC°DIAG_INF
Name
Declaration type
Data type
Meaning
The user...
The block...
DB_NO INPUT INT Number of the data block of
the FC CNT_CTRL
enters this queries this
RET_VAL
OUTPUT
INT
Return code of the SFC 59
queries this
enters this
IN_DIAG IN-OUT BOOL Initiation bit reads
diagnostics record DS 1
sets and scans
this
resets this

Table of Contents

Related product manuals