Download Print this page

Siemens SIMATIC S7 System Manual page 8

Hide thumbs Also See for SIMATIC S7:

Advertisement

Table of contents
7.5.1
Layout of web pages ........................................................................................................ 190
7.5.2
Introduction .................................................................................................................... 191
7.5.3
Start page........................................................................................................................ 192
7.5.4
Module information ......................................................................................................... 193
7.5.5
Event log ......................................................................................................................... 193
7.5.6
Status chart ..................................................................................................................... 194
7.5.7
Watch table ..................................................................................................................... 194
7.5.8
Data log........................................................................................................................... 195
7.5.9
Set clock .......................................................................................................................... 196
7.6
User defined Web pages ................................................................................................... 196
7.6.1
Downloading user-defined Web resource files ................................................................... 197
7.7
Web API (Application Programming Interface) .................................................................. 199
8
Program instructions ......................................................................................................................... 201
8.1
Bit logic ........................................................................................................................... 201
8.1.1
Standard inputs ............................................................................................................... 201
8.1.2
Immediate inputs............................................................................................................. 202
8.1.3
Logic stack overview ........................................................................................................ 203
8.1.4
STL logic stack instructions............................................................................................... 205
8.1.5
NOT................................................................................................................................. 207
8.1.6
Positive and negative transition detectors......................................................................... 208
8.1.7
Coils: output and output immediate instructions .............................................................. 209
8.1.8
Set, reset, set immediate, and reset immediate functions.................................................. 209
8.1.9
Set and reset dominant bistable ....................................................................................... 210
8.1.10
NOP (No operation) instruction ........................................................................................ 212
8.1.11
Bit logic input examples ................................................................................................... 212
8.1.12
Bit logic output examples ................................................................................................. 214
8.2
Clock ............................................................................................................................... 215
8.2.1
Read and set real-time clock ............................................................................................. 215
8.2.2
Read and set real-time clock extended .............................................................................. 218
8.3
Communication ............................................................................................................... 221
8.3.1
GET and PUT (Ethernet).................................................................................................... 221
8.3.2
Transmit and receive (Freeport on RS485/RS232).............................................................. 229
8.3.3
Get port address and set port address (PPI protocol on RS485/RS232)................................ 241
8.3.4
Get IP address and set IP address (Ethernet)...................................................................... 242
8.3.5
Open user communication ............................................................................................... 244
8.3.5.1
OUC instructions.............................................................................................................. 244
8.3.5.2
OUC instruction error codes ............................................................................................. 255
8.4
Compare.......................................................................................................................... 256
8.4.1
Compare number values .................................................................................................. 256
8.4.2
Compare character strings................................................................................................ 259
8.5
Convert ........................................................................................................................... 261
8.5.1
Standard conversion instructions...................................................................................... 261
8.5.2
ASCII character array conversion....................................................................................... 264
8.5.3
Number value to ASCII string conversion .......................................................................... 270
8.5.4
ASCII sub-string to number value conversion .................................................................... 274
8.5.5
Encode and decode.......................................................................................................... 276
8.6
Counters.......................................................................................................................... 278
8.6.1
Counter instructions ........................................................................................................ 278
8
System Manual, V2.7, 08/2022, A5E03822230-AK
S7-200 SMART

Advertisement

loading

This manual is also suitable for:

Simatic s7-200 smart