Specifications

Table of contents
Programming Guideline for S7-1200/1500
Entry-ID: 81318674, V1.2, 03/2014
4
Siemens AG 2014 All rights reserved
3.7 Libraries .............................................................................................. 54
3.7.1 Types of libraries and library elements .............................................. 54
3.7.2 Type concept ...................................................................................... 56
3.7.3 Differences for typifiable objects for controller and HMI .................... 56
3.7.4 Versioning of a block .......................................................................... 57
3.8 Process interrupts .............................................................................. 61
3.9 Other performance recommendations ............................................... 63
3.10 SCL programming language: Tips and tricks ..................................... 64
3.10.1 Using call templates ........................................................................... 64
3.10.2 What instruction parameters are mandatory? .................................... 65
3.10.3 Drag & drop with entire tag names ..................................................... 65
3.10.4 Efficiently inserting CASE instruction ................................................. 66
3.10.5 No manipulation of loop counters for FOR loop ................................. 66
3.10.6 FOR loop backwards .......................................................................... 67
3.10.7 Simple creating of instances for calls ................................................. 67
3.10.8 Handling of time tags .......................................................................... 67
4 Hardware-Independent Programming ........................................................... 69
4.1 Data types of S7-300/400 and S7-1200/1500 .................................... 69
4.2 No bit memory but global data blocks ................................................ 70
4.3 Programming of "clock bits" ............................................................... 71
5 The Most Important Recommendations ........................................................ 72
6 Related Literature ............................................................................................ 73
7 History............................................................................................................... 74