×
Siemens Industry Online Support
Siemens AG
文档类型 应用实例与扩展工具 文档编号 81318674, 文档发布日期 2021年6月24日
(98)
评估

Programming Guidelines and Programming Styleguide for SIMATIC S7-1200 and S7-1500

  • 文档
  • 涉及产品
To create an optimal program regarding technical possibilities and consistency, it is recommended to use the programming guidelines and programming styleguide for SIMATIC S7-1200/1500.

Introduction
Two different manuals for optimal programming of S7-1200 and S7-1500 controllers are offered here:

  • programming guideline (optimal programming with regards to technology)
  • programming guideline safety (Recommendations for configuring F-CPUs and programming safety programs)
  • programming styleguide (suggestion for a consistent program style)



Programming Guideline

The new controller generation SIMATIC S7-1200 and S7-1500 has an up-to-date system architecture, and together with the TIA Portal offers new and efficient options of programming and configuration. It is no longer the resources of the controller (e.g. data storage in the memory) that are paramount but the actual automation solution itself.
This document gives you many recommendations and information on the optimal programming of SIMATIC S7-1200/1500 controllers. Some differences in the system architecture of the SIMATIC S7-300/400, as well as the thus connected new programming options are explained in an easy to understand way. This helps you to create a standardized and optimal programming of your automation solutions. The examples described can be universally used for the controllers SIMATIC S7-1200 and S7-1500.

The following key issues on the TIA Portal are dealt with in this document:

  • S7-1200/1500 innovations
    • Programming languages
    • Optimized blocks
    • Data types and instructions
  • Recommendations on general programming
    • Operating system and user program
    • Memory concept
    • Symbolic addressing
    • Libraries
  • Recommendations on hardware-independent programming
  • Overview of the most important recommendations

Advantages and Benefits
Numerous advantages result from applying these recommendations and tips:

  • capable user program
  • clear program structures
  • intuitive and effective programming solutions

Downloads
Programming Guideline for S7-1200/S7-1500


Last Changes

V1.5: various modifications and new chapter (see Chapter 8 History in Programming Guideline 90885040


Programming Guideline Safety

This document is a supplement to the programming guideline above and deals with special aspects of configuring F-CPUs and programming safety programs with STEP 7.

Advantages and Benefits
Following the recommendations given in this document provides you with many advantages:

  • Reusability of program parts

  • Easier acceptance (code review, error detection and correction)

  • More flexibility in terms of program changes

  • Reduction of programming errors

  • Increased plant availability by avoiding CPU stops

  • Easier readability for third parties

  • Reduced runtime of the safety program         

Downloads
Programming Guideline Safety for SIMATIC S7-1200/1500
 

Programming Styleguide

When programming SIMATIC controllers, the task of the programmer is to create as clear and readable a user program as possible. Each user uses its own strategy, for example, how to name tags or blocks or the way of commenting. The different philosophies of the programmers create very different user programs that can only be interpreted by the respective programmer.
The programming styleguide offers you coordinated set of rules for consistent programming. These specifications for example describe a uniform assignment of tags and block names up to clear programming in SCL.
You can user these rules and recommendations at will; they serve as a suggestion (not a standard in programming) for consistent programming.

Advantages and Benefits
If several programmers are working on the same program, it is recommended to stick to a joint and coordinated programming style. This offers the following advantages:

  • consistent continuous style
  • easily readable and comprehensible
  • simple maintenance and reusability
  • easy and quick troubleshooting and error correction
  • efficient working at the same project with several programmers


Additional Keywords
Compendium, programming guidelines, summary

安全性信息
为了保护技术基础设施、系统、机器和网络免受网络威胁,有必要实施并持续维护一个全面、最先进的IT安全方案。西门子的产品和解决方案构成了这一方案的一个要素。有关网络安全的更多信息,请访问
https://www.siemens.com/cybersecurity#Ouraspiration.
评估文档
无评估
请求和反馈
您想要做什么?
注意:反馈总是与当前的条目/产品相关。您的消息将被转发给我们在线支持团队的技术编辑们。如果我们需要就您的反馈提供答复,您将在几天内收到答复。如果没有其它问题,您将不会收到答复。