Welcome to the Industrial Automation website!

NameDescriptionContent
HONG  KANG
E-mail  
Password  
  
Forgot password?
  Register
当前位置:

SIEMIENS S7-1200/1500 Controller TIA Portal Programming Guide

来源: | 作者:FAN | 发布时间 :2025-11-24 | 202 次浏览: | Share:

SIEMIENS S7-1200/1500 Controller TIA Portal Programming Guide

Overview

The Siemens S7-1200/1500 Controller TIA Portal Programming Guide (V1.6 version) focuses on optimizing programming and covers the core innovations of the S7-1200/1500, such as optimization blocks, new data types VNet, direct machine code compilation, general programming specifications (block structure, symbol addressing, memory management), hardware independent programming methods, STEP 7 Safety programming points, and visual automatic generation solutions. It explicitly recommends using optimization blocks instead of non optimization blocks, symbol addressing instead of absolute addressing, and global data blocks instead of bit memory. At the same time, it provides a large number of performance optimization techniques (such as avoiding deep call hierarchy and using loop instructions reasonably), aiming to help users achieve standardized, efficient, and reusable automation program development.


S7-1200/1500 Core Innovation

1. Programming languages and compilation optimization

Language support differences:

Programming language S7-1200 S7-1500

Ladder diagram (LAD) ✅   ✅

Function Block Diagram (FBD) ✅   ✅

Structured Control Language (SCL) ✅   ✅

Statement Table (STL) ❌   ✅

Sequential Function Graph ❌   ✅

Compilation method: S7-1200/1500 generates machine code directly for all languages, without the intermediate step of "LAD/FBD → STL → machine code" for S7-300/400, ensuring consistent performance for all languages.

2. Optimize block technology (core innovation)

Optimized block vs non optimized block:

Feature optimization block (recommended) Non optimization block (only compatible)

Data storage is automatically sorted by data type, stored in declared order without gaps, and may have gaps

The addressing method can be either symbolic addressing or absolute addressing

Retention settings: A single label can be set to maintain the entire block or not to maintain it

Download feature supports uninitialized download (RUN mode update) not supported

Fast access speed (processor optimized storage) slow

Setting method: By default, "Optimize Block Access" is enabled for new blocks, which can be batch modified in the "Program Block" list; The optimization properties of instance DB inherit from the associated FB.

3. New data types

Core new type:

Data Type Applicable Controller Purpose Key Features

VARIANT S7-1500; S7-1200 (FW4.1+) dynamic pointer with type detection, replacing the ANY pointer, supporting symbol access

Date_Time_Long (DTL) both support timestamp storage containing year/month/day/nanosecond, with symbol accessible sub fields (such as DTL. Hour)

Both LReal and LReal support high-precision floating-point numbers of 64 bits and 15 decimal places, making them suitable for precise calculations

LTime only has a long-term storage range of ± 106751 days for S7-1500 and supports nanosecond level accuracy

WSRING only supports S7-1500 Unicode strings for multiple languages (such as Chinese and Latin), with a maximum of 16382 characters

4. Key instruction upgrade

MOVE series instructions:

Advantages of Instruction Usage

MOVE supports single value copying and complete copying of structures/arrays

MOVE_SLK array partial copy specifies the starting index and quantity, efficiently processing the array

MOVE_SLK_VARIANT Dynamic Type Copy Run Time Detect Data Types, Supports PLC Data Types/Arrays

The serialize/deserialize structure and byte array conversion are used for communication frame packaging/unpacking, supporting VNet input

Other instructions:

TypeOf(): detects the data type pointed to by VNet on the label (SCL only);

RUNTIME: measures program/block running time, supports performance optimization;

Multi assignment (V14+): such as # a:=# b:=# c:=0; Simplify initialization.

image.png

Universal Programming Specification

1. Program block structure

Core block type:

Key features of block type functionality

Organizational block (OB) operating system call, management program execution including loop OB (OB1), interrupt OB (OB40 hardware interrupt), etc; S7-1200 up to 100 cycles/start OB, S7-1500 supports clock interrupt OB

Function (FC) has no state block and no independent storage temporary label. Only the current call is valid, and data needs to be passed through parameters; Support direct participation of return values in SCL formulas

Function block (FB) has a status block that requires the instance DB static label to maintain its value; The instance DB structure is defined by FB and cannot be modified separately

Data Block (DB) stores data in a global DB for all blocks to access; Instance DB is only associated with FB usage

Block Reuse Techniques:

Multiple instances: FB calls other FBs to store data in their own instance DB, reducing the number of instance DBs;

Typeization block: Store FB/FC/PLC data types in the global library, supporting cross project reuse and batch updates.

2. Memory management

Memory type and access speed (from fast to slow):

Optimize the temporary labels, FC/FB parameters, and non persistent static labels of the block;

