Table of contents
4
PLC concepts ....................................................................................................................................... 69
4.1
4.1.1
4.1.2
4.1.3
4.2
Accessing data ....................................................................................................................... 74
4.2.1
Accessing memory areas ....................................................................................................... 75
4.2.2
Format for Real numbers ....................................................................................................... 82
4.2.3
Format for strings ................................................................................................................... 82
4.2.4
4.2.5
4.2.6
4.2.7
Pointer examples ................................................................................................................... 87
4.3
Saving and restoring data ...................................................................................................... 89
4.3.1
4.3.2
4.3.3
Types of storage .................................................................................................................... 93
4.3.4
Using a memory card ............................................................................................................. 94
4.3.5
4.3.6
4.3.7
4.4
4.5
Status LEDs ......................................................................................................................... 101
5
Programming concepts ........................................................................................................................ 103
5.1
5.2
5.3
5.3.1
5.3.2
5.3.3
5.3.4
5.3.5
Features of the LAD editor ................................................................................................... 113
5.3.6
Features of the FBD editor ................................................................................................... 114
5.3.7
Features of the STL editor ................................................................................................... 114
5.4
Data block (DB) editor .......................................................................................................... 115
5.5
Symbol table ........................................................................................................................ 118
5.6
Variable table ....................................................................................................................... 121
5.7
PLC error reaction ................................................................................................................ 127
5.7.1
5.7.2
Fatal errors ........................................................................................................................... 129
5.8
Program edit in RUN mode .................................................................................................. 130
5.9
6
System Manual, V2.3, 07/2017, A5E03822230-AF
S7-200 SMART