Table of contents
7.5
Convert ................................................................................................................................. 236
7.5.1
7.5.2
7.5.3
7.5.4
7.5.5
Encode and decode ............................................................................................................. 252
7.6
Counters ............................................................................................................................... 253
7.6.1
Counter instructions ............................................................................................................. 253
7.6.2
7.6.3
7.6.4
7.6.5
7.6.6
7.7
Pulse output ......................................................................................................................... 285
7.7.1
7.7.2
Pulse train output (PTO) ...................................................................................................... 287
7.7.3
7.7.4
7.7.5
7.8
Math ..................................................................................................................................... 297
7.8.1
7.8.2
7.8.3
7.8.4
Increment and decrement .................................................................................................... 305
7.9
PID ....................................................................................................................................... 307
7.9.1
Using the PID wizard ........................................................................................................... 308
7.9.2
PID algorithm ....................................................................................................................... 313
7.9.3
7.9.4
7.9.5
7.10
Interrupt ................................................................................................................................ 322
7.10.1
Interrupt instructions ............................................................................................................ 322
7.10.2
7.10.3
7.10.4
7.10.5
7.11
Logical operations ................................................................................................................ 335
7.11.1
Invert .................................................................................................................................... 335
7.11.2
AND, OR, and exclusive OR ................................................................................................ 336
7.12
Move .................................................................................................................................... 338
7.12.1
7.12.2
Block move ........................................................................................................................... 339
7.12.3
Swap bytes ........................................................................................................................... 340
7.12.4
7.13
Program control.................................................................................................................... 342
7.13.1
FOR-NEXT loop ................................................................................................................... 342
7.13.2
JMP (jump to label) .............................................................................................................. 344
7.13.3
8
System Manual, V2.3, 07/2017, A5E03822230-AF
S7-200 SMART