Optimize the retention labels of blocks and optimize the global database;

  • WESTINGHOUSE 5X00119G01 Ovation Module
  • Westinghouse 5X00105G14 Control Module
  • WESTINGHOUSE 5X00105G01 Ovation System Base Module
  • WESTINGHOUSE 5X00058G01 Ovation Controller
  • Westinghouse 5A26391H24 Control Module
  • WESTINGHOUSE 4D33942G01 Ovation I/O Communication Module
  • WESTINGHOUSE 3A99158G01 Ovation I/O Module
  • WESTINGHOUSE 3A99200G01 Control Module
  • WESTINGHOUSE 3A99132G02 Ovation System Power Module
  • WESTINGHOUSE 3A99132G01 Ovation Interface Module
  • WESTINGHOUSE 1X00416H01 Control Module
  • WESTINGHOUSE 1X00024H01 Ovation System Interface Module
  • WESTINGHOUSE 1C31227G02 Ovation I/O Module
  • Westinghouse 1C31194G03 Control Module
  • WESTINGHOUSE 1C31194G02 Ovation Controller Module
  • WESTINGHOUSE 1C31194G01 Ovation Controller Module
  • WESTINGHOUSE 1C31189G01 Control I O Module
  • WESTINGHOUSE 1C31179G02 Ovation Processor Module
  • WESTINGHOUSE 1C31164G02 Ovation Relay Output Module
  • Westinghouse 1C31161G02 RTD Input Module
  • WESTINGHOUSE 1C31150G01 Ovation DCS I/O Controller Module
  • WESTINGHOUSE 1C31113G02 Ovation Analog Input Module
  • WESTINGHOUSE 1C31129G03 Control Module
  • WESTINGHOUSE 1C31122G01 Process Controller | Ovation DCS Control Module
  • WESTINGHOUSE 1C31113G02 Ovation Analog Input Module
  • WESTINGHOUSE 1B30023H02 Control Module
  • WESTINGHOUSE 1B30035H01 Turbine Control System Module
  • WIDAP UFW30.156 6K8J175W0823 Power Resistor Technical Profile
  • WINGREEN IPB PCB V2.0_A01 03ZSTL6-00-201-RS Industrial Power Board
  • WINGREEN CANopen_ADAPTER V5.0_A01 03ZSTI-00-501-RS Module
  • WINGREEN PUIM V2.0 034STM4-00-200-RS Power Interface Module
  • WINGREEN DUDT_DETECTION_V2.0_A01 03ZSTJ0-00-201-RS Detection Control Board
  • WINGREEN LAIB V3.0_A00 034STN1-00-300-RS Embedded Industrial Motherboard
  • WINGREEN FAN_DETECTION V1.0_A05 03ZSTJ3-00-105Fan Monitoring Module
  • WINGREEN LAIB V3.0_A00 034STN1-01-300-RS Interface Board
  • WINGREEN ATKB_V5.0_A01 03ZSTI4-00-501 Industrial Control Keyboard Module
  • WINGREEN ATKB_V5.0_A01 03ZSTI4-01-501 Industrial Motherboard | Embedded Control Board
  • WINGREEN FPB_V3.0_A01 03ZSTJ1-00-301-RS Fieldbus Processor
  • WINGREEN DSPB_V4.0_A02 03ZSTI7-00-402-RS Digital Processing Board
  • WOHNER 31110 Cylindrical Fuse Holder
  • WOODHEAD APPLICOM PCI4000 PCI Communication Card Industrial DeviceNet CAN Bus Interface
  • Woodward 8440-1706 Industrial Control System Module
  • Woodward 8440-2052 H Synchronizer Load Share Module
  • Baldor KPD-TS12C-30E 12.1" Color TFT Touch Screen Ethernet HMI
  • Baldor KPD-TS10C-30E 10" Color TFT Touch Screen Operator Interface with Serial and Ethernet Interfaces
  • Baldor KPD-TS05C-30E 5.6" Color TFT Touch Screen with Serial and Ethernet Interface
  • Baldor KPD-TS05C-30 5.6 Inch Color TFT Touch Screen Serial Interface
  • Baldor KPD-TS05M-10 5.6" Monochrome Touch Screen Serial Interface HMI
  • Baldor KPD-TS03M-10 Monochrome Touch Screen Operator Interface
  • Baldor KPD-KG420-30 4x20 Graphic Display with 12 Function Keys - Serial Interface
  • Baldor KPD-KG420-20 4x20 Character Graphic Display Serial Interface
  • WOODWARD EASYGEN-3200-5 8440-1992 A Genset Controller
  • WOODWARD PEAK200-HVAC 8200-1501 C Version | Industrial Building Automation Controller
  • Woodward 8440-2052 easyGEN-3200 Genset Control Power Management
  • Woodward 8237-1246 + 5437-1119 Control System Module
  • WOODWARD SPM-D11 8440-1703 Overspeed Protection System Module
  • WOODWARD 8237-1369 Governor Control Module
  • Woodward 8237-1600 Digital Control Module
  • WOODWARD BUM60-1224-54-B-001-VC-A0-0093-0013-G003-0000 3522-1004 Industrial Control Module
  • WOODWARD 8200-1302 Genset Controller
  • Woodward 8901-457 Speed Control Module
  • WOODWARD 5501-465 Control Module
  • Woodward 5448-890 SPM-D10 Digital Control Module
  • WOODWARD 5437-1067A Turbine Governor Actuator
  • Woodward 8440-1666 B Digital Control Module
  • WOODWARD 8440-1706 A SPM-D11 Synchronous Phase Modulator Module
  • WOODWARD 5466-425 Programmable Automation Controller (PAC)
  • WOODWARD 5466-318- Industrial Gas Turbine Control Module
  • WOODWARD 5453-277 Digital Control Module
  • WOODWARD 5453-203 Digital Governor Control Module
  • WOODWARD 9907-1106 Pressure Converter
  • WOODWARD 5233-2089 Professional Industrial Control System Module
  • WOODWARD 9907-147 Power outage tripping overspeed protection system
  • WOODWARD 8237-1600 Digital Speed Control System
  • WOODWARD 8402-319 8402-119 microprocessor speed controller
  • Woodward 8237-1006 Digital Governor
  • WOODWARD 5501-471 Communication Module
  • WOODWARD 5466-258 Input/Output Module
  • WOODWARD 5501-467 Multi Protocol Communication Gateway and I/O Expansion Module
  • WOODWARD 5501-470 Digital microprocessor controller module
  • WOODWARD 9907-1200 Digital Governor
  • WOODWARD 8444-1067 High Performance Digital Microprocessor Controller Module
  • WOODWARD 8446-1019 Integrated Gas Engine Electronic Control System
  • WOODWARD 9907-162 Digital Engine Governor
  • WOODWARD 5466-316 Simulation Combination Module
  • WOODWARD 5464-414 Digital Speaker Sensor Module
  • XANTREX XFR40-70 DC power supply
  • XP POWER F8B6A4A6A6 power module
  • XP POWER F8B6D4A3G3 power supply
  • XYCOM XVME-674 VMEbus Single Slot CPU/Processor Module
  • XYCOM XVME-957 Circuit Board
  • XYCOM XVME-976 PC board computer
  • XYCOM XVME-530 8-Channel Isolated Analog Output Module
  • XYCOM Proto XVME-085 Bus Module
  • YAMAHA RCX40 4-AXIS ROBOT CONTROLLER
  • YAMATAKE EST0240Z05WBX00 touch screen display
  • YAMATAKE HD-CAOBS00 flowmeter
  • HIMA X-COM 01 Communication Module
  • HIMA HIMax X-AO 16 01 Analog Output Module
  • HIMA X-AI3251 Analog Input Module
  • HIMA X-DO3251 Digital Output Module
  • HIMA X-DI3202 Digital Input Module
  • HIMA X-DI6451 Digital Input Module
  • YASKAWA USAHEM-02-TE53 AC servo motor
  • Yaskawa JZNC-XPP02B Teaching Programmer
  • YASKAWA CACR-SR07BE12M servo drive
  • YASKAWA JAMSC-B2732V Advanced Drive Controller
  • YASKAWA JGSM-06 Controller
  • YASKAWA PCCF-H64MS 64MB Industrial Memory Module
  • YASKAWA CACR-02-TE1K servo driver
  • YASKAWA JAPMC-IQ2303 Controller Module
  • YASKAWA DDSCR-R84H Controller
  • YASKAWA JANCD-XTU01B circuit board
  • YASKAWA JANCD-XIO01 High Performance PC Input/Output (I/O) Board
  • YASKAWA JACP-317800 servo drive
  • XYCOM 120974 - Circuit Board
  • XYCOM 99298-200 - PC Control Card 99207A-001
  • XYCOM 99298-266 - CPU Board
  • XYCOM 99311-001 - Screen Display Ribbon Cable
  • XYCOM 99384-002 - PCB Module 99383A-001
  • XYCOM A05520I01 - Control Module PW22471 MPL400
  • XYCOM A33369 - Dual PMC Carrier Module
  • XYCOM AC2064A1 - VMEbus PCB Board Analog Output
  • XYCOM AC2065A1 - VMEbus PCB Board Analog Output
  • XYCOM CDA XVME - DSP SCSI I/O Module Serial RS232
  • XYCOM 143913-001 - TSKAM Board Rev A
  • XYCOM 1300-000100000 - Operator Interface Node Module
  • XYCOM 140050(R) - Documentation Support Library