EasyManua.ls Logo

Siemens SIMATIC S7-300 FM 350-1 - FC DIAG_INF Functionality

Siemens SIMATIC S7-300 FM 350-1
198 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...
Programming the FM 350-1
5.4 The FC DIAG_INF function (FC 1)
FM 350-1 Counter module
Manual, 05/2011, A5E03648639-01
49
5.4 The FC DIAG_INF function (FC 1)
Functionality
FC DIAG_INF reads data record DS1 from FM 350-1 and makes it available at the DB of
FC CNT_CTL1. The transfer sequence in particular:
DS1 will be read from FM 350-1 by setting the init parameter IN_DIAG = TRUE.
DS1 will be written to the DB of FC CNT_CTL1, starting at DW 54. DS1 is transferred by
calling SFC RDSYSST.
The function copies the return code (RET_VAL) of the SFC to the RET_VAL parameter of
FC DIAG_INF.
When the function has been executed, the function resets init parameter IN_DIAG and
reports completion of the transfer.
Manual /2/ contains a detailed description of SFC RDSYSST.
Call
FC DIAG_INF can be called within the cycle, and in the interrupt program. There is no point
in calling it in the time-controlled program.
The call of FC DIAG_INF is demonstrated below in STL and LAD format.
',$*B,1)
'%B12  
5(7B9$/  
,1B',$*  
&$//
',$*B,1)
(1
(12
'%B12
5(7B9$/
,1B',$*
67/UHSUHVHQWDWLRQ
/$'UHSUHVHQWDWLRQ
Figure 5-3 Call of FC DIAG_INF
Parameters of FC DIAG_INF
Table 5- 9 Parameters of FC DIAG_INF
Name Declaration type Data type Meaning User action Block action
DB_NO INPUT INT Number of the DB of FC
CNT_CTL1
entry query
RET_VAL OUTPUT INT Return code of SFC 51 query entry
IN_DIAG IN-OUT BOOL Read init bit of diagnostics
data record DS1
set and query reset

Table of Contents

Related product manuals