STEP 7 Function STEP 7 blocks STEP 7 files all user-written programs and all the data required by those programs in blocks. The possibility of calling other blocks within one block, as though they were subroutines, enables the structuring of the user program. This increases considerably the organizational clarity, the comprehensibility and the ease of maintenance of PLC programs. The following types of blocks are available: Organization blocks (OBs) control program execution. OBs are divided into classes (e.g., time-driven, alarm-driven), independently of the triggering event. These classes have levels of priority. Depending on their respective priority levels, one can interrupt another. When an OB is started, detailed information about the event initiating the start is provided. This information can be evaluated in the user-written program. Function blocks (FBs) contain the actual user program. Function blocks can be supplied with different data each time they are called (he so-called instance). These data, as well as internal variables (e.g., for intermediate values) and results are stored in the assigned instance-data block and are automatically managed by the system. When an FB/SFB is called, instance data blocks (instance DBs) are assigned to the block. They are automatically generated when these blocks are compiled. The user can access these instance data (symbolically as well, of course) from any point in his user program or from an HMI system. Functions (FCs) contain program routines for frequently used functions. Every function has a fixed function value (a number of initial parameters are possible, in addition to the IEC standard). The output parameters must be processed immediately after the call. Thus functions do not require any instance-data blocks. Page 1791 Mar 2008 Siemens ITS
Data blocks (DBs) are data areas for storing user data. In addition to the data that is assigned in each case to a function block (instance data), global data can be defined and can be used by any of the software modules (e.g., for recipes). An elementary or structured data type can be assigned to the components of a data block. Elementary data types are, for example, BOOL, REAL or INTEGER. Structured data types (fields and structures) comprise elementary data types (e.g. a recipe). The data in a data block can be addressed symbolically. This facilitates the programming and the readability of the program. System function blocks (SFBs); function blocks (see above) that are integrated in the CPU's operating system, e.g. SEND, RECEIVE, controller. The variables of the SFBs are also filed in IDBs. System functions (SFCs); functions (see above) that are integrated in the CPU's operating system, e.g., time functions, block transfer. System data blocks (SDBs) are data for the CPU's operating system containing the system settings, e.g., module parameters. Tools SIMATIC Manager The SIMATIC Manager manages all data belonging to an automation project, regardless of the target system (SIMATIC S7, SIMATIC C7 or SIMATIC WinAC) on which they are implemented. Page 1792 Mar 2008 Siemens ITS
It provides a common entry point for all SIMATIC S7, C7 or WinAC tools. The SIMATIC software tools that are necessary for processing the selected data are automatically started by SIMATIC Manager. Symbol Editor With the tool Symbol Editor all global variables (in contrast to the local formal parameters that are declared when the blocks are programmed) are managed. The following functions are available: Definition of symbolic designations and comments for the process signals (inputs/outputs), flags and blocks Sorting functions Data exchange with other Windows programs. The symbol charts that are generated when this tool is used are available to all applications. Changes to a symbol parameter are therefore automatically recognized by all tools. Hardware configuration The tool Hardware Configuration is used for configuring and parameterizing the hardware used for an automation project. The following functions are available: Configuration of the automation system Racks are selected from an electronic catalog and the selected modules are assigned to the Page 1793 Mar 2008 Siemens ITS
required slots in the racks. The configuration of the distributed I/Os is done in the same way as the configuration of the non-distributed I/Os; channel-granular I/O modules are also supported. CPU parameter assignment: Properties such as restart characteristics and cycle-time monitoring can be set menu-driven. multicomputing is supported. The entered data are filed in system data blocks in the CPU. Module parameter assignment: The user can specify all the adjustable parameters of the modules in input screen forms. Adjustments via DIP switches become unnecessary. Parameterization of hardware modules occurs automatically during the CPU's acceleration. Thus, a change of a module can be made without another parameterization. Function module (FM) and communications processor (CP) parameter assignment: This parameterization also occurs within the hardware configuration in the same way as the parameterization of the other modules. For this parameterization hardware-module-specific screen forms and rules are provided for each FM and CP (is included in the FM/CP functions package). The system prevents faulty inputs by offering only allowed entry options on the parameter assignment screen forms. System diagnostics System diagnostics offer the user an overview of the status of the automation system. The display can be in two different forms: Page 1794 Mar 2008 Siemens ITS
Display of text messages, which can be output directly and quickly Pixel-graphics display within the Hardware Config display, offering the following options: Display of general module information (e.g., order number, version, designation) and module status (e.g., faulty) Display of module faults (e.g., channel faults) of the central I/O and DP slaves Display of alarms from the diagnostics buffer For CPUs, additional information is displayed: Causes of malfunction during user program execution Display of cycle duration (longest, shortest and last cycle) Display of the reserved and free memory Capabilities and usage of MPI communication Display of the performance data (number of possible inputs/outputs, flags, counters, timers and blocks) Communication configuration Configuring and display of communication links Time-driven cyclic data transmission via MPI Selection of communication partners Entering of data source and data destination in a table. Generation of all system data blocks (SDBs) to be loaded and their complete transmission to all CPUs take place automatically. Event-driven data transmission: Definition of the communication links Selection of the communication function blocks (CFBs) from the integrated block Page 1795 Mar 2008 Siemens ITS
library Parameterization of the selected communication blocks in the customary programming language (e.g., LAD). Programming languages The well-proven programming languages Ladder (LAD), Function Block Diagram (FBD) and Instruction List (IL) are available for programming. Programs that comply with DIN EN 6.1131-3 can be created in the classical PLC programming languages Ladder Diagram (LAD) and Function Block Diagram (FBD). The user-friendly, pixel-graphics LAD and FBD editors support the programmer with: Uncomplicated and intuitive operation: The creation of ladder diagrams/function block diagrams is characterized by the user-friendliness familiar from PCs, such as drag and drop, cut and paste. Library of predefined complex functions (such as PID controllers) or user-specific standard solutions The Statement List (STL) textual programming language makes it possible for the user to create programs in which operating time and memory location are optimized and which are close to the hardware. When creating these programs, the programmer is supported by the following user-friendly editing functions: Page 1796 Mar 2008 Siemens ITS
Entry option in incremental mode and free text mode: the user can either have each input immediately checked incrementally for correctness, or create the complete program using only symbols in a text editor and subsequently have it translated by means of the appropriate symbol chart. Operation set The STEP 7 programming languages have a comprehensive set of instructions, similar to STEP 5. This allows even complex functions to be programmed easily (i.e., without having great programming knowledge) and quickly The following functions are provided: Binary logic (incl. edge evaluation) Word operation Timers/counters Comparison functions Conversion functions Shift/rotate Mathematical functions (incl. trigonometry, exponents, logarithms) Program control (branches, branch distribution, calls, Master Control Relays). Page 1797 Mar 2008 Siemens ITS
In addition, improved testing and service functions make programming easier: Setting breakpoints (only S7-400) Forcing of inputs/outputs (only S7-400) Rewiring Display of cross-references STEP 7 supports multicomputing with the S7-400 Status functions: Download and testing of blocks directly from the editor Status of several blocks at the same time Search functions: Specific locations within the program can be found quickly using search criteria (such as symbolic name, operand) (XRef). Online Help (F1) is available for all functions and blocks. Note: Screenshot views are available for the individual tools. Technical specifications Page 1798 Mar 2008 Siemens ITS
Storage/transport, min. 5 % Storage/transport, max. 95 %; At 25 C (no condensation) Vibrations Operation, checked according to IEC 60068-2-6 Yes; 10 to 58 Hz: Amplitude 0.075 mm; 58 to 500 Hz: Acceleration 9.8 m/s2 Transport tested checked to IEC 60068-2-6 Yes; (packed) 5 to 9 Hz, amplitude 3.5 mm; 9 to 500 Hz, acceleration 9.8 m/s2 Shock test Shock test Dimensions Width Height Depth Weight Weight, approx. Tested to DIN IEC 60068-2-2; Operation: 950 m/s2 (10 g), 30 ms, 100 Shocks; Transport (packaged): 250 m/s2 (25 g), 6 ms, 1000 shocks 105 mm 58 mm 26 mm 100 g Page 1799 Mar 2008 Siemens ITS