s Preface Contents Organization Blocks 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 SIMATIC System ppsx

756 5.8K 0
s Preface Contents Organization Blocks 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 SIMATIC System ppsx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

s Preface Contents Organization Blocks SIMATIC System Software for S7-300/400 System and Standard Functions Volume 1/2 Reference Manual Common Parameters for SFCs Copy and Block Functions SFCs for Controlling Program Execution SFCs for Handling the System Clock SFCs for Handling Run-Time Meters SFCs/SFBs for Transferring Data Records DPV1 SFBs According to PNO AK 1131 SFCs for Handling Time-of-Day Interrupts SFCs for Handling Time-Delay Interrupts SFCs for Handling Synchronous Errors SFCs for Handling Interrupts and Asynchronous Errors SFCs for Diagnostics SFCs and SFBs for Updating the Process Image and Processing Bit Fields System Functions for Addressing Modules SFCs for Distributed I/Os or PROFINET IO This manual is part of the documentation package with the order number: 6ES7810-4CA08-8BW1 Edition 03/2006 A5E00709327-01 PROFInet FBs for Cyclical Access to User Data according to the PNO 10 11 12 13 14 15 16 17 18 Safety Guidelines This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring to property damage only have no safety alert symbol The notices shown below are graded according to the degree of danger Danger ! indicates that death or severe personal injury will result if proper precautions are not taken ! indicates that death or severe personal injury may result if proper precautions are not taken ! Warning Caution with a safety alert symbol indicates that minor personal injury can result if proper precautions are not taken Caution without a safety alert symbol indicates that property damage can result if proper precautions are not taken Notice indicates that an unintended result or situation can occur if the corresponding notice is not taken into account If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage Qualified Personnel The device/system may only be set up and used in conjunction with this documentation Commissioning and operation of a device/system may only be performed by qualified personnel Within the context of the safety notices in this documentation qualified persons are defined as persons who are authorized to commission, ground and label devices, systems and circuits in accordance with established safety practices and standards Prescribed Usage Note the following: ! Warning This device and its components may only be used for the applications described in the catalog or the technical description, and only in connection with devices or components from other manufacturers which have been approved or recommended by Siemens Correct, reliable operation of the product requires proper transport, storage, positioning and assembly as well as careful operation and maintenance Trademarks All names identified by ® are registered trademarks of the Siemens AG The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described Since variance cannot be precluded entirely, we cannot guarantee full consistency However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions Siemens AG Automation and Drives Postfach 4848 90437 NÜRNBERG GERMANY A5E00709327-01 03/2006 Copyright © Siemens AG 2006 Technical data subject to change Preface Purpose This manual provides you with a comprehensive overview of the organization blocks (OB), system functions (SFC), system and standard function blocks (SFC), and IEC functions contained in the operating systems of the CPUs of the S7-300 and S7-400, diagnostic data, system status lists (SZL), and events Note Refer to the reference section of the "S7-300 Automation System CPU Specifications: CPU 31xC and CPU 31x" and "S7-300 Automation System CPU Specifications: CPU 312IFM - 318-2 DP“ /70/ or the "Automation System S7-400: CPU Specifications" reference manual /101/ or the Instruction List: S7-400 Programmable Controller /102/ (whichever version applies to your CPU) for details of which of these functions and blocks are available on which CPU The properties of the CFBs and the S7 signaling functions for specific CPUs are described in /70/ and /101/ For information about the CPU operating systems, program design, and the communications and diagnostic capabilities of the CPUs, refer to the "Configuring Hardware and Communication Connections STEP V5.4" manual /234/ How to call functions and function blocks in your program is explained in the language descriptions You program and assign parameters for all these functions using the STEP standard software How to use this software is described in the "Programming with STEP V5.4" manual /231/ and in the STEP online help Audience This manual is intended for programmers and engineers who are familiar with controlling processes and are responsible for writing programs for programmable logic controllers System Software for S7-300/400 System and Standard Functions - Volume 1/2 A5E00709327-01 iii Preface STEP Documentation Packages The following table displays an overview of the STEP documentation: Documentation Purpose STEP Basic Information with Basic information for technical 6ES7810-4CA08-8BW0 personnel describing the methods of implementing control tasks with STEP and the S7-300/400 programmable controllers • Working with STEP , Getting Started Manual • Programming with STEP • Configuring Hardware and Communication Connections, STEP • Order Number From S5 to S7, Converter Manual STEP Reference with Provides reference information and describes the programming languages LAD, FBD, and STL, and standard and system functions extending the scope of the STEP basic information 6ES7810-4CA08-8BW1 Online Helps Purpose Order Number Help on STEP Basic information on Part of the STEP programming and configuring Standard software hardware with STEP in the form of an online help Reference helps on STL/LAD/FBD Reference help on SFBs/SFCs Reference help on Organization Blocks Context-sensitive reference information • Ladder Logic (LAD)/Function Block Diagram (FBD)/Statement List (STL) for S7-300/400 manuals • Standard and System Functions for S7-300/400 Volume and Volume iv Part of the STEP Standard software System Software for S7-300/400 System and Standard Functions - Volume 1/2 A5E00709327-01 Preface Online Help The manual Volume and Volume is complemented by an online help which is integrated in the software This online help is intended to provide you with detailed support when using the software The help system is integrated in the software via a number of interfaces: • There are several menu commands which you can select in the Help menu: The Contents command opens the index for the Help on STEP • Using Help provides detailed instructions on using the online help • The context-sensitive help offers information on the current context, for example, an open dialog box or an active window You can open the contextsensitive help by clicking the "Help" button or by pressing F1 • The status bar offers another form of context-sensitive help It displays a short explanation for each menu command when the mouse pointer is positioned on the menu command • A brief explanation is also displayed for each icon in the toolbar when the mouse pointer is positioned on the icon for a short time If you prefer to read the information from the online help in printed format, you can print out individual help topics, books, or the entire online help This manual is an extract from the HTML-based Help on STEP As the manual and the online help share an almost identical structure, it is easy to switch between the manual and the online help Feedback on Documentation To help us to provide the best possible documentation for you and future STEP users, we need your support If you have any comments or suggestions relating to this manual or the online help, please complete the questionnaire at the end of the manual and send it to the address shown Please include your own personal rating of the documentation Other Manuals The various S7-300 and S7-400 CPUs and the S7-300 and S7-400 modules are described in the following manuals: • For the S7-300 programmable logic controller, refer to the manuals: " Automatisierungssystem S7-300 CPU-Daten: CPU 31xC und CPU 31x und Automatisierungssystem S7-300 CPU-Daten: CPU 312 IFM bis 318-2 DP“ " /70/, "S7-300, M7-300 Programmable Controllers Module Specifications" /71/ and in the Instruction List /72/ • For the S7-400 programmable logic controller, refer to the manual: "Automatisierungssystem S7-400: CPU Daten " /101/ and in the Instruction List /102/ System Software for S7-300/400 System and Standard Functions - Volume 1/2 A5E00709327-01 v Preface How to Use this Manual This manual covers the following topics: • Chapter explains the functions of all the organization blocks • Chapter describes the common parameters RET_VAL, REQ and BUSY • Chapters to 29 describe the SFCs, SFBs and IEC-FCs • The Chapters sections 30 to 35 contain a description of the structure of the diagnostic data, an overview of the SZL-IDs, the possible events, lists of the SFCs, SFBs and FCs described in this manual, an overview of the SDBs • The bibliography contains a list of further manuals • The Glossary explains important terminology • The Index helps you to locate sections of text and topics quickly Conventions References to other manuals and documentation are indicated by numbers in slashes / / These numbers refer to the titles of manuals listed in the bibliography Special Note The system functions can be interrupted If there are any restrictions that apply to certain SFCs or situations, these are explained in the description of the particular SFC Further Support If you have any technical questions, please get in touch with your Siemens representative or responsible agent You will find your contact person at: http://www.siemens.com/automation/partner You will find a guide to the technical documentation offered for the individual SIMATIC Products and Systems here at: http://www.siemens.com/simatic-tech-doku-portal The online catalog and order system is found under: http://mall.automation.siemens.com/ Training Centers Siemens offers a number of training courses to familiarize you with the SIMATIC S7 automation system Please contact your regional training center or our central training center in D 90327 Nuremberg, Germany for details: Telephone: +49 (911) 895-3200 Internet: vi http://www.sitrain.com System Software for S7-300/400 System and Standard Functions - Volume 1/2 A5E00709327-01 Preface Technical Support You can reach the Technical Support for all A&D products • Via the Web formula for the Support Request http://www.siemens.com/automation/support-request • Phone: + 49 180 5050 222 • Fax: + 49 180 5050 223 Additional information about our Technical Support can be found on the Internet pages http://www.siemens.com/automation/service Service & Support on the Internet In addition to our documentation, we offer our Know-how online on the internet at: http://www.siemens.com/automation/service&support where you will find the following: • The newsletter, which constantly provides you with up-to-date information on your products • The right documents via our Search function in Service & Support • A forum, where users and experts from all over the world exchange their experiences • Your local representative for Automation & Drives • Information on field service, repairs, spare parts and more under "Services" System Software for S7-300/400 System and Standard Functions - Volume 1/2 A5E00709327-01 vii Preface viii System Software for S7-300/400 System and Standard Functions - Volume 1/2 A5E00709327-01 Contents Organization Blocks 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.21 1.22 1.23 1.24 1.25 1.26 1.27 1.28 Overview of the Organization Blocks (OBs) 1-3 Program Cycle Organization Block (OB1) 1-3 Time-of-Day Interrupt Organization Blocks (OB10 to OB17) 1-3 Time-Delay Interrupt Organization Blocks (OB20 to OB23) 1-3 Cyclic Interrupt Organization Blocks (OB30 to OB38) 1-3 Hardware Interrupt Organization Blocks (OB40 to OB47) 1-3 Status Interrupt OB (OB 55) 1-3 Update Interrupt OB (OB 56) 1-3 Manufacturer Specific Interrupt OB (OB57) 1-3 Multicomputing Interrupt Organization Block (OB60) 1-3 Synchronous Cycle Interrupt OBs (OB 61 to OB 64) 1-3 Technology Synchronization Interrupt OB (OB 65) 1-3 I/O Redundancy Error OB (OB70) 1-3 CPU Redundancy Error OB (OB72) 1-3 Communication Redundancy Error OB (OB73) 1-3 Time Error Organization Block (OB80) 1-3 Power Supply Error Organization Block (OB81) 1-3 Diagnostic Interrupt Organization Block (OB82) 1-3 Insert / Remove Module Interrupt Organization Block (OB83) 1-3 CPU Hardware Fault Organization Block (OB84) 1-3 Priority Class Error Organization Block (OB85) 1-3 Rack Failure Organization Block (OB86) 1-3 Communication Error Organization Block (OB87) 1-3 Processing Interrupt OB (OB 88) 1-3 Background Organization Block (OB90) 1-3 Startup Organization Blocks (OB100, OB101 and OB102) 1-3 Programming Error Organization Block (OB121) 1-3 I/O Access Error Organization Block (OB122) 1-3 Common Parameters for SFCs 2.1 2.2 2-3 Evaluating Errors with Output Parameter RET_VAL 2-3 Meaning of the Parameters REQ, RET_VAL and BUSY with Asynchronous SFCs 2-3 Copy and Block Functions 3.1 3.2 3.3 3.4 3.5 1-3 3-3 Copying Memory Area with SFC 20 "BLKMOV" 3-3 Uninterruptible Copying of Variables with SFC 81 "UBLKMOV" 3-3 Initializing a Memory Area with SFC 21 "FILL" 3-3 Creating a Data Block with SFC 22 "CREAT_DB" 3-3 Deleting a Data Block with SFC 23 "DEL_DB" 3-3 System Software for S7-300/400 System and Standard Functions - Volume 1/2 A5E00709327-01 ix Contents 3.6 3.7 3.8 3.9 3.10 3.11 3.12 SFCs for Controlling Program Execution 4.1 4.2 4.3 4.4 4.5 x 8-3 Reading a Data Record with SFB 52 "RDREC" 8-3 Writing a Data Record with SFB 53 "WRREC" 8-3 Receiving an Interrupt with SFB 54 "RALRM" 8-3 Sending an Interrupt to the DP Master with SFB 75 "SALRM" 8-3 SFCs for Handling Time-of-Day Interrupts 9.1 9.2 9.3 9.4 9.5 9.6 7-3 Writing and Reading Data Records 7-3 Reading Defined Parameters with SFC 54 "RD_DPARM" 7-3 Reading Predefined Parameters with SFC 102 "RD_DPARA" 7-3 Writing Dynamic Parameters with SFC 55 "WR_PARM" 7-3 Writing Default Parameters with SFC 56 "WR_DPARM" 7-3 Assigning Parameters to a Module with SFC 57 "PARM_MOD" 7-3 Writing a Data Record with SFC 58 "WR_REC" 7-3 Reading a Data Record with SFC 59 "RD_REC" 7-3 Further Error Information for SFCs 55 to 59 7-3 Reading Predefined Parameters with SFB 81 "RD_DPAR" 7-3 DPV1 SFBs According to PNO AK 1131 8.1 8.2 8.3 8.4 6-3 Runtime Meters 6-3 Handling Runtime meters with SFC 101 "RTM" 6-3 Setting the Runtime Meter with SFC "SET_RTM" 6-3 Starting and Stopping a Run-time Meter with SFC "CTRL_RTM" 6-3 Reading a Runtime Meter with SFC "READ_RTM" 6-3 Reading the System Time with SFC 64 "TIME_TCK" 6-3 SFCs/SFBs for Transferring Data Records 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 7.9 7.10 5-3 Setting the TOD with SFC "SET_CLK" 5-3 Reading the Time with SFC "READ_CLK" 5-3 Synchronizing Slave Clocks with SFC 48 "SNC_RTCB" 5-3 Setting the Time-of-Day and the TOD Status with SFC 100 "SET_CLKS" 5-3 SFCs for Handling Run-Time Meters 6.1 6.2 6.3 6.4 6.5 6.6 4-3 Re-triggering Cycle Time Monitoring with SFC 43 "RE_TRIGR" 4-3 Changing the CPU to STOP with SFC 46 "STP" 4-3 Delaying Execution of the User Program with SFC 47 "WAIT" 4-3 Triggering a Multicomputing Interrupt with SFC 35 "MP_ALM" 4-3 Controlling CiR with SFC 104 "CiR" 4-3 SFCs for Handling the System Clock 5.1 5.2 5.3 5.4 Testing a Data Block with SFC 24 "TEST_DB" 3-3 Compressing the User Memory with SFC 25 "COMPRESS" 3-3 Transferring a Substitute Value to Accumulator with SFC 44 "REPL_VAL" 3-3 Generating Data Blocks in Load Memory with SFC 82 "CREA_DBL" 3-3 Reading from a Data Block In Load Memory with SFC 83 "READ_DBL" 3-3 Writing a Data Block in Load Memory with SFC 84 "WRIT_DBL" 3-3 Creating a Data Block with SFC 85 "CREA_DB" 3-3 9-3 Handling Time-of-Day Interrupts 9-3 Characteristics of SFCs 28 to 31 9-3 Setting a Time-of-Day Interrupt with SFC 28 "SET_TINT" 9-3 Canceling a Time-of-Day Interrupt with SFC 29 "CAN_TINT" 9-3 Activating a Time-of-Day Interrupt with SFC 30 "ACT_TINT" 9-3 Querying a Time-of-Day Interrupt with SFC 31 "QRY_TINT" 9-3 System Software for S7-300/400 System and Standard Functions - Volume 1/2 A5E00709327-01 Index Changing the CPU to STOP with SFC 46 "STP" 4-1 Channel 32-2, 32-3 error 32-2 information 32-2 Characteristics of SFCs 28 to 31 9-2 CiR 4-4, 4-5 CiR Operation 1-36 Classification and Work Memory Requirements of the S7 Communication SFBs 20-6 Clearing The Input Buffer 28-46 Clock Master: 5-1 Synchronization: 5-1 Clock: 5-1 Common mode error 32-4 analog input module 32-4 analog output module 32-4 Common Parameters of the Communication SFCs: 22-1 Common Parameters of the SFBs/FBs and SFCs/FCs for S7 Communication 21-1 Communication 12-2, 33-26 error: 12-1 interrupt 12-2 status data: 33-26 Communication Error Organization Block (OB87) 1-50 Communication events: 34-12 Communication Redundancy Error OB (OB73) 1-28 Communication SFCs 20-9, 20-10, 20-11 Communication SFCs for non-configured S7 connections 20-9, 20-10, 20-11 classification: 20-8 Comparing DATE_AND_TIME Variables 26-10, 26-11, 26-12 Comparing STRING Variables 26-13, 26-14, 26-15 Complete restart .1-56, 21-36, 21-37 Component Identification 33-16 COMPRESS: 3-13 Compressing the User Memory with SFC 25 "COMPRESS" 3-13 CONCAT 26-19 Configuration 32-4 error analog input module 32-4 analog output module 32-4 digital input module 32-4 Connection .13-18, 13-19, 13-20, 13-21, 13-22, 21-49 diagnostics with SFC 87 13-18 Status S-300 (FC62) 21-49 CONT_C 27-4 CONT_S 27-9 Index-2 Continuous Control with SFB 41/FB 41 "CONT_C" 27-1 Control 27-1, 27-5, 27-7, 27-9, 27-10, 27-13 continuous control with SFB 41 27-1 step control with SFB 42 27-9 CONTROL 21-47 Controlling CiR with SFC 104 "CiR" 4-4 Controlling Operation in H Systems with SFC 90 "H_CTRL" 29-1 Controlling Operation in H Systems with SFC 90: 29-1 Controlling Positioning With Analog Output Via User Program 28-1 Controlling positioning with digital output with the user program 28-14 Controlling Pulse Width Modulation Via User Program 28-37 Controlling the Counter via User Program 28-26 Controlling The Frequency Measurement Via User Program 28-32 Converting Data Type Formats 26-24, .26-25, 26-26 Copying variables 3-1 with SFC 20 BLKMOV 3-2 Copying Variables with SFC 20 "BLKMOV" 3-1 COUNT 3-8 Count down: 25-6 Count up: 25-5 Counter (CPU 312) 30-1 Counters 11-5 number error 11-5 Counting Down with SFB "CTD" 25-6 Counting Up with SFB "CTU" 25-5 CPU 4-1, 12-1, 12-2, 33-7, 33-8 changing to the STOP mode with SFC 46 STP: 4-1 characteristics: 33-7 hardware fault 12-2 CPU hardware fault OB 1-40 CPU Hardware Fault Organization Block (OB84) 1-40 CPU Redundancy Error OB (OB72) 1-25 CQ 6-6 CREA_DB 3-23 CREA_DBL 3-16 CREATE_DB 3-8 Creating a Data Block 3-23 Creating a Data Block with SFC 22 "CREAT_DB" 3-8 Creating a Data Block with SFC 85 "CREA_DB" 3-23 CTD 25-6 CTRL_RTM 6-5 CTU 25-5 CTUD 25-7 System Software for S7-300/400 System and Standard Functions - Volume 2/2 A5E00739858-01 Index Current below measuring range 32-4 analog input module 32-4 CV 6-6 Cycle time monitoring 32-2 Cyclic Interrupt Organization Blocks (OB30 to OB38) 1-12 Cyclic interrupts 1-12, 12-2 OB35 1-12, 1-13 D D_TOD_DT 26-6 Data 16-22, 16-23, 16-24 Writing Consistent Data to DP Standard Slave/PROFINET IO Device 16-22 Data block 3-8, 3-10, 3-21, 3-22 creating with SFC 22 CREAT_DB 3-8 deleting with SFC 23 3-10 Data Block 3-19, 3-20 Reading from a Data Block in Load Memory with SFC 83 "READ_DBL" 3-19 Data Consistency with GET and PUT SFCs: 20-4 Data record 7-2, 7-3, 7-11, 7-13, 7-14, 7-15, 7-16, 7-17 reading 7-1 reading with SFC 59 RD_REC 7-13 writing 7-1 writing with SFC 58 WR_REC 7-11 Data Record 8-1, 8-2 Reading with SFB 52 RDREC 8-1 Writing with SFB 53 WRREC 8-3 Data record of the Partial List Extract with SSL ID W#16#0132 and Index W#16#000B 33-30 Data record of the Partial List Extract with SSL ID W#16#0132 and Index W#16#000C 33-31 Data Record of the Partial List Extract with SSL-ID W#16#0132 Index W#16#0005: 33-27 Data Record of the Partial List Extract with SSL-ID W#16#0132 Index W#16#0008: 33-28 Data Record of the Partial List Extract with SSL-ID W#16#0232 Index W#16#0004: 33-32 Date and Time as Complex Data Types 26-5 Date: 5-1 Datensatz 8-3 DB_NUMBER 3-8 Deactivating and Activating DP Slaves/PROFINET IO Devices with SFC 12 "D_ACT_DP" 16-10 DEL_DB 3-10 DEL_SI 24-39 Delay time: 10-1 Delaying and Disabling Interrupts and Asynchronous Errors 12-1 Delaying Execution of the User Program with SFC 47 "WAIT" 4-2 Delaying the Processing of Higher Priority Interrupts and Asynchronous Errors with SFC 41 "DIS_AIRT" 12-7 Delaying the user program 4-2 with SFC 47 WAIT 4-2 DELETE 26-19 Deleting a Data Block with SFC 23 "DEL_DB" 3-10 Determining the OB Program Run Time with SFC 78 "OB_RT" 13-14 Determining the Slot Belonging to a Logical Address with SFC 71 "LOG_GEO" 15-8 Determining the Start Address of a Module with SFC 70 "GEO_LOG" 15-6 Device Status Change 21-45 Receiving the Status Change of a Remote Device 21-45 DI_STRNG 26-24 Diagnosis of the Current Connection Status with SFC 87 "C_DIAG" 13-18 Diagnostic buffer 11-1 Diagnostic buffer: .33-1, 33-62 Diagnostic data 7-2, 32-1, 33-1, 33-2 content: 32-1 of the CPU 33-1 of the signal modules 33-1 of the signal modules: 7-1 structure 32-1 Diagnostic Data 32-2 Diagnostic data of a module 32-1 Diagnostic events: 34-15 Diagnostic interrupt 12-2, 32-2 from substitute 32-2 Diagnostic Interrupt Organization Block (OB82) 1-34 Diagnostics with SFC 87 13-18 Differences between the Blocks of the S7 Communication and the S7 Basic Communication 20-1 DIS_AIRT 12-7 DIS_IRT 12-3 DIS_MSG: 24-20 Disabling the Processing of New Interrupts and Asynchronous Errors with SFC 39 "DIS_IRT" 12-3 DMSK_FLT 11-8 DP Master System Information 33-43 DP_PRAL 16-1 DP_TOPOL 13-23 System Software for S7-300/400 System and Standard Functions- Volume 2/2 A5E00739858-01 Index-3 Index DPNRM_DG: 16-15 DPRD_DAT 16-19 DPSYC_FR: 16-4 DPWR_DAT 16-22 DRUM 14-11 DSTBLK 3-2 DT_DATE 26-7 DT_DAY 26-7 DT_TOD 26-8 DTIME 10-3 E Editing Number Values.26-16, 26-17, 26-18 Editing STRING Variables 26-19, 26-20, 26-21, 26-22, 26-23 EN_AIRT 12-8 EN_IRT 12-5 EN_MSG: 24-22 Enabling Block-Related Symbol-Related and Group Status Messages with SFC "EN_MSG" 24-22 Enabling the Processing of Higher Priority Interrupts and Asynchronous Errors with SFC 42 "EN_AIRT" 12-8 Enabling the Processing of New Interrupts and Asynchronous Errors with SFC 40 "EN_IRT" 12-5 EQ_DT 26-10 EQ_STRNG 26-13 Error 11-1, 11-2, 11-3, 11-4, 11-5, 11-6, 12-2, 32-2, 32-3 access 11-1, 11-2, 11-4, 11-6 ADC/DAC 32-2 asynchronous 12-1 EPROM 32-2 masking 11-1 programming 11-1, 11-2, 11-3, 11-5, 11-6 RAM 32-2 synchronous 11-1, 11-2 Error detection 1-12, 1-29, 1-61, 1-64 types of OB OB121 1-61 OB122 1-64 OB35 1-12 OB80 1-29 Error filter 11-2, 11-3, 11-4, 11-5, 11-6 access errors 11-1, 11-2, 11-4, 11-6 programming errors11-1, 11-3, 11-5, 11-6 Error handling 11-1 Error information 3-9, 3-10, 3-11, 10-4, 12-6, 12-8 SFC 22 CREAT_DB: 3-8 SFC 23 DEL_DB: 3-10 SFC 34 QRY_DINT: 10-4 SFC 40 EN_IRT: 12-5 Index-4 SFC 42 EN_AIRT: 12-8 Error Information of the Communication SFCs for Non-Configured S7 Connections: 22-3 Error interrupt 12-1 asynchronous 12-1, 12-2 synchronous 12-2 Error OB 1-12, 1-29, 1-32, 1-34, 1-41, 11-1, 11-2 types of OB OB35 1-12 OB80 1-29, 1-30 OB81 1-32 OB82 1-34 OB85 1-41, 1-42, 1-43, 1-44 Error register 11-1, 11-2, 11-9 reading with SFC 38 READ_ERR 11-9 Establishing a Connection with FB 65 "TCON" 23-21 Evaluating Errors with the Output Parameter RET_VAL 2-1 Event .13-10, 13-11, 13-12, 13-13, 34-1, 34-2 class: 34-1 ID 13-11, 13-12, 34-1, 34-2 Event Class - Standard OB Events 34-3 Event Class - Synchronous Errors 34-4 Event Class - Asynchronous Errors 34-5 Event Class - Stop Events and Other Mode Changes 34-8 Event Class Mode Runtime Events: 34-11 Event Class Communication Events 34-12 Event Class - H/F Events 34-13 Event Class - Diagnostic Events for Modules 34-15 Event Class - Standard User Events34-17 Event Classes A and B - Free User Events 34-19 EVENTN 13-10 Events and Event ID 34-1 Example of the PULSEGEN Block: 27-26 Expansion rack failure 32-2 External error 32-2 F FB 12 BSEND 21-15 FB 13 BRCV 21-19 FB 15 PUT 21-23 FB 20 GETIO 18-2 FB 21 SETIO 18-3 FB 22 GETIO_PART 18-4 FB 23 SETIO_PART 18-6 FB 63 "TSEND" 23-26 FB 64 "TRCV" 23-29, 23-30, 23-31 System Software for S7-300/400 System and Standard Functions - Volume 2/2 A5E00739858-01 Index FB 65 "TCON" 23-21 FB 66 "TDISCON" 23-24 FB 67 "TUSEND" 23-33 FB 68 "TURCV" 23-36, 23-37 FB USEND 21-9 FB URCV 21-12 FBs for Cyclical Access to User Data Introduction 18-1 FC1 26-6 FC10 26-13 FC11 26-20 FC12 26-10 FC13 26-13 FC14 26-11 FC15 26-14 FC16 26-24 FC17 26-20 FC18 26-11 FC19 26-14 FC2 26-19 FC20 26-21 FC21 26-21 FC22 26-16 FC23 26-12 FC24 26-15 FC25 26-16 FC26 26-22 FC27 26-17 FC28 26-12 FC29 26-15 FC3 26-6 FC30 26-25 FC31 26-22 FC32 26-23 FC33 26-8 FC34 26-8 FC35 26-9 FC36 26-18 FC37 26-25 FC38 26-26 FC39 26-26 FC4 26-19 FC5 26-24 FC6 26-7 FC62 21-49 FC7 26-7 FC8 26-8 FC9 26-10 FILL 3-6 Filter 11-1 errors 11-1, 11-2, 11-4, 11-5, 11-6 FIND 26-20 Free user events: 34-19 Frequency Meter (CPU 312) 30-3 Further Error Information for SFCs 55 to 59: 7-17 Fuse tripped 32-2 G GADR_LGC: 15-1 GD packet 19-1, 19-2, 19-3, 19-4, 19-5, 19-6 Programmed Acceptance with SFC 61 19-4 sending with SFC 60 19-1 GD_RCV 19-4 GD_SND: 19-1 GE_DT 26-10 GE_STRNG 26-13 Generating a Data Block 3-16 with SFC 82 "CREA_DBL 3-16 Generating a Data Block in the Load Memory with SFC 82 "CREA_DBL" 3-16 Generating a Pulse with SFB "TP" 25-1 Generating Acknowledgeable and Permanently Acknowledged Block Related Messages with SFC 107 "ALARM_DQ" 24-33 Generating Acknowledgeable and Permanently Acknowledged Block Related Messages with SFC 108 "ALARM_D" 24-33 Generating Acknowledgeable BlockRelated Messages with SFC 17 "ALARM_SQ" and Permanently Acknowledged Block-Related Messages with SFC 18 "ALARM_S" 24-29 Generating an Off Delay with SFB "TOF" 25-4 Generating an On Delay with SFB "TON" 25-3 Generating Block Related Messages without Acknowledgement Display with SFB 31 "NOTIFY_8P" 24-7 Generating Block-Related Messages with Accompanying Values for Eight Signals with SFB 35 "ALARM_8P" 24-13 Generating Block-Related Messages with Acknowledgment with SFB 33 "ALARM" 24-10 Generating Block-Related Messages without Acknowledgment with SFB 36 "NOTIFY" 24-5 Generating Block-Related Messages without Associated Values for Eight Signals with SFB 34 "ALARM_8" 24-16 GEO_LOG 15-6 GET 21-26 GETIO 18-2 GETIO_PART 18-4 Ground error 32-5 digital input module 32-4 Groups of DP slaves 16-4 synchronizing 16-4 System Software for S7-300/400 System and Standard Functions- Volume 2/2 A5E00739858-01 Index-5 Index GT_DT 26-11 GT_STRNG 26-14 H H/F events: 34-13 H_CTRL 29-1 Handling Runtime meters with SFC 101 "RTM" 6-2 Handling Time-Delay Interrupts 10-1 Handling Time-of-Day Interrupts 9-1 Hardware interrupt 12-1, 32-2 lost: 32-2 Hardware interrupt OBs 1-14 Hardware Interrupt Organization Blocks (OB40 to OB47) 1-14 How SFBs for S7 Communication React to Problems 21-7 How the SFBs for Generating BlockRelated Messages React to Problems: 24-25 I I/O access error 11-6 when reading 11-5, 11-6 when writing 11-5, 11-6 I/O Access Error Organization Block (OB122) 1-64 I/O Redundancy Error OB (OB70) 1-23 I_ABORT: 22-21 I_GET: 22-19 I_PUT: 22-17 I_STRNG 26-24 Identifying the Bus Topology of a DP Master System 13-23 Implementing a Sequencer with SFB 32 "DRUM" 14-10 INFO1 13-10 INFO2 13-11, 13-12, 13-13 Initializing a memory area 3-6 with SFC 21 FILL 3-6 Initializing a Memory Area with SFC 21 "FILL" 3-6 Initiating a Hot Restart on a Remote Device with SFB 21 "RESUME" 21-40 Initiating a Warm or Cold Restart on a Remote Device with SFB 19 "START" 21-36 INSERT 26-20 Insert/Remove OB (OB 83) 1-36 Integrated Counter Function: 30-1 Integrated Frequency Meter Function: 30-3 Interface DB 17-1, 17-2 Internal error 32-2 Interrupt 1-10, 1-11, 1-12, 1-13, 1-16, 12-1, 12-3, 12-4, 12-5, 12-7, 12-8 classes 12-1, 12-2 Index-6 cyclic (OB35): 1-12 delaying with SFC 41 DIS_AIRT 12-7 disabling with SFC 39 DIS_IRT 12-3 DPV1 Interrupt 1-16 enabling with SFC 40 EN_IRT 12-5 enabling with SFC 42 EN_AIRT 12-8 Interrupt Class 1-36 Interrupt OBs 1-34 diagnostic interrupts: 1-34 time-of-day interrupts 1-7 Interrupt Status 33-21 Interrupts 1-6, 1-14, 1-15, 1-17, 1-18, 1-36 DPV1 Interrupt 1-17 DPV1-Interrupt 1-18 hardware interrupt OBs 1-14, 1-15 Insert/Remove Interrupt 1-36 Manufacturer specific interrupt 1-18 Status Interrupt 1-16 time-delay .1-10, 1-11 Update Interrupt 1-17 Introduction to Generating Block-Related Messages with SFBs: 24-1 Introduction to Generating Block-Related Messages with SFCs: 24-26 IOID 7-6, 7-7, 7-8, 7-11, 7-13 L LADDR 7-6, 7-7, 7-8, 7-9, 7-11, 7-13 LE_DT 26-11 LE_STRNG 26-14 LEFT 26-21 LEN 26-21 LGC_GADR 15-3 LIMIT 26-16 List of SFBs Sorted Alphabetically: 35-9 Sorted Numerically: 35-7 List of SFCs Sorted Alphabetically: 35-4 Sorted Numerically: 35-1 Local data of the OBs: 33-39 LOG_GEO 15-8 Logical address 15-1, 15-5 of a channel querying 15-1 of a module querying all addresses 15-5 LOW_LIMIT 3-8 LT_DT 26-12 LT_STRNG 26-15 M M short circuit .32-4, 32-5 analog input module 32-4 analog output module 32-4 Manufacturer specific Interrupt 1-18 System Software for S7-300/400 System and Standard Functions - Volume 2/2 A5E00739858-01 Index Masking 11-1 errors 11-1 Masking Synchronous Errors 11-1 Masking Synchronous Errors with SFC 36 "MSK_FLT" 11-7 Master clock: 5-1 MAX 26-16 Meaning of the Parameters REQ RET_VAL and BUSY with Asynchronous SFCs 2-6 Measuring range exceeded 32-4 analog input module 32-4 Memory areas: 33-10 Memory card 32-2 MID 26-22 MIN 26-17 MODE 12-3, 12-5 Mode changes 34-8 Module .32-2, 32-3, 33-4, 33-6 fault 32-2 identification: 33-6 type ID 33-4 Module diagnostic data 33-65 Module diagnostic data: 33-66 Module diagnostic information: 33-63 Module slot 15-3 of a logical address querying 15-3 Module status information: 33-45 MP_ALM 4-3 MSK_FLT 11-7 Multicomputing interrupt 12-2 Multicomputing Interrupt Organization Block (OB60) 1-19 N NE_DT 26-12 NE_STRNG 26-15 No auxiliary voltage 32-2 No front connector 32-2 No load voltage 32-4, 32-5 analog output module 32-4 No parameter assignment 32-2 NOTIFY: 24-5 NOTIFY_8P 24-7 NR 6-4, 6-5, 6-6 O OB 10 to OB 17 1-6 OB 20 to OB 23 1-10 OB 55 1-16 OB 56 1-17 OB 73 1-28 OB 83 1-36, 1-37 OB 88 1-52 OB for manufacturer specific interrupts (OB57) 1-18 OB) 1-36 OB_NR 9-4, 9-5, 9-6, 9-7, 10-3, 10-4, 10-5, 12-3, 12-4, 12-5 OB_RT 13-14 OB100 OB101 and OB102 1-56 OB121 1-61, 1-64 OB30 to OB38 1-12 OB40 to OB47 1-14 OB57 1-18 OB60 1-19, 1-20 OB60: 4-3 OB70 1-23 OB72 1-25, 1-27 OB80 1-29 OB81 1-32 OB82 1-34 OB84 1-40 OB85 1-41 OB86 1-45, 1-46, 1-47 OB87 1-50 Off delay 25-4 generating: 25-4 On delay 25-3 generating: 25-3 Online Help v Open Communication 23-1, 23-2, 23-5, 23-9, 23-11, 23-12 Assigning Parameters for Communications Connections with TCP native and ISO on TCP 23-5 Assigning Parameters for the Local Communications Access Point with UDP 23-9 Examples of Parameters for Communications Connections 23-12 Function of FBs 23-2 Overview 23-1 Structure of the Address Information for the Remote Partner with UDP 23-11 Open Communication via Industrial Ethernet 23-1 Organisation blocks (OBs) 1-6 time-of-day interrupt OBs (OB10 bis OB17) 1-6 Organization block (OB) 1-10, 1-12, 1-16, 1-17, 1-18, 1-19, 1-29, 1-32, 1-34, 1-41, 1-52, 1-54, 1-61, 1-64 background OB (OB90) 1-54 multicomputing interrupt OB (OB60) 1-19 OB for manufacturer specific interrupts (OB57) 1-18 OB121: 1-61 OB122 1-64, 1-65 System Software for S7-300/400 System and Standard Functions- Volume 2/2 A5E00739858-01 Index-7 Index Processing Interrupt OB (OB 88) 1-52 Status Interrupt OB (OB 55) 1-16 Time-delay interrupt OBs (OB20 to OB23) 1-10 types of OB35 1-12 OB80 1-29 OB81 1-32 OB82 1-34 OB85 1-41 Update Interrupt OB (OB 56) 1-17 Organization Block (OB) 1-36 Insert/Remove OB (OB83) 1-36 Organization blocks (OBs) 1-34, 1-40, .1-41, 1-45, 1-50, 1-56 communication error OB (OB87) 1-50 complete restart OB (OB100) 1-56 CPU hardware fault OB (OB84) 1-40 diagnostic interrupt OB (OB82) 1-34 priority class error OB (OB85) 1-41 rack failure OB (OB86) 1-45 restart OB (OB101) 1-56 startup OBs (OBs 100 and 101) 1-56 Overview 20-8, 26-1 Overview of the Organization Blocks (OBs) 1-1 Overview of the Structure of Diagnostic Data 32-1 Overview of the System Status Lists (SSL) 33-1 P P sh 32-4 P short circuit 32-4, 32-5 analog input module 32-4 analog output module 32-4 Parameter 2-7, 2-8, 3-1, 3-2, 3-6, 3-7, 3-8, 3-9, 4-2, 5-2, 6-4, 6-5, 6-6, 7-6, 7-7, 7-8, 7-11, 7-13, 7-14, 7-17, 9-4, 9-5, 9-6, 9-7, 10-3, 10-4, 10-5, 11-7, 11-8, 11-9, 12-3, 12-4, 12-5, 12-6, 13-10, 13-11, 13-12 ACCFLT_ESR: 11-9 ACCFLT_Masked: 11-8 ACCFLT_MASKED: 11-7 ACCFLT_QUERY 11-9 ACCFLT_RESET_MASK 11-8 ACCFLT_SET_MASK 11-7 BLK: 3-6 BUSY with SFCs 51 and 55 to 59 2-6 BVAL 3-6, 3-7 CDT: 5-2 COUNT 3-8 CQ 6-6 CV 6-6 DB_NUMBER 3-8 Index-8 DSTBLK: 3-1 DTIME 10-3 EVENTN 13-11, 13-12, 13-13 INFO1 13-11, 13-12, 13-13 INFO2: 13-10 IOID 7-6, 7-7, 7-8, 7-9, 7-11, 7-13, 7-16 LADDR 7-6, 7-7, 7-11, 7-13, 7-16 LADDR: 7-8 LOW_LIMIT 3-8 MODE 12-3, 12-4, 12-5, 12-6 NR 6-4, 6-5, 6-6 OB_NR 9-4, 9-7, 10-3, 10-4, 12-5, 12-6 OB_NR: 9-5, 9-6, 10-5, 12-3 PERIOD: 9-4 PRGFLT_ESR 11-9 PRGFLT_MASKED 11-7, 11-8 PRGFLT_QUERY 11-9 PRGFLT_RESET_MASK 11-8 PRGFLT_SET_MASK 11-7 PV: 6-4 RECNUM 7-6, 7-11, 7-13 RECNUM: 7-7 RECORD: 7-6, 7-11 REQ with asynchronous SFCs 2-6 RET_VAL with SFCs 51 and 55 to 59: 2-6 SDT 9-4 SEND 13-10, 13-11, 13-12 SRCBLK 3-2 STATUS 10-4 STATUS: 9-7 UP_LIMIT 3-8 write default parameter 7-7 WT: 4-2 Parameter assignment error 32-4 analog input module 32-4 analog output module 32-4 digital input module 32-4 Parameters 5-2, 6-7, 7-2, 7-11 of the signal modules 7-1 SFC READ_CLK 5-2 SFC 58 WR_REC 7-11 SFC 64 TIME_TICK: 6-7 PARM_MOD 7-8 PERIOD 9-4 PN_DP 17-6 PN_IN 17-4 Possible Partial System Status Lists 33-5 Power supply 32-2 failed 32-2 Power supply error 12-2 Power Supply Error Organization Block (OB81) 1-32 PRGFLT_ESR 11-9 PRGFLT_MASKED 11-7, 11-8 PRGFLT_QUERY 11-9 PRGFLT_RESET_MASK 11-8 System Software for S7-300/400 System and Standard Functions - Volume 2/2 A5E00739858-01 Index PRGFLT_SET_MASK 11-7 PRINT 21-33 Priority class .1-9, 1-10, 1-12, 1-25, 1-30, 1-31, 1-32, 1-34, 1-41, 1-52, 1-53, 1-61, 1-64, 1-65, 11-9 types of OB OB121 1-61 OB122 1-64 OB35 1-12 OB80 1-29 OB81 1-32 OB82 1-34 OB85 1-41 Priority class error OB 1-41 Priority Class Error Organization Block (OB85) 1-41 Priority class: 1-14, 1-19, 1-23, 1-40, 1-45, 1-50, 1-54, 1-56, 13-1, 34-8 Processing Interrupt OB (OB 88) 1-52 Processor failure 32-2 PROFInet Component 17-4, 17-5, 17-6 Updating Interconnections 17-6 Updating the Inputs of the User Program Interface 17-4 Updating the Outputs of the PROFInet Interface 17-5 PROFInet Interface 17-1, 17-2 Program error 12-2 Programmed Acceptance of a Received GD Packet with SFC 61 "GD_RCV" 19-4 Programming 1-12, 1-29, 1-32, 1-34, 1-41, 1-61, 1-64 types of OB OB121 1-61 OB122 1-64 OB35 1-12 OB80: 1-29 OB81: 1-32 OB82 1-34 OB85: 1-41 Programming error 11-1 Programming error filter 11-1 Programming Error Organization Block (OB121) 1-61 Pulse 25-1, 25-2 generating: 25-1 Pulse duration modulation 27-15, 27-16, 27-24 Pulse Generation with SFB 43 "PULSEGEN" 27-15 PULSEGEN 27-16, 27-17, 27-22 PUT 21-23 PV 6-4 Q QRY_DINT 10-4 QRY_TINT 9-7 Querying a Time-Delay Interrupt with SFC 34 "QRY_DINT" 10-4 Querying a Time-of-Day Interrupt with SFC 31 "QRY_TINT" 9-7 Querying all Logical Addresses of a Module with SFC 50 "RD_LGADR" 15-5 Querying the Acknowledgment Status of the Last ALARM_SQ Entering Event Message with SFC 19 "ALARM_SC" 24-32 Querying the Logical Base Address of a Module with SFC "GADR_LGC" 15-1 Querying the Module Slot Belonging to a Logical Address with SFC 49 "LGC_GADR" 15-3 Querying the Status of a Remote Partner with SFB 22 "STATUS" 21-43 Querying the Status of the Connection Belonging to a SFB Instance with SFC 62 "CONTROL" 21-47 R R_STRNG 26-25 Rack failure 1-45, 1-46, 12-2 Rack Failure Organization Block (OB86) 1-45 RALRM 8-5 RAM error 32-2 RD_DPAR 7-18 RD_DPARA 7-5 RD_LGADR: 15-5 RD_REC 7-13 RD_SINFO 13-1 RDREC 8-1 RDSYSST 13-4, 33-1 RE_TRIGR 4-1 Read a Part of the Inputs of a DP Standard Slave/PROFINET IO Device with FB 22 "GETIO_PART" 18-4 Read All Inputs of a DP Standard Slave/PROFINET IO Device with FB 20 "GETIO" 18-2 Read Data from a Remote CPU with SFB/FB 14 "GET" 21-26 READ_CLK 5-2 READ_DBL 3-19 READ_ERR 11-9 READ_RTM 6-6 READ_SI 24-36 Reading 13-4, 16-19 Consistent Data of a DP Standard Slave/PROFINET IO Device 16-19 diagnostic data of a DP slave 16-15 System Software for S7-300/400 System and Standard Functions- Volume 2/2 A5E00739858-01 Index-9 Index with SFC 51 RDSYSST 13-4 Reading a Data Record with SFC 59 "RD_REC" 7-13 Reading a Runtime Meter with SFC "READ_RTM" 6-6 Reading a System Status List or Partial List with SFC 51 "RDSYSST" 13-4 Reading Data from a Communication Partner outside the Local S7 Station with SFC 67 "X_GET" 22-14 Reading Data from a Communication Partner within the Local S7 Station with SFC 72 "I_GET" 22-19 Reading data from a remote CPU with SFB/FB 14: 21-26 Reading Data Record with SFB 52 "RDREC" 8-1 Reading Defined Parameters with SFC 54 "RD_DPARM": 7-4 Reading Diagnostic Data of a DP Slave with SFC 13 "DPNRM_DG" (Slave Diagnostics) 16-15 Reading Dynamic System Resources with SFC 105 "READ_SI" 24-36 Reading from a Data Block in Load Memory with SFC 83 "READ_DBL" 3-19 Reading OB start information with SFC 13-1 Reading OB Start Information with SFC "RD_SINFO" 13-1 Reading Predefined Parameters with SFB 81 "RD_DPAR" 7-18 Reading Predefined Parameters with SFC 102 "RD_DPARA" 7-5 Reading the Error Register with SFC 38 "READ_ERR" 11-9 Reading the system status 13-4 with SFC 51 RDSYSST 13-4 Reading the system time 6-7 with SFC 64 TIME_TCK 6-7 Reading the System Time with SFC 64 "TIME_TCK" 6-7 Reading the time 5-2 with SFC READ_CLK 5-2 Reading the Time with SFC "READ_CLK" 5-2 Receiving an Interrupt from a DP Slave with SFB 54 "RALRM" 8-5 Receiving Data From A Communication partner And Filing Them In A Data Block 28-43 Receiving data from a communication partner and storing them in a data block (RK 512) 28-58 Receiving Data from a Communication Partner outside the Local S7 Station with SFC 66 "X_RCV" 22-8 Index-10 Receiving Data via UDP with FB 68 "TURCV" 23-36 Receiving Data with FB 64 "TRCV" 23-29 Receiving segmented data 21-19 with FB 13 21-19 with SFB 13 21-19 Receiving Segmented Data with SFB/FB 13 "BRCV" 21-19 Receiving the Status Change of a Remote Device with SFB 23 "USTATUS" 21-45 RECNUM 7-6, 7-7, 7-11, 7-13 Reconfiguring Modules 1-37 RECORD 7-6, 7-11, 7-12 Reference channel error 32-4 analog input module 32-4 Releasing Dynamic System Resources with SFC 106 "DEL_SI" 24-39 Remove/insert module interrupt 12-2 REPL_VAL: 3-15 REPLACE 26-22 Reserved Event Classes: 34-19 Resetting a Bit Field in the I/O Area with SFC 80 "RSET" 14-9 Restart 1-56, 1-57, 1-58, 1-59, 1-60, 21-40, 21-41, 21-42 initiating on a remote device 21-40 Restart (Warm start) 21-36 Restart (Warm start) or Complete Restart 21-36 Restart (Warmstart) or Complete restart on a remote device performing 21-36 RESUME: 21-40 Retriggering cycle time monitoring 4-1 with SFC 43 RE_TRIGR: 4-1 Retriggering Cycle Time Monitoring with SFC 43 "RE_TRIGR" 4-1 Return value .12-7, 12-8 SFC 41 DIS_AIRT: 12-7 SFC 42 EN_AIRT 12-8 RIGHT 26-23 RTM 6-2 Runtime meter 6-1, 6-4, 6-6 characteristics 6-1 range of values: 6-1 reading out with SFC READ_RTM 6-6 setting with SFC SET_RTM 6-4 Run-time meter 6-5 starting with SFC CTRL_RTM 6-5 stopping with SFC CTRL_RTM 6-5 Runtime Meters 6-1 System Software for S7-300/400 System and Standard Functions - Volume 2/2 A5E00739858-01 Index S S: 6-5 S5TI_TIM 26-8 SALRM 8-21 SB_DT_DT 26-8 SB_DT_TM 26-9 SDT 9-4 SEL 26-18 SEND 13-10 Sending a GD Packet with SFC 60 "GD_SND" 19-1 Sending an Interrupt to the DP Master with SFB 75 "SALRM" 8-21 Sending Archive Data with SFB 37 "AR_SEND" 24-18 Sending Data to a Communication Partner outside the Local S7 Station with SFC 65 "X_SEND" 22-7 Sending Data to a Printer with SFB 16 "PRINT" 21-29 Sending Data via UDP with FB 67 "TUSEND" 23-33 Sending Data with FB 63 "TSEND" 23-26 Sending segmented data 21-15 with FB 12 21-15 with SFB 12 21-15 Sending Segmented Data with SFB/FB 12 "BSEND" 21-15 Sequencer 14-10, 14-11 implementing: 14-10 SET_CLK: 5-1 SET_CLKS 5-4 SET_RTM 6-4 SET_TINT 9-4 SETIO 18-3 SETIO_PART 18-6 Setting a Bit Field in the I/O Area with SFC 79 "SET" 14-8 Setting a Time-of-Day Interrupt with SFC 28 "SET_TINT" 9-4 Setting the Runtime Meter with SFC "SET_RTM" 6-4 Setting the Time-of-Day and the TOD Status with SFC 100 "SET_CLKS" 5-4 Setting the TOD with SFC SET_CLK: 5-1 Setting the TOD with SFC "SET_CLK": 5-1 Setting the TOD: 5-1 SFB CTU 25-5 SFB CTD 25-6 SFB 12 BSEND 21-15 SFB 13 BRCV 21-19 SFB 14 GET 21-26 SFB 15 PUT 21-23 SFB 16 PRINT: 21-29 SFB 19 START 21-36 SFB CTUD 25-7 SFB 20 STOP 21-39 SFB 21 RESUME 21-40 SFB 22 STATUS 21-43 SFB 23 "USTATUS" .21-45, 21-46 SFB 23 USTATUS 21-45 SFB 29 (HS_COUNT) 30-1 SFB TP 25-1 SFB 30 (FREQ_MES) 30-3 SFB 31 NOTIFY_8P 24-7 SFB 32 DRUM 14-10 SFB 33 ALARM 24-10 SFB 34 ALARM_8 24-16 SFB 35 ALARM_8P 24-13 SFB 36 NOTIFY 24-5 SFB 37 AR_SEND 24-18 SFB 38 (HSC_A_B): 30-4 SFB 39 (POS): 30-5 SFB TON 25-3 SFB 41 CONT_C 27-1 SFB 42 CONT_S 27-9 SFB 43 PULSEGEN 27-15 automatic synchronization 27-17, 27-18 three-step control 27-19, 27-20, 27-23, 27-24, 27-25 three-step control asymmetrical 27-20 two-step control: 27-15 SFB 44 28-11 SFB 46 28-23 SFB 47 28-30 SFB 48 28-35 SFB 49 28-39 SFB TOF 25-4 SFB 52 RDREC 8-1 SFB 53 WRREC 8-3 SFB 54 RALRM 8-5 SFB 60 .28-40, 28-64 Additional Error Information 28-64 SFB 61 .28-43, 28-64 Additional Error Information 28-64 SFB 62 .28-46, 28-64 Additional Error Information 28-64 SFB 63 .28-48, 28-64 Additional Error Information 28-64 SFB 64 .28-52, 28-64 Additional Error Information 28-64 SFB 65 .28-58, 28-64 Additional Error Information 28-64 SFB 75 SALRM 8-21 SFB USEND 21-9 SFB 81 7-18 SFB URCV 21-12 SFB ANALOG 28-1 SFB COUNT 28-26 System Software for S7-300/400 System and Standard Functions- Volume 2/2 A5E00739858-01 Index-11 Index SFB DIGITAL 28-14 SFB FETCH RK 28-52 SFB FREQUENC 28-32 SFB PULSE 28-37 SFB RCV_PTP 28-43 SFB RES_RCVB 28-46 SFB SEND_PTP 28-40, 28-48 SFB SERVE_RK 28-58, 28-59 SFBs 21-2, 21-3, 21-5, 21-6, 21-7, 21-47 parameter classification 21-1 querying the status of a connection belonging to an SFB instance 21-47 reaction to startup 21-5 reactions to errors and faults 21-7 SFC SET_CLK: 5-1 SFC READ_CLK 5-2 parameters 5-2 SFC 10 DIS_MSG 24-20 SFC 100 SET_CLKS 5-4 SFC 101 RTM 6-2 SFC 102 RD_DPARA 7-5 SFC 103 DP_TOPOL 13-23 SFC 104 CiR 4-4 SFC 105 READ_SI 24-36 SFC 106 DEL_SI 24-39 SFC 107 ALARM_DQ 24-33 SFC 108 ALARM_D 24-33 SFC 11 DPSYC_FR 16-4 SFC 112 "PN_IN" 17-1, 17-4 Background Information 17-1 SFC 113 "PN_OUT" 17-1, 17-5 Background Information 17-1 SFC 114 "PN_DP" 17-1, 17-6 Background Information 17-1 SFC 12 D_ACT_DP 16-10 SFC 126 SYNC_PI 14-4 SFC 127 SYNC_PO 14-6 SFC 13 DPNRM_DG 16-15 SFC 14 DPRD_DAT 16-19 SFC 15 DPWR_DAT 16-22 SFC 17 ALARM_SQ 24-29 SFC 18 ALARM_S 24-29 SFC 19 ALARM_SC: 24-32 SFC SET_RTM 6-4 SFC 20 BLKMOV 3-1 SFC 21 FILL 3-6 SFC 22 CREAT_DB 3-8 error information 3-8 SFC 22 CREATE_DB 3-8 SFC 23 DEL_DB 3-10 error information 3-10 SFC 25 COMPRESS 3-13 SFC 26 UPDAT_PI 14-1 SFC 27 UPDAT_PO 14-3 SFC 28 SET_TINT 9-4 SFC 29 CAN_TINT 9-5 SFC CTRL_RTM 6-5 Index-12 SFC 30 ACT_TINT 9-6 SFC 31 QRY_TINT 9-7 SFC 32 SRT_DINT 10-3 SFC 33 CAN_DINT 10-5 SFC 34 QRY_DINT 10-4 error information 10-4 SFC 35 MP_ALM 4-3 SFC 36 MSK_FLT 11-7 SFC 37 DMSK_FLT 11-8 SFC 38 READ_ERR 11-9 SFC 39 DIS_IRT 12-3 SFC READ_RTM 6-6 SFC 40 EN_IRT 12-5 error information 12-5 SFC 41 DIS_AIRT 12-7 return value 12-7 SFC 42 EN_AIRT 12-8 error information 12-8 return value 12-8 SFC 43 RE_TRIGR 4-1 SFC 44 REPL_VAL 3-15 SFC 46 STP 4-1 SFC 46 TIME_TCK 6-7 SFC 47 WAIT 4-2 SFC 48 SNC_RTCB 5-3 SFC 49 LGC_GADR 15-3 SFC GADR_LGC 15-1 SFC 50 RD_LGADR 15-5 SFC 51 RDSYSST .13-4, 33-1 SFC 52 WR_USRMSG 13-10 SFC 55 WR_PARM 7-6 SFC 56 WR_DPARM 7-7 SFC 57 PARM_MOD 7-8 SFC 58 WR_REC 7-11 parameters 7-11 SFC 59 RD_REC 7-13 SFC RD_SINFO 13-1 SFC 60 GD_SND 19-1 SFC 61 GD_RCV 19-4 SFC 62 CONTROL 21-47 SFC 63 (AB_CALL) 31-1 SFC 64 TIME_TICK 6-7 parameters 6-7 SFC 65 X_SEND 22-7 SFC 66 X_RCV 22-8 SFC 67 X_GET 22-14 SFC 68 X_PUT 22-12 SFC 69 X_ABORT 22-16 SFC DP_PRAL: 16-1 SFC 70 15-6 SFC 71 15-8 SFC 72 I_GET 22-19 SFC 73 I_PUT 22-17 SFC 74 I_ABORT 22-21 SFC 78 "OB_RT" 13-14 SFC 79 SET 14-8 SFC 80 RSET 14-9 System Software for S7-300/400 System and Standard Functions - Volume 2/2 A5E00739858-01 Index SFC 82 CREA_DBL 3-16 SFC 83 READ_DBL 3-19 SFC 84 WRIT_DBL 3-21 SFC 85 CREA_DB 3-23 SFC 87 C_DIAG 13-18 SFC EN_MSG 24-22 SFC 90 H_CTRL 29-1 Shadow Memory 17-1, 17-2 SIGN: 10-3 Slave clocks 5-3 synchronization of: 5-3 SNC_RTCB 5-3 SRCBLK 3-1 SRT_DINT 10-3 SSL ID W#16#xy25 - Assignment of Process Image Partitions to OBs 33-23 SSL_HEADER: 13-4 SSL-ID 33-4 SSL-ID W#16#00B1 - Module Diagnostic Information 33-63 SSL-ID W#16#00B2 - Diagnostic Data Record with Physical Address 33-65 SSL-ID W#16#00B3 - Module Diagnostic Data with Logical Base Address 33-66 SSL-ID W#16#00B4 - Diagnostic Data of a DP Slave: 33-67 SSL-ID W#16#0x75 - Switched DP Slaves in the H System 33-41 SSL-ID W#16#0x94 - Status Information for Rack/Station 33-55 SSL-ID W#16#xy11 - Module Identification 33-6 SSL-ID W#16#xy12 - CPU Characteristics 33-7 SSL-ID W#16#xy13 - Memory Areas 33-10 SSL-ID W#16#xy14 - System Areas 33-11 SSL-ID W#16#xy15 - Block Types 33-13 SSL-ID W#16#xy19 - Status of the Module LEDs: 33-14 SSL-ID W#16#xy1C - Component Identification 33-16 SSL-ID W#16#xy22 - Interrupt Status 33-21 SSL-ID W#16#xy32 - Communication Status Data 33-26 SSL-ID W#16#xy37 - Ethernet - Details of a Module 33-33 SSL-ID W#16#xy71 - H CPU Group Information: 33-36 SSL-ID W#16#xy74 - Status of the Module LEDs 33-39 SSL-ID W#16#xy90 - DP Master System Information 33-43 SSL-ID W#16#xy91 - Module Status Information 33-45 SSL-ID W#16#xy92 - Rack / Station Status Information: 33-51 SSL-ID W#16#xy95 - Extended DP Master System Information 33-57 SSL-ID W#16#xy96 - PROFINET IO and PROFIBUS DP Module Status Information 33-59 SSL-ID W#16#xyA0 Diagnostic Buffer 33-62 Standard OB events: 34-3 Standard user events: 34-17 START .21-36, 21-37 Starting a Time-Delay Interrupt with SFC 32 "SRT_DINT" 10-3 Starting and Stopping a Runtime Meter with SFC "CTRL_RTM" 6-5 Startup 1-56, 1-57, 1-58, 1-59, 1-60 Startup Behavior of the SFBs for Generating Block-Related Messages: 24-24 Startup Organization Blocks (OB100 OB101 and OB102) 1-56 Startup Routine of SFBs for Configured S7 Connections 21-5 STATUS 9-7, 10-4, 21-43, 21-44 Status Interrupt 1-16 Status Interrupt OB (OB 55) 1-16 Status of a connection S7-300 21-49 Status of a remote partner 21-43 querying: 21-43 STEP 1-12, 1-29, 1-32, 1-34, 1-41, 1-42, 1-61, 1-64 types of OB OB121 1-61 OB122 1-64 OB35 1-12 OB80 1-29 OB81 1-32 OB82 1-34 OB85 1-41 Step Control with SFB 42/FB 42 "CONT_S" 27-9 STOP .21-39, 21-40 changing a remote device to: 21-39 Stop events 34-8 STP 4-1 STRNG_DI 26-25 STRNG_I 26-26 STRNG_R 26-26 Structure of a Partial SSL List: 33-3 Structure of Channel-Specific Diagnostic Data 32-4 Substitute value 3-15 writing to ACCU with SFC 44 REPL_VAL 3-15 Switched DP Slaves 33-41 SYNC_PI 14-4 SYNC_PO 14-6 Synchronization System Software for S7-300/400 System and Standard Functions- Volume 2/2 A5E00739858-01 Index-13 Index Clock: 5-1 Synchronization: 5-1 Synchronizing Groups of DP Slaves with SFC 11 "DPSYC_FR" 16-4 Synchronizing Slave Clocks with SFC 48 "SNC_RTCB" 5-3 Synchronous Cycle Interrupt OBs (OB61 to OB 64) 1-21 Synchronous errors 1-61, 1-64, 11-1, 11-7, 11-8 masking with SFC 36 MSK_FLT 11-7 OB121 1-61 OB122 1-64 unmasking with SFC 37 DMSK_FLT 11-8 Synchronous errors: 34-4 System areas: 33-11 System data 33-1 System Diagnostics: 13-1 System status list 33-1, 33-5 partial lists: 33-5 T TCON 23-23 TDISCON 23-24 Technical Data of the IEC Functions 26-3 Technology Synchronization Interrupt OB (OB 65) 1-22 Temporary variables (TEMP) 1-64 required for OBs: 1-64 Terminating a Connection with FB 66 "TDISCON" 23-24 Testing a Data Block with SFC 24 "TEST_DB": 3-12 Time error 12-2 Time Error Organization Block (OB80) 1-29 TIME_TCK 6-7 Time-delay interrupt 10-1, 10-2, 10-3, 10-4, 10-5, 12-1 canceling with SFC 33 CAN_DINT 10-5 conditions for the call 10-1 querying with SFC 34 QRY_DINT 10-4 situations affecting 10-1 starting in the startup OB 10-1 starting with SFC 32 SRT_DINT 10-3 Time-delay interrupt OBs (OB 20 to OB 23) 1-10 Time-delay interrupts 1-10 Time-of-Day Functions 26-6, 26-7, 26-8, 26-9 Time-of-day interrupt 9-1, 9-2, 9-3, 9-4, .9-5, 9-6, 9-7, 12-1 activating with SFC 30 ACT_TINT 9-6 canceling with SFC 29 CAN_TINT 9-5 cold restart 9-2 conditions for the call: 9-1 execution and reaction: 9-2 Index-14 OB 9-1 querying with SFC 31 QRY_TINT 9-7 setting with SFC 28 SET_TINT 9-4 situations affecting 9-2 warm restart 9-2 Time-of-day interrupt OBs (OB 10 to OB 17) 1-6 Time-Of-Day: 5-1 Timer number error 11-1 TOF 25-4 TON 25-3 TP 25-1 Transferring a Substitute Value to Accumulator with SFC 44 "REPL_VAL" 3-15 Transferring parameters 7-6, 7-7 with SFC 55 WR_PARM 7-6 with SFC 56 WR_DPARM 7-7 Transmitting the entire range or a section of a data block to a communication partner 28-40, 28-48 Transmitting the entire range or a section of a data block to a communication partner (RK 512) 28-52 TRCV 23-29 Triggering a Hardware Interrupt on the DP Master with SFC "DP_PRAL" 16-1 Triggering a Multicomputing Interrupt with SFC 35 "MP_ALM" 4-3 TSEND 23-26 TURCV 23-36 TUSEND 23-33 Type ID 33-4 of a module: 33-4 U Uncoordinated receiving of data 21-12 with FB 21-12 with SFB 21-12 Uncoordinated Receiving of Data with SFB/FB "URCV" 21-12 Uncoordinated sending of data 21-9 with FB 21-9 with SFB 21-9 Uncoordinated Sending of Data with SFB 8/FB "USEND" 21-9 Uninterruptible Copying of Variables with SFC 81 "UBLKMOV": 3-4 Unmasking 11-1 error events 11-1 Unmasking Synchronous Errors with SFC 37 "DMSK_FLT" 11-8 Up / Down Count with SFB "CTUD" 25-7 Up / down count: 25-7 UP_LIMIT 3-8 UPDAT_PI: 14-1 System Software for S7-300/400 System and Standard Functions - Volume 2/2 A5E00739858-01 Index UPDAT_PO: 14-3 Update Interrupt 1-17 Update Interrupt OB (OB 56) 1-17 Updating DP Interconnections 17-6 Updating the process image input table14-1 Updating the Process Image Input Table with SFC 26 "UPDAT_PI" 14-1 Updating the process image output table 14-3 Updating the Process Image Output Table with SFC 27 "UPDAT_PO" 14-3 Updating the Process Image Partition Input Table in a Synchronous Cycle with SFC 126 "SYNC_PI" 14-4 Updating the Process Image Partition in a Synchronous Cycle with SFC 127 "SYNC_PO" 14-6 URCV 21-12 USEND 21-9 User information 32-2 User memory 3-13 compressing with SFC 25 3-13 USTATUS 21-45 V Variable declaration table 1-12, 1-29, 1-61, 1-64 for OB121 1-61 for OB122 1-64 for OB35 1-12 for OB80 1-29 W WAIT 4-2 Wire break 32-4, 32-5 analog input module 32-4 analog output module 32-4 Work Memory Requirements of the S7 Communication 21-51 WR_DPARM 7-7 WR_PARM 7-6 WR_REC 7-11 WR_USRMSG 13-10 WRIT_DBL 3-21 Write a Part of the Outputs of a DP Standard Slave/PROFINET IO Device with FB 23 "SETIO_PART" 18-6 Write All Outputs of a DP Standard Slave/PROFINET IO Device with FB 21 "SETIO" 18-3 Write error 11-6 data block 11-6 instance block 11-1 Writing a Data Block In Load Memory with SFC 84 "WRIT_DBL" 3-21 Writing a Data Record with SFB 53 "WRREC" 8-3 Writing a Data Record with SFC 58 "WR_REC" 7-11 Writing a User-Defined Diagnostic Event to the Diagnostic Buffer with SFC 52 "WR_USMSG" 13-10 Writing and Reading Data Records 7-1 Writing Consistent Data to a DP Standard Slave/PROFINET IO Device with SFC 15 "DPWR_DAT" 16-22 Writing Data to a Communication Partner outside the Local S7 Station with SFC 68 "X_PUT" 22-12 Writing Data to a Communication Partner within the Local S7 Station with SFC 73 "I_PUT" 22-17 Writing data to a remote CPU with SFB/FB 15 21-23 Writing Data to a Remote CPU with SFB/FB 15 "PUT" 21-23 Writing Default Parameters with SFC 56 "WR_DPARM" 7-7 Writing Dynamic Parameters with SFC 55 "WR_PARM" 7-6 WRREC 8-3 WT 4-2 X X_ABORT: 22-16 X_GET: 22-14 X_PUT: 22-12 X_RCV: 22-8 X_SEND: 22-7 System Software for S7-300/400 System and Standard Functions- Volume 2/2 A5E00739858-01 Index-15 Index Index-16 System Software for S7-300/400 System and Standard Functions - Volume 2/2 A5E00739858-01 ... and Standard Functions - Volume 1/ 2 A5E0 070 9 32 7 - 01 Contents 10 SFCs for Handling Time-Delay Interrupts 10 .1 10 .2 10 .3 10 .4 11 12 12 .3 12 .4 12 .5 13 .5 13 .6 13 .7 14 14 .4 14 .5 14 .6 14 .7 15 15 .2 15 .3. .. System and Standard Functions - Volume 1/ 2 A5E0 070 9 32 7 - 01 Contents Organization Blocks 1. 1 1. 2 1. 3 1. 4 1. 5 1. 6 1. 7 1. 8 1. 9 1. 10 1. 11 1 . 12 1. 13 1. 14 1. 15 1. 16 1. 17 1. 18 1. 19 1. 20 1. 21 1 .22 1. 23 ... Functions A5E0 070 9 32 7 - 01 xi Contents 16 SFCs for Distributed I/Os or PROFINET IO 16 .1 16 .2 16 .3 16 .4 16 .5 16 .6 17 17 .3 17 .4 18 17 -3 Background Information on SFCs 11 2, 11 3 and 11 4 17 -3 Updating

