![Siemens SIMATIC S7-300 FM 350-1 Manual Download Page 49](http://html.mh-extra.com/html/siemens/simatic-s7-300-fm-350-1/simatic-s7-300-fm-350-1_manual_1265384049.webp)
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
Summary of Contents for SIMATIC S7-300 FM 350-1
Page 8: ...Table of contents FM 350 1 Counter module 8 Manual 05 2011 A5E03648639 01 ...
Page 186: ...Technical data 11 2 Technical data FM 350 1 Counter module 186 Manual 05 2011 A5E03648639 01 ...
Page 188: ...Replacement parts FM 350 1 Counter module 188 Manual 05 2011 A5E03648639 01 ...
Page 190: ...References FM 350 1 Counter module 190 Manual 05 2011 A5E03648639 01 ...
Page 194: ...Glossary FM 350 1 Counter module 194 Manual 05 2011 A5E03648639 01 ...