82
System Function Blocks SFB 0 CTU IEC_TC System Function Blocks SFB 1 CTD IEC_TC System Function Blocks SFB 2 CTUD IEC_TC System Function Blocks SFB 3 TP IEC_TC System Function Blocks SFB 4 TON IEC_TC System Function Blocks SFB 5 TOF IEC_TC System Function Blocks SFB 8 USEND COM_FUNC System Function Blocks SFB 9 URCV COM_FUNC System Function Blocks SFB 12 BSEND COM_FUNC System Function Blocks SFB 13 BRCV COM_FUNC System Function Blocks SFB 14 GET COM_FUNC System Function Blocks SFB 15 PUT COM_FUNC System Function Blocks SFB 16 PRINT COM_FUNC System Function Blocks SFB 19 START COM_FUNC System Function Blocks SFB 20 STOP COM_FUNC System Function Blocks SFB 21 RESUME COM_FUNC System Function Blocks SFB 22 STATUS COM_FUNC System Function Blocks SFB 23 USTATUS COM_FUNC System Function Blocks SFB 29 HS_COUNT COUNTERS System Function Blocks SFB 30 FREQ_MES COUNTERS System Function Blocks SFB 31 NOTIFY_8P COM_FUNC System Function Blocks SFB 32 DRUM TIMERS System Function Blocks SFB 33 ALARM COM_FUNC System Function Blocks SFB 34 ALARM_8 COM_FUNC System Function Blocks SFB 35 ALARM_8P COM_FUNC System Function Blocks SFB 36 NOTIFY COM_FUNC System Function Blocks SFB 37 AR_SEND COM_FUNC System Function Blocks SFB 38 HSC_A_B COUNTERS System Function Blocks SFB 39 POS ICONT System Function Blocks SFB 41 CONT_C ICONT System Function Blocks SFB 42 CONT_S ICONT System Function Blocks SFB 43 PULSEGEN ICONT System Function Blocks SFB 44 ANALOG TEC_FUNC System Function Blocks SFB 46 DIGITAL TEC_FUNC System Function Blocks SFB 47 COUNT TEC_FUNC System Function Blocks SFB 48 FREQUENC TEC_FUNC System Function Blocks SFB 49 PULSE TEC_FUNC System Function Blocks SFB 52 RDREC DP System Function Blocks SFB 53 WRREC DP System Function Blocks SFB 54 RALRM DP System Function Blocks SFB 60 SEND_PTP TEC_FUNC System Function Blocks SFB 61 RECV_PTP TEC_FUNC System Function Blocks SFB 62 RES_RECV TEC_FUNC System Function Blocks SFB 63 SEND_RK TEC_FUNC System Function Blocks SFB 64 FETCH_RK TEC_FUNC System Function Blocks SFB 65 SERVE_RK TEC_FUNC System Function Blocks SFB 75 SALRM DP System Function Blocks SFB 81 RD_DPAR IO_FUNCT System Function Blocks SFC 0 SET_CLK CLK_FUNC System Function Blocks SFC 1 READ_CLK CLK_FUNC System Function Blocks SFC 2 SET_RTM CLK_FUNC

Siemens S7 Libraries

Embed Size (px)

Citation preview

Page 1: Siemens S7 Libraries

System Function Blocks SFB 0 CTU IEC_TCSystem Function Blocks SFB 1 CTD IEC_TCSystem Function Blocks SFB 2 CTUD IEC_TCSystem Function Blocks SFB 3 TP IEC_TCSystem Function Blocks SFB 4 TON IEC_TCSystem Function Blocks SFB 5 TOF IEC_TCSystem Function Blocks SFB 8 USEND COM_FUNCSystem Function Blocks SFB 9 URCV COM_FUNCSystem Function Blocks SFB 12 BSEND COM_FUNCSystem Function Blocks SFB 13 BRCV COM_FUNCSystem Function Blocks SFB 14 GET COM_FUNCSystem Function Blocks SFB 15 PUT COM_FUNCSystem Function Blocks SFB 16 PRINT COM_FUNCSystem Function Blocks SFB 19 START COM_FUNCSystem Function Blocks SFB 20 STOP COM_FUNCSystem Function Blocks SFB 21 RESUME COM_FUNCSystem Function Blocks SFB 22 STATUS COM_FUNCSystem Function Blocks SFB 23 USTATUS COM_FUNCSystem Function Blocks SFB 29 HS_COUNT COUNTERSSystem Function Blocks SFB 30 FREQ_MES COUNTERSSystem Function Blocks SFB 31 NOTIFY_8P COM_FUNCSystem Function Blocks SFB 32 DRUM TIMERSSystem Function Blocks SFB 33 ALARM COM_FUNCSystem Function Blocks SFB 34 ALARM_8 COM_FUNCSystem Function Blocks SFB 35 ALARM_8P COM_FUNCSystem Function Blocks SFB 36 NOTIFY COM_FUNCSystem Function Blocks SFB 37 AR_SEND COM_FUNCSystem Function Blocks SFB 38 HSC_A_B COUNTERSSystem Function Blocks SFB 39 POS ICONTSystem Function Blocks SFB 41 CONT_C ICONTSystem Function Blocks SFB 42 CONT_S ICONTSystem Function Blocks SFB 43 PULSEGEN ICONTSystem Function Blocks SFB 44 ANALOG TEC_FUNCSystem Function Blocks SFB 46 DIGITAL TEC_FUNCSystem Function Blocks SFB 47 COUNT TEC_FUNCSystem Function Blocks SFB 48 FREQUENC TEC_FUNCSystem Function Blocks SFB 49 PULSE TEC_FUNCSystem Function Blocks SFB 52 RDREC DPSystem Function Blocks SFB 53 WRREC DPSystem Function Blocks SFB 54 RALRM DPSystem Function Blocks SFB 60 SEND_PTP TEC_FUNCSystem Function Blocks SFB 61 RECV_PTP TEC_FUNCSystem Function Blocks SFB 62 RES_RECV TEC_FUNCSystem Function Blocks SFB 63 SEND_RK TEC_FUNCSystem Function Blocks SFB 64 FETCH_RK TEC_FUNCSystem Function Blocks SFB 65 SERVE_RK TEC_FUNCSystem Function Blocks SFB 75 SALRM DPSystem Function Blocks SFB 81 RD_DPAR IO_FUNCTSystem Function Blocks SFC 0 SET_CLK CLK_FUNCSystem Function Blocks SFC 1 READ_CLK CLK_FUNCSystem Function Blocks SFC 2 SET_RTM CLK_FUNCSystem Function Blocks SFC 3 CTRL_RTM CLK_FUNCSystem Function Blocks SFC 4 READ_RTM CLK_FUNCSystem Function Blocks SFC 5 GADR_LGC IO_FUNCT

Page 2: Siemens S7 Libraries

System Function Blocks SFC 6 RD_SINFO DB_FUNCTSystem Function Blocks SFC 7 DP_PRAL DPSystem Function Blocks SFC 9 EN_MSG COM_FUNCSystem Function Blocks SFC 10 DIS_MSG COM_FUNCSystem Function Blocks SFC 11 DPSYC_FR DPSystem Function Blocks SFC 12 D_ACT_DP DPSystem Function Blocks SFC 13 DPNRM_DG DIAGNSTCSystem Function Blocks SFC 14 DPRD_DAT DPSystem Function Blocks SFC 15 DPWR_DAT DPSystem Function Blocks SFC 17 ALARM_SQ PMC_FUNCSystem Function Blocks SFC 18 ALARM_S PMC_FUNCSystem Function Blocks SFC 19 ALARM_SC PMC_FUNCSystem Function Blocks SFC 20 BLKMOV MOVESystem Function Blocks SFC 21 FILL MOVESystem Function Blocks SFC 22 CREAT_DB DB_FUNCTSystem Function Blocks SFC 23 DEL_DB DB_FUNCTSystem Function Blocks SFC 24 TEST_DB DB_FUNCTSystem Function Blocks SFC 25 COMPRESS DB_FUNCTSystem Function Blocks SFC 26 UPDAT_PI IO_FUNCTSystem Function Blocks SFC 27 UPDAT_PO IO_FUNCTSystem Function Blocks SFC 28 SET_TINT PGM_CNTLSystem Function Blocks SFC 29 CAN_TINT PGM_CNTLSystem Function Blocks SFC 30 ACT_TINT PGM_CNTLSystem Function Blocks SFC 31 QRY_TINT PGM_CNTLSystem Function Blocks SFC 32 SRT_DINT PGM_CNTLSystem Function Blocks SFC 33 CAN_DINT PGM_CNTLSystem Function Blocks SFC 34 QRY_DINT PGM_CNTLSystem Function Blocks SFC 35 MP_ALM PGM_CNTLSystem Function Blocks SFC 36 MSK_FLT DIAGNSTCSystem Function Blocks SFC 37 DMSK_FLT DIAGNSTCSystem Function Blocks SFC 38 READ_ERR DIAGNSTCSystem Function Blocks SFC 39 DIS_IRT IRT_FUNCSystem Function Blocks SFC 40 EN_IRT IRT_FUNCSystem Function Blocks SFC 41 DIS_AIRT IRT_FUNCSystem Function Blocks SFC 42 EN_AIRT IRT_FUNCSystem Function Blocks SFC 43 RE_TRIGR PGM_CNTLSystem Function Blocks SFC 44 REPL_VAL DIAGNSTCSystem Function Blocks SFC 46 STP PGM_CNTLSystem Function Blocks SFC 47 WAIT PGM_CNTLSystem Function Blocks SFC 48 SNC_RTCB CLK_FUNCSystem Function Blocks SFC 49 LGC_GADR IO_FUNCTSystem Function Blocks SFC 50 RD_LGADR IO_FUNCTSystem Function Blocks SFC 51 RDSYSST DIAGNSTCSystem Function Blocks SFC 52 WR_USMSG DIAGNSTCSystem Function Blocks SFC 54 RD_PARM IO_FUNCTSystem Function Blocks SFC 55 WR_PARM IO_FUNCTSystem Function Blocks SFC 56 WR_DPARM IO_FUNCTSystem Function Blocks SFC 57 PARM_MOD IO_FUNCTSystem Function Blocks SFC 58 WR_REC IO_FUNCTSystem Function Blocks SFC 59 RD_REC IO_FUNCTSystem Function Blocks SFC 60 GD_SND COM_FUNCSystem Function Blocks SFC 61 GD_RCV COM_FUNCSystem Function Blocks SFC 62 CONTROL COM_FUNCSystem Function Blocks SFC 63 AB_CALL PLASTICS

Page 3: Siemens S7 Libraries

System Function Blocks SFC 64 TIME_TCK CLK_FUNCSystem Function Blocks SFC 65 X_SEND COM_FUNCSystem Function Blocks SFC 66 X_RCV COM_FUNCSystem Function Blocks SFC 67 X_GET COM_FUNCSystem Function Blocks SFC 68 X_PUT COM_FUNCSystem Function Blocks SFC 69 X_ABORT COM_FUNCSystem Function Blocks SFC 70 GEO_LOG IO_FUNCTSystem Function Blocks SFC 71 LOG_GEO IO_FUNCTSystem Function Blocks SFC 72 I_GET COM_FUNCSystem Function Blocks SFC 73 I_PUT COM_FUNCSystem Function Blocks SFC 74 I_ABORT COM_FUNCSystem Function Blocks SFC 78 OB_RT DIAGNSTCSystem Function Blocks SFC 79 SET BIT_LOGCSystem Function Blocks SFC 80 RSET BIT_LOGCSystem Function Blocks SFC 81 UBLKMOV MOVESystem Function Blocks SFC 82 CREA_DBL DB_CTRLSystem Function Blocks SFC 83 READ_DBL DB_CTRLSystem Function Blocks SFC 84 WRIT_DBL DB_CTRLSystem Function Blocks SFC 85 CREA_DB DB_FUNCTSystem Function Blocks SFC 87 C_DIAG COM_FUNCSystem Function Blocks SFC 90 H_CTRL HF_FUNCTSystem Function Blocks SFC 100 SET_CLKS CLK_FUNCSystem Function Blocks SFC 101 RTM CLK_FUNCSystem Function Blocks SFC 102 RD_DPARA IO_FUNCTSystem Function Blocks SFC 103 DP_TOPOL DPSystem Function Blocks SFC 104 CIR PGM_CNTLSystem Function Blocks SFC 105 READ_SI PMC_FUNCSystem Function Blocks SFC 106 DEL_SI PMC_FUNCSystem Function Blocks SFC 107 ALARM_DQ PMC_FUNCSystem Function Blocks SFC 108 ALARM_D PMC_FUNCSystem Function Blocks SFC 112 PN_IN PROFIne2System Function Blocks SFC 113 PN_OUT PROFIne2System Function Blocks SFC 114 PN_DP PROFIne2System Function Blocks SFC 126 SYNC_PI IO_FUNCTSystem Function Blocks SFC 127 SYNC_PO IO_FUNCTS5-S7 Converting Blocks FC 61 GP_FPGP S5_CNVRTS5-S7 Converting Blocks FC 62 GP_GPFP S5_CNVRTS5-S7 Converting Blocks FC 63 GP_ADD S5_CNVRTS5-S7 Converting Blocks FC 64 GP_SUB S5_CNVRTS5-S7 Converting Blocks FC 65 GP_MUL S5_CNVRTS5-S7 Converting Blocks FC 66 GP_DIV S5_CNVRTS5-S7 Converting Blocks FC 67 GP_VGL S5_CNVRTS5-S7 Converting Blocks FC 68 RAD_GP S5_CNVRTS5-S7 Converting Blocks FC 69 MLD_TG S5_CNVRTS5-S7 Converting Blocks FC 70 MLD_TGZ S5_CNVRTS5-S7 Converting Blocks FC 71 MLD_EZW S5_CNVRTS5-S7 Converting Blocks FC 72 MLD_EDW S5_CNVRTS5-S7 Converting Blocks FC 73 MLD_SAMW S5_CNVRTS5-S7 Converting Blocks FC 74 MLD_SAM S5_CNVRTS5-S7 Converting Blocks FC 75 S5_CNVRTS5-S7 Converting Blocks FC 78 MLD_EDWK S5_CNVRTS5-S7 Converting Blocks FC 79 MLD_EZK S5_CNVRTS5-S7 Converting Blocks FC 80 MLD_EDK S5_CNVRTS5-S7 Converting Blocks FC 81 COD_B4 S5_CNVRT

MLD_EZ 

Page 4: Siemens S7 Libraries

S5-S7 Converting Blocks FC 82 COD_16 S5_CNVRTS5-S7 Converting Blocks FC 83 MUL_16 S5_CNVRTS5-S7 Converting Blocks FC 84 DIV_16 S5_CNVRTS5-S7 Converting Blocks FC 85 ADD_32 S5_CNVRTS5-S7 Converting Blocks FC 86 SUB_32 S5_CNVRTS5-S7 Converting Blocks FC 87 S5_CNVRTS5-S7 Converting Blocks FC 88 DIV_32 S5_CNVRTS5-S7 Converting Blocks FC 89 RAD_16 S5_CNVRTS5-S7 Converting Blocks FC 90 REG_SCHB S5_CNVRTS5-S7 Converting Blocks FC 91 S5_CNVRTS5-S7 Converting Blocks FC 92 REG_FIFO S5_CNVRTS5-S7 Converting Blocks FC 93 REG_LIFO S5_CNVRTS5-S7 Converting Blocks FC 94 DB_COPY1 S5_CNVRTS5-S7 Converting Blocks FC 95 S5_CNVRTS5-S7 Converting Blocks FC 96 RETTEN S5_CNVRTS5-S7 Converting Blocks FC 97 LADEN S5_CNVRTS5-S7 Converting Blocks FC 98 COD_B8 S5_CNVRTS5-S7 Converting Blocks FC 99 COD_32 S5_CNVRTS5-S7 Converting Blocks FC 100 AE_460_1 S5_CNVRTS5-S7 Converting Blocks FC 101 AE_460_2 S5_CNVRTS5-S7 Converting Blocks FC 102 S5_CNVRTS5-S7 Converting Blocks FC 103 AE_463_2 S5_CNVRTS5-S7 Converting Blocks FC 104 AE_464_1 S5_CNVRTS5-S7 Converting Blocks FC 105 AE_464_2 S5_CNVRTS5-S7 Converting Blocks FC 106 AE_466_1 S5_CNVRTS5-S7 Converting Blocks FC 107 AE_466_2 S5_CNVRTS5-S7 Converting Blocks FC 108 RLG_AA1 S5_CNVRTS5-S7 Converting Blocks FC 109 RLG_AA2 S5_CNVRTS5-S7 Converting Blocks FC 110 PER_ET1 S5_CNVRTS5-S7 Converting Blocks FC 111 PER_ET2 S5_CNVRTS5-S7 Converting Blocks FC 112 SINUS S5_CNVRTS5-S7 Converting Blocks FC 113 COSINUS S5_CNVRTS5-S7 Converting Blocks FC 114 TANGENS S5_CNVRTS5-S7 Converting Blocks FC 115 COTANG S5_CNVRTS5-S7 Converting Blocks FC 116 ARCSIN S5_CNVRTS5-S7 Converting Blocks FC 117 ARCCOS S5_CNVRTS5-S7 Converting Blocks FC 118 ARCTAN S5_CNVRTS5-S7 Converting Blocks FC 119 ARCCOT S5_CNVRTS5-S7 Converting Blocks FC 120 LN_X S5_CNVRTS5-S7 Converting Blocks FC 121 LG_X S5_CNVRTS5-S7 Converting Blocks FC 122 B_LOG_X S5_CNVRTS5-S7 Converting Blocks FC 123 E_H_N S5_CNVRTS5-S7 Converting Blocks FC 124 ZEHN_H_N S5_CNVRTS5-S7 Converting Blocks FC 125 A2_H_A1 S5_CNVRTIEC Function Blocks FC 1 AD_DT_TM IECIEC Function Blocks FC 2 CONCAT IECIEC Function Blocks FC 3 D_TOD_DT IECIEC Function Blocks FC 4 DELETE IECIEC Function Blocks FC 5 DI_STRNG IECIEC Function Blocks FC 6 DT_DATE IECIEC Function Blocks FC 7 DT_DAY IECIEC Function Blocks FC 8 DT_TOD IECIEC Function Blocks FC 9 EQ_DT IECIEC Function Blocks FC 10 EQ_STRNG IEC

