Table of contents
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
9
7.14.2 Shift register bit ..................................................................................................................... 317
7.15 String ..................................................................................................................................... 320
7.15.1 String (Get length, copy, and concatenate) .......................................................................... 320
7.15.2 Copy substring from string .................................................................................................... 322
7.15.3 Find string and first character within string ........................................................................... 323
7.16 Table ..................................................................................................................................... 326
7.16.1 Add to table ........................................................................................................................... 326
7.16.2 First-in-first-out and last-in-first-out ....................................................................................... 328
7.16.3 Memory fill ............................................................................................................................. 330
7.16.4 Table find .............................................................................................................................. 331
7.17 Timer ..................................................................................................................................... 335
7.17.1 Timer instructions .................................................................................................................. 335
7.17.2 Timer programming tips and examples ................................................................................ 337
7.17.3 Interval timers ....................................................................................................................... 344
7.18 Subroutine ............................................................................................................................. 346
7.18.1 CALL (subroutine) and RET (conditional return) .................................................................. 346
8 Communication ...................................................................................................................................... 353
8.1 CPU communication connections ......................................................................................... 354
8.2 CPU communication ports .................................................................................................... 355
8.3 HMIs and communication drivers ......................................................................................... 355
8.4 Ethernet ................................................................................................................................ 357
8.4.1 Overview ............................................................................................................................... 357
8.4.2 TCP/IP protocol ..................................................................................................................... 357
8.4.3 Local/partner connection ...................................................................................................... 358
8.4.4 Sample Ethernet network configurations .............................................................................. 358
8.4.5 Assigning Internet Protocol (IP) addresses .......................................................................... 359
8.4.5.1 Assigning IP addresses to programming and network devices ............................................ 359
8.4.5.2 Configuring or changing an IP address for a CPU or device in your project ........................ 362
8.4.5.3 Searching for CPUs and devices on your Ethernet network ................................................ 369
8.4.6 Locating the Ethernet (MAC) address on the CPU ............................................................... 370
8.4.7 HMI-to-CPU communication ................................................................................................. 371
8.5 PROFIBUS ............................................................................................................................ 372
8.5.1 EM DP01 PROFIBUS DP module ........................................................................................ 373
8.5.1.1 Distributed Peripheral (DP) standard communications ......................................................... 373
8.5.1.2 Using the EM DP01 to connect an S7-200 SMART as a DP device .................................... 374
8.5.1.3 Configuring the EM DP01 ..................................................................................................... 375
8.5.1.4 Data consistency ................................................................................................................... 376
8.5.1.5 Supported configurations ...................................................................................................... 377
8.5.1.6 Installing the EM DP01 GSD file ........................................................................................... 378
8.5.1.7 Configuring the EM DP01 I/O ............................................................................................... 379
8.5.1.8 Example of V memory and I/O address area ....................................................................... 382
8.5.1.9 User program considerations ................................................................................................ 384
8.5.1.10 LED status indicators for the EM DP01 PROFIBUS DP ....................................................... 386
8.5.1.11 Using HMIs and S7-CPUs with the EM DP01 ...................................................................... 387
8.5.1.12 Device database file: GSD .................................................................................................... 388
8.5.1.13 PROFIBUS DP communications to a CPU example program ............................................. 392
8.5.1.14 Reference to the EM DP01 PROFIBUS DP module technical specifications ...................... 394