EasyManua.ls Logo

Siemens FM 450-1 - The FC DIAG_INF Function

Siemens FM 450-1
118 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...
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.
',$*B,1)
'%B12 
5(7B9$/ 
,1B',$* 
&$//
',$*B,1)
(1
(12
'%B12
5(7B9$/
,1B',$*
67/UHSUHVHQWDWLRQ
/$'UHSUHVHQWDWLRQ
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 diagnos‐
tics record DS 1
sets and scans this resets this
Program
6.3 The FC DIAG_INF function
Counter module FM 450-1
Equipment Manual, 03/2022, A5E03648739-AC 43

Table of Contents

Related product manuals