Table of contents
Table of contents
Warranty and liability ................................................................................................... 2
1
Preface ................................................................................................................ 5
2
2.1
2.2
2.3
2.4
2.5
2.6
2.6.1
2.6.2
2.6.3
2.6.4
2.6.5
2.7
2.8
2.8.1
2.8.2
2.8.3
2.9
2.9.1
2.9.2
2.9.3
2.10
2.11
2.12
2.13
3
General Programming ..................................................................................... 27
3.1
3.2
3.2.1
3.2.2
3.2.3
3.2.4
3.2.5
3.2.6
3.2.7
3.2.8
3.3
3.3.1
3.3.2
3.4
3.4.1
3.4.2
3.4.3
3.4.4
3.5
3.6
3.6.1
3.6.2
3.6.3
3.6.4
3.6.5
Programming Guideline for S7-1200/1500
Entry-ID: 81318674,
V1.2,
Introduction ........................................................................................... 6
Terms ................................................................................................... 6
Block creation ....................................................................................... 9
Optimized blocks ................................................................................ 10
Block sizes ......................................................................................... 17
VARIANT data type ............................................................................ 18
Instructions ......................................................................................... 20
CALCULATE ...................................................................................... 20
MOVE instructions .............................................................................. 20
RUNTIME ........................................................................................... 21
System constants ............................................................................... 23
Program blocks .................................................................................. 27
Functions (FC) .................................................................................... 30
Instances ............................................................................................ 33
Multi-instances ................................................................................... 33
Storage concept ................................................................................. 41
Global memory ................................................................................... 42
Local memory ..................................................................................... 43
Retentivity ........................................................................................... 45
Symbolic addressing .......................................................................... 47
Slice access ....................................................................................... 53
03/2014
3