MUL_32 

REG_SCHW 

DB_COPY2 

AE_463_1 

Page 5: Siemens S7 Libraries

IEC Function Blocks FC 11 FIND IECIEC Function Blocks FC 12 GE_DT IECIEC Function Blocks FC 13 GE_STRNG IECIEC Function Blocks FC 14 GT_DT IECIEC Function Blocks FC 15 GT_STRNG IECIEC Function Blocks FC 16 I_STRNG IECIEC Function Blocks FC 17 INSERT IECIEC Function Blocks FC 18 LE_DT IECIEC Function Blocks FC 19 LE_STRNG IECIEC Function Blocks FC 20 LEFT IECIEC Function Blocks FC 21 LEN IECIEC Function Blocks FC 22 LIMIT IECIEC Function Blocks FC 23 LT_DT IECIEC Function Blocks FC 24 LT_STRNG IECIEC Function Blocks FC 25 MAX IECIEC Function Blocks FC 26 MID IECIEC Function Blocks FC 27 MIN IECIEC Function Blocks FC 28 NE_DT IECIEC Function Blocks FC 29 NE_STRNG IECIEC Function Blocks FC 30 R_STRNG IECIEC Function Blocks FC 31 REPLACE IECIEC Function Blocks FC 32 RIGHT IECIEC Function Blocks FC 33 S5TI_TIM IECIEC Function Blocks FC 34 SB_DT_DT IECIEC Function Blocks FC 35 SB_DT_TM IECIEC Function Blocks FC 36 SEL IECIEC Function Blocks FC 37 STRNG_DI IECIEC Function Blocks FC 38 STRNG_I IECIEC Function Blocks FC 39 STRNG_R IECIEC Function Blocks FC 40 TIM_S5TI IECPID Control Blocks FB 41 CONT_C ICONTPID Control Blocks FB 42 CONT_S ICONTPID Control Blocks FB 43 PULSEGEN ICONTPID Control Blocks FB 58 TCONT_CP CONTROLPID Control Blocks FB 59 TCONT_S CONTROLSIMATIC_NET_CP FB 2 IDENTIFY CP_300

SIMATIC_NET_CPFB 3 READ CP_300

SIMATIC_NET_CP FB 4 REPORT CP_300SIMATIC_NET_CP FB 5 STATUS CP_300SIMATIC_NET_CP FB 6 WRITE CP_300Communication Blocks FB 8 USEND CP_300Communication Blocks FB 9 URCV CP_300Communication Blocks FB 12 BSEND CP_300Communication Blocks FB 13 BRCV CP_300Communication Blocks FB 14 GET CP_300Communication Blocks FB 15 PUT CP_300Communication Blocks FB 20 GETIO IO_FUNCTCommunication Blocks FB 21 SETIO IO_FUNCTCommunication Blocks FB 22 GETIO_PART IO_FUNCTCommunication Blocks FB 23 SETIO_PART IO_FUNCT

FB 55 IP_CONFIG CP_300Communication Blocks FB 63 TSEND COMMCommunication Blocks FB 64 TRCV COMM

Page 6: Siemens S7 Libraries

Communication Blocks FB 65 TCON COMMCommunication Blocks FB 66 TDISCON COMMCommunication Blocks FB 67 TUSEND COMMCommunication Blocks FB 68 TURCV COMMCommunication Blocks FC 1 DP_SEND CP_300Communication Blocks FC 2 DP_RECV CP_300Communication Blocks FC 3 DP_DIAG CP_300Communication Blocks FC 4 DP_CTRL CP_300SIMATIC_NET_CP FC 5 AG_SEND CP_300SIMATIC_NET_CP FC 6 AG_RECV CP_300SIMATIC_NET_CP FC 7 AG_LOCK CP_300SIMATIC_NET_CP FC 8 AG_UNLOCK CP_300

SIMATIC_NET_CPFC 10 AG_CNTRL CP_300

SIMATIC_NET_CP FC 11 PNIO_SEND CP_300SIMATIC_NET_CP FC 12 PNIO_RECV CP_300SIMATIC_NET_CP FC 40 FTP_CONNECCP_300SIMATIC_NET_CP FC 41 FTP_STORE CP_300SIMATIC_NET_CP FC 42 FTP_RETRIEVCP_300SIMATIC_NET_CP FC 43 FTP_DELETE CP_300SIMATIC_NET_CP FC 44 FTP_QUIT CP_300SIMATIC_NET_CP FC 50 AG_LSEND CP_300SIMATIC_NET_CP FC 60 AG_LRECV CP_300Communication Blocks FC 62 C_CNTRL CP_300TI-S7 Converting Blocks FB 80 LEAD_LAG CONVERTTI-S7 Converting Blocks FB 81 DCAT TIMERSTI-S7 Converting Blocks FB 82 MCAT TIMERSTI-S7 Converting Blocks FB 83 IMC COMPARETI-S7 Converting Blocks FB 84 SMC COMPARETI-S7 Converting Blocks FB 85 DRUM TIMERSTI-S7 Converting Blocks FB 86 PACK MOVETI-S7 Converting Blocks FC 80 TONR TIMERSTI-S7 Converting Blocks FC 81 IBLKMOV MOVETI-S7 Converting Blocks FC 82 RSET BIT_LOGCTI-S7 Converting Blocks FC 83 SET BIT_LOGCTI-S7 Converting Blocks FC 84 ATT TABLETI-S7 Converting Blocks FC 85 FIFO TABLETI-S7 Converting Blocks FC 86 TBL_FIND TABLETI-S7 Converting Blocks FC 87 LIFO TABLETI-S7 Converting Blocks FC 88 TBL TABLETI-S7 Converting Blocks FC 89 TBL_WRD TABLETI-S7 Converting Blocks FC 90 WSR SHIFTTI-S7 Converting Blocks FC 91 WRD_TBL TABLETI-S7 Converting Blocks FC 92 SHRB SHIFTTI-S7 Converting Blocks FC 93 SEG CONVERTTI-S7 Converting Blocks FC 94 ATH CONVERTTI-S7 Converting Blocks FC 95 HTA CONVERTTI-S7 Converting Blocks FC 96 ENCO CONVERTTI-S7 Converting Blocks FC 97 DECO CONVERTTI-S7 Converting Blocks FC 98 BCDCPL CONVERTTI-S7 Converting Blocks FC 99 BITSUM CONVERTTI-S7 Converting Blocks FC 100 RSETI BIT_LOGCTI-S7 Converting Blocks FC 101 SETI BIT_LOGCTI-S7 Converting Blocks FC 102 DEV MATH_FP

Page 7: Siemens S7 Libraries

TI-S7 Converting Blocks FC 103 CDT TABLETI-S7 Converting Blocks FC 104 TBL_TBL TABLETI-S7 Converting Blocks FC 105 SCALE CONVERTTI-S7 Converting Blocks FC 106 UNSCALE CONVERTMiscellaneous Blocks FB 60 SET_SW TIMEFUNCMiscellaneous Blocks FB 61 SET_SW_S TIMEFUNCMiscellaneous Blocks FB 62 TIMESTMP TIMEFUNCMiscellaneous Blocks FC 60 LOC_TIME TIMEFUNCMiscellaneous Blocks FC 61 BT_LT TIMEFUNCMiscellaneous Blocks FC 62 LT_BT TIMEFUNCMiscellaneous Blocks FC 63 S_LTINT TIMEFUNC

Page 8: Siemens S7 Libraries

