Siemens s7 1200 руководство по программированию

  • Contents

  • Table of Contents

  • Bookmarks

Quick Links

Background and system description 03/2014

Programming Guideline for

S7-1200/1500

STEP 7 (TIA Portal)

http://support.automation.siemens.com/WW/view/en/81318674

loading

Related Manuals for Siemens S7-1200

Summary of Contents for Siemens S7-1200

  • Page 1
    Background and system description 03/2014 Programming Guideline for S7-1200/1500 STEP 7 (TIA Portal) http://support.automation.siemens.com/WW/view/en/81318674…
  • Page 2: Warranty And Liability

    Siemens recommends strongly that you regularly check for product updates. For the secure operation of Siemens products and solutions, it is necessary to take suitable preventive action (e.g. cell protection concept) and integrate each component into a holistic, state-of-the-art industrial security concept. Third-party products that may be in use should also be considered.

  • Page 3: Table Of Contents

    Optimized machine code …………..8 Block creation ………………9 Optimized blocks …………….10 2.6.1 S7-1200: Setup of optimized blocks ……….. 10 2.6.2 S7-1500: Setup of optimized blocks ……….. 11 2.6.3 Best possible data storage in the processor on S7-1500 ….12 2.6.4…

  • Page 4
    3.10.8 Handling of time tags …………….67 Hardware-Independent Programming …………69 Data types of S7-300/400 and S7-1200/1500 ……..69 No bit memory but global data blocks ……….70 Programming of «clock bits» …………… 71 The Most Important Recommendations …………72 Related Literature ………………..
  • Page 5: Preface

    This helps you to create a standardized and optimal programming of your automation solutions. The examples described can be universally used for the controllers S7-1200 and S7-1500. Core content of this programming guideline…

  • Page 6: S7-1200/1500 Innovations

    (FBs), functions (FCs) or data blocks (DBs). I.e. already created S7-300/400 programs can be implemented on S7-1500 and already created LAD, FBD and SCL programs on S7-1200 controller without any problems. Additionally, there are many innovations that make programming easier for you and which allow a powerful and storage-saving code.

  • Page 7
    STEP 7 Professional (TIA Portal)? http://support.automation.siemens.com/WW/view/en/62101406 PLC migration for S7-1500 with STEP 7 (TIA Portal) V12 http://support.automation.siemens.com/WW/view/en/67858106 Programming recommendations for S7-1200 and S7-1500 with STEP 7 (TIA Portal) V12 http://support.automation.siemens.com/WW/view/en/67582299 Why is it not possible to mix register passing and explicit parameter transfer with…
  • Page 8: Programming Languages

    How can the constants be defined under STEP 7 V11 in a S7-SCL program? http://support.automation.siemens.com/WW/view/en/58065411 Optimized machine code TIA Portal and S7-1200/1500 allow an optimized runtime performance in any programming language. All languages are compiled the same, directly into the machine code.

  • Page 9: Block Creation

    2 S7-1200/1500 Innovations 2.5 Block creation Figure 2-3: Machine code generation with S7-300/400/WinAC and S7-1200/1500 S7-1200/1500 S7-300/400/WinAC (only S7-1500) Machine code Machine code S7-1200/1500 S7-300/400/WinAC For S7-300/400/WinAC controllers LAD and FBD programs are first of all compiled in STL before the machine code is created.

  • Page 10: Optimized Blocks

    2.6 Optimized blocks Optimized blocks S7-1200/1500 controllers have optimized data storage. In optimized blocks, all tags are automatically sorted by their data type. The sorting ensures that data gaps between the tags are minimized and that the tags are stored access-optimized for the processor.

  • Page 11: S7-1500: Setup Of Optimized Blocks

    S7-1500 can directly read or write all tags with just one machine command). Boolean tags are stored as byte for faster access. The controller therefore does not have to mask the access. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 12: Best Possible Data Storage In The Processor On S7-1500

    When accessing, the controller does not The complete byte is blocked for any have to mask the byte. other access. Maximum block size is 64kB. Maximum block size can be up to 16MB. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 13
    Example: Setting optimized block access The optimized block accesses for all newly created blocks for S7-1200/1500 is enabled by default. Block access can be set for OBs, FBs and global DBs. For instance DBs, the setting depends on the respective FB.
  • Page 14
    No “offset” is displayed. displayed and can be used for addressing. In optimized blocks every tag can be In non-optimized blocks only all or no tags declared with “Retain”. can be declared with “Retain”. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…
  • Page 15: Conversion Between Optimized And Non-Optimized Tags

    In the case of type-identical allocations between two tags with different storage locations, the system converts automatically. In the case of structured tags, this conversion requires performance and should therefore be avoided, if possible. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 16: Communication With Optimized Data

    Any tags or data blocks (derived from PLC data types) can be used as data records. Note It is also possible that the send and receive data are not defined identically: Send data Receive data optimized —> not optimized not optimized —> optimized Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 17: Block Sizes

    Data volumes of > 64 kB can be stored in an optimized DB (max. size 16 MB) with S7-1500 controllers. New data types for S7-1200/1500 S7-1200/1500 controllers support new data types in order to make programming more convenient. With the new 64 bit data types considerably larger and more accurate values can be used.

  • Page 18: Date_Time_Long Data Type

    2 S7-1200/1500 Innovations 2.8 New data types for S7-1200/1500 Table 2-9: Floating-point decimal data types Type Size Value range Real 32 bit (1 bit signs, 8 bit exponent, 23 bit mantissa), -3.40e+38 .. 3.40e+38 accurate to 7 decimal places LReal 64 bit (1 bit signs, 11 bit exponent, 52 bit -1.79e+308 ..

  • Page 19
    2 S7-1200/1500 Innovations 2.8 New data types for S7-1200/1500 Figure 2-12: VARIANT data type as input parameter for the TSEND_C instruction VARIANT In this case includes the check of the structure TCON_IP_v4 Advantages Integrated type test Symbolic addressing for optimized blocks Recommendation Use the VARIANT data type instead of the ANY pointer.
  • Page 20: Instructions

    Always use the CALCULATE instruction for mathematical calculations instead of many calls of instructions, such as, e.g. ADD, SUB, etc. 2.9.2 MOVE instructions STEP 7 (TIA) provides the following MOVE instructions. The instruction MOVE_BLK_VARIANT for S7-1200/1500 is new. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 21: Runtime

    SCL (S7-1200/S7-1500) and in STL (S7-1500). NOTE You will find further information in the following entry: With S7-1200/S7-1500, how do you measure the time of a program section or the complete program cycle at runtime? http://support.automation.siemens.com/WW/view/en/87668318 Programming Guideline for S7-1200/1500…

  • Page 22: Symbolic And Comments

    4. Network title comment 5. Network comment 6. Comment on instructions, blocks and functions (open, close, etc.) In the programming languages SCL and STL, it can be commented with // in every row. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 23: System Constants

    For S7-300/400 controllers the identification of hardware and software components is performed by logic address or diagnostic addresses. For S7-1200/1500 the identification is by system constants. All hardware and software components (e.g. interfaces, modules, OBs, …) of the S7-1200/1500 controllers have their own system constants. The system constants are automatically created during the setup of the device configuration for the central and distributed I/O.

  • Page 24: Internal Reference Id For Controller And Hmi Tags

    In the user program “Robot_arm_left” is interconnected with the “GET_DIAG” diagnostic block. Note You will find further information in the following entry: What meaning do the system constants have for the S7-1200/1500 in STEP 7 (TIA Portal)? http://support.automation.siemens.com/WW/view/en/78782836 2.12 Internal reference ID for controller and HMI tags STEP 7, WinCC, Startdrive, Safety and others integrate into the joint data base of the TIA Portal engineering framework.

  • Page 25: Stop Mode In The Event Of Errors

    TIA Portal. This approach makes the S7-1200/1500 controllers more fault tolerant to errors than their predecessors. Advantages There are only three fault situations that put the S7-1200/1500 controllers into the STOP mode. This makes the programming of the error management clearer and easier.

  • Page 26
    For S7-1200/1500 controllers there are other programmable error OBs (diagnostic error, module rack failure, etc.). More information on error responses of S7-1200/1500 can be found in the online help of the TIA Portal under “Events and OBs”. Programming Guideline for S7-1200/1500…
  • Page 27: General Programming

    Due to a good and structured program you get many function units that can be multiply reused within a project and also in other projects. These function units then usually only differ by a different configuration (see chapter 3.2.8 Reusability of blocks). Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 28: Organization Blocks (Ob)

    OBs are the interface between the operating system and the user program. They are called by the operating system and control, e.g. the following processes: Startup behavior of the controller Cyclic program processing Interrupt-controlled program processing Error handling Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 29
    OBs, use the global DBs (see chapter 4.2 No bit memory but global data blocks). Divide all program parts that belong to each other into folders and store them for reusability in the project or global library. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…
  • Page 30: Functions (Fc)

    FCs are blocks without cyclic data storages. This is why the values of block parameters cannot be saved until the next call and has to be provided with actual parameters when called. Properties FCs are blocks without cyclic data storages. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 31
    Temporary and out tags are undefined when called in non-optimized blocks. In optimized blocks, the values are always preset to the default value (S7-1500 and S7-1200 Firmware V4). Thus, the resulting behavior is not accidental but reproducible. In order to permanently save the data of an FC, the functions of the global data blocks are available.
  • Page 32: Function Blocks (Fb)

    Temporary and out tags are undefined when called in non-optimized blocks. In optimized blocks, the values are always preset to the default value (S7-1500 and S7-1200 Firmware V4). Thus, the resulting behavior is not accidental but reproducible. Static tags keep the value from cycle to cycle…

  • Page 33: Instances

    The following figure shows an FB that uses another FB (“IEC Timer”). All data is saved in a multi instance DB. It is thus possible to create a block with an independent time behavior, for example, a clock generator. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 34
    If you require the time and counter function, use the “IEC Timer” blocks and the “IEC Counter” blocks instead of the absolutely addressed SIMATIC Timer. If possible, also always use multi-instances here. This keeps the number of blocks in the user program low. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…
  • Page 35: Global Data Blocks (Db)

    How do you declare the timers and counters for the S7-1500 in STEP 7 (TIA Portal) V12? http://support.automation.siemens.com/WW/view/en/67585220 3.2.6 Global data blocks (DB) Figure 3-11: “Add new block” dialog (DB Variable data is located in data blocks that are available to the entire user program. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 36: Downloading Without Reinitialization

    3.2.7 Downloading without reinitialization In order to change user programs that already run in a controller, S7-1200 (firmware V4.0) and S7-1500 controllers offer the option to expand the interfaces of optimized function or data blocks during operation. You can load the changed blocks without setting the controller to STOP and without influencing the actual values of already loaded tags.

  • Page 37
    Define a memory reserve for blocks that are to be expanded during commissioning (e.g. test blocks). The commissioning process is not interrupted by download of new defined tags. The current values of already existing variables are kept. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…
  • Page 38
    You can also set a default value for the size of the memory reserve for new blocks in the TIA portal. In the menu bar, navigate to «Options – Settings» and then to «PLC programming – General – Download without reinitialization“. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…
  • Page 39: Reusability Of Blocks

    The block concept offers you a number of options to program in a structured and effective way. Advantages Blocks can be used universally in any location of the user program. Blocks can be used universally in different projects. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 40: Block Interface Types

    Call-by-value with In interface type When calling the block, the value of the actual parameter is copied onto the input parameter of the block for the In interface type. For this, additional memory is required. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 41: Call-By-Reference With Inout Interface Type

    3.4.1 Block interfaces as data exchange If you are encapsulating the functions and program the data exchange between the blocks only via the interfaces, you will clearly have advantages. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 42: Global Memory

    This is why you should use global DBs instead of hardware-dependent memory areas. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 43: Local Memory

    Note Optimized blocks: Temporary tags are initialized in any block call with the “default value” (S7-1500 und S7-1200 Firmware V4). Non-optimized blocks: Temporary tags are undefined for each call of the block. Programming Guideline for S7-1200/1500…

  • Page 44: Access Speed Of Memory Areas

    Access to non-optimized Access to optimized DBs blocks Fastest accesses in the S7-1200/1500 in descending order 1. Optimized blocks: Temporary tags, parameters of an FC and FB, non-retentive static tags 2. Optimized blocks whose accesses for compiling are known: –…

  • Page 45: Retentivity

    CPU 1511-1 PN 88 Kbytes CPU 1513-1 PN 88 Kbytes CPU 1516-3 PN/DP 472 Kbytes Table 3-6: Differences of S7-1200 and S7-1500 S7-1200 S7-1500 Retentivity can only be set for bit memory Retentivity can be set for bit memory, times and counters…

  • Page 46
    Retentivity can be set from address 0 onward! e.g. from MB0, T0 or C0 Example: Retentive counter You can also declare instances of functions (timer, counter, etc.) retentive. As already described in chapter 3.2.5 Multi-instances Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…
  • Page 47: Symbolic Addressing

    If the retentive memory on the PLC is not sufficient, it is possible to store data in the form of data blocks that are only located in the load memory of the PLC. The following entry is described by taking the example of an S7-1200. This programming also works for S7-1500.

  • Page 48
    Open the program editor and open any block. Enter a symbolic name directly at the input of an instruction. Right-click next to the block and select “Define tag…” in the context menu. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…
  • Page 49: Array Data Type And Indirect Field Accesses

    Figure 3-25: ARRAY with 10 elements of the Integer (INT) data type You can indirectly access individual elements in the ARRAY with a runtime tag (array [“index”]). Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 50
    Use the “GET_ERR_ID” instruction to catch access errors within the Array. Note You will find further information in the following entry: How do you implement an array access with an S7-1500 with variable index? http://support.automation.siemens.com/WW/view/en/67598676 Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…
  • Page 51: Struct Data Type And Plc Data Types

    PLC data type can be used for any number of DBs. You can easily and conveniently create as many DBs of the same structure and adjust them centrally on the PLC data type. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 52: Access To I/O Areas With Plc Data Types

    (%Ix.0 or %Qx.0, e.g., %I0.0, %Q12.0, …) 3. Transfer of the PLC tag as actual parameter to the function block 4. Input of the function block is of the type of the created PLC data type Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 53: Slice Access

    3.6.5 Slice access For S7-1200/1500 controllers, you can access the memory area of tags of the Byte, Word, DWord or LWord data type. The division of a memory area (e.g. byte or word) into a smaller memory area (e.g. Bool) is also called slice. In the figure below displays the symbolic bit, byte and word accesses to the operands.

  • Page 54: Libraries

    3.7.1 Types of libraries and library elements Generally there are two different types of libraries: «Project library» «Global library». The content consists of two storage types each: «Types» «Master Copies» Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 55
    Subordinate elements are automatically typified. – Types are versioned: Changes can be made by creating a newer version. – There can only be one version of a used type within a controller. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…
  • Page 56: Type Concept

    Control elements are edited in a test HMI images and HMI scripts are edited in a environment. test environment. Faceplates and HMI — UDTs are directly edited in the library without test environment. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 57: Versioning Of A Block

    Define an input tag of the data type you have created. The PLC data type is therefore subordinate to the function block. Drag the function block via drag & drop into the “Types” folder in the project library. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 58
    The subordinate PLC data type is automatically also stored in the library. Example: Changing a type Table 3-10: Changing a type Step Instruction Right-click the block in the “Project library” and select “Edit type” Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…
  • Page 59
    In this place you have the option to test the change on the block by loading the project onto a controller. When you have finished testing the block, continue with the following steps. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…
  • Page 60
    “Update instances in the project”. If older versions of the element are no longer required you can delete them by clicking “Delete unused type versions from library” Close the library view with “Close library view” Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…
  • Page 61: Process Interrupts

    In the following figure you can see the configuration of a “hardware interrupt” in the hardware configuration of a digital input module. Figure 3-34: Configuring hardware interrupt Advantages Fast system response to events (rising, falling edge, etc.) Each event can start a separate OB. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 62
    The input delay is used for filtering the input signal in order to, for example, compensate faults such as contact bounce or chatter. Figure 3-35: Setting input delay Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…
  • Page 63: Other Performance Recommendations

    Here you can find some general recommendations that enable faster program processing of the controller. Recommendation Note the following recommendations for programming S7-1200/1500 controllers in order to achieve a high performance: LAD/FBD: Disable “generate ENO” for blocks. This avoids tests at runtime.

  • Page 64: Scl Programming Language: Tips And Tricks

    Call Template mode. The editor expands the call again. You can navigate with the “TAB” button through the parameters. Note: In the “Call Template” mode the writing is in italics. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 65: What Instruction Parameters Are Mandatory

    Drag the tag via drag & drop to the tag in the program that is to be replaced. Hold the tag for more than 1 second before releasing it. > hold for 1 second The complete tag is replaced. Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 66: Efficiently Inserting Case Instruction

    The compiler can optimize the program better, since it does not know the number of iterations. Example FOR #var := #lower TO #upper DO #var := #var + 1; // no effect, Compiler -> Warning END_FOR; Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 67: For Loop Backwards

    This approach is called “overload of operands”. The SCL compiler automatically uses the suitable functions. You can use a reasonable arithmetic for the time types and can therefore program more efficiently. Example TimeDifference := TimeStamp_1 – TimeStamp_2; Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 68
    – dtl T_DIFF DTL dt – dt T_DIFF DT date – date T_DIFF DATE ltod – ltod T_DIFF LTOD date + ltod T_COMBINE DATE / LTOD date + tod T_COMBINE DATE / TOD Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…
  • Page 69: Hardware-Independent Programming

    4 Hardware-Independent Programming 4.1 Data types of S7-300/400 and S7-1200/1500 Hardware-Independent Programming To make sure that a block can be used on all controllers without any further adjustments, it is important not use hardware-dependent functions and properties. Data types of S7-300/400 and S7-1200/1500 Below is a list of all elementary data types and data groups.

  • Page 70: No Bit Memory But Global Data Blocks

    VOID PLC data types PLC Data Type For optimized accesses, only symbolic addressing is possible For S7-1200/1500 the TIMER and COUNTER data type is represented by IEC_TIMER and IEC_Counter. No bit memory but global data blocks Advantages Optimized global DBs are clearly more powerful than the bit memory address area that is not optimized for reasons of compatibility.

  • Page 71: Programming Of «Clock Bits

    If the desired frequency is smaller or equal 0.0, then the output Q = FALSE and Countdown = 0.0. Q [Bool] TRUE Period: 2 seconds Frequency [Real] Countdown [Time] T#0S_703MS Note The complete programming example is available for free download in the following entry: http://support.automation.siemens.com/WW/view/en/87507915 Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 72: The Most Important Recommendations

    Chapter 3.6.3 STRUCT data type and PLC data types Using libraries for storing program elements – Chapter 3.7 Libraries No memory bits but global data blocks – Chapter 4.2 No bit memory but global data blocks Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 73: Related Literature

    STEP 7 (TIA Portal) manuals http://support.automation.siemens.com/WW /view/en/29156492/133300 S7-1200 Manuals http://support.automation.siemens.com/WW /view/en/34612486/133300 S7-1500 Manuals http://support.automation.siemens.com/WW /view/en/56926743/133300 S7-1200 Getting Started http://support.automation.siemens.com/WW /view/en/39644875 S7-1500 Getting Started http://support.automation.siemens.com/WW /view/en/78027451 SIMATIC S7-1200 / S7-1500 http://support.automation.siemens.com/WW Comparison list for programming /view/en/86630375 languages Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

  • Page 74: History

    Extension of following chapter: 2.2 Terms 2.3 Programming languages 2.6 Optimized blocks 2.8.2 Date_Time_Long data type 2.10 Symbolic and comments 3.2 Program blocks 3.5 Retentivity 4.3 Programming of «clock bits» Several corrections in different chapter Programming Guideline for S7-1200/1500 V1.2, Entry ID: 81318674…

This manual is also suitable for:

S7-1500

Документация Siemens Simatic:

Введение в STEP 7. Руководство

Программное обеспечение SIMATIC для создания программ, используемых в программируемых логических контроллерах на языках программирования контактный план, функциональный план или список операторов для станций SIMATIC S7-300/400. Основы SIMATIC STEP 7. Наиболее важные экранные диалоговые окна и процедуры, практические упражнения.

Программирование с помощью STEP 7 V5.3

Обзор программирования с помощью STEP 7.

Знакомство с продуктом и установка программного обеспечения, основы проектирования структуры программы, запуск и функционирование, сборка и редактирование проекта, определение символов, создание блоков и библиотек, логических блоков. Создание исходных файлов на STL, управление и наблюдение за переменными. Установление соединения и настройка CPU, отладка, диагностика.

SIMATIC NET NCM S7 для PROFIBUS CP

Использование коммуникационных процессоров SIMATIC NET (PROFIBUS CP) для связи по SIMATIC NET PROFIBUS на полевом уровне. Производительность и область применения коммуникационных служб. Конфигурирование CP с помощью конфигурационного программного обеспечения NCM S7. Программирование коммуникационных интерфейсов для пользовательской программы

SIMATIC NET NCM S7 для Industrial Ethernet

“PROJECT ETHERNET” Примеры STEP 7 для Ethernet CP, связь по интерфейсу SEND/RECEIVE между станциями S7. Связь по интерфейсу SEND/RECEIVE между станциями S7 и S5.

Конфигурирование аппаратуры и коммуникационных соединений STEP 7 V5.3

Обзор конфигурирования аппаратуры и проектирование соединений с помощью программного обеспечения STEP 7. Поддержка при отображении структуры аппаратного обеспечения в форме проекта STEP 7, организация обмена данными между системами автоматизации.

Первые шаги в PLC S7-200

Установка оборудования ( Монтаж). Органы управления S7-200 (CPU 212). Подключение устройства. Схема учебного устройства. Схема подключения S7-200 (CPU 212). Запуск STEP 7-Micro/WIN

Программируемый контроллер S7-200 Руководство по эксплуатации

CPU S7–200. Модули расширения S7–200. Пакет для программирования STEP 7-Micro/WIN. Возможности обмена данными. Индикаторные панели. Первые шаги. Подключение CPU S7–200. Создание программы-примера. Загрузка программы-примера

CP 243-1 Коммуникационный процессор для Industrial Ethernet

Использование коммуникационного процессора CP 243-1.Информация о том, как эксплуатировать данный коммуникационный процессор, подключенный через Industrial Ethernet (IE).

Первые шаги в PLC S7-300

Основные функции аппаратного и программного обеспечения S7–300.

Система автоматизации S7-300 Данные модулей

Общие технические данные. Источники питания. Цифровые модули. Принципы обработки аналоговых величин. Представление аналоговых величин аналоговых модулей. Аналоговые модули. Другие сигнальные модули. Интерфейсные модули. Повторитель RS 485. Наборы параметров сигнальных модулей. Диагностические данные сигнальных модулей

S7-300 CPU 31xC и CPU 31x, технические данные

Путеводитель по документации S7-300. Элементы управления и индикации. Обмен данными. Концепция памяти. Времена цикла и реакции. Общие технические данные. Технические данные CPU 31xC. Технические данные CPU31x 8.

SIMATIC S5-90U, S5-95U, S5-95F, S5-100U

Программируемый контроллер S5-95U

SIMATIC S5. Контроллер S5-100U (CPU100/CPU102). Руководство по применению.

SIMATIC S5. Контроллер SIMATIC S5-115U

Программируемые контроллеры S7-200

SIMATIC S7–200. Обзор продукта.

SIMATIC S7-300. Общие сведения. Ч1.

SIMATIC S7-300. Функциональные модули. Ч2.

S7-400. Система автоматизации S7-400. Данные CPU.

Программируемые контроллеры S7-400. Обзор.

SIMATIC S7-1200 -микроконтроллер для Totally Integrated Automation

SIMATIC S7-1500 контроллер для Totally Integrated Automation

LOGO! Руководство.

Логические модули LOGO!

Скачать документацию:

Введение в STEP 7. Руководство.

Программирование с помощью STEP 7 V5.3

SIMATIC NET NCM S7 для PROFIBUS CP

SIMATIC NET NCM S7 для Industrial Ethernet

Конфигурирование аппаратуры и коммуникационных соединений STEP 7 V5.3

Первые шаги в PLC S7-200

Программируемый контроллер S7-200 Руководство по эксплуатации

CP 243-1 Коммуникационный процессор для Industrial Ethernet

Первые шаги в PLC S7-300

Система автоматизации S7-300 Данные модулей

S7-300 CPU 31xC и CPU 31x, технические данные

SIMATIC S5-90U, S5-95U, S5-95F, S5-100U

Программируемый контроллер S5-95U

SIMATIC S5. Контроллер S5-100U (CPU100/CPU102). Руководство по применению.

SIMATIC S5. Контроллер SIMATIC S5-115U

Программируемые контроллеры S7-200

SIMATIC S7–200. Обзор продукта.

SIMATIC S7-300. Общие сведения. Ч1.

S7-400. SIMATIC S7-300. Функциональные модули. Ч2.

S7-400. Система автоматизации S7-400. Данные CPU.

Программируемые контроллеры S7-400. Обзор.

SIMATIC S7-1200 -микроконтроллер для Totally Integrated Automation

SIMATIC S7-1500 -микроконтроллер для Totally Integrated Automation

LOGO! Руководство.

Логические модули LOGO!

Программное обеспечение

S7-300 Документация. Данные модулей.

1_General_r.pdf
2_PowerSupply_r.pdf
3_Digital_r_MN.pdf
4_Analog_r_MN.pdf
5_OtherSignalModules_r.pdf
6_InterfaceModules_r.pdf
7_Repeater_r_MN.pdf
8_SIMATIC_TOP_r.pdf
GS_SM331_4-20mA_r.pdf
GS_SM331_TC_r.pdf
GS_SM331_U&PT100_r.pdf

S7-300 Документация. Данные ЦПУ.

CPU_31xC_&_CPU_31x_r.pdf

S7-300 Документация. Модуль автоматическогого регулирования FM355.

00_Preface&Contents_r_355.pdf
01_Overview_r_355.pdf
02_Settings_r.pdf
03_Work_r.pdf
04_Installing_r.pdf
05_Wiring_r.pdf
06_Assign_Parameters_r.pdf
07_User_Programm_r.pdf
08_StartingUp_r_355.pdf
09_Properties_DIO-AIO_r.pdf
10_Connecting_r.pdf
11_Assignment_DB_r.pdf
12_Faults&Diagnostics_r.pdf
13_Examples_r.pdf
Appendix_r_355.pdf

S7-300 Документация. Первые шаги.

GS_Analog_r.pdf
GS_Controlling_r.pdf
GS_Counting_r.pdf
GS_Digital_r.pdf
GS_PtP_r.pdf

S7-300 Документация. Первые шаги в пуско-наладочных работах для FM355.

get_c_r.pdf
get_s_r.pdf

S7-300 Документация. Примеры программ.

S7-300C_TF-Sample_r.pdf

S7-300 Документация Система S7-300.Руководство по инсталяции

0_Titelblatt_r.pdf
01-04_Preface_r.pdf
05_Configuring_r.pdf
06-07_Installation_r.pdf
08-09_Addressing_r.pdf
10-11_Maintenance_r.pdf
12-13-ind_Appendix_r.pdf

S7-300 Документация. Список инструкций системы S7-300.

OpList_S7-300C_r.pdf

S7-300 Документация. Технологические функции CPU 31xC.

0_Preface_Contents_r_TF.pdf
1_Overview_r.pdf
2_Positioning_r.pdf
3_Positioning_AO_r.pdf
4_Positioning_DO_r.pdf
6_Point-to-Point_r.pdf
7_Controlling_r.pdf

S7-300 Документация. Функциональный модуль FM350-1.

01_ProductOverview_r.pdf
02_HowCounts_r.pdf
04_Wiring_r.pdf
05_Assigning_Parameters_r.pdf
06_Programming_r.pdf
07_Programming_in_M7_r.pdf
08_StartingUp_r_350.pdf
09_OperatingModes_r.pdf
10_EncoderSignals_r.pdf
11_DB_Assignments_r.pdf
12_M7_Function_Library_r.pdf
13_Faults&Diagnostics_r.pdf
A_Appendix_r_350.pdf
GetStarted_FM350-1_r.pdf

S7-200 Документация S7-200 Примеры применения

Contents_r.pdf
ContentsSort_e.pdf
S72_01.pdf
S72_02.pdf
S72_03.pdf
S72_04.pdf
S72_05.pdf
S72_06.pdf
S72_07.pdf
S72_08.pdf
S72_09.pdf
S72_10.pdf
S72_11.pdf
S72_12.pdf
S72_13.pdf
S72_14.pdf
S72_15.pdf
S72_16.pdf
S72_17.pdf
S72_18.pdf
S72_19.pdf
S72_20.pdf
S72_21.pdf
S72_22.pdf
S72_23.pdf
S72_24.pdf
S72_25.pdf
S72_26.pdf
S72_27.pdf
S72_28.pdf
S72_29.pdf
S72_30.pdf
S72_31.pdf
S72_32.pdf
S72_33.pdf
S72_34.pdf
S72_35.pdf
S72_36.pdf
S72_37.pdf
S72_38.pdf
S72_39.pdf
S72_40.pdf
S72_41.pdf
S72_42.pdf
S72_43.pdf
S72_44.pdf
S72_45.pdf
S72_46.pdf
S72_47.pdf
S72_48.pdf
S72_49.pdf
S72_50.pdf
S72_51.pdf
S72_52.pdf
S72_53.pdf
S72_54.pdf
S72_55.pdf
S72_56.pdf
S72_57.pdf

Интерфейс оператора TD 200

01_Overview&Installation_r.pdf
02_Configuring_r.pdf
03_Operating_r.pdf
04_Creating_programs_r.pdf
A_Appendix_r_TD200.pdf
Titel_r.pdf

Коммуникационный модуль CP243-1

CP243-1_1ru.pdf

Коммуникационный процессор CP 243-1 IT

CP243-1it_E.pdf

Первые шаги

1steps_r.pdf

Сенсорная панель TPO70

05_TP070_r.pdf

Системное руководство СРU21x

0_Preface_r.pdf
1_Introducing_r.pdf
2_Installing_HW_r.pdf
3_Installing_SW_r.pdf
4_GettingStarted_r.pdf
5_Programming_r.pdf
6_Memory_r.pdf
7_InputOutput_r.pdf
8_Communication_r.pdf
9_Instruction_r.pdf
A_TechData_r.pdf
B_Appendix_r.pdf

Системное руководство СРU22x

0_preface.pdf
01_Owerview_r.pdf
02_GettingStarted_r.pdf
03_Installing_r.pdf
04_PLC%20Concepts_r.pdf
05_ProgrammingConcepts_r.pdf
06_InstructionSet_r.pdf
07_Communicating_r.pdf
08_TroubleShooting_r.pdf
09_PositionModule_r.pdf
10_ModemModule_r.pdf
11_USS_Protocol_r.pdf
12_ModbusProtocol_r.pdf
A_Appendix_r1.pdf
I_Index_r.pdf»
06_InstructionSet_r.pdf
10_ModemModule_r.pdf
01_Introduction_r.pdf
02_S7-200_r.pdf
03_SIPLUS_r.pdf
A_Appendix_r.pdf

Siemens SIMATIC S7-1200 Reference Manual

  • Contents

  • Table of Contents

  • Bookmarks

Quick Links

Reference manual

SIMATIC

S7-1200/S7-1500

Comparison list for programming languages

based on international mnemonics

Edition

12/2017

support.industry.siemens.com

loading

Related Manuals for Siemens SIMATIC S7-1200

Summary of Contents for Siemens SIMATIC S7-1200

  • Page 1
    Reference manual SIMATIC S7-1200/S7-1500 Comparison list for programming languages based on international mnemonics Edition 12/2017 support.industry.siemens.com…
  • Page 2
    Comparison list for S7-300, S7-400, S7-1200, S7-1500 Reference Manual Legal information Warning notice system This manual includes notices you have to observe to ensure your personal safety and to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a hazard alert symbol; notices referring only to property damage have no hazard alert symbol. Depending on the degree of danger, warnings are displayed in a descending order as follows.
  • Page 3
    Notes in the respective documentation must be observed. Trademarks All names identified by ® are registered trademarks of the Siemens AG. Any other names appearing in this document may be trademarks, the use of which by third parties for their own purposes may breach owners’ rights.
  • Page 4: Measuring Program Runtimes

    Contents of the comparison list • Measuring program runtimes – see below. • Load objects to the CPU: Which modifications and which modified blocks you load to the CPU in which operating mode – next page. • Overview, requirements, general conditions and legend for the comparison list (Page 7) •…

  • Page 5
    Load objects to the CPU The table shows which modifications and which modified blocks you can download in which operating mode. Very complex programs can prevent downloading in RUN mode. Solution approaches: • Use a memory card with sufficient capacity. •…
  • Page 6
    Modifications and blocks S7-300 S7-400 S7-1200 S7-1500 S7-1200 S7-1200 V4.0 or V1.0 — 2.1 V2.2 — V3.0 higher OB with modified properties STOP STOP STOP STOP (e.g. cycle time change) Deleted OB STOP STOP STOP New FB/FC/DB/PLC data type (UDT) STOP Deleted FB/FC/DB/PLC data type STOP…
  • Page 7: Comparison List

    SIMATIC STEP 7 version 15 or higher • The contents of the S7-1500 column also apply to SIMATIC S7-1500 Software Controller CPU 150xS • SIMATIC S7-1200 firmware 4.2 or higher. SIMATIC S7-1200 only supports LAD, FBD and SCL. • SIMATIC S7-1500 firmware 2.5 or higher •…

  • Page 8
    New instruction as of SIMATIC STEP 7 V14. For this purpose, SIMATIC S7-1200 requires at least firmware 4.2 and SIMATIC S7-1500 at least firmware 2.0. New instruction as of SIMATIC STEP 7 V15.
  • Page 9
    Basic instructions Extended instructions Technology Communication Instructions in the section «Basic instructions» Instruction groups Page Instruction groups Page Instruction groups Page General Comparator operations Word logic operations Bit logic operations Mathematical functions Shift and rotate Safety functions Move Load and transfer Times Conversion operations Legacy…
  • Page 10: Bit Logic Operations

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Bit logic operations ✔ ✔ ✔ ✔ ✔ AND logic operation & & ✔ ✔ ✔ ✔ ✔ OR logic operation >=1 ✔ ✔ ✔ ✔ ✔ EXCLUSIVE OR logic operation ✔…

  • Page 11
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ ✔ ✔ ✔ Scan Boolean result for positive signal edge P_TRIG ✔ ✔ ✔ ✔ Scan Boolean result for negative signal edge N_TRIG Detect positive signal edge R_TRIG SCL: Programming with two instructions is more effective: ✔…
  • Page 12: Safety Functions

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Safety functions Only Safety: EMERGENCY STOP up to Stop ✔ ✔ ✔ ✔ ESTOP1 Category 1 ✔ ✔ Only Safety: Two-hand monitoring TWO_HAND ✔ ✔ ✔ ✔ Only Safety: Two-hand monitoring with enable TWO_H_EN Only Safety: parallel muting with two or four ✔…

  • Page 13
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Times IEC timers IEC timers are multi-instance capable. ✔ ✔ ✔ ✔ Generate pulse ✔ ✔ ✔ ✔ Generate on-delay ✔ ✔ ✔ ✔ Generate off-delay ✔ ✔ Time accumulator TONR ✔…
  • Page 14
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Start pulse timer -(SP) -[SP] ✔ ✔ ✔ Start extended pulse timer -(SD) -[SD] ✔ ✔ ✔ Enable timer ✔ ✔ ✔ Load timer value ✔ ✔ ✔ Load BCD-coded timer value ✔…
  • Page 15: Comparator Operations

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Count up -(CU) -[CU] ✔ ✔ ✔ Count down -(CD) -[CD] ✔ ✔ ✔ Enable counter ✔ ✔ ✔ Load counter value ✔ ✔ ✔ Load BCD-coded counter value ✔ ✔…

  • Page 16
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ ✔ Check validity -|OK|- ✔ ✔ Check invalidity -|NOT_OK|- Variant ✔ ✔ Check data type of a VARIANT tag TypeOf Scan data type of an ARRAY element of a TypeOfElements ✔…
  • Page 17: Mathematical Functions

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) With a tag of TYPE DB_ANY, compare the NE_TypeOfDB: ✔ ✔ data type of an indirectly addressed DB with a data type for EQUAL. Check for EQUALS NULL pointer ✔ ✔…

  • Page 18
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ ✔ ✔ ✔ Divide Form absolute value ✔ ✔ ✔ ✔ Safety instruction only for S7-1200/1500 ✔ ✔ ✔ ✔ Return remainder of division ✔ ✔ ✔ ✔ Create twos complement NEGI, NEGD ✔…
  • Page 19
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ ✔ ✔ ✔ Form arctangent value ATAN ✔ ✔ Return fraction FRAC FRAC ✔ ✔ Exponentiate EXPT Move Move value MOVE MOVE (✔) (✔) ✔ ✔ S7-300/400: Only LAD and FBD ✔…
  • Page 20
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ ✔ Fill block not interruptible UFILL_BLK Disassemble a tag bit string data type BYTE, SCATTER ✔ ✔ WORD, DWORD or LWORD into individual bits (= scatter) Disassemble an ARRAY of BYTE, WORD, SCATTER_BLK ✔…
  • Page 21
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Attempt assignment of a VARIANT to a AssignmentAttempt reference (AssignmentAttempt): With «AssignmentAttempt», you attempt to ✔ assign a VARIANT tag to a reference tag. The data type of a reference tag is specified at the time of the declaration, the data type of a VARIANT tag is determined during runtime.
  • Page 22
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Read/write access Recommendation: Symbolic programming. ✔ ✔ Read data in little endian format READ_LITTLE ✔ ✔ Write data in little endian format WRITE_LITTLE ✔ ✔ Read data in big endian format READ_BIG ✔…
  • Page 23: Conversion Operations

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Read field FieldRead ✔ ✔ Recommendation: Indexed access to an array Write field FieldWrite ✔ ✔ Recommendation: Indexed access to an array Conversion operations Convert value CONVERT CONVERT ✔ ✔ ✔…

  • Page 24
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Create a reference to a tag: ✔ «REF()» is used to specify to which tag a previously declared reference should point. ✔ ✔ ✔ ✔ Convert BCD to integer (16 bit) BCD16_TO_INT ✔…
  • Page 25
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Create ones complement double integer (32 INVD ✔ ✔ ✔ bit) S7-1500: Conversion also done implicitly ✔ ✔ ✔ Negate integer (16 bit) NEGI ✔ ✔ ✔ Negate integer (32 bit) NEGD ✔…
  • Page 26: Program Control Operations

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Unscale the floating-point number into physical UNSCALE ✔ ✔ ✔ units between a low limit and a high limit and convert it into an integer (unscaling). Program control operations Branch conditionally IF……

  • Page 27
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Terminate running through the loop and start CONTINUE ✔ ✔ ✔ ✔ with the next run ✔ ✔ ✔ ✔ Exit loop immediately EXIT ✔ ✔ ✔ ✔ Exit block RETURN Organize program code REGION……
  • Page 28
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ ✔ ✔ Jump if RLO = 1 and save RLO ✔ ✔ ✔ Jump if RLO = 0 and save RLO ✔ ✔ ✔ Jump if BR = 1 ✔…
  • Page 29
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ ✔ ✔ Swap data block register Load the length of a global data block into L DBLG ✔ ✔ ✔ accumulator 1 Load the number of a global data block into L DBNO ✔…
  • Page 30: Word Logic Operations

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Only SIMATIC S7-1500 Software Controller SHUT_DOWN ✔ CPU 150xS: Shut down or restart Windows and the controller ✔ ✔ Get error locally GET_ERROR ✔ ✔ Get error ID locally GET_ERR_ID ✔…

  • Page 31: Shift And Rotate

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Multiplex ✔ ✔ ✔ ✔ S7-300/400: Only SCL ✔ ✔ Demultiplex DEMUX DEMUX ✔ ✔ ✔ ✔ AND logic operation word by word AND, & ✔ ✔ ✔ ✔ OR logic operation word by word ✔…

  • Page 32: Loading And Transferring The Registers In Stl

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ ✔ ✔ Rotate right double word by double word ✔ ✔ ✔ Rotate left double word by double word ✔ ✔ ✔ Rotate left by status bit CC 1 RLDA ✔…

  • Page 33
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ ✔ ✔ Transfer AR1 to double word TAR1 <D> ✔ ✔ ✔ Transfer AR1 to AR2 TAR1 AR2 ✔ ✔ ✔ Transfer AR2 to accumulator 1 TAR2 ✔ ✔ ✔…
  • Page 34
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ ✔ Call block -(CALL) -[CALL] ✔ ✔ Save RLO in BR bit -(SAVE) -[SAVE] SAVE ✔ ✔ Open MCR ranges -(MCR<) -[MCR<] MCR( ✔ ✔ Close MCR ranges -(MCR>) -[MCR>] )MCR ✔…
  • Page 35: Date And Time

    Basic instructions Extended instructions Technology Communication » Instructions in the section «Extended instructions Instruction groups Page Instruction groups Page Instruction groups Page Date and time Interrupts Table functions String and Character Alarms Addressing Process image Diagnostics File operations (file handling) Distributed I/O Pulse R/H system…

  • Page 36
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Time-of-day functions ✔ ✔ ✔ ✔ Set time-of-day (STEP 7 V 5x: SET_CLK) WR_SYS_T ✔ ✔ ✔ ✔ Read time-of-day (STEP 7 V 5x: READ_CLK) RD_SYS_T ✔ ✔ Read local time RD_LOC_T ✔…
  • Page 37
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Set daylight saving time/standard time without time- SET_SW ✔ ✔ of-day status ✔ ✔ Transfer time-stamped alarms TIMESTMP Set daylight saving time/standard time with time-of- SET_SW_S ✔ day status String and Character ✔…
  • Page 38
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Other instructions ✔ ✔ ✔ ✔ Determine the length of a character string ✔ ✔ ✔ ✔ Connect character strings CONCAT ✔ ✔ ✔ ✔ Read the left characters of a character string LEFT ✔…
  • Page 39
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Read global name at beginning of a call path. GetSymbolPath Illustration: ✔ ✔ ✔ ✔ Read out name of the block instance GetInstanceName ✔ ✔ Query the global name of block instance GetInstancePath ✔…
  • Page 40: Process Image

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Process image ✔ ✔ Update the process image inputs UPDAT_PI ✔ ✔ Update the process image outputs UPDAT_PO ✔ ✔ ✔ Synchronize the process image inputs SYNC_PI ✔ ✔ ✔ Synchronize the process image outputs SYNC_PO Distributed I/O…

  • Page 41
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Control configuration of a PROFINET IO system ReconfigIOSystem (options handling) ✔ Enable or disable devices in order to, for example, Flexibly run through or bypass production steps of a manufacturing process. Other instructions ✔…
  • Page 42
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ ✔ Control ASi master behavior ASi_3422 ✔ ✔ ✔ Control ASi master behavior ASI_CTRL PROFIenergy IO controller ✔ ✔ ✔ Start and exit energy-saving mode PE_START_END Start and exit energy-saving mode/Read out status PE_CMD ✔…
  • Page 43: Module Parameter Assignment

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ ✔ ✔ Number of PROFIenergy commands PE_Identify_RSP Generate supported PROFIenergy commands as PE_Measurement_List_RSP ✔ ✔ ✔ answer ✔ ✔ ✔ Generate queried measured values as answer PE_Measurement_Value_RSP Module parameter assignment ✔…

  • Page 44
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Time-of-day interrupt ✔ ✔ ✔ Set time-of-day interrupt SET_TINT Set time-of-day interrupt, local or system time SET_TINTL ✔ ✔ LOCAL: Refer SDT to local or system time. ACTIVATE: When does the OB apply the settings. ✔…
  • Page 45
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Delay execution of higher priority interrupts and DIS_AIRT ✔ ✔ ✔ ✔ asynchronous error events Enable execution of higher priority interrupts and EN_AIRT ✔ ✔ ✔ ✔ Enable asynchronous events ✔…
  • Page 46
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ALARM_SQ incoming alarm ✔ Report up to eight signal changes NOTIFY_8P Create PLC alarms without associated values for ALARM_8 ✔ eight signals Create PLC alarms with associated values for eight ALARM_8P ✔…
  • Page 47
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ ✔ Read system status list RDSYSST ✔ ✔ Read LED status ✔ ✔ Reading identification and maintenance data Get_IM_Data ✔ ✔ Read out name of a module Get_Name ✔ ✔…
  • Page 48: Data Block Functions

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Pulse ✔ Pulse width modulation CTRL_PWM Pulse train output, output a pulse sequence with CTRL_PTO ✔ specified frequency Recipes & data logging Recipe functions ✔ ✔ Export recipe RecipeExport ✔ ✔…

  • Page 49
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ ✔ Create data block in the load memory CREA_DBL ✔ ✔ ✔ ✔ Read from data block in the load memory READ_DBL ✔ ✔ ✔ ✔ Write to data block in the load memory WRIT_DBL ✔…
  • Page 50
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Addressing ✔ ✔ Determine hardware identifier from slot GEO2LOG ✔ ✔ Determine slot from the hardware identifier LOG2GEO Determine the hardware identifier from addressing of LOG2MOD ✔ STEP 7 V5.5 SPx ✔…
  • Page 51: File Operations (File Handling)

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) S7-300/400: Determine all logical addresses from a RD_LGADR logical address ✔ ✔ ✔ S7-1500: Determine the logical addresses from the hardware identifier S7-300/400: Determine logical basic address from GADR_LGC slot and offset in the user data address area ✔…

  • Page 52: Other Instructions

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) R/H system Only S7-1500 R/H: Enable or disable the SYNCUP RH_CTRL system state. The lock applies: Until you disable the lock again Until the S7-1500R/H goes to STOP Other instructions iSlave ✔…

  • Page 53
    Basic instructions Extended instructions Communication Technology » Instructions in the section «Technology Instruction groups Page Instruction groups Page Instruction groups Page Counting (and measuring) Function modules Time-driven inputs/outputs PID Control S7-300C functions Motion Control in the S7-300 column means: Instruction for the S7-300 Technology CPU S7-31xT. The operating principle of the instructions can differ between S7-300 and S7-1500.
  • Page 54: Pid Control

    Basic instructions Extended instructions Communication Technology Description LAD/FBD (not S7-1200) PID Control Compact PID Universal PID controller with integrated tuning PID_Compact ✔ ✔ for proportional-action actuators PID controller with integrated optimization for PID_3Step ✔ ✔ valves and actuators Temperature controller with integrated PID_Temp ✔…

  • Page 55
    Basic instructions Extended instructions Communication Technology Description LAD/FBD (not S7-1200) Automatic optimization for a continuous- TUN_EC ✔ ✔ action controller TUN_ES ✔ ✔ Automatic optimization for a step controller Integrated system functions ✔ ✔ Continuous-action controller CONT_C_SF ✔ ✔ Step controller for integrating actuators CONT_S_SF Pulse generator for proportional-acting PULSGEN_SF…
  • Page 56: Function Modules

    Basic instructions Extended instructions Communication Technology Description LAD/FBD (not S7-1200) Function modules Diverse instructions for FM modules ✔ ✔ ✔ Counting/Positioning/Cam Control/PID Control/Temp Control S7-300C functions ✔ Position with analog output ANALOG ✔ Position with digital output DIGITAL ✔ Control counter COUNT ✔…

  • Page 57: Motion Control

    Basic instructions Extended instructions Communication Technology Description LAD/FBD (not S7-1200) ✔ Output edges time-controlled at digital output TIO_DQ Motion Control ✔ ✔ Release/lock axis/technology MC_Power Acknowledge interrupts, restart MC_Reset ✔ ✔ axis/technology object Home axis/technology objects, set home MC_Home ✔ ✔…

  • Page 58
    Basic instructions Extended instructions Communication Technology Description LAD/FBD (not S7-1200) Continuously read motion data of a MC_ReadParam ✔ positioning axis Set alternative encoder as active encoder MC_SetSensor ✔ Position axis overlapping MC_MoveSuperImposed Output cams, cam track, measuring input ✔ Start one-time measuring MC_MeasuringInput Start cyclic measuring S7-1500: MC_MeasuringInputCyclic…
  • Page 59
    Basic instructions Extended instructions Communication Technology Description LAD/FBD (not S7-1200) Relative shift of master value on the following S7-1500T: MC_PhasingRelative axis S7-300T: MC_Phasing Absolute shift of master value on the following S7-1500T: MC_PhasingAbsolute axis S7-300T: MC_Phasing Start camming MC_CamIn Simulate synchronous operation MC_SynchronizedMotionSimulation Cam disc Interpolating a cam disc…
  • Page 60
    Basic instructions Extended instructions Communication Technology Description LAD/FBD (not S7-1200) Torque data Force/torque limiting / fixed stop detection ✔ Specify additive torque MC_TorqueAdditive ✔ Set high and low torque limits MC_TorqueRange Activate and deactivate force/torque limit/ MC_TorqueLimiting ✔ fixed stop detection Motions (kinematics) Interrupt execution of motion MC_GroupInterrupt…
  • Page 61
    Basic instructions Extended instructions Communication Technology Description LAD/FBD (not S7-1200) Zones Define workspace zone MC_DefineWorkspaceZone Define kinematics zone MC_DefineKinematicsZone Activate workspace zone MC_SetWorkspaceZoneActive Deactivate workspace zone MC_SetWorkspaceZoneInactive Activate kinematics zone MC_SetKinematicsZoneActive Deactivate kinematics zone MC_SetKinematicsZoneInactive Toolbox Re-define tool MC_DefineTool Change active tool MC_SetTool Coordinate systems Redefine object coordinate systems…
  • Page 62
    Basic instructions Extended instructions Communication Technology A5E33284667-AF Page 61…
  • Page 63
    Basic instructions Extended instructions Technology Communication The following pages provide an overview of the details and usage of important functions of open communication and S7 communication. Open communication Definition: Open exchange of data via PROFINET/Industrial Ethernet between SIMATIC controllers or between SIMATIC controllers and third-party devices.
  • Page 64
    Communication Basic instructions Extended instructions Technology Instruction Logs Property of Data package size Application and the data application example transfer ✔ ✔ ✔ Exchange large data volumes with TSEND/TRCV TCP or Reliable with <= 64 KB ISO-on-TCP acknowledgment acknowledgment. For example: Send ✔…
  • Page 65
    Basic instructions Extended instructions Technology Communication S7 communication Definition: SIMATIC-homogeneous data exchange between SIMATIC CPUs via PROFIBUS PROFINET/Industrial Ethernet. With S7 communication, you connect existing S7-300/400 to S7-1200/1500 or migrate existing systems to S7-1200/1500. Recommendation: Use open communication for data exchange between S7-1200/1500 and thus the possibilities of common Ethernet standards.
  • Page 66
    Communication Basic instructions Extended instructions Technology Instruction Operating Guaranteed user Application Notes Property of state of data size for the data partner specified partner transfer controller controller ✔ ✔ ✔ RUN or Reliable with S7-300: 160 bytes Accessing data in the target You have to use data STOP acknowledgme…
  • Page 67
    Basic instructions Extended instructions Technology Communication » Instructions in the section «Communication Instruction groups Page Instruction groups Page Instruction groups Page Fail-safe HMI panels Communication with I-slave PROFINET and PROFIBUS S7 communication Modbus TCP PROFINET CBA Open User Communication Communications processors MPI communication OPC UA S7-300C functions…
  • Page 68
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ ✔ ✔ Send data uncoordinated USEND ✔ ✔ ✔ Receive data uncoordinated URCV ✔ ✔ ✔ Send data in segments BSEND ✔ ✔ ✔ Receive data in segments BRCV ✔…
  • Page 69: Open User Communication

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Note: S stands for short, Other instructions since only one parameter is possible ✔ ✔ Read data from a remote CPU GET_S ✔ ✔ Write data to a remote CPU PUT_S ✔…

  • Page 70
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ ✔ Resetting the connection T_RESET ✔ ✔ Check the connection T_DIAG ✔ ✔ Configure interface T_CONFIG Program-controlled IP and connection configuration via IP_CONFIG ✔ ✔ SEND/RECEIVE ✔ ✔ ✔ ✔…
  • Page 71
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) OPC UA: CP 443-1 OPC UA ✔ Establish connection for a session with an OPC UA server UA_Connect ✔ Fetching namespace index of a namespace URL UA_NamespaceGetIndex Registering node IDs on the connected server and fetching UA_NodeGetHandleList ✔…
  • Page 72
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Schematic flow: Web server ✔ ✔ ✔ ✔ Synchronize user-defined web pages Fail-safe HMI panels For Mobile Panel 277 F IWLAN: F_FB_MP ✔ ✔ ✔ ✔ Communication with connected device via PROFIsafe For Mobile Panel 277 F IWLAN: F_FB_RNG_4 ✔…
  • Page 73: Modbus Tcp

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) For Mobile Panel 277 F IWLAN: F_FB_RNG_16 ✔ ✔ ✔ Managing of up to 16 panels in the effective range For Mobile Panels of the second generation: F_FB_KTP_ ✔ ✔ ✔…

  • Page 74: Communications Processors

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Communications processors Not for S7-1500 Software Controller CPU 150xS Point-to-Point or PtP communication S7-300/400: Commands for ET 200SP CM PtP Configure PtP communication port Port_Config ✔ ✔ ✔ ✔ S7-300/400: Only if ET 200SP CM PtP is used ✔…

  • Page 75
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Recommendation: Use the instructions Instructions with lower memory requirements, but also less specified above. You cannot apply the functional scope. instructions decentrally in an ET 200. ✔ Configure communication parameters dynamically PORT_CFG ✔…
  • Page 76
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ Read out parameters from the drive USS_RPM ✔ ✔ ✔ ✔ Read data from drive (16 drives) USS_Read_Param ✔ Read data from drive (31 drives) USS_Read_Param_31 ✔ Change parameters in the drive USS_WPM ✔…
  • Page 77
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Point-to-point connection: CP 340 ✔ ✔ Receive data P_RCV ✔ ✔ Send data P_SEND ✔ ✔ Output alarm text with up to 4 tags to printer P_PRINT ✔ ✔ Delete receive buffer P_REST ✔…
  • Page 78
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Point-to-point connection: CP 441 ✔ ✔ Read accompanying signals at the RS 232 interface V24_STAT_441 ✔ ✔ Write accompanying signals at the RS 232 interface V24_SET_441 ✔ Send data to printer PRINT MODBUS slave (RTU) ✔…
  • Page 79
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ET 200S serial interface Note: S stands for serial ✔ ✔ ✔ Receive data S_RCV ✔ ✔ ✔ Send data S_SEND ✔ ✔ ✔ Read accompanying signals at the RS 232 interface S_VSTAT ✔…
  • Page 80
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ ✔ Connection diagnostics AG_UNLOCK ✔ ✔ Connection diagnostics AG_CNTRL Connection diagnostics, connection establishment, ping AG_CNTEX ✔ ✔ request Connection diagnostics, connection establishment, ping AG_CNTEX ✔ ✔ request PROFIBUS DP ✔…
  • Page 81
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) ✔ ✔ Data receipt from CP as IO controller or IO device PNIO_RECV ✔ ✔ Read data record or write data record in IO controller PNIO_RW_REC ✔ ✔ Alarm evaluation through CP343-1 as IO controller PNIO_ALARM PROFIenergy ✔…
  • Page 82
    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) GPRSComm:CP 1242-7 ✔ Establish connection via GSM network TC_CON ✔ Terminate connection via GSM network TC_DISCON ✔ Send data via the GSM network TC_SEND ✔ Receive data via the GSM network TC_RECV ✔…
  • Page 83: Communication With Islave

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) Communication with iSlave Read data from a communication partner within the local I_GET ✔ ✔ S7 station Write data to a communication partner within the local S7 I_PUT ✔ ✔ station Abort a connection to a communication partner within the I_ABORT…

  • Page 84: Mpi Communication

    Basic instructions Extended instructions Technology Communication Description LAD/FBD (not S7-1200) MPI communication Note: X stands for the MPI interface Send data to a communication partner outside the local S7 X_SEND ✔ ✔ station Receive data from a communication partner outside the X_RCV ✔…

  • Page 85
    Appendix Optional instructions Appendix Optional instructions Description LAD/FBD (not S7-1200) SIMATIC Ident ✔ ✔ ✔ Read data from transponder Read ✔ ✔ ✔ Read out data from code reading system Read_MV ✔ ✔ ✔ Reset reader Reset_Reader ✔ ✔ ✔ Set program at code reading system Set_MV_Program ✔…
  • Page 86
    Appendix Optional instructions Description LAD/FBD (not S7-1200) ✔ ✔ ✔ ✔ Set UHF parameters in the reader Set_Param ✔ ✔ ✔ ✔ Write EPC ID of a UHF transponder Write_EPC_ID Ident function for trained users with command Advanced_CMD ✔ ✔ ✔…
  • Page 87: Energy Suite

    Appendix Optional instructions Description LAD/FBD (not S7-1200) Energy Suite Calculate operating-mode-related energy data of EnS_EEm_Calc ✔ ✔ machines and systems for uniform efficiency evaluation according to measuring regulation Create efficiency protocol in CSV format on the EnS_EEm_Report ✔ ✔ SIMATIC memory card of the CPU according to measuring regulation A5E33284667-AA Page 86…

  • Page 88
    Siemens AG Änderungen vorbehalten. Digital Factory A5E33284667-AF Postfach 48 48 © Siemens AG 2017 90026 Nürnberg DEUTSCHLAND www.siemens.com/automation…

Понравилась статья? Поделить с друзьями:
  • Эфирное масло чайного дерева применение инструкция по применению
  • Indoor outdoor thermometer with hygrometer clock инструкция на русском языке
  • Минпросвещения руководство департаменты
  • Артра структум инструкция по применению цена
  • Микорад инструкция по применению цена отзывы аналоги