Thursday, July 5, 2012

S7 system function


System Function Blocks

NumberNameFamilyDescription
SFB 0CTUIEC_TCCount Up
SFB 1CTDIEC_TCCount Down
SFB 2CTUDIEC_TCCount Up/Down
SFB 3TPIEC_TCGenerate a Pulse
SFB 4TONIEC_TCGenerate an On Delay
SFB 5TOFIEC_TCGenerate an Off Delay
SFB 8USENDCOM_FUNCUncoordinated Sending of Data
SFB 9URCVCOM_FUNCUncoordinated Receiving of Data
SFB 12BSENDCOM_FUNCSending Segmented Data
SFB 13BRCVCOM_FUNCReceiving Segmented Data
SFB 14GETCOM_FUNCRead Data from a Remote CPU
SFB 15PUTCOM_FUNCWrite Data to a Remote CPU
SFB 16PRINTCOM_FUNCSend Data to Printer
SFB 19STARTCOM_FUNCInitiate a Warm or Cold Restart on a Remote Device
SFB 20STOPCOM_FUNCChanging a Remote Device to the STOP State
SFB 21RESUMECOM_FUNCInitiate a Hot Restart on a Remote Device
SFB 22STATUSCOM_FUNCQuery the Status of a Remote Partner
SFB 23USTATUSCOM_FUNCReceive the Status of a Remote Device
SFB 29HS_COUNTCOUNTERSCounter (high-speed counter, integrated function) (only exist on the CPU 312 IFM and CPU 314 IFM)
SFB 30FREQ_MESCOUNTERSFrequency Meter (frequency meter, integrated function (only exist on the CPU 312 IFM and CPU 314 IFM)
SFB 31NOTIFY_8PCOM_FUNCGenerating block related messages without acknowledgement indication
SFB 32DRUMTIMERSImplement a Sequencer
SFB 33ALARMCOM_FUNCGenerate Block-Related Messages with Acknowledgment Display
SFB 34ALARM_8COM_FUNCGenerate Block-Related Messages without Values for 8 Signals
SFB 35ALARM_8PCOM_FUNCGenerate Block-Related Messages with Values for 8 Signals
SFB 36NOTIFYCOM_FUNCGenerate Block-Related Messages without Acknowledgment Display
SFB 37AR_SENDCOM_FUNCSend Archive Data
SFB 38HSC_A_BCOUNTERSCounter A/B (integrated function) (only exist on the CPU 314 IFM)
SFB 39POSICONTPosition (integrated function) (only exist on the CPU 314 IFM)
SFB 41CONT_CICONTContinuous Control (only exist on the CPU 314 IFM)
SFB 42CONT_SICONTStep Control (only exist on the CPU 314 IFM)
SFB 43PULSEGENICONTPulse Generation (only exist on the CPU 314 IFM)
SFB 44ANALOGTEC_FUNCPositioning with Analog Output (only exist on the S7-300C CPUs)
SFB 46DIGITALTEC_FUNCPositioning with Digital Output (only exist on the S7-300C CPUs)
SFB 47COUNTTEC_FUNCControlling the Counter (only exist on the S7-300C CPUs)
SFB 48FREQUENCTEC_FUNCControlling the Frequency Measurement (only exist on the S7-300C CPUs)
SFB 49PULSETEC_FUNCControlling Pulse Width Modulation (only exist on the S7-300C CPUs)
SFB 52RDRECDPReading a Data Record
SFB 53WRRECDPWriting a Data Record
SFB 54RALRMDPReceiving an Interrupt
SFB 60SEND_PTPTEC_FUNCSending Data (ASCII, 3964(R)) (only exist on the S7-300C CPUs)
SFB 61RECV_PTPTEC_FUNCReceiving Data (ASCII, 3964(R)) (only exist on the S7-300C CPUs)
SFB 62RES_RECVTEC_FUNCDeleting the Receive Buffer (ASCII, 3964(R)) (only exist on the S7-300C CPUs)
SFB 63SEND_RKTEC_FUNCSending Data (RK 512) (only exist on the S7-300C CPUs)
SFB 64FETCH_RKTEC_FUNCFetching Data (RK 512) (only exist on the S7-300C CPUs)
SFB 65SERVE_RKTEC_FUNCReceiving and Providing Data (RK 512) (only exist on the S7-300C CPUs)
SFB 75SALRMDPSend interrupt to DP master
SFB 81RD_DPARIO_FUNCTRead Predefined Parameter

System Function Calls

NumberNameFamilyDescription
SFC 0SET_CLKCLK_FUNCSet System Clock
SFC 1READ_CLKCLK_FUNCRead System Clock
SFC 2SET_RTMCLK_FUNCSet Run-time Meter
SFC 3CTRL_RTMCLK_FUNCStart/Stop Run-time Meter
SFC 4READ_RTMCLK_FUNCRead Run-time Meter
SFC 5GADR_LGCIO_FUNCTQuery Logical Address of a Channel
SFC 6RD_SINFODB_FUNCTRead OB Start Information
SFC 7DP_PRALDPTrigger a Hardware Interrupt on the DP Master
SFC 9EN_MSGCOM_FUNCEnable Block-Related, Symbol-Related and Group Status Messages
SFC 10DIS_MSGCOM_FUNCDisable Block-Related, Symbol-Related and Group Status Messages
SFC 11DPSYC_FRDPSynchronize Groups of DP Slaves
SFC 12D_ACT_DPDPDeactivation and activation of DP slaves
SFC 13DPNRM_DGDIAGNSTCRead Diagnostic Data of a DP Slave (Slave Diagnostics)
SFC 14DPRD_DATDPRead Consistent Data of a Standard DP Slave
SFC 15DPWR_DATDPWrite Consistent Data to a DP Standard Slave
SFC 17ALARM_SQPMC_FUNCGenerate Acknowledgeable Block-Related Messages
SFC 18ALARM_SPMC_FUNCGenerate Permanently Acknowledged Block-Related Messages
SFC 19ALARM_SCPMC_FUNCQuery the Acknowledgment Status of the last ALARM_SQ Entering State Message
SFC 20BLKMOVMOVECopy Variables
SFC 21FILLMOVEInitialize a Memory Area
SFC 22CREAT_DBDB_FUNCTCreate Data Block
SFC 23DEL_DBDB_FUNCTDelete Data Block
SFC 24TEST_DBDB_FUNCTTest Data Block
SFC 25COMPRESSDB_FUNCTCompress the User Memory
SFC 26UPDAT_PIIO_FUNCTUpdate the Process Image Update Table
SFC 27UPDAT_POIO_FUNCTUpdate the Process Image Output Table
SFC 28SET_TINTPGM_CNTLSet Time-of-Day Interrupt
SFC 29CAN_TINTPGM_CNTLCancel Time-of-Day Interrupt
SFC 30ACT_TINTPGM_CNTLActivate Time-of-Day Interrupt
SFC 31QRY_TINTPGM_CNTLQuery Time-of-Day Interrupt
SFC 32SRT_DINTPGM_CNTLStart Time-Delay Interrupt
SFC 33CAN_DINTPGM_CNTLCancel Time-Delay Interrupt
SFC 34QRY_DINTPGM_CNTLQuery Time-Delay Interrupt
SFC 35MP_ALMPGM_CNTLTrigger Multicomputing Interrupt
SFC 36MSK_FLTDIAGNSTCMask Synchronous Errors
SFC 37DMSK_FLTDIAGNSTCUnmask Synchronous Errors
SFC 38READ_ERRDIAGNSTCRead Error Register
SFC 39DIS_IRTIRT_FUNCDisable New Interrupts and Asynchronous Errors
SFC 40EN_IRTIRT_FUNCEnable New Interrupts and Asynchronous Errors
SFC 41DIS_AIRTIRT_FUNCDelay Higher Priority Interrupts and Asynchronous Errors
SFC 42EN_AIRTIRT_FUNCEnable Higher Priority Interrupts and Asynchronous Errors
SFC 43RE_TRIGRPGM_CNTLRe-trigger Cycle Time Monitoring
SFC 44REPL_VALDIAGNSTCTransfer Substitute Value to Accumulator 1
SFC 46STPPGM_CNTLChange the CPU to STOP
SFC 47WAITPGM_CNTLDelay Execution of the User Program
SFC 48SNC_RTCBCLK_FUNCSynchronize Slave Clocks
SFC 49LGC_GADRIO_FUNCTQuery the Module Slot Belonging to a Logical Address
SFC 50RD_LGADRIO_FUNCTQuery all Logical Addresses of a Module
SFC 51RDSYSSTDIAGNSTCRead a System Status List or Partial List
SFC 52WR_USMSGDIAGNSTCWrite a User-Defined Diagnostic Event to the Diagnostic Buffer
SFC 54RD_PARMIO_FUNCTRead Defined Parameters
SFC 55WR_PARMIO_FUNCTWrite Dynamic Parameters
SFC 56WR_DPARMIO_FUNCTWrite Default Parameters
SFC 57PARM_MODIO_FUNCTAssign Parameters to a Module
SFC 58WR_RECIO_FUNCTWrite a Data Record
SFC 59RD_RECIO_FUNCTRead a Data Record
SFC 60GD_SNDCOM_FUNCSend a GD Packet
SFC 61GD_RCVCOM_FUNCFetch a Received GD Packet
SFC 62CONTROLCOM_FUNCQuery the Status of a Connection Belonging to a Communication SFB Instance
SFC 63AB_CALLPLASTICSAssembly Code Block (only exists for CPU 614)
SFC 64TIME_TCKCLK_FUNCRead the System Time
SFC 65X_SENDCOM_FUNCSend Data to a Communication Partner outside the Local S7 Station
SFC 66X_RCVCOM_FUNCReceive Data from a Communication Partner outside the Local S7 Station
SFC 67X_GETCOM_FUNCRead Data from a Communication Partner outside the Local S7 Station
SFC 68X_PUTCOM_FUNCWrite Data to a Communication Partner outside the Local S7 Station
SFC 69X_ABORTCOM_FUNCAbort an Existing Connection to a Communication Partner outside the Local S7 Station
SFC 70GEO_LOGIO_FUNCTDetermine Start Address of a Module
SFC 71LOG_GEOIO_FUNCTDetermine the Slot Belonging to a Logical Address
SFC 72I_GETCOM_FUNCRead Data from a Communication Partner within the Local S7 Station
SFC 73I_PUTCOM_FUNCWrite Data to a Communication Partner within the Local S7 Station
SFC 74I_ABORTCOM_FUNCAbort an Existing Connection to a Communication Partner within the Local S7 Station
SFC 78OB_RTDIAGNSTCDetermine OB program runtime
SFC 79SETBIT_LOGCSet a Range of Outputs
SFC 80RSETBIT_LOGCReset a Range of Outputs
SFC 81UBLKMOVMOVEUninterruptible Block Move
SFC 82CREA_DBLDB_CTRLCreate a Data Block in the Load Memory
SFC 83READ_DBLDB_CTRLRead from a Data Block in Load Memory
SFC 84WRIT_DBLDB_CTRLWrite from a Data Block in Load Memory
SFC 85CREA_DBDB_FUNCTCreate a Data Block
SFC 87C_DIAGCOM_FUNCDiagnosis of the Actual Connection Status
SFC 90H_CTRLHF_FUNCTControl Operation in H Systems
SFC 100SET_CLKSCLK_FUNCSetting the Time-of-Day and the TOD Status
SFC 101RTMCLK_FUNCHandling runtime meters
SFC 102RD_DPARAIO_FUNCTRedefined Parameters
SFC 103DP_TOPOLDPIdentifying the bus topology in a DP master system
SFC 104CIRPGM_CNTLControlling CiR
SFC 105READ_SIPMC_FUNCReading Dynamic System Resources
SFC 106DEL_SIPMC_FUNCDeleting Dynamic System Resources
SFC 107ALARM_DQPMC_FUNCGenerating Always Acknowledgeable and Block-Related Messages
SFC 108ALARM_DPMC_FUNCGenerating Always Acknowledgeable and Block-Related Messages
SFC 112PN_INPROFIne2Update inputs in the user program interface of PROFInet components
SFC 113PN_OUTPROFIne2Update outputs in the user program interface of PROFInet components
SFC 114PN_DPPROFIne2Update DP interconnections
SFC 126SYNC_PIIO_FUNCTUpdate process image partition input table in synchronous cycle
SFC 127SYNC_POIO_FUNCTUpdate process image partition output table in synchronou
!--RELATED-POSTS-STARTS-->

No comments:

Post a Comment