System Function Blocks Number SFB 0 SFB 1 SFB 2 SFB 3 SFB 4 SFB
5 SFB 8 SFB 9 SFB 12 SFB 13 SFB 14 SFB 15 SFB 16 Name CTU CTD CTUD
TP TON TOF USEND URCV BSEND BRCV GET PUT PRINT Family IEC_TC IEC_TC
IEC_TC IEC_TC IEC_TC IEC_TC Description m ln m xung m ln xung Pht 1
xung To tr trn To tr di
COM_FUNC Uncoordinated Sending of Data_gi dl COM_FUNC
Uncoordinated Receiving of Data_nhn dl COM_FUNC Sending Segmented
Data_gi dl phn on COM_FUNC Receiving Segmented Data_nhn dl phn oan
COM_FUNC Read Data from a Remote CPU_c dl t 1 CPU t xa COM_FUNC
Write Data to a Remote CPU_vit dl vo 1 CPU COM_FUNC Send Data to
Printer_gi dl in
SFB 19 SFB 20 SFB 21
START STOP
COM_FUNC Initiate a Warm or Cold Restart on a Remote Device
COM_FUNC Changing a Remote Device to the STOP State_
RESUME COM_FUNC Initiate a Hot Restart on a Remote Device_ Khi
ng li bt u mt nng trn mt thit b t xa STATUS COM_FUNC Query the
Status of a Remote Partner_truy vn trng thai ca 1 thit b t xa
USTATU COM_FUNC Receive the Status of a Remote S Device_tip nh tnh
trng ca 1 tb t xa HS_COU COUNTERS Counter (high-speed counter, NT
integrated function) (only exist on the CPU 312 IFM and CPU 314
IFM)_ S lt truy cp (truy cp tc cao, tch hp chc nng) (ch tn ti trn
312 CPU IFM v CPU 314 IFM) FREQ_M COUNTERS Frequency Meter
(frequency ES meter, integrated function (only exist on the CPU 312
IFM and CPU 314 IFM)_ Tn s k (ng h o tn s, chc nng tch hp (ch tn ti
trn
SFB 22
SFB 23
SFB 29
SFB 30
312 CPU IFM v CPU 314 IFM) SFB 31 NOTIFY_ COM_FUNC Generating
block related 8P messages without acknowledgement indication_ To
kha cc bn tin lin quan m khng c du hiu cho thy s tha nhn DRUM ALARM
TIMERS Implement a Sequencer_thc hin 1 tun t
SFB 32 SFB 33
COM_FUNC Generate Block-Related Messages with Acknowledgment
Display_ To ra cc tin nhn lin quan n Block-Hin th Xc Nhn
SFB 34
ALARM_ COM_FUNC Generate Block-Related 8 Messages without Values
for 8 Signals_ To ra cc tin nhn lin quan n Block-m khng c gi tr cho
8 tn hiu ALARM_ COM_FUNC Generate Block-Related 8P Messages with
Values for 8 Signals_ To ra cc tin nhn lin quan n Block-vi gi tr
cho 8 tn hiu NOTIFY COM_FUNC Generate Block-Related Messages
without
SFB 35
SFB 36
Acknowledgment Display SFB 37 SFB 38 AR_SEN COM_FUNC Send
Archive Data D HSC_A_ B POS COUNTERS Counter A/B (integrated
function) (only exist on the CPU 314 IFM) ICONT Position
(integrated function) (only exist on the CPU 314 IFM) Continuous
Control (only exist on the CPU 314 IFM) Step Control (only exist on
the CPU 314 IFM) Pulse Generation (only exist on the CPU 314 IFM)
Positioning with Analog Output (only exist on the S7300C CPUs)
Positioning with Digital Output (only exist on the S7300C CPUs)
Controlling the Counter (only exist on the S7-300C CPUs)
Controlling the Frequency Measurement (only exist on
SFB 39
SFB 41 SFB 42 SFB 43 SFB 44
CONT_C ICONT CONT_S ICONT PULSEG ICONT EN ANALOG TEC_FUNC
SFB 46
DIGITAL TEC_FUNC
SFB 47 SFB 48
COUNT
TEC_FUNC
FREQUE TEC_FUNC NC
the S7-300C CPUs) SFB 49 PULSE TEC_FUNC Controlling Pulse Width
Modulation (only exist on the S7-300C CPUs) Reading a Data Record
Writing a Data Record Receiving an Interrupt Sending Data (ASCII,
3964(R)) (only exist on the S7300C CPUs) Receiving Data (ASCII,
3964(R)) (only exist on the S7300C CPUs) Deleting the Receive
Buffer (ASCII, 3964(R)) (only exist on the S7-300C CPUs) Sending
Data (RK 512) (only exist on the S7-300C CPUs) Fetching Data (RK
512) (only exist on the S7-300C CPUs) Receiving and Providing Data
(RK 512) (only exist on the S7-300C CPUs) Send interrupt to DP
master
SFB 52 SFB 53 SFB 54 SFB 60
RDREC WRREC RALRM
DP DP DP
SEND_PT TEC_FUNC P RECV_P TP TEC_FUNC
SFB 61
SFB 62
RES_REC TEC_FUNC V SEND_R TEC_FUNC K FETCH_ RK SERVE_ RK SALRM
TEC_FUNC TEC_FUNC
SFB 63 SFB 64 SFB 65
SFB 75
DP
SFB 81
RD_DPA IO_FUNCT R
Read Predefined Parameter
System Function Calls Number Name SFC 0 SFC 1 SFC 2 SFC 3 SFC 4
SFC 5 SFC 6 SFC 7 SET_CLK SET_RTM Family Description
CLK_FUNC Set System Clock CLK_FUNC Set Run-time Meter
READ_CLK CLK_FUNC Read System Clock CTRL_RTM CLK_FUNC Start/Stop
Run-time Meter READ_RTM CLK_FUNC Read Run-time Meter GADR_LGC
IO_FUNCT RD_SINFO DP_PRAL Query Logical Address of a Channel
DB_FUNCT Read OB Start Information DP Trigger a Hardware
Interrupt on the DP Master
SFC 9
EN_MSG
COM_FUNC Enable Block-Related, Symbol-Related and Group Status
Messages
SFC 10 DIS_MSG
COM_FUNC Disable Block-Related, Symbol-Related and Group Status
Messages DP DP Synchronize Groups of DP Slaves Deactivation and
activation of DP slaves
SFC 11 DPSYC_FR SFC 12 D_ACT_DP
SFC 13 DPNRM_DG DIAGNSTC Read Diagnostic Data of a DP Slave
(Slave Diagnostics) SFC 14 DPRD_DAT DP SFC 15 DPWR_DAT DP Read
Consistent Data of a Standard DP Slave Write Consistent Data to a
DP Standard Slave
SFC 17 ALARM_SQ PMC_FUNC Generate Acknowledgeable Block-Related
Messages SFC 18 ALARM_S PMC_FUNC Generate Permanently Acknowledged
BlockRelated Messages
SFC 19 ALARM_SC PMC_FUNC Query the Acknowledgment Status of the
last ALARM_SQ Entering State Message SFC 20 BLKMOV MOVE Copy
Variables
SFC 21 FILL
MOVE
Initialize a Memory Area
SFC 22 CREAT_DB DB_FUNCT Create Data Block SFC 23 DEL_DB SFC 24
TEST_DB DB_FUNCT Delete Data Block DB_FUNCT Test Data Block
SFC 25 COMPRESS DB_FUNCT Compress the User Memory SFC 26
UPDAT_PI IO_FUNCT Update the Process Image Update Table Update the
Process Image Output Table
SFC 27 UPDAT_PO IO_FUNCT SFC 28 SET_TINT SFC 29 CAN_TINT SFC 30
ACT_TINT SFC 31 QRY_TINT SFC 32 SRT_DINT SFC 33 CAN_DINT
PGM_CNTL Set Time-of-Day Interrupt PGM_CNTL Cancel Time-of-Day
Interrupt PGM_CNTL Activate Time-of-Day Interrupt PGM_CNTL Query
Time-of-Day Interrupt PGM_CNTL Start Time-Delay Interrupt PGM_CNTL
Cancel Time-Delay Interrupt
SFC 34 QRY_DINT SFC 35 MP_ALM SFC 36 MSK_FLT
PGM_CNTL Query Time-Delay Interrupt PGM_CNTL Trigger
Multicomputing Interrupt DIAGNSTC Mask Synchronous Errors
SFC 37 DMSK_FLT DIAGNSTC Unmask Synchronous Errors SFC 38
READ_ERR DIAGNSTC Read Error Register SFC 39 DIS_IRT IRT_FUNC
Disable New Interrupts and Asynchronous Errors Enable New
Interrupts and Asynchronous Errors Delay Higher Priority Interrupts
and Asynchronous Errors Enable Higher Priority Interrupts and
Asynchronous Errors
SFC 40 EN_IRT
IRT_FUNC
SFC 41 DIS_AIRT
IRT_FUNC
SFC 42 EN_AIRT
IRT_FUNC
SFC 43 RE_TRIGR SFC 44 REPL_VAL
PGM_CNTL Re-trigger Cycle Time Monitoring DIAGNSTC Transfer
Substitute Value to Accumulator 1
SFC 46 STP SFC 47 WAIT SFC 48 SNC_RTCB
PGM_CNTL Change the CPU to STOP PGM_CNTL Delay Execution of the
User Program CLK_FUNC Synchronize Slave Clocks Query the Module
Slot Belonging to a Logical Address Query all Logical Addresses of
a Module
SFC 49 LGC_GADR IO_FUNCT
SFC 50 RD_LGADR IO_FUNCT SFC 51 RDSYSST
DIAGNSTC Read a System Status List or Partial List
SFC 52 WR_USMSG DIAGNSTC Write a User-Defined Diagnostic Event
to the Diagnostic Buffer SFC 54 RD_PARM SFC 55 WR_PARM IO_FUNCT
IO_FUNCT Read Defined Parameters Write Dynamic Parameters Write
Default Parameters Assign Parameters to a Module
SFC 56 WR_DPARM IO_FUNCT SFC 57 PARM_MOD IO_FUNCT
SFC 58 WR_REC SFC 59 RD_REC SFC 60 GD_SND SFC 61 GD_RCV SFC 62
CONTROL
IO_FUNCT IO_FUNCT
Write a Data Record Read a Data Record
COM_FUNC Send a GD Packet COM_FUNC Fetch a Received GD Packet
COM_FUNC Query the Status of a Connection Belonging to a
Communication SFB Instance PLASTICS Assembly Code Block (only
exists for CPU 614)
SFC 63 AB_CALL
SFC 64 TIME_TCK SFC 65 X_SEND
CLK_FUNC Read the System Time COM_FUNC Send Data to a
Communication Partner outside the Local S7 Station COM_FUNC Receive
Data from a Communication Partner outside the Local S7 Station
COM_FUNC Read Data from a Communication Partner outside the Local
S7 Station
SFC 66 X_RCV
SFC 67 X_GET
SFC 68 X_PUT
COM_FUNC Write Data to a Communication Partner outside the Local
S7 Station COM_FUNC Abort an Existing Connection to a Communication
Partner outside the Local S7 Station IO_FUNCT IO_FUNCT Determine
Start Address of a Module Determine the Slot Belonging to a Logical
Address
SFC 69 X_ABORT
SFC 70 GEO_LOG SFC 71 LOG_GEO
SFC 72 I_GET
COM_FUNC Read Data from a Communication Partner within the Local
S7 Station COM_FUNC Write Data to a Communication Partner within
the Local S7 Station COM_FUNC Abort an Existing Connection to a
Communication Partner within the Local S7 Station
SFC 73 I_PUT
SFC 74 I_ABORT
SFC 78 OB_RT SFC 79 SET SFC 80 RSET SFC 81 UBLKMOV
DIAGNSTC Determine OB program runtime BIT_LOGC BIT_LOGC MOVE Set
a Range of Outputs Reset a Range of Outputs Uninterruptible Block
Move Create a Data Block in the Load Memory Read from a Data Block
in Load Memory Write from a Data Block in Load Memory
SFC 82 CREA_DBL DB_CTRL SFC 83 READ_DBL DB_CTRL SFC 84 WRIT_DBL
SFC 85 CREA_DB SFC 87 C_DIAG SFC 90 H_CTRL SFC 100 SET_CLKS SFC 101
RTM SFC 103 DP_TOPOL DB_CTRL
DB_FUNCT Create a Data Block COM_FUNC Diagnosis of the Actual
Connection Status HF_FUNCT Control Operation in H Systems CLK_FUNC
Setting the Time-of-Day and the TOD Status CLK_FUNC Handling
runtime meters Redefined Parameters Identifying the bus DP
SFC 102 RD_DPARA IO_FUNCT
topology in a DP master system SFC 104 CIR SFC 105 READ_SI SFC
106 DEL_SI PGM_CNTL Controlling CiR PMC_FUNC Reading Dynamic System
Resources PMC_FUNC Deleting Dynamic System Resources
SFC 107 ALARM_DQ PMC_FUNC Generating Always Acknowledgeable and
Block-Related Messages SFC 108 ALARM_D PMC_FUNC Generating Always
Acknowledgeable and Block-Related Messages PROFIne2 Update inputs
in the user program interface of PROFInet components Update outputs
in the user program interface of PROFInet components Update DP
interconnections Update process image partition input table in
synchronous cycle
SFC 112 PN_IN
SFC 113 PN_OUT
PROFIne2
SFC 114 PN_DP SFC 126 SYNC_PI
PROFIne2 IO_FUNCT
SFC 127 SYNC_PO
IO_FUNCT
Update process image partition output table in synchronous
cycle
S5-S7 Converting Blocks Number Name FC 61 GP_FPGP Family
Description
S5_CNVRT Change fixed point number to floating point number
S5_CNVRT Change floating point number to fixed point number
S5_CNVRT Add floating point numbers S5_CNVRT Subtract floating
point numbers S5_CNVRT Multiply floating point number S5_CNVRT
Divide floating point numbers S5_CNVRT Compare floating point
numbers S5_CNVRT Extract root of floating point numbers
FC 62
GP_GPFP
FC 63 FC 64 FC 65 FC 66 FC 67 FC 68
GP_ADD GP_SUB GP_MUL GP_DIV GP_VGL RAD_GP
FC 69 FC 70 FC 71
MLD_TG MLD_TGZ MLD_EZW
S5_CNVRT Clock generator S5_CNVRT Clock generator (timing
element) S5_CNVRT Message of first value with single flashing
light, wordwise, A S5_CNVRT Message of first value with double
flashing light, wordwise, A
FC 72
MLD_EDW
FC 73 FC 74 FC 75
MLD_SAMW S5_CNVRT Collected message, wordwise (sound alert)
MLD_SAM MLD_EZ S5_CNVRT Collected message, bitwise S5_CNVRT Message
of first value with single flashing light, bitwise, A
FC 78
MLD_EDWK S5_CNVRT Message of first value with double flashing
light, wordwise, A+M MLD_EZK S5_CNVRT Message of first value with
single flashing light, bitwise, A+M S5_CNVRT Message of first value
with double flashing light, bitwise,
FC 79
FC 80
MLD_EDK
A+M FC 81 FC 82 FC 83 FC 84 FC 85 FC 86 FC 87 FC 88 FC 89 FC 90
FC 91 FC 92 COD_B4 COD_16 MUL_16 DIV_16 ADD_32 SUB_32 MUL_32 DIV_32
RAD_16 REG_SCHB S5_CNVRT Change BCD number to 16 bit dual number
S5_CNVRT Change 16 bit dual number to BCD number S5_CNVRT Multiply
16 bit dual numbers S5_CNVRT Divide 16 bit dual numbers S5_CNVRT
Add 32 bit dual numbers S5_CNVRT Subtract 32 bit dual numbers
S5_CNVRT Multiply 32 bit dual numbers S5_CNVRT Divide 32 bit dual
numbers S5_CNVRT Extract roots of 16 bit dual numbers S5_CNVRT
Bi-directional shift register, bitwise
REG_SCHW S5_CNVRT Bi-directional shift register, wordwise
REG_FIFO S5_CNVRT Buffer memory (FIFO)
FC 93 FC 94 FC 95
REG_LIFO DB_COPY1 DB_COPY2
S5_CNVRT Stack register (LIFO) S5_CNVRT Copy data block, direct
assignment of parameters S5_CNVRT Copy data block, indirect
assignment of parameterization S5_CNVRT Save scratchpad memory
S5_CNVRT Load scratchpad memory S5_CNVRT Change BCD number to 32
bit dual number S5_CNVRT Change 32 bit dual number to BCD number
S5_CNVRT Read analog value S5_CNVRT Read analog value S5_CNVRT Read
analog value S5_CNVRT Read analog value S5_CNVRT Read analog value
S5_CNVRT Read analog value S5_CNVRT Read analog value S5_CNVRT Read
analog value S5_CNVRT Output analog value S5_CNVRT Output analog
value
FC 96 FC 97 FC 98 FC 99 FC 100 FC 101 FC 102 FC 103 FC 104 FC
105 FC 106 FC 107 FC 108 FC 109
RETTEN LADEN COD_B8 COD_32 AE_460_1 AE_460_2 AE_463_1 AE_463_2
AE_464_1 AE_464_2 AE_466_1 AE_466_2 RLG_AA1 RLG_AA2
FC 110
PER_ET1
S5_CNVRT Read and Write for extended periphery (direct
assignment of parameters) S5_CNVRT Read and Write for extended
periphery (indirect assignment of parameters) S5_CNVRT Sine (x)
S5_CNVRT Cosine (x) S5_CNVRT Tangent (x) S5_CNVRT Cotangent (x)
S5_CNVRT Arc sine (x) S5_CNVRT Arc cosine (x) S5_CNVRT Arc tangent
(x) S5_CNVRT Arc cotangens (x) S5_CNVRT Natural logarithm ln (x)
S5_CNVRT Decade logarithm Iog (x) S5_CNVRT General logarithm log
(x) to basis b S5_CNVRT e to the power of n S5_CNVRT 10 to the
power of n
FC 111
PER_ET2
FC 112 FC 113 FC 114 FC 115 FC 116 FC 117 FC 118 FC 119 FC 120
FC 121 FC 122 FC 123 FC 124
SINUS COSINUS TANGENS COTANG ARCSIN ARCCOS ARCTAN ARCCOT LN_X
LG_X B_LOG_X E_H_N ZEHN_H_N
FC 125
A2_H_A1
S5_CNVRT AKKU 2 to the power of AKKU 1
IEC Function Blocks Number Name FC 1 FC 2 FC 3 FC 4 FC 5 FC 6 FC
7 FC 8 FC 9 FC 10 FC 11 FC 12 Family Description Point Math Add
duration to a time Combine two STRING variables Combine DATE and
TIME_OF_DAY to DT Delete in a STRING variable Data type conversion
DINT to STRING Extract the DATE from DT Extract the day of the week
from DT Extract the TIME_OF_DAY from DT Compare DT for equal
Compare STRING for equal Find in a STRING variable Compare DT for
greater than or
AD_DT_TM IEC CONCAT IEC
D_TOD_DT IEC DELETE IEC
DI_STRNG IEC DT_DATE DT_DAY DT_TOD EQ_DT FIND GE_DT IEC IEC IEC
IEC IEC IEC
EQ_STRNG IEC
equal FC 13 FC 14 FC 15 FC 16 FC 17 FC 18 FC 19 FC 20 FC 21 FC
22 FC 23 FC 24 FC 25 FC 26 GE_STRNG IEC GT_DT IEC Compare STRING
for greater than or equal Compare DT for greater than Compare
STRING for greater than Data type conversion INT to STRING Insert
in a STRING variable Compare DT for smaller than or equal Compare
STRING for smaller than or equal Left part of a STRING variable
Length of a STRING variable Point Math Limit Compare DT for smaller
than Compare STRING for smaller than Point Math Select maximum
Middle part of a STRING variable
GT_STRNG IEC I_STRNG INSERT LE_DT IEC IEC IEC
LE_STRNG IEC LEFT LEN LIMIT LT_DT IEC IEC IEC IEC
LT_STRNG IEC MAX MID IEC IEC
FC 27 FC 28 FC 29 FC 30 FC 31 FC 32 FC 33 FC 34 FC 35 FC 36 FC
37 FC 38 FC 39 FC 40
MIN NE_DT R_STRNG REPLACE RIGHT S5TI_TIM
IEC IEC IEC IEC IEC IEC
Point Math Select minimum Compare DT for unequal Compare STRING
for unequal Data type conversion REAL to STRING Replace in a STRING
variable Right part of a STRING variable Data type conversion
S5TIME to TIME Point Math Subtract two time values Point Math
Subtract duration from a time Point Math Binary selection Data type
conversion STRING to DINT Data type conversion STRING to INT Data
type conversion STRING to REAL Data type conversion TIME to
S5TIME
NE_STRNG IEC
SB_DT_DT IEC SB_DT_TM IEC SEL IEC
STRNG_DI IEC STRNG_I STRNG_R TIM_S5TI IEC IEC IEC
PID Control Blocks Number Name FB 41 FB 42 FB 43 FB 58 FB 59
CONT_C CONT_S Family ICONT ICONT Description Continuous Control
Step Control Pulse Generation
PULSEGEN ICONT
TCONT_CP CONTROL Temperature Continuous Controller TCONT_S
CONTROL Temperature Step Controller
Communication Blocks Number Name FB 2 FB 3 IDENTIFY READ Family
CP_300 CP_300 Description For checking device properties Reads data
from a data area of the communication partner specified by a name
or index depending on the assignment of parameters for the job.
Allows unconfirmed transmission of variables by an FMS
FB 4
REPORT
CP_300
server. FB 5 STATUS CP_300 allows status information to be
requested from the communications partner on the specified FMS
connection. Transfers data from a specified local data area to a
data area on the communication partner. Uncoordinated Sending of
Data Uncoordinated Receiving of Data Sending Segmented Data
Receiving Segmented Data Read Data from a Remote CPU Write Data to
a Remote CPU
FB 6
WRITE
CP_300
FB 8 FB 9 FB 12 FB 13 FB 14 FB 15
USEND URCV BSEND BRCV GET PUT
CP_300 CP_300 CP_300 CP_300 CP_300 CP_300
FB 20
GETIO
IO_FUNCT Read All Inputs of a DP Standard Slave/PROFINET IO
Device IO_FUNCT Write All Outputs of a DP Standard Slave/PROFINET
IO Device IO_FUNCT Read a Part of the Inputs of a DP Standard
Slave/PROFINET IO Device IO_FUNCT Write a Part of the Outputs of a
DP Standard Slave/PROFINET IO Device CP_300 Transfers a
configuration data block (CONF_DB) containing connection data for
an Ethernet CP. Sending Data via TCP native and ISO on TCP
Receiving Data via
FB 21
SETIO
FB 22
GETIO_PART
FB 23
SETIO_PART
FB 55
IP_CONFIG
FB 63 FB 64
TSEND TRCV
COMM COMM
TCP native and ISO on TCP FB 65 TCON COMM Establishing a
Connection using TCP native and ISO on TCP Terminating a Connection
using TCP native and ISO on TCP Sending Data via UDP Receiving Data
via UDP transfers data to the PROFIBUS CP receives data on PROFIBUS
used to request diagnostic information transfers control jobs to
the PROFIBUS CP data by means of a configured connection to the
communication partner (