The Fc Diag_Inf Function - Siemens simatic s7-400 FM 450-1 User Manual

Counter module
Table of Contents

Advertisement

Program
6.5 Technical specifications of the blocks
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
Parameters of the FC°DIAG_INF
Name
Declaration type
DB_NO
INPUT
RET_VAL
OUTPUT
IN_DIAG
IN-OUT
50
Calling the FC DIAG_INF
Data type
Meaning
INT
Number of the data block of
the FC CNT_CTRL
INT
Return code of the SFC 59
BOOL
Initiation bit reads
diagnostics record DS 1
The user...
The block...
enters this
queries this
queries this
enters this
sets and scans
resets this
this
Counter module FM 450-1
Manual, 02/2014, A5E03648739-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents