0% found this document useful (0 votes)
9 views1 page

Standard Functions SFC - 2017.pdf - Page - 8

The document is a reference manual for the S7-300/400 system and standard functions, detailing various System Function Calls (SFCs) and System Function Blocks (SFBs) for controlling program execution, handling system clocks, runtime meters, data records, and interrupts. It includes specific SFCs and SFBs for tasks such as re-triggering cycle time monitoring, setting the time-of-day, and managing time-delay interrupts. The manual serves as a comprehensive guide for users to effectively utilize the SFCs and SFBs in their programming tasks.

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)
9 views1 page

Standard Functions SFC - 2017.pdf - Page - 8

The document is a reference manual for the S7-300/400 system and standard functions, detailing various System Function Calls (SFCs) and System Function Blocks (SFBs) for controlling program execution, handling system clocks, runtime meters, data records, and interrupts. It includes specific SFCs and SFBs for tasks such as re-triggering cycle time monitoring, setting the time-of-day, and managing time-delay interrupts. The manual serves as a comprehensive guide for users to effectively utilize the SFCs and SFBs in their programming tasks.

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

4 SFCs for Controlling Program Execution ............................................................................................. 121


4.1 Re-triggering Cycle Time Monitoring with SFC 43 "RE_TRIGR" ............................................... 121
4.2 Changing the CPU to STOP with SFC 46 "STP" ....................................................................... 121
4.3 Delaying Execution of the User Program with SFC 47 "WAIT" ................................................. 122
4.4 Triggering a Multicomputing Interrupt with SFC 35 "MP_ALM" ................................................. 123
4.5 Controlling CiR with SFC 104 "CiR"........................................................................................... 124
4.6 Activating and deactivating CPU access-protection with SFC 109 "PROTECT" ...................... 126
4.7 Receiving a Data Record with SFB 73 "RCVREC" .................................................................... 190
4.8 Providing a Data Record with SFB 74 "PRVREC" ..................................................................... 193
5 SFCs for Handling the System Clock .................................................................................................... 129
5.1 Setting the TOD with SFC 0 "SET_CLK" ................................................................................... 129
5.2 Reading the Time with SFC 1 "READ_CLK" ............................................................................. 130
5.3 Synchronizing Slave Clocks with SFC 48 "SNC_RTCB" ........................................................... 131
5.4 Setting the Time-of-Day and the TOD Status with SFC 100 "SET_CLKS" ............................... 132
6 SFCs for Handling Run-Time Meters ..................................................................................................... 135
6.1 Runtime Meters .......................................................................................................................... 135
6.2 Handling Runtime meters with SFC 101 "RTM" ........................................................................ 136
6.3 Setting the Runtime Meter with SFC 2 "SET_RTM" .................................................................. 138
6.4 Starting and Stopping a Run-time Meter with SFC 3 "CTRL_RTM" .......................................... 139
6.5 Reading a Runtime Meter with SFC 4 "READ_RTM" ................................................................ 140
6.6 Reading the System Time with SFC 64 "TIME_TCK" ............................................................... 141
7 SFCs/SFBs for Transferring Data Records ........................................................................................... 143
7.1 Writing and Reading Data Records ........................................................................................... 143
7.2 Reading Defined Parameters with SFC 54 "RD_DPARM" ........................................................ 145
7.3 Reading Predefined Parameters with SFC 102 "RD_DPARA" ................................................. 146
7.4 Writing Dynamic Parameters with SFC 55 "WR_PARM" .......................................................... 147
7.5 Writing Default Parameters with SFC 56 "WR_DPARM" .......................................................... 149
7.6 Assigning Parameters to a Module with SFC 57 "PARM_MOD" ............................................... 150
7.7 Writing a Data Record with SFC 58 "WR_REC" ........................................................................ 153
7.8 Reading a Data Record with SFC 59 "RD_REC" ...................................................................... 155
7.9 Further Error Information for SFCs 55 to 59 .............................................................................. 160
7.10 Reading Predefined Parameters with SFB 81 "RD_DPAR" ...................................................... 161
8 DPV1 SFBs According to PNO AK 1131 ............................................................................................... 163
8.1 Reading a Data Record with SFB 52 "RDREC" ........................................................................ 163
8.2 Writing a Data Record with SFB53 "WRREC" ........................................................................... 165
8.3 Receiving an Interrupt with SFB 54 "RALRM" ........................................................................... 167
8.4 Sending an Interrupt to the DP Master with SFB 75 "SALRM" .................................................. 184
9 SFCs for Handling Time-of-Day Interrupts ........................................................................................... 197
9.1 Handling Time-of-Day Interrupts ................................................................................................ 197
9.2 Characteristics of SFCs 28 to 31 ............................................................................................... 199
9.3 Setting a Time-of-Day Interrupt with SFC 28 "SET_TINT" ........................................................ 201
9.4 Canceling a Time-of-Day Interrupt with SFC 29 "CAN_TINT" ................................................... 202
9.5 Activating a Time-of-Day Interrupt with SFC 30 "ACT_TINT" ................................................... 203
9.6 Querying a Time-of-Day Interrupt with SFC 31 "QRY_TINT" .................................................... 204
10 SFCs for Handling Time-Delay Interrupts ............................................................................................. 207
10.1 Handling Time-Delay Interrupts ................................................................................................. 207
10.2 Starting a Time-Delay Interrupt with SFC 32 "SRT_DINT" ........................................................ 209
10.3 Querying a Time-Delay Interrupt with SFC 34 "QRY_DINT" ..................................................... 210
10.4 Canceling a Time-Delay Interrupt with SFC 33 "CAN_DINT" .................................................... 211

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

You might also like