Ngày đăng: 08/08/2014, 01:22

Từ khóa liên quan

Mục lục

  • Title

  • Preface

  • Contents

  • 1 Organization Blocks

    • 1.1 Overview of the Organization Blocks (OBs)

    • 1.2 Program Cycle Organization Block (OB1)

    • 1.3 Time-of-Day Interrupt Organization Blocks ( OB10 to OB17)

    • 1.4 Time-Delay Interrupt Organization Blocks ( OB20 to OB23)

    • 1.5 Cyclic Interrupt Organization Blocks (OB30 to OB38)

    • 1.6 Hardware Interrupt Organization Blocks ( OB40 to OB47)

    • 1.7 Status Interrupt OB (OB 55)

    • 1.8 Update Interrupt OB (OB 56)

    • 1.9 Manufacturer Specific Interrupt OB (OB57)

    • 1.10 Multicomputing Interrupt Organization Block (OB60)

    • 1.11 Synchronous Cycle Interrupt OBs (OB 61 to OB 64)

    • 1.12 Technology Synchronization Interrupt OB (OB 65)

    • 1.13 I/O Redundancy Error OB (OB70)

    • 1.14 CPU Redundancy Error OB (OB72)

    • 1.15 Communication Redundancy Error OB (OB73)

    • 1.16 Time Error Organization Block (OB80)

    • 1.17 Power Supply Error Organization Block (OB81)

Tài liệu cùng người dùng

Tài liệu liên quan