Count Up Count Down Count Up/Down Generate a Pulse Generate an On Delay Generate an Off Delay 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 Send Data to Printer Initiate a Warm or Cold Restart on a Remote Device Changing a Remote Device to the STOP State Initiate a Hot Restart on a Remote Device Query the Status of a Remote Partner Receive the Status of a Remote Device Counter (high-speed counter, integrated function) (only exist on the CPU 312 IFM and CPU 314 IFM) Frequency Meter (frequency meter, integrated function (only exist on the CPU 312 IFM and CPU 314 IFM) Generating block related messages without acknowledgement indication Implement a Sequencer Generate Block-Related Messages with Acknowledgment Display Generate Block-Related Messages without Values for 8 Signals Generate Block-Related Messages with Values for 8 Signals Generate Block-Related Messages without Acknowledgment Display Send Archive Data Counter A/B (integrated function) (only exist on the CPU 314 IFM) 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 S7-300C CPUs) Positioning with Digital Output (only exist on the S7-300C CPUs) Controlling the Counter (only exist on the S7-300C CPUs) Controlling the Frequency Measurement (only exist on the S7-300C CPUs) 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 S7-300C CPUs) Receiving Data (ASCII, 3964(R)) (only exist on the S7-300C 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 Read Predefined Parameter Set System Clock Read System Clock Set Run-time Meter Start/Stop Run-time Meter Read Run-time Meter Query Logical Address of a Channel

Page 9: Siemens S7 Libraries

Read OB Start Information Trigger a Hardware Interrupt on the DP Master Enable Block-Related, Symbol-Related and Group Status Messages Disable Block-Related, Symbol-Related and Group Status Messages Synchronize Groups of DP Slaves Deactivation and activation of DP slaves Read Diagnostic Data of a DP Slave (Slave Diagnostics) Read Consistent Data of a Standard DP Slave Write Consistent Data to a DP Standard Slave Generate Acknowledgeable Block-Related Messages Generate Permanently Acknowledged Block-Related Messages Query the Acknowledgment Status of the last ALARM_SQ Entering State Message Copy Variables Initialize a Memory Area Create Data Block Delete Data Block Test Data Block Compress the User Memory Update the Process Image Update Table Update the Process Image Output Table Set Time-of-Day Interrupt Cancel Time-of-Day Interrupt Activate Time-of-Day Interrupt Query Time-of-Day Interrupt Start Time-Delay Interrupt Cancel Time-Delay Interrupt Query Time-Delay Interrupt Trigger Multicomputing Interrupt Mask Synchronous Errors Unmask Synchronous Errors Read Error Register 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 Re-trigger Cycle Time Monitoring Transfer Substitute Value to Accumulator 1 Change the CPU to STOP Delay Execution of the User Program Synchronize Slave Clocks Query the Module Slot Belonging to a Logical Address Query all Logical Addresses of a Module Read a System Status List or Partial List Write a User-Defined Diagnostic Event to the Diagnostic Buffer Read Defined Parameters Write Dynamic Parameters Write Default Parameters Assign Parameters to a Module Write a Data Record Read a Data Record Send a GD Packet Fetch a Received GD Packet Query the Status of a Connection Belonging to a Communication SFB Instance Assembly Code Block (only exists for CPU 614)

Page 10: Siemens S7 Libraries

Read the System Time Send Data to a Communication Partner outside the Local S7 Station Receive Data from a Communication Partner outside the Local S7 Station Read Data from a Communication Partner outside the Local S7 Station Write Data to a Communication Partner outside the Local S7 Station Abort an Existing Connection to a Communication Partner outside the Local S7 StationDetermine Start Address of a Module Determine the Slot Belonging to a Logical Address Read Data from a Communication Partner within the Local S7 Station Write Data to a Communication Partner within the Local S7 Station Abort an Existing Connection to a Communication Partner within the Local S7 StationDetermine OB program runtime 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 Create a Data Block Diagnosis of the Actual Connection Status Control Operation in H Systems Setting the Time-of-Day and the TOD Status Handling runtime meters Redefined Parameters Identifying the bus topology in a DP master system Controlling CiR Reading Dynamic System Resources Deleting Dynamic System Resources Generating Always Acknowledgeable and Block-Related Messages Generating Always Acknowledgeable and Block-Related Messages 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 Update process image partition output table in synchronous cycle Change fixed point number to floating point number Change floating point number to fixed point number Add floating point numbers Subtract floating point numbers Multiply floating point number Divide floating point numbers Compare floating point numbers Extract root of floating point numbers Clock generator Clock generator (timing element) Message of first value with single flashing light, wordwise, A Message of first value with double flashing light, wordwise, A Collected message, wordwise (sound alert) Collected message, bitwise Message of first value with single flashing light, bitwise, A Message of first value with double flashing light, wordwise, A+M Message of first value with single flashing light, bitwise, A+M Message of first value with double flashing light, bitwise, A+M Change BCD number to 16 bit dual number

Page 11: Siemens S7 Libraries

Change 16 bit dual number to BCD number Multiply 16 bit dual numbers Divide 16 bit dual numbers Add 32 bit dual numbers Subtract 32 bit dual numbers Multiply 32 bit dual numbers Divide 32 bit dual numbers Extract roots of 16 bit dual numbers Bi-directional shift register, bitwise Bi-directional shift register, wordwise Buffer memory (FIFO) Stack register (LIFO) Copy data block, direct assignment of parameters Copy data block, indirect assignment of parameterization Save scratchpad memory Load scratchpad memory Change BCD number to 32 bit dual number Change 32 bit dual number to BCD number Read analog value Read analog value Read analog value Read analog value Read analog value Read analog value Read analog value Read analog value Output analog value Output analog value Read and Write for extended periphery (direct assignment of parameters) Read and Write for extended periphery (indirect assignment of parameters) Sine (x)

Tangent (x) Cotangent (x) Arc sine (x) Arc cosine (x) Arc tangent (x) Arc cotangens (x) Natural logarithm ln (x) Decade logarithm Iog (x) General logarithm Iog (x) to basis b e to the power of n 10 to the power of n AKKU 2 to the power of AKKU 1 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

Cosine (x) 

Page 12: Siemens S7 Libraries

Find in a STRING variable Compare DT for greater than or equal 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 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 Continuous ControlStep ControlPulse GenerationTemperature Continuous ControllerTemperature Step Controller

For checking device properties

Allows unconfirmed transmission of variables by an FMS server. 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 Read All Inputs of a DP Standard Slave/PROFINET IO DeviceWrite All Outputs of a DP Standard Slave/PROFINET IO DeviceRead a Part of the Inputs of a DP Standard Slave/PROFINET IO DeviceWrite a Part of the Outputs of a DP Standard Slave/PROFINET IO DeviceTransfers a configuration data block (CONF_DB) containing connection data for an Ethernet CP.Sending Data via TCP native and ISO on TCPReceiving Data via TCP native and ISO on TCP

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.

Page 13: Siemens S7 Libraries

Establishing a Connection using TCP native and ISO on TCPTerminating a Connection using TCP native and ISO on TCPSending Data via UDPReceiving Data via UDPtransfers data to the PROFIBUS CPreceives data on PROFIBUSused to request diagnostic informationtransfers control jobs to the PROFIBUS CPdata by means of a configured connection to the communication partner (<= 240 bytes). data by means of a configured connection from the communication partner (<= 240 bytes, not email). the external data access by means of FETCH/WRITE (not for UDP, email). the external data access by means of FETCH/WRITE (not for UDP, email). allows you to diagnose connections. When necessary, you can reinitialize connection establishment using the FC.

used for data transfer in the CP modes PROFINET IO controller or PROFINET IO device.used to receive data in the CP modes PROFINET IO controller or PROFINET IO device.Establish an FTP connectionStore a file on the FTP serverRetrieve a file from the FTP serverDelete a file on the FTP serverEnable an FTP connectiondata by means of a configured connection to the communication partner. data by means of a configured connection from the communication partner (not email). Query a connection status for S7-300Lead/Lag Algorithm Discrete Control Alarm Timer Motor Control Alarm Timer Index Matrix Compare Scan Matrix Compare Event Maskable Drum Pack Data Software Timer On Delay—Retentive Indirect Block Move Reset Range of Outputs Set Range of Outputs Add to Table First In/First Out Unload Table Table Find Last In/First Out Unload Table Table Move Table to Word Word Shift Register Word to Table Bit Shift Register Seven Segment Decoder ASCII to Hex Hex to ASCII Encode Binary Position Decode Binary Position Ten’s Complement Sum Number of Bits Reset Range of Immediate Outputs Set Range of Immediate Outputs Standard Deviation

Page 14: Siemens S7 Libraries

Correlated Data Table Table to Table Scaling Values Unscaling Values supports the summertime/wintertime changeover in CPUs that do not have the time status. For this purpose it sets the CPU clock to the current time and according to the changeover rules in the Control DB.supports the summertime/wintertime changeover in CPUs that do have the time status. For this purpose it sets the time status to the current time and according to the changeover rules in the Control DB.transfers the time-stamped messages of an IM153-2 into its instance DB.reads the time status or time of the CPU and calculates the local time. It is therefore only useful on CPUs with time status.calculates the local time from the base time given at the input.calculates the base time from the local time given at the input.sets the required time interrupt to the preset time. This time is given in local time.

Page 15: Siemens S7 Libraries

supports the summertime/wintertime changeover in CPUs that do not have the time status. For this purpose it sets the CPU clock to the current time and according to the changeover rules in the Control DB.supports the summertime/wintertime changeover in CPUs that do have the time status. For this purpose it sets the time status to the current time and according to the changeover rules in the Control DB.

reads the time status or time of the CPU and calculates the local time. It is therefore only useful on CPUs with time status.

Page 16: Siemens S7 Libraries

SIMATIC_NET_CP FB 2 IDENTIFY CP_300

SIMATIC_NET_CPFB 3 READ CP_300

SIMATIC_NET_CP FB 4 REPORT CP_300SIMATIC_NET_CP FB 5 STATUS CP_300SIMATIC_NET_CP FB 6 WRITE CP_300Communication Blocks FB 8 USEND CP_300Communication Blocks FB 9 URCV CP_300Communication Blocks FB 12 BSEND CP_300Communication Blocks FB 13 BRCV CP_300Communication Blocks FB 14 GET CP_300Communication Blocks FB 15 PUT CP_300Communication Blocks FB 20 GETIO IO_FUNCTCommunication Blocks FB 21 SETIO IO_FUNCTCommunication Blocks FB 22 GETIO_PART IO_FUNCTCommunication Blocks FB 23 SETIO_PART IO_FUNCTPID Control Blocks FB 41 CONT_C ICONTPID Control Blocks FB 42 CONT_S ICONTPID Control Blocks FB 43 PULSEGEN ICONT

FB 55 IP_CONFIG CP_300PID Control Blocks FB 58 TCONT_CP CONTROLPID Control Blocks FB 59 TCONT_S CONTROLMiscellaneous Blocks FB 60 SET_SW TIMEFUNCMiscellaneous Blocks FB 61 SET_SW_S TIMEFUNCMiscellaneous Blocks FB 62 TIMESTMP TIMEFUNCCommunication Blocks FB 63 TSEND COMMCommunication Blocks FB 64 TRCV COMMCommunication Blocks FB 65 TCON COMMCommunication Blocks FB 66 TDISCON COMMCommunication Blocks FB 67 TUSEND COMMCommunication Blocks FB 68 TURCV COMMTI-S7 Converting Blocks FB 80 LEAD_LAG CONVERTTI-S7 Converting Blocks FB 81 DCAT TIMERSTI-S7 Converting Blocks FB 82 MCAT TIMERSTI-S7 Converting Blocks FB 83 IMC COMPARETI-S7 Converting Blocks FB 84 SMC COMPARETI-S7 Converting Blocks FB 85 DRUM TIMERSTI-S7 Converting Blocks FB 86 PACK MOVEIEC Function Blocks FC 1 AD_DT_TM IECCommunication Blocks FC 1 DP_SEND CP_300IEC Function Blocks FC 2 CONCAT IECCommunication Blocks FC 2 DP_RECV CP_300IEC Function Blocks FC 3 D_TOD_DT IECCommunication Blocks FC 3 DP_DIAG CP_300IEC Function Blocks FC 4 DELETE IECCommunication Blocks FC 4 DP_CTRL CP_300IEC Function Blocks FC 5 DI_STRNG IECSIMATIC_NET_CP FC 5 AG_SEND CP_300IEC Function Blocks FC 6 DT_DATE IECSIMATIC_NET_CP FC 6 AG_RECV CP_300IEC Function Blocks FC 7 DT_DAY IECSIMATIC_NET_CP FC 7 AG_LOCK CP_300IEC Function Blocks FC 8 DT_TOD IECSIMATIC_NET_CP FC 8 AG_UNLOCK CP_300

Page 17: Siemens S7 Libraries

IEC Function Blocks FC 9 EQ_DT IECIEC Function Blocks FC 10 EQ_STRNG IEC

SIMATIC_NET_CPFC 10 AG_CNTRL CP_300

IEC Function Blocks FC 11 FIND IECSIMATIC_NET_CP FC 11 PNIO_SEND CP_300IEC Function Blocks FC 12 GE_DT IECSIMATIC_NET_CP FC 12 PNIO_RECV CP_300IEC Function Blocks FC 13 GE_STRNG IECIEC Function Blocks FC 14 GT_DT IECIEC Function Blocks FC 15 GT_STRNG IECIEC Function Blocks FC 16 I_STRNG IECIEC Function Blocks FC 17 INSERT IECIEC Function Blocks FC 18 LE_DT IECIEC Function Blocks FC 19 LE_STRNG IECIEC Function Blocks FC 20 LEFT IECIEC Function Blocks FC 21 LEN IECIEC Function Blocks FC 22 LIMIT IECIEC Function Blocks FC 23 LT_DT IECIEC Function Blocks FC 24 LT_STRNG IECIEC Function Blocks FC 25 MAX IECIEC Function Blocks FC 26 MID IECIEC Function Blocks FC 27 MIN IECIEC Function Blocks FC 28 NE_DT IECIEC Function Blocks FC 29 NE_STRNG IECIEC Function Blocks FC 30 R_STRNG IECIEC Function Blocks FC 31 REPLACE IECIEC Function Blocks FC 32 RIGHT IECIEC Function Blocks FC 33 S5TI_TIM IECIEC Function Blocks FC 34 SB_DT_DT IECIEC Function Blocks FC 35 SB_DT_TM IECIEC Function Blocks FC 36 SEL IECIEC Function Blocks FC 37 STRNG_DI IECIEC Function Blocks FC 38 STRNG_I IECIEC Function Blocks FC 39 STRNG_R IECIEC Function Blocks FC 40 TIM_S5TI IECSIMATIC_NET_CP FC 40 FTP_CONNECCP_300SIMATIC_NET_CP FC 41 FTP_STORE CP_300SIMATIC_NET_CP FC 42 FTP_RETRIEVCP_300SIMATIC_NET_CP FC 43 FTP_DELETE CP_300SIMATIC_NET_CP FC 44 FTP_QUIT CP_300SIMATIC_NET_CP FC 50 AG_LSEND CP_300SIMATIC_NET_CP FC 60 AG_LRECV CP_300Miscellaneous Blocks FC 60 LOC_TIME TIMEFUNCS5-S7 Converting Blocks FC 61 GP_FPGP S5_CNVRTMiscellaneous Blocks FC 61 BT_LT TIMEFUNCS5-S7 Converting Blocks FC 62 GP_GPFP S5_CNVRTCommunication Blocks FC 62 C_CNTRL CP_300Miscellaneous Blocks FC 62 LT_BT TIMEFUNCS5-S7 Converting Blocks FC 63 GP_ADD S5_CNVRTMiscellaneous Blocks FC 63 S_LTINT TIMEFUNCS5-S7 Converting Blocks FC 64 GP_SUB S5_CNVRTS5-S7 Converting Blocks FC 65 GP_MUL S5_CNVRTS5-S7 Converting Blocks FC 66 GP_DIV S5_CNVRT

Page 18: Siemens S7 Libraries

S5-S7 Converting Blocks FC 67 GP_VGL S5_CNVRTS5-S7 Converting Blocks FC 68 RAD_GP S5_CNVRTS5-S7 Converting Blocks FC 69 MLD_TG S5_CNVRTS5-S7 Converting Blocks FC 70 MLD_TGZ S5_CNVRTS5-S7 Converting Blocks FC 71 MLD_EZW S5_CNVRTS5-S7 Converting Blocks FC 72 MLD_EDW S5_CNVRTS5-S7 Converting Blocks FC 73 MLD_SAMW S5_CNVRTS5-S7 Converting Blocks FC 74 MLD_SAM S5_CNVRTS5-S7 Converting Blocks FC 75 S5_CNVRTS5-S7 Converting Blocks FC 78 MLD_EDWK S5_CNVRTS5-S7 Converting Blocks FC 79 MLD_EZK S5_CNVRTS5-S7 Converting Blocks FC 80 MLD_EDK S5_CNVRTTI-S7 Converting Blocks FC 80 TONR TIMERSS5-S7 Converting Blocks FC 81 COD_B4 S5_CNVRTTI-S7 Converting Blocks FC 81 IBLKMOV MOVES5-S7 Converting Blocks FC 82 COD_16 S5_CNVRTTI-S7 Converting Blocks FC 82 RSET BIT_LOGCS5-S7 Converting Blocks FC 83 MUL_16 S5_CNVRTTI-S7 Converting Blocks FC 83 SET BIT_LOGCS5-S7 Converting Blocks FC 84 DIV_16 S5_CNVRTTI-S7 Converting Blocks FC 84 ATT TABLES5-S7 Converting Blocks FC 85 ADD_32 S5_CNVRTTI-S7 Converting Blocks FC 85 FIFO TABLES5-S7 Converting Blocks FC 86 SUB_32 S5_CNVRTTI-S7 Converting Blocks FC 86 TBL_FIND TABLES5-S7 Converting Blocks FC 87 S5_CNVRTTI-S7 Converting Blocks FC 87 LIFO TABLES5-S7 Converting Blocks FC 88 DIV_32 S5_CNVRTTI-S7 Converting Blocks FC 88 TBL TABLES5-S7 Converting Blocks FC 89 RAD_16 S5_CNVRTTI-S7 Converting Blocks FC 89 TBL_WRD TABLES5-S7 Converting Blocks FC 90 REG_SCHB S5_CNVRTTI-S7 Converting Blocks FC 90 WSR SHIFTS5-S7 Converting Blocks FC 91 S5_CNVRTTI-S7 Converting Blocks FC 91 WRD_TBL TABLES5-S7 Converting Blocks FC 92 REG_FIFO S5_CNVRTTI-S7 Converting Blocks FC 92 SHRB SHIFTS5-S7 Converting Blocks FC 93 REG_LIFO S5_CNVRTTI-S7 Converting Blocks FC 93 SEG CONVERTS5-S7 Converting Blocks FC 94 DB_COPY1 S5_CNVRTTI-S7 Converting Blocks FC 94 ATH CONVERTS5-S7 Converting Blocks FC 95 S5_CNVRTTI-S7 Converting Blocks FC 95 HTA CONVERTS5-S7 Converting Blocks FC 96 RETTEN S5_CNVRTTI-S7 Converting Blocks FC 96 ENCO CONVERTS5-S7 Converting Blocks FC 97 LADEN S5_CNVRTTI-S7 Converting Blocks FC 97 DECO CONVERTS5-S7 Converting Blocks FC 98 COD_B8 S5_CNVRTTI-S7 Converting Blocks FC 98 BCDCPL CONVERTS5-S7 Converting Blocks FC 99 COD_32 S5_CNVRTTI-S7 Converting Blocks FC 99 BITSUM CONVERTS5-S7 Converting Blocks FC 100 AE_460_1 S5_CNVRTTI-S7 Converting Blocks FC 100 RSETI BIT_LOGCS5-S7 Converting Blocks FC 101 AE_460_2 S5_CNVRT

MLD_EZ 

MUL_32 

REG_SCHW 

DB_COPY2 

Page 19: Siemens S7 Libraries

TI-S7 Converting Blocks FC 101 SETI BIT_LOGCS5-S7 Converting Blocks FC 102 S5_CNVRTTI-S7 Converting Blocks FC 102 DEV MATH_FPS5-S7 Converting Blocks FC 103 AE_463_2 S5_CNVRTTI-S7 Converting Blocks FC 103 CDT TABLES5-S7 Converting Blocks FC 104 AE_464_1 S5_CNVRTTI-S7 Converting Blocks FC 104 TBL_TBL TABLES5-S7 Converting Blocks FC 105 AE_464_2 S5_CNVRTTI-S7 Converting Blocks FC 105 SCALE CONVERTS5-S7 Converting Blocks FC 106 AE_466_1 S5_CNVRTTI-S7 Converting Blocks FC 106 UNSCALE CONVERTS5-S7 Converting Blocks FC 107 AE_466_2 S5_CNVRTS5-S7 Converting Blocks FC 108 RLG_AA1 S5_CNVRTS5-S7 Converting Blocks FC 109 RLG_AA2 S5_CNVRTS5-S7 Converting Blocks FC 110 PER_ET1 S5_CNVRTS5-S7 Converting Blocks FC 111 PER_ET2 S5_CNVRTS5-S7 Converting Blocks FC 112 SINUS S5_CNVRTS5-S7 Converting Blocks FC 113 COSINUS S5_CNVRTS5-S7 Converting Blocks FC 114 TANGENS S5_CNVRTS5-S7 Converting Blocks FC 115 COTANG S5_CNVRTS5-S7 Converting Blocks FC 116 ARCSIN S5_CNVRTS5-S7 Converting Blocks FC 117 ARCCOS S5_CNVRTS5-S7 Converting Blocks FC 118 ARCTAN S5_CNVRTS5-S7 Converting Blocks FC 119 ARCCOT S5_CNVRTS5-S7 Converting Blocks FC 120 LN_X S5_CNVRTS5-S7 Converting Blocks FC 121 LG_X S5_CNVRTS5-S7 Converting Blocks FC 122 B_LOG_X S5_CNVRTS5-S7 Converting Blocks FC 123 E_H_N S5_CNVRTS5-S7 Converting Blocks FC 124 ZEHN_H_N S5_CNVRTS5-S7 Converting Blocks FC 125 A2_H_A1 S5_CNVRTSystem Function Blocks SFB 0 CTU IEC_TCSystem Function Blocks SFB 1 CTD IEC_TCSystem Function Blocks SFB 2 CTUD IEC_TCSystem Function Blocks SFB 3 TP IEC_TCSystem Function Blocks SFB 4 TON IEC_TCSystem Function Blocks SFB 5 TOF IEC_TCSystem Function Blocks SFB 8 USEND COM_FUNCSystem Function Blocks SFB 9 URCV COM_FUNCSystem Function Blocks SFB 12 BSEND COM_FUNCSystem Function Blocks SFB 13 BRCV COM_FUNCSystem Function Blocks SFB 14 GET COM_FUNCSystem Function Blocks SFB 15 PUT COM_FUNCSystem Function Blocks SFB 16 PRINT COM_FUNCSystem Function Blocks SFB 19 START COM_FUNCSystem Function Blocks SFB 20 STOP COM_FUNCSystem Function Blocks SFB 21 RESUME COM_FUNCSystem Function Blocks SFB 22 STATUS COM_FUNCSystem Function Blocks SFB 23 USTATUS COM_FUNCSystem Function Blocks SFB 29 HS_COUNT COUNTERSSystem Function Blocks SFB 30 FREQ_MES COUNTERSSystem Function Blocks SFB 31 NOTIFY_8P COM_FUNCSystem Function Blocks SFB 32 DRUM TIMERSSystem Function Blocks SFB 33 ALARM COM_FUNCSystem Function Blocks SFB 34 ALARM_8 COM_FUNC

AE_463_1 

Page 20: Siemens S7 Libraries

System Function Blocks SFB 35 ALARM_8P COM_FUNCSystem Function Blocks SFB 36 NOTIFY COM_FUNCSystem Function Blocks SFB 37 AR_SEND COM_FUNCSystem Function Blocks SFB 38 HSC_A_B COUNTERSSystem Function Blocks SFB 39 POS ICONTSystem Function Blocks SFB 41 CONT_C ICONTSystem Function Blocks SFB 42 CONT_S ICONTSystem Function Blocks SFB 43 PULSEGEN ICONTSystem Function Blocks SFB 44 ANALOG TEC_FUNCSystem Function Blocks SFB 46 DIGITAL TEC_FUNCSystem Function Blocks SFB 47 COUNT TEC_FUNCSystem Function Blocks SFB 48 FREQUENC TEC_FUNCSystem Function Blocks SFB 49 PULSE TEC_FUNCSystem Function Blocks SFB 52 RDREC DPSystem Function Blocks SFB 53 WRREC DPSystem Function Blocks SFB 54 RALRM DPSystem Function Blocks SFB 60 SEND_PTP TEC_FUNCSystem Function Blocks SFB 61 RECV_PTP TEC_FUNCSystem Function Blocks SFB 62 RES_RECV TEC_FUNCSystem Function Blocks SFB 63 SEND_RK TEC_FUNCSystem Function Blocks SFB 64 FETCH_RK TEC_FUNCSystem Function Blocks SFB 65 SERVE_RK TEC_FUNCSystem Function Blocks SFB 75 SALRM DPSystem Function Blocks SFB 81 RD_DPAR IO_FUNCTSystem Function Blocks SFC 0 SET_CLK CLK_FUNCSystem Function Blocks SFC 1 READ_CLK CLK_FUNCSystem Function Blocks SFC 2 SET_RTM CLK_FUNCSystem Function Blocks SFC 3 CTRL_RTM CLK_FUNCSystem Function Blocks SFC 4 READ_RTM CLK_FUNCSystem Function Blocks SFC 5 GADR_LGC IO_FUNCTSystem Function Blocks SFC 6 RD_SINFO DB_FUNCTSystem Function Blocks SFC 7 DP_PRAL DPSystem Function Blocks SFC 9 EN_MSG COM_FUNCSystem Function Blocks SFC 10 DIS_MSG COM_FUNCSystem Function Blocks SFC 11 DPSYC_FR DPSystem Function Blocks SFC 12 D_ACT_DP DPSystem Function Blocks SFC 13 DPNRM_DG DIAGNSTCSystem Function Blocks SFC 14 DPRD_DAT DPSystem Function Blocks SFC 15 DPWR_DAT DPSystem Function Blocks SFC 17 ALARM_SQ PMC_FUNCSystem Function Blocks SFC 18 ALARM_S PMC_FUNCSystem Function Blocks SFC 19 ALARM_SC PMC_FUNCSystem Function Blocks SFC 20 BLKMOV MOVESystem Function Blocks SFC 21 FILL MOVESystem Function Blocks SFC 22 CREAT_DB DB_FUNCTSystem Function Blocks SFC 23 DEL_DB DB_FUNCTSystem Function Blocks SFC 24 TEST_DB DB_FUNCTSystem Function Blocks SFC 25 COMPRESS DB_FUNCTSystem Function Blocks SFC 26 UPDAT_PI IO_FUNCTSystem Function Blocks SFC 27 UPDAT_PO IO_FUNCTSystem Function Blocks SFC 28 SET_TINT PGM_CNTLSystem Function Blocks SFC 29 CAN_TINT PGM_CNTLSystem Function Blocks SFC 30 ACT_TINT PGM_CNTLSystem Function Blocks SFC 31 QRY_TINT PGM_CNTL

Page 21: Siemens S7 Libraries

System Function Blocks SFC 32 SRT_DINT PGM_CNTLSystem Function Blocks SFC 33 CAN_DINT PGM_CNTLSystem Function Blocks SFC 34 QRY_DINT PGM_CNTLSystem Function Blocks SFC 35 MP_ALM PGM_CNTLSystem Function Blocks SFC 36 MSK_FLT DIAGNSTCSystem Function Blocks SFC 37 DMSK_FLT DIAGNSTCSystem Function Blocks SFC 38 READ_ERR DIAGNSTCSystem Function Blocks SFC 39 DIS_IRT IRT_FUNCSystem Function Blocks SFC 40 EN_IRT IRT_FUNCSystem Function Blocks SFC 41 DIS_AIRT IRT_FUNCSystem Function Blocks SFC 42 EN_AIRT IRT_FUNCSystem Function Blocks SFC 43 RE_TRIGR PGM_CNTLSystem Function Blocks SFC 44 REPL_VAL DIAGNSTCSystem Function Blocks SFC 46 STP PGM_CNTLSystem Function Blocks SFC 47 WAIT PGM_CNTLSystem Function Blocks SFC 48 SNC_RTCB CLK_FUNCSystem Function Blocks SFC 49 LGC_GADR IO_FUNCTSystem Function Blocks SFC 50 RD_LGADR IO_FUNCTSystem Function Blocks SFC 51 RDSYSST DIAGNSTCSystem Function Blocks SFC 52 WR_USMSG DIAGNSTCSystem Function Blocks SFC 54 RD_PARM IO_FUNCTSystem Function Blocks SFC 55 WR_PARM IO_FUNCTSystem Function Blocks SFC 56 WR_DPARM IO_FUNCTSystem Function Blocks SFC 57 PARM_MOD IO_FUNCTSystem Function Blocks SFC 58 WR_REC IO_FUNCTSystem Function Blocks SFC 59 RD_REC IO_FUNCTSystem Function Blocks SFC 60 GD_SND COM_FUNCSystem Function Blocks SFC 61 GD_RCV COM_FUNCSystem Function Blocks SFC 62 CONTROL COM_FUNCSystem Function Blocks SFC 63 AB_CALL PLASTICSSystem Function Blocks SFC 64 TIME_TCK CLK_FUNCSystem Function Blocks SFC 65 X_SEND COM_FUNCSystem Function Blocks SFC 66 X_RCV COM_FUNCSystem Function Blocks SFC 67 X_GET COM_FUNCSystem Function Blocks SFC 68 X_PUT COM_FUNCSystem Function Blocks SFC 69 X_ABORT COM_FUNCSystem Function Blocks SFC 70 GEO_LOG IO_FUNCTSystem Function Blocks SFC 71 LOG_GEO IO_FUNCTSystem Function Blocks SFC 72 I_GET COM_FUNCSystem Function Blocks SFC 73 I_PUT COM_FUNCSystem Function Blocks SFC 74 I_ABORT COM_FUNCSystem Function Blocks SFC 78 OB_RT DIAGNSTCSystem Function Blocks SFC 79 SET BIT_LOGCSystem Function Blocks SFC 80 RSET BIT_LOGCSystem Function Blocks SFC 81 UBLKMOV MOVESystem Function Blocks SFC 82 CREA_DBL DB_CTRLSystem Function Blocks SFC 83 READ_DBL DB_CTRLSystem Function Blocks SFC 84 WRIT_DBL DB_CTRLSystem Function Blocks SFC 85 CREA_DB DB_FUNCTSystem Function Blocks SFC 87 C_DIAG COM_FUNCSystem Function Blocks SFC 90 H_CTRL HF_FUNCTSystem Function Blocks SFC 100 SET_CLKS CLK_FUNCSystem Function Blocks SFC 101 RTM CLK_FUNCSystem Function Blocks SFC 102 RD_DPARA IO_FUNCT

Page 22: Siemens S7 Libraries

System Function Blocks SFC 103 DP_TOPOL DPSystem Function Blocks SFC 104 CIR PGM_CNTLSystem Function Blocks SFC 105 READ_SI PMC_FUNCSystem Function Blocks SFC 106 DEL_SI PMC_FUNCSystem Function Blocks SFC 107 ALARM_DQ PMC_FUNCSystem Function Blocks SFC 108 ALARM_D PMC_FUNCSystem Function Blocks SFC 112 PN_IN PROFIne2System Function Blocks SFC 113 PN_OUT PROFIne2System Function Blocks SFC 114 PN_DP PROFIne2System Function Blocks SFC 126 SYNC_PI IO_FUNCTSystem Function Blocks SFC 127 SYNC_PO IO_FUNCT

Page 23: Siemens S7 Libraries

For checking device properties

Allows unconfirmed transmission of variables by an FMS server. 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 Read All Inputs of a DP Standard Slave/PROFINET IO DeviceWrite All Outputs of a DP Standard Slave/PROFINET IO DeviceRead a Part of the Inputs of a DP Standard Slave/PROFINET IO DeviceWrite a Part of the Outputs of a DP Standard Slave/PROFINET IO DeviceContinuous ControlStep ControlPulse Generation

Transfers a configuration data block (CONF_DB) containing connection data for an Ethernet CP.Temperature Continuous ControllerTemperature Step Controllersupports the summertime/wintertime changeover in CPUs that do not have the time status. For this purpose it sets the CPU clock to the current time and according to the changeover rules in the Control DB.supports the summertime/wintertime changeover in CPUs that do have the time status. For this purpose it sets the time status to the current time and according to the changeover rules in the Control DB.transfers the time-stamped messages of an IM153-2 into its instance DB.

Sending Data via TCP native and ISO on TCPReceiving Data via TCP native and ISO on TCPEstablishing a Connection using TCP native and ISO on TCPTerminating a Connection using TCP native and ISO on TCPSending Data via UDPReceiving Data via UDPLead/Lag Algorithm Discrete Control Alarm Timer Motor Control Alarm Timer Index Matrix Compare Scan Matrix Compare Event Maskable Drum Pack Data Point Math Add duration to a time

transfers data to the PROFIBUS CPCombine two STRING variables

receives data on PROFIBUSCombine DATE and TIME_OF_DAY to DT

used to request diagnostic informationDelete in a STRING variable

transfers control jobs to the PROFIBUS CPData type conversion DINT to STRING

data by means of a configured connection to the communication partner (<= 240 bytes). Extract the DATE from DT

data by means of a configured connection from the communication partner (<= 240 bytes, not email). Extract the day of the week from DT

the external data access by means of FETCH/WRITE (not for UDP, email). Extract the TIME_OF_DAY from DT

the external data access by means of FETCH/WRITE (not for UDP, email).

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.

Page 24: Siemens S7 Libraries

Compare DT for equal Compare STRING for equal

allows you to diagnose connections. When necessary, you can reinitialize connection establishment using the FC.

Find in a STRING variable

used for data transfer in the CP modes PROFINET IO controller or PROFINET IO device.Compare DT for greater than or equal

used to receive data in the CP modes PROFINET IO controller or PROFINET IO device.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 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

Establish an FTP connectionStore a file on the FTP serverRetrieve a file from the FTP serverDelete a file on the FTP serverEnable an FTP connectiondata by means of a configured connection to the communication partner. data by means of a configured connection from the communication partner (not email). reads the time status or time of the CPU and calculates the local time. It is therefore only useful on CPUs with time status.Change fixed point number to floating point number calculates the local time from the base time given at the input.Change floating point number to fixed point number

Query a connection status for S7-300calculates the base time from the local time given at the input.Add floating point numbers sets the required time interrupt to the preset time. This time is given in local time.Subtract floating point numbers Multiply floating point number Divide floating point numbers

Page 25: Siemens S7 Libraries

Compare floating point numbers Extract root of floating point numbers Clock generator Clock generator (timing element) Message of first value with single flashing light, wordwise, A Message of first value with double flashing light, wordwise, A Collected message, wordwise (sound alert) Collected message, bitwise Message of first value with single flashing light, bitwise, A Message of first value with double flashing light, wordwise, A+M Message of first value with single flashing light, bitwise, A+M Message of first value with double flashing light, bitwise, A+M Software Timer On Delay—Retentive Change BCD number to 16 bit dual number Indirect Block Move Change 16 bit dual number to BCD number Reset Range of Outputs Multiply 16 bit dual numbers Set Range of Outputs Divide 16 bit dual numbers Add to Table Add 32 bit dual numbers First In/First Out Unload Table Subtract 32 bit dual numbers Table Find Multiply 32 bit dual numbers Last In/First Out Unload Table Divide 32 bit dual numbers Table Extract roots of 16 bit dual numbers Move Table to Word Bi-directional shift register, bitwise Word Shift Register Bi-directional shift register, wordwise Word to Table Buffer memory (FIFO) Bit Shift Register Stack register (LIFO) Seven Segment Decoder Copy data block, direct assignment of parameters ASCII to Hex Copy data block, indirect assignment of parameterization Hex to ASCII Save scratchpad memory Encode Binary Position Load scratchpad memory Decode Binary Position Change BCD number to 32 bit dual number Ten’s Complement Change 32 bit dual number to BCD number Sum Number of Bits Read analog value Reset Range of Immediate Outputs Read analog value

Page 26: Siemens S7 Libraries

Set Range of Immediate Outputs Read analog value Standard Deviation Read analog value Correlated Data Table Read analog value Table to Table Read analog value Scaling Values Read analog value Unscaling Values Read analog value Output analog value Output analog value Read and Write for extended periphery (direct assignment of parameters) Read and Write for extended periphery (indirect assignment of parameters) Sine (x)

Tangent (x) Cotangent (x) Arc sine (x) Arc cosine (x) Arc tangent (x) Arc cotangens (x) Natural logarithm ln (x) Decade logarithm Iog (x) General logarithm Iog (x) to basis b e to the power of n 10 to the power of n AKKU 2 to the power of AKKU 1 Count Up Count Down Count Up/Down Generate a Pulse Generate an On Delay Generate an Off Delay 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 Send Data to Printer Initiate a Warm or Cold Restart on a Remote Device Changing a Remote Device to the STOP State Initiate a Hot Restart on a Remote Device Query the Status of a Remote Partner Receive the Status of a Remote Device Counter (high-speed counter, integrated function) (only exist on the CPU 312 IFM and CPU 314 IFM) Frequency Meter (frequency meter, integrated function (only exist on the CPU 312 IFM and CPU 314 IFM) Generating block related messages without acknowledgement indication Implement a Sequencer Generate Block-Related Messages with Acknowledgment Display Generate Block-Related Messages without Values for 8 Signals

Cosine (x) 

Page 27: Siemens S7 Libraries

Generate Block-Related Messages with Values for 8 Signals Generate Block-Related Messages without Acknowledgment Display Send Archive Data Counter A/B (integrated function) (only exist on the CPU 314 IFM) 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 S7-300C CPUs) Positioning with Digital Output (only exist on the S7-300C CPUs) Controlling the Counter (only exist on the S7-300C CPUs) Controlling the Frequency Measurement (only exist on the S7-300C CPUs) 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 S7-300C CPUs) Receiving Data (ASCII, 3964(R)) (only exist on the S7-300C 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 Read Predefined Parameter Set System Clock Read System Clock Set Run-time Meter Start/Stop Run-time Meter Read Run-time Meter Query Logical Address of a Channel Read OB Start Information Trigger a Hardware Interrupt on the DP Master Enable Block-Related, Symbol-Related and Group Status Messages Disable Block-Related, Symbol-Related and Group Status Messages Synchronize Groups of DP Slaves Deactivation and activation of DP slaves Read Diagnostic Data of a DP Slave (Slave Diagnostics) Read Consistent Data of a Standard DP Slave Write Consistent Data to a DP Standard Slave Generate Acknowledgeable Block-Related Messages Generate Permanently Acknowledged Block-Related Messages Query the Acknowledgment Status of the last ALARM_SQ Entering State Message Copy Variables Initialize a Memory Area Create Data Block Delete Data Block Test Data Block Compress the User Memory Update the Process Image Update Table Update the Process Image Output Table Set Time-of-Day Interrupt Cancel Time-of-Day Interrupt Activate Time-of-Day Interrupt Query Time-of-Day Interrupt

Page 28: Siemens S7 Libraries

Start Time-Delay Interrupt Cancel Time-Delay Interrupt Query Time-Delay Interrupt Trigger Multicomputing Interrupt Mask Synchronous Errors Unmask Synchronous Errors Read Error Register 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 Re-trigger Cycle Time Monitoring Transfer Substitute Value to Accumulator 1 Change the CPU to STOP Delay Execution of the User Program Synchronize Slave Clocks Query the Module Slot Belonging to a Logical Address Query all Logical Addresses of a Module Read a System Status List or Partial List Write a User-Defined Diagnostic Event to the Diagnostic Buffer Read Defined Parameters Write Dynamic Parameters Write Default Parameters Assign Parameters to a Module Write a Data Record Read a Data Record Send a GD Packet Fetch a Received GD Packet Query the Status of a Connection Belonging to a Communication SFB Instance Assembly Code Block (only exists for CPU 614) Read the System Time Send Data to a Communication Partner outside the Local S7 Station Receive Data from a Communication Partner outside the Local S7 Station Read Data from a Communication Partner outside the Local S7 Station Write Data to a Communication Partner outside the Local S7 Station Abort an Existing Connection to a Communication Partner outside the Local S7 StationDetermine Start Address of a Module Determine the Slot Belonging to a Logical Address Read Data from a Communication Partner within the Local S7 Station Write Data to a Communication Partner within the Local S7 Station Abort an Existing Connection to a Communication Partner within the Local S7 StationDetermine OB program runtime 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 Create a Data Block Diagnosis of the Actual Connection Status Control Operation in H Systems Setting the Time-of-Day and the TOD Status Handling runtime meters Redefined Parameters

Page 29: Siemens S7 Libraries

Identifying the bus topology in a DP master system Controlling CiR Reading Dynamic System Resources Deleting Dynamic System Resources Generating Always Acknowledgeable and Block-Related Messages Generating Always Acknowledgeable and Block-Related Messages 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 Update process image partition output table in synchronous cycle

Page 30: Siemens S7 Libraries

supports the summertime/wintertime changeover in CPUs that do not have the time status. For this purpose it sets the CPU clock to the current time and according to the changeover rules in the Control DB.supports the summertime/wintertime changeover in CPUs that do have the time status. For this purpose it sets the time status to the current time and according to the changeover rules in the Control DB.

Page 31: Siemens S7 Libraries

reads the time status or time of the CPU and calculates the local time. It is therefore only useful on CPUs with time status.

Page 32: Siemens S7 Libraries

TI-S7 Converting Blocks FC 82 RSET BIT_LOGCTI-S7 Converting Blocks FC 83 SET BIT_LOGCTI-S7 Converting Blocks FC 100 RSETI BIT_LOGCTI-S7 Converting Blocks FC 101 SETI BIT_LOGCSystem Function Blocks SFC 79 SET BIT_LOGCSystem Function Blocks SFC 80 RSET BIT_LOGCSystem Function Blocks SFC 0 SET_CLK CLK_FUNCSystem Function Blocks SFC 1 READ_CLK CLK_FUNCSystem Function Blocks SFC 2 SET_RTM CLK_FUNCSystem Function Blocks SFC 3 CTRL_RTM CLK_FUNCSystem Function Blocks SFC 4 READ_RTM CLK_FUNCSystem Function Blocks SFC 48 SNC_RTCB CLK_FUNCSystem Function Blocks SFC 64 TIME_TCK CLK_FUNCSystem Function Blocks SFC 100 SET_CLKS CLK_FUNCSystem Function Blocks SFC 101 RTM CLK_FUNCSystem Function Blocks SFB 8 USEND COM_FUNCSystem Function Blocks SFB 9 URCV COM_FUNCSystem Function Blocks SFB 12 BSEND COM_FUNCSystem Function Blocks SFB 13 BRCV COM_FUNCSystem Function Blocks SFB 14 GET COM_FUNCSystem Function Blocks SFB 15 PUT COM_FUNCSystem Function Blocks SFB 16 PRINT COM_FUNCSystem Function Blocks SFB 19 START COM_FUNCSystem Function Blocks SFB 20 STOP COM_FUNCSystem Function Blocks SFB 21 RESUME COM_FUNCSystem Function Blocks SFB 22 STATUS COM_FUNCSystem Function Blocks SFB 23 USTATUS COM_FUNCSystem Function Blocks SFB 31 NOTIFY_8P COM_FUNCSystem Function Blocks SFB 33 ALARM COM_FUNCSystem Function Blocks SFB 34 ALARM_8 COM_FUNCSystem Function Blocks SFB 35 ALARM_8P COM_FUNCSystem Function Blocks SFB 36 NOTIFY COM_FUNCSystem Function Blocks SFB 37 AR_SEND COM_FUNCSystem Function Blocks SFC 9 EN_MSG COM_FUNCSystem Function Blocks SFC 10 DIS_MSG COM_FUNCSystem Function Blocks SFC 60 GD_SND COM_FUNCSystem Function Blocks SFC 61 GD_RCV COM_FUNCSystem Function Blocks SFC 62 CONTROL COM_FUNCSystem Function Blocks SFC 65 X_SEND COM_FUNCSystem Function Blocks SFC 66 X_RCV COM_FUNCSystem Function Blocks SFC 67 X_GET COM_FUNCSystem Function Blocks SFC 68 X_PUT COM_FUNCSystem Function Blocks SFC 69 X_ABORT COM_FUNCSystem Function Blocks SFC 72 I_GET COM_FUNCSystem Function Blocks SFC 73 I_PUT COM_FUNCSystem Function Blocks SFC 74 I_ABORT COM_FUNCSystem Function Blocks SFC 87 C_DIAG COM_FUNCCommunication Blocks FB 63 TSEND COMMCommunication Blocks FB 64 TRCV COMMCommunication Blocks FB 65 TCON COMMCommunication Blocks FB 66 TDISCON COMMCommunication Blocks FB 67 TUSEND COMMCommunication Blocks FB 68 TURCV COMMTI-S7 Converting Blocks FB 83 IMC COMPARE

Page 33: Siemens S7 Libraries

TI-S7 Converting Blocks FB 84 SMC COMPAREPID Control Blocks FB 58 TCONT_CP CONTROLPID Control Blocks FB 59 TCONT_S CONTROLTI-S7 Converting Blocks FB 80 LEAD_LAG CONVERTTI-S7 Converting Blocks FC 93 SEG CONVERTTI-S7 Converting Blocks FC 94 ATH CONVERTTI-S7 Converting Blocks FC 95 HTA CONVERTTI-S7 Converting Blocks FC 96 ENCO CONVERTTI-S7 Converting Blocks FC 97 DECO CONVERTTI-S7 Converting Blocks FC 98 BCDCPL CONVERTTI-S7 Converting Blocks FC 99 BITSUM CONVERTTI-S7 Converting Blocks FC 105 SCALE CONVERTTI-S7 Converting Blocks FC 106 UNSCALE CONVERTSystem Function Blocks SFB 29 HS_COUNT COUNTERSSystem Function Blocks SFB 30 FREQ_MES COUNTERSSystem Function Blocks SFB 38 HSC_A_B COUNTERSSIMATIC_NET_CP FB 2 IDENTIFY CP_300

SIMATIC_NET_CPFB 3 READ CP_300

SIMATIC_NET_CP FB 4 REPORT CP_300SIMATIC_NET_CP FB 5 STATUS CP_300SIMATIC_NET_CP FB 6 WRITE CP_300Communication Blocks FB 8 USEND CP_300Communication Blocks FB 9 URCV CP_300Communication Blocks FB 12 BSEND CP_300Communication Blocks FB 13 BRCV CP_300Communication Blocks FB 14 GET CP_300Communication Blocks FB 15 PUT CP_300

FB 55 IP_CONFIG CP_300Communication Blocks FC 1 DP_SEND CP_300Communication Blocks FC 2 DP_RECV CP_300Communication Blocks FC 3 DP_DIAG CP_300Communication Blocks FC 4 DP_CTRL CP_300SIMATIC_NET_CP FC 5 AG_SEND CP_300SIMATIC_NET_CP FC 6 AG_RECV CP_300SIMATIC_NET_CP FC 7 AG_LOCK CP_300SIMATIC_NET_CP FC 8 AG_UNLOCK CP_300

SIMATIC_NET_CPFC 10 AG_CNTRL CP_300

SIMATIC_NET_CP FC 11 PNIO_SEND CP_300SIMATIC_NET_CP FC 12 PNIO_RECV CP_300SIMATIC_NET_CP FC 40 FTP_CONNECCP_300SIMATIC_NET_CP FC 41 FTP_STORE CP_300SIMATIC_NET_CP FC 42 FTP_RETRIEVCP_300SIMATIC_NET_CP FC 43 FTP_DELETE CP_300SIMATIC_NET_CP FC 44 FTP_QUIT CP_300SIMATIC_NET_CP FC 50 AG_LSEND CP_300SIMATIC_NET_CP FC 60 AG_LRECV CP_300Communication Blocks FC 62 C_CNTRL CP_300System Function Blocks SFC 82 CREA_DBL DB_CTRLSystem Function Blocks SFC 83 READ_DBL DB_CTRLSystem Function Blocks SFC 84 WRIT_DBL DB_CTRLSystem Function Blocks SFC 6 RD_SINFO DB_FUNCTSystem Function Blocks SFC 22 CREAT_DB DB_FUNCT

Page 34: Siemens S7 Libraries

System Function Blocks SFC 23 DEL_DB DB_FUNCTSystem Function Blocks SFC 24 TEST_DB DB_FUNCTSystem Function Blocks SFC 25 COMPRESS DB_FUNCTSystem Function Blocks SFC 85 CREA_DB DB_FUNCTSystem Function Blocks SFC 13 DPNRM_DG DIAGNSTCSystem Function Blocks SFC 36 MSK_FLT DIAGNSTCSystem Function Blocks SFC 37 DMSK_FLT DIAGNSTCSystem Function Blocks SFC 38 READ_ERR DIAGNSTCSystem Function Blocks SFC 44 REPL_VAL DIAGNSTCSystem Function Blocks SFC 51 RDSYSST DIAGNSTCSystem Function Blocks SFC 52 WR_USMSG DIAGNSTCSystem Function Blocks SFC 78 OB_RT DIAGNSTCSystem Function Blocks SFB 52 RDREC DPSystem Function Blocks SFB 53 WRREC DPSystem Function Blocks SFB 54 RALRM DPSystem Function Blocks SFB 75 SALRM DPSystem Function Blocks SFC 7 DP_PRAL DPSystem Function Blocks SFC 11 DPSYC_FR DPSystem Function Blocks SFC 12 D_ACT_DP DPSystem Function Blocks SFC 14 DPRD_DAT DPSystem Function Blocks SFC 15 DPWR_DAT DPSystem Function Blocks SFC 103 DP_TOPOL DPSystem Function Blocks SFC 90 H_CTRL HF_FUNCTPID Control Blocks FB 41 CONT_C ICONTPID Control Blocks FB 42 CONT_S ICONTPID Control Blocks FB 43 PULSEGEN ICONTSystem Function Blocks SFB 39 POS ICONTSystem Function Blocks SFB 41 CONT_C ICONTSystem Function Blocks SFB 42 CONT_S ICONTSystem Function Blocks SFB 43 PULSEGEN ICONTIEC Function Blocks FC 1 AD_DT_TM IECIEC Function Blocks FC 2 CONCAT IECIEC Function Blocks FC 3 D_TOD_DT IECIEC Function Blocks FC 4 DELETE IECIEC Function Blocks FC 5 DI_STRNG IECIEC Function Blocks FC 6 DT_DATE IECIEC Function Blocks FC 7 DT_DAY IECIEC Function Blocks FC 8 DT_TOD IECIEC Function Blocks FC 9 EQ_DT IECIEC Function Blocks FC 10 EQ_STRNG IECIEC Function Blocks FC 11 FIND IECIEC Function Blocks FC 12 GE_DT IECIEC Function Blocks FC 13 GE_STRNG IECIEC Function Blocks FC 14 GT_DT IECIEC Function Blocks FC 15 GT_STRNG IECIEC Function Blocks FC 16 I_STRNG IECIEC Function Blocks FC 17 INSERT IECIEC Function Blocks FC 18 LE_DT IECIEC Function Blocks FC 19 LE_STRNG IECIEC Function Blocks FC 20 LEFT IECIEC Function Blocks FC 21 LEN IECIEC Function Blocks FC 22 LIMIT IECIEC Function Blocks FC 23 LT_DT IECIEC Function Blocks FC 24 LT_STRNG IEC

Page 35: Siemens S7 Libraries

IEC Function Blocks FC 25 MAX IECIEC Function Blocks FC 26 MID IECIEC Function Blocks FC 27 MIN IECIEC Function Blocks FC 28 NE_DT IECIEC Function Blocks FC 29 NE_STRNG IECIEC Function Blocks FC 30 R_STRNG IECIEC Function Blocks FC 31 REPLACE IECIEC Function Blocks FC 32 RIGHT IECIEC Function Blocks FC 33 S5TI_TIM IECIEC Function Blocks FC 34 SB_DT_DT IECIEC Function Blocks FC 35 SB_DT_TM IECIEC Function Blocks FC 36 SEL IECIEC Function Blocks FC 37 STRNG_DI IECIEC Function Blocks FC 38 STRNG_I IECIEC Function Blocks FC 39 STRNG_R IECIEC Function Blocks FC 40 TIM_S5TI IECSystem Function Blocks SFB 0 CTU IEC_TCSystem Function Blocks SFB 1 CTD IEC_TCSystem Function Blocks SFB 2 CTUD IEC_TCSystem Function Blocks SFB 3 TP IEC_TCSystem Function Blocks SFB 4 TON IEC_TCSystem Function Blocks SFB 5 TOF IEC_TCCommunication Blocks FB 20 GETIO IO_FUNCTCommunication Blocks FB 21 SETIO IO_FUNCTCommunication Blocks FB 22 GETIO_PART IO_FUNCTCommunication Blocks FB 23 SETIO_PART IO_FUNCTSystem Function Blocks SFB 81 RD_DPAR IO_FUNCTSystem Function Blocks SFC 5 GADR_LGC IO_FUNCTSystem Function Blocks SFC 26 UPDAT_PI IO_FUNCTSystem Function Blocks SFC 27 UPDAT_PO IO_FUNCTSystem Function Blocks SFC 49 LGC_GADR IO_FUNCTSystem Function Blocks SFC 50 RD_LGADR IO_FUNCTSystem Function Blocks SFC 54 RD_PARM IO_FUNCTSystem Function Blocks SFC 55 WR_PARM IO_FUNCTSystem Function Blocks SFC 56 WR_DPARM IO_FUNCTSystem Function Blocks SFC 57 PARM_MOD IO_FUNCTSystem Function Blocks SFC 58 WR_REC IO_FUNCTSystem Function Blocks SFC 59 RD_REC IO_FUNCTSystem Function Blocks SFC 70 GEO_LOG IO_FUNCTSystem Function Blocks SFC 71 LOG_GEO IO_FUNCTSystem Function Blocks SFC 102 RD_DPARA IO_FUNCTSystem Function Blocks SFC 126 SYNC_PI IO_FUNCTSystem Function Blocks SFC 127 SYNC_PO IO_FUNCTSystem Function Blocks SFC 39 DIS_IRT IRT_FUNCSystem Function Blocks SFC 40 EN_IRT IRT_FUNCSystem Function Blocks SFC 41 DIS_AIRT IRT_FUNCSystem Function Blocks SFC 42 EN_AIRT IRT_FUNCTI-S7 Converting Blocks FC 102 DEV MATH_FPTI-S7 Converting Blocks FB 86 PACK MOVETI-S7 Converting Blocks FC 81 IBLKMOV MOVESystem Function Blocks SFC 20 BLKMOV MOVESystem Function Blocks SFC 21 FILL MOVESystem Function Blocks SFC 81 UBLKMOV MOVESystem Function Blocks SFC 28 SET_TINT PGM_CNTL

Page 36: Siemens S7 Libraries

System Function Blocks SFC 29 CAN_TINT PGM_CNTLSystem Function Blocks SFC 30 ACT_TINT PGM_CNTLSystem Function Blocks SFC 31 QRY_TINT PGM_CNTLSystem Function Blocks SFC 32 SRT_DINT PGM_CNTLSystem Function Blocks SFC 33 CAN_DINT PGM_CNTLSystem Function Blocks SFC 34 QRY_DINT PGM_CNTLSystem Function Blocks SFC 35 MP_ALM PGM_CNTLSystem Function Blocks SFC 43 RE_TRIGR PGM_CNTLSystem Function Blocks SFC 46 STP PGM_CNTLSystem Function Blocks SFC 47 WAIT PGM_CNTLSystem Function Blocks SFC 104 CIR PGM_CNTLSystem Function Blocks SFC 63 AB_CALL PLASTICSSystem Function Blocks SFC 17 ALARM_SQ PMC_FUNCSystem Function Blocks SFC 18 ALARM_S PMC_FUNCSystem Function Blocks SFC 19 ALARM_SC PMC_FUNCSystem Function Blocks SFC 105 READ_SI PMC_FUNCSystem Function Blocks SFC 106 DEL_SI PMC_FUNCSystem Function Blocks SFC 107 ALARM_DQ PMC_FUNCSystem Function Blocks SFC 108 ALARM_D PMC_FUNCSystem Function Blocks SFC 112 PN_IN PROFIne2System Function Blocks SFC 113 PN_OUT PROFIne2System Function Blocks SFC 114 PN_DP PROFIne2S5-S7 Converting Blocks FC 61 GP_FPGP S5_CNVRTS5-S7 Converting Blocks FC 62 GP_GPFP S5_CNVRTS5-S7 Converting Blocks FC 63 GP_ADD S5_CNVRTS5-S7 Converting Blocks FC 64 GP_SUB S5_CNVRTS5-S7 Converting Blocks FC 65 GP_MUL S5_CNVRTS5-S7 Converting Blocks FC 66 GP_DIV S5_CNVRTS5-S7 Converting Blocks FC 67 GP_VGL S5_CNVRTS5-S7 Converting Blocks FC 68 RAD_GP S5_CNVRTS5-S7 Converting Blocks FC 69 MLD_TG S5_CNVRTS5-S7 Converting Blocks FC 70 MLD_TGZ S5_CNVRTS5-S7 Converting Blocks FC 71 MLD_EZW S5_CNVRTS5-S7 Converting Blocks FC 72 MLD_EDW S5_CNVRTS5-S7 Converting Blocks FC 73 MLD_SAMW S5_CNVRTS5-S7 Converting Blocks FC 74 MLD_SAM S5_CNVRTS5-S7 Converting Blocks FC 75 S5_CNVRTS5-S7 Converting Blocks FC 78 MLD_EDWK S5_CNVRTS5-S7 Converting Blocks FC 79 MLD_EZK S5_CNVRTS5-S7 Converting Blocks FC 80 MLD_EDK S5_CNVRTS5-S7 Converting Blocks FC 81 COD_B4 S5_CNVRTS5-S7 Converting Blocks FC 82 COD_16 S5_CNVRTS5-S7 Converting Blocks FC 83 MUL_16 S5_CNVRTS5-S7 Converting Blocks FC 84 DIV_16 S5_CNVRTS5-S7 Converting Blocks FC 85 ADD_32 S5_CNVRTS5-S7 Converting Blocks FC 86 SUB_32 S5_CNVRTS5-S7 Converting Blocks FC 87 S5_CNVRTS5-S7 Converting Blocks FC 88 DIV_32 S5_CNVRTS5-S7 Converting Blocks FC 89 RAD_16 S5_CNVRTS5-S7 Converting Blocks FC 90 REG_SCHB S5_CNVRTS5-S7 Converting Blocks FC 91 S5_CNVRTS5-S7 Converting Blocks FC 92 REG_FIFO S5_CNVRTS5-S7 Converting Blocks FC 93 REG_LIFO S5_CNVRTS5-S7 Converting Blocks FC 94 DB_COPY1 S5_CNVRT

MLD_EZ 

MUL_32 

REG_SCHW 

Page 37: Siemens S7 Libraries

S5-S7 Converting Blocks FC 95 S5_CNVRTS5-S7 Converting Blocks FC 96 RETTEN S5_CNVRTS5-S7 Converting Blocks FC 97 LADEN S5_CNVRTS5-S7 Converting Blocks FC 98 COD_B8 S5_CNVRTS5-S7 Converting Blocks FC 99 COD_32 S5_CNVRTS5-S7 Converting Blocks FC 100 AE_460_1 S5_CNVRTS5-S7 Converting Blocks FC 101 AE_460_2 S5_CNVRTS5-S7 Converting Blocks FC 102 S5_CNVRTS5-S7 Converting Blocks FC 103 AE_463_2 S5_CNVRTS5-S7 Converting Blocks FC 104 AE_464_1 S5_CNVRTS5-S7 Converting Blocks FC 105 AE_464_2 S5_CNVRTS5-S7 Converting Blocks FC 106 AE_466_1 S5_CNVRTS5-S7 Converting Blocks FC 107 AE_466_2 S5_CNVRTS5-S7 Converting Blocks FC 108 RLG_AA1 S5_CNVRTS5-S7 Converting Blocks FC 109 RLG_AA2 S5_CNVRTS5-S7 Converting Blocks FC 110 PER_ET1 S5_CNVRTS5-S7 Converting Blocks FC 111 PER_ET2 S5_CNVRTS5-S7 Converting Blocks FC 112 SINUS S5_CNVRTS5-S7 Converting Blocks FC 113 COSINUS S5_CNVRTS5-S7 Converting Blocks FC 114 TANGENS S5_CNVRTS5-S7 Converting Blocks FC 115 COTANG S5_CNVRTS5-S7 Converting Blocks FC 116 ARCSIN S5_CNVRTS5-S7 Converting Blocks FC 117 ARCCOS S5_CNVRTS5-S7 Converting Blocks FC 118 ARCTAN S5_CNVRTS5-S7 Converting Blocks FC 119 ARCCOT S5_CNVRTS5-S7 Converting Blocks FC 120 LN_X S5_CNVRTS5-S7 Converting Blocks FC 121 LG_X S5_CNVRTS5-S7 Converting Blocks FC 122 B_LOG_X S5_CNVRTS5-S7 Converting Blocks FC 123 E_H_N S5_CNVRTS5-S7 Converting Blocks FC 124 ZEHN_H_N S5_CNVRTS5-S7 Converting Blocks FC 125 A2_H_A1 S5_CNVRTTI-S7 Converting Blocks FC 90 WSR SHIFTTI-S7 Converting Blocks FC 92 SHRB SHIFTTI-S7 Converting Blocks FC 84 ATT TABLETI-S7 Converting Blocks FC 85 FIFO TABLETI-S7 Converting Blocks FC 86 TBL_FIND TABLETI-S7 Converting Blocks FC 87 LIFO TABLETI-S7 Converting Blocks FC 88 TBL TABLETI-S7 Converting Blocks FC 89 TBL_WRD TABLETI-S7 Converting Blocks FC 91 WRD_TBL TABLETI-S7 Converting Blocks FC 103 CDT TABLETI-S7 Converting Blocks FC 104 TBL_TBL TABLESystem Function Blocks SFB 44 ANALOG TEC_FUNCSystem Function Blocks SFB 46 DIGITAL TEC_FUNCSystem Function Blocks SFB 47 COUNT TEC_FUNCSystem Function Blocks SFB 48 FREQUENC TEC_FUNCSystem Function Blocks SFB 49 PULSE TEC_FUNCSystem Function Blocks SFB 60 SEND_PTP TEC_FUNCSystem Function Blocks SFB 61 RECV_PTP TEC_FUNCSystem Function Blocks SFB 62 RES_RECV TEC_FUNCSystem Function Blocks SFB 63 SEND_RK TEC_FUNCSystem Function Blocks SFB 64 FETCH_RK TEC_FUNCSystem Function Blocks SFB 65 SERVE_RK TEC_FUNCMiscellaneous Blocks FB 60 SET_SW TIMEFUNC

DB_COPY2 

AE_463_1 

Page 38: Siemens S7 Libraries

Miscellaneous Blocks FB 61 SET_SW_S TIMEFUNCMiscellaneous Blocks FB 62 TIMESTMP TIMEFUNCMiscellaneous Blocks FC 60 LOC_TIME TIMEFUNCMiscellaneous Blocks FC 61 BT_LT TIMEFUNCMiscellaneous Blocks FC 62 LT_BT TIMEFUNCMiscellaneous Blocks FC 63 S_LTINT TIMEFUNCTI-S7 Converting Blocks FB 81 DCAT TIMERSTI-S7 Converting Blocks FB 82 MCAT TIMERSTI-S7 Converting Blocks FB 85 DRUM TIMERSTI-S7 Converting Blocks FC 80 TONR TIMERSSystem Function Blocks SFB 32 DRUM TIMERS

Page 39: Siemens S7 Libraries

Reset Range of Outputs Set Range of Outputs Reset Range of Immediate Outputs Set Range of Immediate Outputs Set a Range of Outputs Reset a Range of Outputs Set System Clock Read System Clock Set Run-time Meter Start/Stop Run-time Meter Read Run-time Meter Synchronize Slave Clocks Read the System Time Setting the Time-of-Day and the TOD Status Handling runtime meters 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 Send Data to Printer Initiate a Warm or Cold Restart on a Remote Device Changing a Remote Device to the STOP State Initiate a Hot Restart on a Remote Device Query the Status of a Remote Partner Receive the Status of a Remote Device Generating block related messages without acknowledgement indication Generate Block-Related Messages with Acknowledgment Display Generate Block-Related Messages without Values for 8 Signals Generate Block-Related Messages with Values for 8 Signals Generate Block-Related Messages without Acknowledgment Display Send Archive Data Enable Block-Related, Symbol-Related and Group Status Messages Disable Block-Related, Symbol-Related and Group Status Messages Send a GD Packet Fetch a Received GD Packet Query the Status of a Connection Belonging to a Communication SFB Instance Send Data to a Communication Partner outside the Local S7 Station Receive Data from a Communication Partner outside the Local S7 Station Read Data from a Communication Partner outside the Local S7 Station Write Data to a Communication Partner outside the Local S7 Station Abort an Existing Connection to a Communication Partner outside the Local S7 StationRead Data from a Communication Partner within the Local S7 Station Write Data to a Communication Partner within the Local S7 Station Abort an Existing Connection to a Communication Partner within the Local S7 StationDiagnosis of the Actual Connection Status

Sending Data via TCP native and ISO on TCPReceiving Data via TCP native and ISO on TCPEstablishing a Connection using TCP native and ISO on TCPTerminating a Connection using TCP native and ISO on TCPSending Data via UDPReceiving Data via UDPIndex Matrix Compare

Page 40: Siemens S7 Libraries

Scan Matrix Compare Temperature Continuous ControllerTemperature Step ControllerLead/Lag Algorithm Seven Segment Decoder ASCII to Hex Hex to ASCII Encode Binary Position Decode Binary Position Ten’s Complement Sum Number of Bits Scaling Values Unscaling Values Counter (high-speed counter, integrated function) (only exist on the CPU 312 IFM and CPU 314 IFM) Frequency Meter (frequency meter, integrated function (only exist on the CPU 312 IFM and CPU 314 IFM) Counter A/B (integrated function) (only exist on the CPU 314 IFM)

For checking device properties

Allows unconfirmed transmission of variables by an FMS server. 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 Transfers a configuration data block (CONF_DB) containing connection data for an Ethernet CP.transfers data to the PROFIBUS CPreceives data on PROFIBUSused to request diagnostic informationtransfers control jobs to the PROFIBUS CPdata by means of a configured connection to the communication partner (<= 240 bytes). data by means of a configured connection from the communication partner (<= 240 bytes, not email). the external data access by means of FETCH/WRITE (not for UDP, email). the external data access by means of FETCH/WRITE (not for UDP, email). allows you to diagnose connections. When necessary, you can reinitialize connection establishment using the FC.

used for data transfer in the CP modes PROFINET IO controller or PROFINET IO device.used to receive data in the CP modes PROFINET IO controller or PROFINET IO device.Establish an FTP connectionStore a file on the FTP serverRetrieve a file from the FTP serverDelete a file on the FTP serverEnable an FTP connectiondata by means of a configured connection to the communication partner. data by means of a configured connection from the communication partner (not email). Query a connection status for S7-300Create a Data Block in the Load Memory Read from a Data Block in Load Memory Write from a Data Block in Load Memory Read OB Start Information Create Data Block

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.

Page 41: Siemens S7 Libraries

Delete Data Block Test Data Block Compress the User Memory Create a Data Block Read Diagnostic Data of a DP Slave (Slave Diagnostics) Mask Synchronous Errors Unmask Synchronous Errors Read Error Register Transfer Substitute Value to Accumulator 1 Read a System Status List or Partial List Write a User-Defined Diagnostic Event to the Diagnostic Buffer Determine OB program runtime Reading a Data Record Writing a Data Record Receiving an Interrupt Send interrupt to DP master Trigger a Hardware Interrupt on the DP Master Synchronize Groups of DP Slaves Deactivation and activation of DP slaves Read Consistent Data of a Standard DP Slave Write Consistent Data to a DP Standard Slave Identifying the bus topology in a DP master system Control Operation in H Systems Continuous ControlStep ControlPulse GenerationPosition (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) 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 equal 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

Page 42: Siemens S7 Libraries

Point Math Select maximum Middle part of a STRING variable 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 Count Up Count Down Count Up/Down Generate a Pulse Generate an On Delay Generate an Off Delay

Read All Inputs of a DP Standard Slave/PROFINET IO DeviceWrite All Outputs of a DP Standard Slave/PROFINET IO DeviceRead a Part of the Inputs of a DP Standard Slave/PROFINET IO DeviceWrite a Part of the Outputs of a DP Standard Slave/PROFINET IO DeviceRead Predefined Parameter Query Logical Address of a Channel Update the Process Image Update Table Update the Process Image Output Table Query the Module Slot Belonging to a Logical Address Query all Logical Addresses of a Module Read Defined Parameters Write Dynamic Parameters Write Default Parameters Assign Parameters to a Module Write a Data Record Read a Data Record Determine Start Address of a Module Determine the Slot Belonging to a Logical Address Redefined Parameters Update process image partition input table in synchronous cycle Update process image partition output table in synchronous cycle 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 Standard Deviation Pack Data Indirect Block Move Copy Variables Initialize a Memory Area Uninterruptible Block Move Set Time-of-Day Interrupt

Page 43: Siemens S7 Libraries

Cancel Time-of-Day Interrupt Activate Time-of-Day Interrupt Query Time-of-Day Interrupt Start Time-Delay Interrupt Cancel Time-Delay Interrupt Query Time-Delay Interrupt Trigger Multicomputing Interrupt Re-trigger Cycle Time Monitoring Change the CPU to STOP Delay Execution of the User Program Controlling CiR Assembly Code Block (only exists for CPU 614) Generate Acknowledgeable Block-Related Messages Generate Permanently Acknowledged Block-Related Messages Query the Acknowledgment Status of the last ALARM_SQ Entering State Message Reading Dynamic System Resources Deleting Dynamic System Resources Generating Always Acknowledgeable and Block-Related Messages Generating Always Acknowledgeable and Block-Related Messages Update inputs in the user program interface of PROFInet components Update outputs in the user program interface of PROFInet components Update DP interconnections Change fixed point number to floating point number Change floating point number to fixed point number Add floating point numbers Subtract floating point numbers Multiply floating point number Divide floating point numbers Compare floating point numbers Extract root of floating point numbers Clock generator Clock generator (timing element) Message of first value with single flashing light, wordwise, A Message of first value with double flashing light, wordwise, A Collected message, wordwise (sound alert) Collected message, bitwise Message of first value with single flashing light, bitwise, A Message of first value with double flashing light, wordwise, A+M Message of first value with single flashing light, bitwise, A+M Message of first value with double flashing light, bitwise, A+M Change BCD number to 16 bit dual number Change 16 bit dual number to BCD number Multiply 16 bit dual numbers Divide 16 bit dual numbers Add 32 bit dual numbers Subtract 32 bit dual numbers Multiply 32 bit dual numbers Divide 32 bit dual numbers Extract roots of 16 bit dual numbers Bi-directional shift register, bitwise Bi-directional shift register, wordwise Buffer memory (FIFO) Stack register (LIFO) Copy data block, direct assignment of parameters

Page 44: Siemens S7 Libraries

Copy data block, indirect assignment of parameterization Save scratchpad memory Load scratchpad memory Change BCD number to 32 bit dual number Change 32 bit dual number to BCD number Read analog value Read analog value Read analog value Read analog value Read analog value Read analog value Read analog value Read analog value Output analog value Output analog value Read and Write for extended periphery (direct assignment of parameters) Read and Write for extended periphery (indirect assignment of parameters) Sine (x)

Tangent (x) Cotangent (x) Arc sine (x) Arc cosine (x) Arc tangent (x) Arc cotangens (x) Natural logarithm ln (x) Decade logarithm Iog (x) General logarithm Iog (x) to basis b e to the power of n 10 to the power of n AKKU 2 to the power of AKKU 1 Word Shift Register Bit Shift Register Add to Table First In/First Out Unload Table Table Find Last In/First Out Unload Table Table Move Table to Word Word to Table Correlated Data Table Table to Table Positioning with Analog Output (only exist on the S7-300C CPUs) Positioning with Digital Output (only exist on the S7-300C CPUs) Controlling the Counter (only exist on the S7-300C CPUs) Controlling the Frequency Measurement (only exist on the S7-300C CPUs) Controlling Pulse Width Modulation (only exist on the S7-300C CPUs) Sending Data (ASCII, 3964(R)) (only exist on the S7-300C CPUs) Receiving Data (ASCII, 3964(R)) (only exist on the S7-300C 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) supports the summertime/wintertime changeover in CPUs that do not have the time status. For this purpose it sets the CPU clock to the current time and according to the changeover rules in the Control DB.

Cosine (x) 

Page 45: Siemens S7 Libraries

supports the summertime/wintertime changeover in CPUs that do have the time status. For this purpose it sets the time status to the current time and according to the changeover rules in the Control DB.transfers the time-stamped messages of an IM153-2 into its instance DB.reads the time status or time of the CPU and calculates the local time. It is therefore only useful on CPUs with time status.calculates the local time from the base time given at the input.calculates the base time from the local time given at the input.sets the required time interrupt to the preset time. This time is given in local time.Discrete Control Alarm Timer Motor Control Alarm Timer Event Maskable Drum Software Timer On Delay—Retentive Implement a Sequencer

Page 46: Siemens S7 Libraries

supports the summertime/wintertime changeover in CPUs that do not have the time status. For this purpose it sets the CPU clock to the current time and according to the changeover rules in the Control DB.

Page 47: Siemens S7 Libraries

supports the summertime/wintertime changeover in CPUs that do have the time status. For this purpose it sets the time status to the current time and according to the changeover rules in the Control DB.

reads the time status or time of the CPU and calculates the local time. It is therefore only useful on CPUs with time status.

Page 48: Siemens S7 Libraries

Siemens S7 System Function Blocks

SFB 0 CTU IEC_TC Count Up SFB 1 CTD IEC_TC Count Down SFB 2 CTUD IEC_TC Count Up/Down SFB 3 TP IEC_TC Generate a Pulse SFB 4 TON IEC_TC Generate an On Delay SFB 5 TOF IEC_TC Generate an Off Delay SFB 8 USEND COM_FUNC Uncoordinated Sending of Data SFB 9 URCV COM_FUNC Uncoordinated Receiving of Data SFB 12 BSEND COM_FUNC Sending Segmented Data SFB 13 BRCV COM_FUNC Receiving Segmented Data SFB 14 GET COM_FUNC Read Data from a Remote CPU SFB 15 PUT COM_FUNC Write Data to a Remote CPU SFB 16 PRINT COM_FUNC Send Data to Printer SFB 19 START COM_FUNC Initiate a Warm or Cold Restart on a Remote Device SFB 20 STOP COM_FUNC Changing a Remote Device to the STOP State SFB 21 RESUME COM_FUNC Initiate a Hot Restart on a Remote Device SFB 22 STATUS COM_FUNC Query the Status of a Remote Partner SFB 23 USTATUS COM_FUNC Receive the Status of a Remote Device SFB 29 HS_COUNT COUNTERS

SFB 30 FREQ_MES COUNTERS

SFB 31 NOTIFY_8P COM_FUNC

SFB 32 DRUM TIMERS Implement a Sequencer SFB 33 ALARM COM_FUNC Generate Block-Related Messages with Acknowledgment Display SFB 34 ALARM_8 COM_FUNC Generate Block-Related Messages without Values for 8 Signals SFB 35 ALARM_8P COM_FUNC Generate Block-Related Messages with Values for 8 Signals SFB 36 NOTIFY COM_FUNC

SFB 37 AR_SEND COM_FUNC Send Archive Data SFB 38 HSC_A_B COUNTERS Counter A/B (integrated function) (only exist on the CPU 314 IFM) SFB 39 POS ICONT Position (integrated function) (only exist on the CPU 314 IFM) SFB 41 CONT_C ICONT Continuous Control (only exist on the CPU 314 IFM) SFB 42 CONT_S ICONT Step Control (only exist on the CPU 314 IFM) SFB 43 PULSEGEN ICONT Pulse Generation (only exist on the CPU 314 IFM) SFB 44 ANALOG TEC_FUNC Positioning with Analog Output (only exist on the S7-300C CPUs) SFB 46 DIGITAL TEC_FUNC Positioning with Digital Output (only exist on the S7-300C CPUs) SFB 47 COUNT TEC_FUNC Controlling the Counter (only exist on the S7-300C CPUs) SFB 48 FREQUENC TEC_FUNC

SFB 49 PULSE TEC_FUNC

SFB 52 RDREC DP Reading a Data Record SFB 53 WRREC DP Writing a Data Record SFB 54 RALRM DP Receiving an Interrupt SFB 60 SEND_PTP TEC_FUNC Sending Data (ASCII, 3964(R)) (only exist on the S7-300C CPUs) SFB 61 RECV_PTP TEC_FUNCSFB 62 RES_RECV TEC_FUNC

Counter (high-speed counter, integrated function) (only exist on the CPU 312 IFM and CPU 314 IFM)

Frequency Meter (frequency meter, integrated function (only exist on the CPU 312 IFM and CPU 314 IFM)

Generating block related messages without acknowledgement indication

Generate Block-Related Messages without Acknowledgment Display

Controlling the Frequency Measurement (only exist on the S7-300C CPUs)

Controlling Pulse Width Modulation (only exist on the S7-300C CPUs)

Receiving Data (ASCII, 3964(R)) (only exist on the S7-300C CPUs) Deleting the Receive Buffer (ASCII, 3964(R)) (only exist on the S7-300C CPUs)

Page 49: Siemens S7 Libraries

Siemens S7 System Function Blocks

SFB 63 SEND_RK TEC_FUNC Sending Data (RK 512) (only exist on the S7-300C CPUs) SFB 64 FETCH_RK TEC_FUNC Fetching Data (RK 512) (only exist on the S7-300C CPUs) SFB 65 SERVE_RK TEC_FUNC

SFB 75 SALRM DP Send interrupt to DP master SFB 81 RD_DPAR IO_FUNCT Read Predefined Parameter

Receiving and Providing Data (RK 512) (only exist on the S7-300C CPUs)

Page 50: Siemens S7 Libraries

Siemens S7 System Function Calls

- 50 -

SFC 0 SET_CLK CLK_FUNC Set System Clock SFC 1 READ_CLK CLK_FUNC Read System Clock SFC 2 SET_RTM CLK_FUNC Set Run-time Meter SFC 3 CTRL_RTM CLK_FUNC Start/Stop Run-time Meter SFC 4 READ_RTM CLK_FUNC Read Run-time Meter SFC 5 GADR_LGC IO_FUNCT Query Logical Address of a Channel SFC 6 RD_SINFO DB_FUNCT Read OB Start Information SFC 7 DP_PRAL DP Trigger a Hardware Interrupt on the DP Master SFC 9 EN_MSG COM_FUNC

SFC 10 DIS_MSG COM_FUNC

SFC 11 DPSYC_FR DP Synchronize Groups of DP Slaves SFC 12 D_ACT_DP DP Deactivation and activation of DP slaves SFC 13 DPNRM_DG DIAGNSTC Read Diagnostic Data of a DP Slave (Slave Diagnostics) SFC 14 DPRD_DAT DP Read Consistent Data of a Standard DP Slave SFC 15 DPWR_DAT DP 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 Block-Related Messages SFC 19 ALARM_SC PMC_FUNC

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 DB_FUNCT Delete Data Block SFC 24 TEST_DB 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 SFC 27 UPDAT_PO IO_FUNCT Update the Process Image Output Table SFC 28 SET_TINT PGM_CNTL Set Time-of-Day Interrupt SFC 29 CAN_TINT PGM_CNTL Cancel Time-of-Day Interrupt SFC 30 ACT_TINT PGM_CNTL Activate Time-of-Day Interrupt SFC 31 QRY_TINT PGM_CNTL Query Time-of-Day Interrupt SFC 32 SRT_DINT PGM_CNTL Start Time-Delay Interrupt SFC 33 CAN_DINT PGM_CNTL Cancel Time-Delay Interrupt SFC 34 QRY_DINT PGM_CNTL Query Time-Delay Interrupt SFC 35 MP_ALM PGM_CNTL Trigger Multicomputing Interrupt SFC 36 MSK_FLT 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 SFC 40 EN_IRT IRT_FUNC Enable New Interrupts and Asynchronous Errors SFC 41 DIS_AIRT IRT_FUNC Delay Higher Priority Interrupts and Asynchronous Errors SFC 42 EN_AIRT IRT_FUNC Enable Higher Priority Interrupts and Asynchronous Errors SFC 43 RE_TRIGR PGM_CNTL Re-trigger Cycle Time Monitoring SFC 44 REPL_VAL DIAGNSTC Transfer Substitute Value to Accumulator 1 SFC 46 STP PGM_CNTL Change the CPU to STOP SFC 47 WAIT PGM_CNTL Delay Execution of the User Program SFC 48 SNC_RTCB CLK_FUNC Synchronize Slave Clocks SFC 49 LGC_GADR IO_FUNCT Query the Module Slot Belonging to a Logical Address

Enable Block-Related, Symbol-Related and Group Status Messages

Disable Block-Related, Symbol-Related and Group Status Messages

Query the Acknowledgment Status of the last ALARM_SQ Entering State Message

Page 51: Siemens S7 Libraries

Siemens S7 System Function Calls

- 51 -

SFC 50 RD_LGADR IO_FUNCT Query all Logical Addresses of a Module 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 IO_FUNCT Read Defined Parameters SFC 55 WR_PARM IO_FUNCT Write Dynamic Parameters SFC 56 WR_DPARM IO_FUNCT Write Default Parameters SFC 57 PARM_MOD IO_FUNCT Assign Parameters to a Module SFC 58 WR_REC IO_FUNCT Write a Data Record SFC 59 RD_REC IO_FUNCT Read a Data Record SFC 60 GD_SND COM_FUNC Send a GD Packet SFC 61 GD_RCV COM_FUNC Fetch a Received GD Packet SFC 62 CONTROL COM_FUNC

SFC 63 AB_CALL PLASTICS Assembly Code Block (only exists for CPU 614) SFC 64 TIME_TCK CLK_FUNC Read the System Time SFC 65 X_SEND COM_FUNC Send Data to a Communication Partner outside the Local S7 Station

SFC 66 X_RCV COM_FUNC

SFC 67 X_GET COM_FUNC

SFC 68 X_PUT COM_FUNC Write Data to a Communication Partner outside the Local S7 Station

SFC 69 X_ABORT COM_FUNC

SFC 70 GEO_LOG IO_FUNCT Determine Start Address of a Module SFC 71 LOG_GEO IO_FUNCT Determine the Slot Belonging to a Logical Address SFC 72 I_GET COM_FUNC

SFC 73 I_PUT COM_FUNC Write Data to a Communication Partner within the Local S7 Station

SFC 74 I_ABORT COM_FUNC

SFC 78 OB_RT DIAGNSTC Determine OB program runtime SFC 79 SET BIT_LOGC Set a Range of Outputs SFC 80 RSET BIT_LOGC Reset a Range of Outputs SFC 81 UBLKMOV MOVE Uninterruptible Block Move SFC 82 CREA_DBL DB_CTRL Create a Data Block in the Load Memory SFC 83 READ_DBL DB_CTRL Read from a Data Block in Load Memory SFC 84 WRIT_DBL DB_CTRL Write from a Data Block in Load Memory SFC 85 CREA_DB DB_FUNCT Create a Data Block SFC 87 C_DIAG COM_FUNC Diagnosis of the Actual Connection Status SFC 90 H_CTRL HF_FUNCT Control Operation in H Systems SFC 100 SET_CLKS CLK_FUNC Setting the Time-of-Day and the TOD Status SFC 101 RTM CLK_FUNC Handling runtime meters SFC 102 RD_DPARA IO_FUNCT Redefined Parameters SFC 103 DP_TOPOL DP Identifying the bus topology in a DP master system SFC 104 CIR PGM_CNTL Controlling CiR SFC 105 READ_SI PMC_FUNC Reading Dynamic System Resources SFC 106 DEL_SI PMC_FUNC Deleting Dynamic System Resources

Query the Status of a Connection Belonging to a Communication SFB Instance

Receive Data from a Communication Partner outside the Local S7 Station

Read Data from a Communication Partner outside the Local S7 Station

Abort an Existing Connection to a Communication Partner outside the Local S7 Station

Read Data from a Communication Partner within the Local S7 Station

Abort an Existing Connection to a Communication Partner within the Local S7 Station

Page 52: Siemens S7 Libraries

Siemens S7 System Function Calls

- 52 -

SFC 107 ALARM_DQ PMC_FUNC

SFC 108 ALARM_D PMC_FUNC

SFC 112 PN_IN PROFIne2

SFC 113 PN_OUT PROFIne2

SFC 114 PN_DP PROFIne2 Update DP interconnections SFC 126 SYNC_PI IO_FUNCT Update process image partition input table in synchronous cycle SFC 127 SYNC_PO IO_FUNCT Update process image partition output table in synchronous cycle

Generating Always Acknowledgeable and Block-Related Messages

Generating Always Acknowledgeable and Block-Related Messages

Update inputs in the user program interface of PROFInet components

Update outputs in the user program interface of PROFInet components

Page 53: Siemens S7 Libraries

Siemens S7 S5-S7 Converting Blocks

FC 61 GP_FPGP S5_CNVRT Change fixed point number to floating point number FC 62 GP_GPFP S5_CNVRT Change floating point number to fixed point number FC 63 GP_ADD S5_CNVRT Add floating point numbers FC 64 GP_SUB S5_CNVRT Subtract floating point numbers FC 65 GP_MUL S5_CNVRT Multiply floating point number FC 66 GP_DIV S5_CNVRT Divide floating point numbers FC 67 GP_VGL S5_CNVRT Compare floating point numbers FC 68 RAD_GP S5_CNVRT Extract root of floating point numbers FC 69 MLD_TG S5_CNVRT Clock generator FC 70 MLD_TGZ S5_CNVRT Clock generator (timing element) FC 71 MLD_EZW S5_CNVRTFC 72 MLD_EDW S5_CNVRTFC 73 MLD_SAMW S5_CNVRT Collected message, wordwise (sound alert) FC 74 MLD_SAM S5_CNVRT Collected message, bitwise FC 75 S5_CNVRT Message of first value with single flashing light, bitwise, A FC 78 MLD_EDWK S5_CNVRT

FC 79 MLD_EZK S5_CNVRTFC 80 MLD_EDK S5_CNVRTFC 81 COD_B4 S5_CNVRT Change BCD number to 16 bit dual number FC 82 COD_16 S5_CNVRT Change 16 bit dual number to BCD number FC 83 MUL_16 S5_CNVRT Multiply 16 bit dual numbers FC 84 DIV_16 S5_CNVRT Divide 16 bit dual numbers FC 85 ADD_32 S5_CNVRT Add 32 bit dual numbers FC 86 SUB_32 S5_CNVRT Subtract 32 bit dual numbers FC 87 S5_CNVRT Multiply 32 bit dual numbers FC 88 DIV_32 S5_CNVRT Divide 32 bit dual numbers FC 89 RAD_16 S5_CNVRT Extract roots of 16 bit dual numbers FC 90 REG_SCHB S5_CNVRT Bi-directional shift register, bitwise FC 91 S5_CNVRT Bi-directional shift register, wordwise FC 92 REG_FIFO S5_CNVRT Buffer memory (FIFO) FC 93 REG_LIFO S5_CNVRT Stack register (LIFO) FC 94 DB_COPY1 S5_CNVRT Copy data block, direct assignment of parameters FC 95 S5_CNVRT Copy data block, indirect assignment of parameterization FC 96 RETTEN S5_CNVRT Save scratchpad memory FC 97 LADEN S5_CNVRT Load scratchpad memory FC 98 COD_B8 S5_CNVRT Change BCD number to 32 bit dual number FC 99 COD_32 S5_CNVRT Change 32 bit dual number to BCD number FC 100 AE_460_1 S5_CNVRT Read analog value FC 101 AE_460_2 S5_CNVRT Read analog value FC 102 S5_CNVRT Read analog value FC 103 AE_463_2 S5_CNVRT Read analog value FC 104 AE_464_1 S5_CNVRT Read analog value FC 105 AE_464_2 S5_CNVRT Read analog value FC 106 AE_466_1 S5_CNVRT Read analog value FC 107 AE_466_2 S5_CNVRT Read analog value FC 108 RLG_AA1 S5_CNVRT Output analog value FC 109 RLG_AA2 S5_CNVRT Output analog value FC 110 PER_ET1 S5_CNVRT

Message of first value with single flashing light, wordwise, A Message of first value with double flashing light, wordwise, A

MLD_EZ Message of first value with double flashing light, wordwise, A+M

Message of first value with single flashing light, bitwise, A+M Message of first value with double flashing light, bitwise, A+M

MUL_32 

REG_SCHW 

DB_COPY2 

AE_463_1 

Read and Write for extended periphery (direct assignment of parameters)

Page 54: Siemens S7 Libraries

Siemens S7 S5-S7 Converting Blocks

FC 111 PER_ET2 S5_CNVRT

FC 112 SINUS S5_CNVRT Sine (x) FC 113 COSINUS S5_CNVRTFC 114 TANGENS S5_CNVRT Tangent (x) FC 115 COTANG S5_CNVRT Cotangent (x) FC 116 ARCSIN S5_CNVRT Arc sine (x) FC 117 ARCCOS S5_CNVRT Arc cosine (x) FC 118 ARCTAN S5_CNVRT Arc tangent (x) FC 119 ARCCOT S5_CNVRT Arc cotangens (x) FC 120 LN_X S5_CNVRT Natural logarithm ln (x) FC 121 LG_X S5_CNVRT Decade logarithm Iog (x) FC 122 B_LOG_X S5_CNVRT General logarithm Iog (x) to basis b FC 123 E_H_N S5_CNVRT e to the power of n FC 124 ZEHN_H_N S5_CNVRT 10 to the power of n FC 125 A2_H_A1 S5_CNVRT AKKU 2 to the power of AKKU 1

Read and Write for extended periphery (indirect assignment of parameters)

Cosine (x) 

Page 55: Siemens S7 Libraries

Siemens S7 IEC Blocks

FC 1 AD_DT_TM IEC Point Math Add duration to a time FC 2 CONCAT IEC Combine two STRING variables FC 3 D_TOD_DT IEC Combine DATE and TIME_OF_DAY to DT FC 4 DELETE IEC Delete in a STRING variable FC 5 DI_STRNG IEC Data type conversion DINT to STRING FC 6 DT_DATE IEC Extract the DATE from DT FC 7 DT_DAY IEC Extract the day of the week from DT FC 8 DT_TOD IEC Extract the TIME_OF_DAY from DT FC 9 EQ_DT IEC Compare DT for equal FC 10 EQ_STRNG IEC Compare STRING for equal FC 11 FIND IEC Find in a STRING variable FC 12 GE_DT IEC Compare DT for greater than or equal FC 13 GE_STRNG IEC Compare STRING for greater than or equal FC 14 GT_DT IEC Compare DT for greater than FC 15 GT_STRNG IEC Compare STRING for greater than FC 16 I_STRNG IEC Data type conversion INT to STRING FC 17 INSERT IEC Insert in a STRING variable FC 18 LE_DT IEC Compare DT for smaller than or equal FC 19 LE_STRNG IEC Compare STRING for smaller than or equal FC 20 LEFT IEC Left part of a STRING variable FC 21 LEN IEC Length of a STRING variable FC 22 LIMIT IEC Point Math Limit FC 23 LT_DT IEC Compare DT for smaller than FC 24 LT_STRNG IEC Compare STRING for smaller than FC 25 MAX IEC Point Math Select maximum FC 26 MID IEC Middle part of a STRING variable FC 27 MIN IEC Point Math Select minimum FC 28 NE_DT IEC Compare DT for unequal FC 29 NE_STRNG IEC Compare STRING for unequal FC 30 R_STRNG IEC Data type conversion REAL to STRING FC 31 REPLACE IEC Replace in a STRING variable FC 32 RIGHT IEC Right part of a STRING variable FC 33 S5TI_TIM IEC Data type conversion S5TIME to TIME FC 34 SB_DT_DT IEC Point Math Subtract two time values FC 35 SB_DT_TM IEC Point Math Subtract duration from a time FC 36 SEL IEC Point Math Binary selection FC 37 STRNG_DI IEC Data type conversion STRING to DINT FC 38 STRNG_I IEC Data type conversion STRING to INT FC 39 STRNG_R IEC Data type conversion STRING to REAL FC 40 TIM_S5TI IEC Data type conversion TIME to S5TIME

Page 56: Siemens S7 Libraries

Siemens S7 PID Control Blocks

FB 41 CONT_C ICONT Continuous ControlFB 42 CONT_S ICONT Step ControlFB 43 PULSEGEN ICONT Pulse GenerationFB 58 TCONT_CP CONTROL Temperature Continuous ControllerFB 59 TCONT_S CONTROL Temperature Step Controller

Page 57: Siemens S7 Libraries

Siemens S7 Communication Blocks

FB 2 IDENTIFY CP_300 For checking device propertiesFB 3 READ CP_300

FB 4 REPORT CP_300 Allows unconfirmed transmission of variables by an FMS server. FB 5 STATUS CP_300

FB 6 WRITE CP_300

FB 8 USEND CP_300 Uncoordinated Sending of Data FB 9 URCV CP_300 Uncoordinated Receiving of Data FB 12 BSEND CP_300 Sending Segmented Data FB 13 BRCV CP_300 Receiving Segmented Data FB 14 GET CP_300 Read Data from a Remote CPU FB 15 PUT CP_300 Write Data to a Remote CPU FB 20 GETIO IO_FUNCT Read All Inputs of a DP Standard Slave/PROFINET IO DeviceFB 21 SETIO IO_FUNCT Write All Outputs of a DP Standard Slave/PROFINET IO DeviceFB 22 GETIO_PART IO_FUNCT

FB 23 SETIO_PART IO_FUNCT

FB 55 IP_CONFIG CP_300

FB 63 TSEND COMM Sending Data via TCP native and ISO on TCPFB 64 TRCV COMM Receiving Data via TCP native and ISO on TCPFB 65 TCON COMM Establishing a Connection using TCP native and ISO on TCPFB 66 TDISCON COMM Terminating a Connection using TCP native and ISO on TCPFB 67 TUSEND COMM Sending Data via UDPFB 68 TURCV COMM Receiving Data via UDPFC 1 DP_SEND CP_300 transfers data to the PROFIBUS CPFC 2 DP_RECV CP_300 receives data on PROFIBUSFC 3 DP_DIAG CP_300 used to request diagnostic informationFC 4 DP_CTRL CP_300 transfers control jobs to the PROFIBUS CPFC 5 AG_SEND CP_300

FC 6 AG_RECV CP_300

FC 7 AG_LOCK CP_300

FC 8 AG_UNLOCK CP_300

FC 10 AG_CNTRL CP_300

FC 11 PNIO_SEND CP_300

FC 12 PNIO_RECV CP_300

FC 40 FTP_CONNECT CP_300 Establish an FTP connectionFC 41 FTP_STORE CP_300 Store a file on the FTP serverFC 42 FTP_RETRIEVE CP_300 Retrieve a file from the FTP server

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 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.

Read a Part of the Inputs of a DP Standard Slave/PROFINET IO Device

Write a Part of the Outputs of a DP Standard Slave/PROFINET IO Device

Transfers a configuration data block (CONF_DB) containing connection data for an Ethernet CP.

data by means of a configured connection to the communication partner (<= 240 bytes).

data by means of a configured connection from the communication partner (<= 240 bytes, not email).

the external data access by means of FETCH/WRITE (not for UDP, email).

the external data access by means of FETCH/WRITE (not for UDP, email).

allows you to diagnose connections. When necessary, you can reinitialize connection establishment using the FC.

used for data transfer in the CP modes PROFINET IO controller or PROFINET IO device.

used to receive data in the CP modes PROFINET IO controller or PROFINET IO device.

Page 58: Siemens S7 Libraries

Siemens S7 Communication Blocks

FC 43 FTP_DELETE CP_300 Delete a file on the FTP serverFC 44 FTP_QUIT CP_300 Enable an FTP connectionFC 50 AG_LSEND CP_300

FC 60 AG_LRECV CP_300

FC 62 C_CNTRL CP_300 Query a connection status for S7-300

data by means of a configured connection to the communication partner.

data by means of a configured connection from the communication partner (not email).

Page 59: Siemens S7 Libraries

Siemens TI-S7 Converting Blocks

FB 80 LEAD_LAG CONVERT Lead/Lag Algorithm FB 81 DCAT TIMERS Discrete Control Alarm Timer FB 82 MCAT TIMERS Motor Control Alarm Timer FB 83 IMC COMPARE Index Matrix Compare FB 84 SMC COMPARE Scan Matrix Compare FB 85 DRUM TIMERS Event Maskable Drum FB 86 PACK MOVE Pack Data FC 80 TONR TIMERS Software Timer On Delay—Retentive FC 81 IBLKMOV MOVE Indirect Block Move FC 82 RSET BIT_LOGC Reset Range of Outputs FC 83 SET BIT_LOGC Set Range of Outputs FC 84 ATT TABLE Add to Table FC 85 FIFO TABLE First In/First Out Unload Table FC 86 TBL_FIND TABLE Table Find FC 87 LIFO TABLE Last In/First Out Unload Table FC 88 TBL TABLE Table FC 89 TBL_WRD TABLE Move Table to Word FC 90 WSR SHIFT Word Shift Register FC 91 WRD_TBL TABLE Word to Table FC 92 SHRB SHIFT Bit Shift Register FC 93 SEG CONVERT Seven Segment Decoder FC 94 ATH CONVERT ASCII to Hex FC 95 HTA CONVERT Hex to ASCII FC 96 ENCO CONVERT Encode Binary Position FC 97 DECO CONVERT Decode Binary Position FC 98 BCDCPL CONVERT Ten’s Complement FC 99 BITSUM CONVERT Sum Number of Bits FC 100 RSETI BIT_LOGC Reset Range of Immediate Outputs FC 101 SETI BIT_LOGC Set Range of Immediate Outputs FC 102 DEV MATH_FP Standard Deviation FC 103 CDT TABLE Correlated Data Table FC 104 TBL_TBL TABLE Table to Table FC 105 SCALE CONVERT Scaling Values FC 106 UNSCALE CONVERT Unscaling Values

Page 60: Siemens S7 Libraries

Siemens S7 Misc Blocks

FB 60 SET_SW TIMEFUNC

FB 61 SET_SW_S TIMEFUNC

FB 62 TIMESTMP TIMEFUNC

FC 60 LOC_TIME TIMEFUNC

FC 61 BT_LT TIMEFUNC calculates the local time from the base time given at the input.FC 62 LT_BT TIMEFUNC calculates the base time from the local time given at the input.FC 63 S_LTINT TIMEFUNC

supports the summertime/wintertime changeover in CPUs that do not have the time status. For this purpose it sets the CPU clock to the current time and according to the changeover rules in the Control DB.

supports the summertime/wintertime changeover in CPUs that do have the time status. For this purpose it sets the time status to the current time and according to the changeover rules in the Control DB.

transfers the time-stamped messages of an IM153-2 into its instance DB.

reads the time status or time of the CPU and calculates the local time. It is therefore only useful on CPUs with time status.

sets the required time interrupt to the preset time. This time is given in local time.

Page 61: Siemens S7 Libraries

Connection Types for Connection Partners in the Same Project

The blocks (SFBs, FBs, or FCs) you can use depend on the connection type.

The following table should make it easier for you to select the connection type for the connection you want to establish.

Connection Type Subnet Type Connection between SIMATIC...S7 connection MPI, S7 - S7, S7 - PG/PC,

PROFIBUS, S7 - PG/PC with WinCCIndustrial Ethernet with MPI also: M7 - M7,

M7 - S7, M7 - PG/PC

PROFIBUS, S7(H) - S7(H),Industrial Ethernet S7(H) - PC station (H)

PTP S7 - S7, S7 - S5,

RK 512/3964(R)) S7 - non-Siemens deviceConnection

FMS connection PROFIBUS

(FMS protocol)

FDL connection PROFIBUS

(FDL protocol)

ISO Industrial Ethernet

(ISO Transporttransport link protocol)

ISO-on-TCP Industrial Ethernet S7 - S7, S7 - S5,(TCP/IP protocol) S7 - PC/PG,

The connection type is dependent on the subnet and the transfer protocol via which the connection is established, and on the automation family to which the connection partners belong.

S7 - partner in another project (S7, PG/PC with WinCC)

S7 connection, fault-tolerant

Point-to-point (computer protocol

S7 - partner in another project (S7, no Siemens device)

S7 - S7, S7 - S5, S7 - PG/PC, S7 - no Siemens device, S7 - broadcast to all nodes

S7 - partner in another project (S7, S5, PG/PC, no Siemens device)

S7 - S7, S7 - S5, S7 - PC/PG, S7 -non-Siemens device

S7 - partner in another project (S7, S5, PG/PC, non-Siemens device)

S7 - S7, S7 - S5, S7 - PC/PG, S7 - non-Siemens device, S7 - unspecified

S7 - partner in another project (S7, S5, PG/PC, non-Siemens device, unspecified)

Page 62: Siemens S7 Libraries

connection S7 - non-Siemens device,S7 - unspecified

TCP connection Industrial Ethernet S7 - S7, S7 - S5,S7 - PC/PG,

(TCP/IP protocol) S7 - non-Siemens device,S7 - unspecified

UDP connection Industrial Ethernet

(TCP/IP protocol)

E-mail connection Industrial Ethernet S7 - unspecified (S7 - mail server)(TCP/IP protocol)

S7 - partner in another project (S7, S5, PG/PC, non-Siemens device, unspecified)

S7 - partner in another project (S7, S5, PG/PC, non-Siemens device, unspecified)

S7 - S7, S7 - S5, S7 - PG/PC, S7 - non-Siemens device, S7 - unspecified

S7 - partner in another project (S7, S5, PG/PC, non-Siemens device, unspecified)

* The FCs AG_SEND and AG_RECV here can only be used for S7-300 (this depends on release number of the CP, see the documentation for the CP).

** The FCs AG_LSEND and AG_LRECV here can generally be used for S7-400, and in addition for S7-300 (this depends on release number of the CP, see the documentation for the CP).

Page 63: Siemens S7 Libraries

The blocks (SFBs, FBs, or FCs) you can use depend on the connection type.

The following table should make it easier for you to select the connection type for the connection you want to establish.

SFB/FB/FC

AG_RECV,

AG_LSEND,AG_LRECV

AG_LSEND,AG_LRECV,AG_LOCK,AG_UNLOCK;

The connection type is dependent on the subnet and the transfer protocol via which the connection is established, and on the

SFBs USEND, URCV, BSEND, BRCV, GET, PUT, START, STOP, RESUME, STATUS, USTATUS

SFBs USEND, URCV, BSEND, BRCV, START, STOP, RESUME, STATUS, USTATUSSFBs BSEND, BRCV, GET, PUT, STATUS, PRINT

FBs READ, WRITE, IDENTIFY, OSTATUS, REPORT

FCs AG_SEND,

FCs AG SEND,

AG RECEIVE

FCs AG SEND,AG RECEIVE

Page 64: Siemens S7 Libraries

AG_LSEND,AG_LRECV,AG_LOCK,

AG_UNLOCK

AG_RECV*,

AG_LSEND**,AG_LRECV**

AG_LOCKAG_UNLOCK

AG_LSEND,AG_LRECV

AG_LSEND

FCs AG_SEND*,

FCs AG SEND,

AG RECEIVE

FCs AG-SEND,

The FCs AG_SEND and AG_RECV here can only be used for S7-300 (this depends on release number of the CP, see the

The FCs AG_LSEND and AG_LRECV here can generally be used for S7-400, and in addition for S7-300 (this depends on

Page 65: Siemens S7 Libraries

Possibilities for Communication between Device Types

The possible communication available with the types of communication listedabove is shown in the following table:

S7-400 S5-115 to -155U/H PC station

S7-300

S7-400

* PC only as client** S7-400 as PROFINET IO controller and S7-300 as PROFINET IO device or controller

S7-300

S7 communicationSEND/RECEIVEPROFINET CBAPROFINET IO

S7 communicationSEND/RECEIVEPROFINET CBAPROFINET IO**

SEND/RECEIVEFETCH/WRITE

PG/OP communication*S7 communication*SEND/RECEIVEFETCH/WRITEHTML process monitoringPROFINET CBAPROFINET IOFTP Services

S7 communicationSEND/RECEIVEPROFINET CBAPROFINET IO**

S7 communicationSEND/RECEIVEPROFINET CBAFTP Services

SEND/RECEIVEFETCH/WRITE

PG/OP communication*S7 communication*SEND/RECEIVEFETCH/WRITEHTML process monitoringPROFINET CBAPROFINET IOFTP Services

from S7-CPs for Industrial Ethernet