0% found this document useful (0 votes)
4 views

Standard functions SFC_2017.pdf_page_9

The document is a reference manual for S7-300/400 system software, detailing various system function calls (SFCs) for handling synchronous and asynchronous errors, diagnostics, updating process images, addressing modules, and managing distributed I/Os or PROFINET IO. It includes specific SFCs for error masking, interrupt handling, system diagnostics, and data management. Each section provides a structured overview of the functions available, including their purposes and relevant details.

Uploaded by

Cristi Crse
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Standard functions SFC_2017.pdf_page_9

The document is a reference manual for S7-300/400 system software, detailing various system function calls (SFCs) for handling synchronous and asynchronous errors, diagnostics, updating process images, addressing modules, and managing distributed I/Os or PROFINET IO. It includes specific SFCs for error masking, interrupt handling, system diagnostics, and data management. Each section provides a structured overview of the functions available, including their purposes and relevant details.

Uploaded by

Cristi Crse
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Table of Contents

11 SFCs for Handling Synchronous Errors ............................................................................................... 213


11.1 Masking Synchronous Errors ..................................................................................................... 213
11.2 Masking Synchronous Errors with SFC 36 "MSK_FLT" ............................................................ 220
11.3 Unmasking Synchronous Errors with SFC 37 "DMSK_FLT" ..................................................... 221
11.4 Reading the Error Register with SFC 38 "READ_ERR" ............................................................ 222
12 SFCs for Handling Interrupts and Asynchronous Errors.................................................................... 223
12.1 Delaying and Disabling Interrupt and Asynchronous Errors ...................................................... 223
12.2 Disabling the Processing of New Interrupts and Asynchronous Errors
with SFC 39 "DIS_IRT" .............................................................................................................. 225
12.3 Enabling the Processing of New Interrupts and Asynchronous Errors
with SFC 40 "EN_IRT" ............................................................................................................... 227
12.4 Delaying the Processing of Higher Priority Interrupts and Asynchronous Errors
with SFC 41 "DIS_AIRT" ............................................................................................................ 229
12.5 Enabling the Processing of Higher Priority Interrupts and Asynchronous Errors
with SFC 42 "EN_AIRT" ............................................................................................................. 230
13 SFCs for Diagnostics .............................................................................................................................. 231
13.1 System Diagnostics ................................................................................................................... 231
13.2 Reading OB Start Information with SFC 6 "RD_SINFO" ........................................................... 231
13.3 Reading a System Status List or Partial List with SFC 51 "RDSYSST" .................................... 234
13.4 Writing a User-Defined Diagnostic Event to the Diagnostic Buffer
with SFC 52 "WR_USMSG" ....................................................................................................... 241
13.5 Determining the OB Program Runtime with SFC 78 "OB_RT" .................................................. 245
13.6 Diagnosis of the Current Connection Status with SFC 87 "C_DIAG" ........................................ 250
13.7 Identifying the Bus Topology of a DP Master System with SFC 103 "DP_TOPOL" .................. 255
14 SFCs and SFBs for Updating the Process Image and Processing Bit Fields ................................... 259
14.1 Updating the Process Image Input Table with SFC 26 "UPDAT_PI" ........................................ 259
14.2 Updating the Process Image Output Table with SFC 27 "UPDAT_PO" .................................... 261
14.3 Updating the Process Image Partition Input Table in a Synchronous Cycle
with SFC 126 "SYNC_PI" ......................................................................................................... 262
14.4 Updating the Process Image Partition in a Synchronous Cycle with SFC 127 "SYNC_PO"..... 264
14.5 Setting a Bit Field in the I/O Area with SFC 79 "SET" ............................................................... 266
14.6 Resetting a Bit Field in the I/O Area with SFC 80 "RSET"......................................................... 267
14.7 Implementing a Sequencer with SFB 32 "DRUM" ..................................................................... 268
15 System Functions for Addressing Modules ......................................................................................... 271
15.1 Querying the Logical Base Address of a Module with SFC 5 "GADR_LGC" ............................ 271
15.2 Querying the Module Slot Belonging to a Logical Address with SFC 49 "LGC_GADR" ........... 273
15.3 Querying all Logical Addresses of a Module with SFC 50 "RD_LGADR" ................................. 275
15.4 Determining the Start Address of a Module with SFC 70 "GEO_LOG" ..................................... 276
15.5 Determining the Slot Belonging to a Logical Address with SFC 71 "LOG_GEO" ..................... 278
16 SFCs for Distributed I/Os or PROFINET IO ........................................................................................... 281
16.1 Triggering a Hardware Interrupt on the DP Master with SFC 7 "DP_PRAL" ............................. 281
16.2 Synchronizing Groups of DP Slaves with SFC 11 "DPSYC_FR" .............................................. 284
16.3 Deactivating and Activating DP Slaves/PROFINET IO Devices with SFC 12 "D_ACT_DP" .... 289
16.4 Reading Diagnostic Data of a DP Slave with SFC 13 "DPNRM_DG" (Slave Diagnostics) ....... 294
16.5 Reading Consistent Data of a DP Standard Slave//PROFINET IO Device
with SFC 14 "DPRD_DAT" ........................................................................................................ 297
16.6 Writing Consistent Data to a DP Standard Slave/PROFINET IO Device
with SFC 15 "DPWR_DAT" ........................................................................................................ 300

System Software for S7-300/400 System and Standard Functions - Volume 1/2
Reference Manual, 04/2017, A5E41675609-AA 9

You might also like