Table of contents
S7-1200 Programmable controller
14 System Manual, 03/2014, A5E02486680-AG
10.2.2 Open user communication ........................................................................................................ 514
10.2.2.1 Connection IDs for the Open user communication instructions ................................................ 514
10.2.2.2 Protocols ................................................................................................................................... 517
10.2.2.3 Ad hoc mode ............................................................................................................................. 518
10.2.2.4 TCP and ISO on TCP ................................................................................................................ 519
10.2.2.5 TSEND_C and TRCV_C (Send and receive data via Ethernet) instructions ............................ 520
10.2.2.6 TCON, TDISCON, TSEND, and TRCV (TCP communication) instructions ............................. 527
10.2.2.7 UDP ........................................................................................................................................... 535
10.2.2.8 TUSEND and TURCV ............................................................................................................... 535
10.2.2.9 T_CONFIG ................................................................................................................................ 541
10.2.2.10 Common parameters for instructions ................................................................................... 548
10.2.3 Communication with a programming device ............................................................................. 550
10.2.3.1 Establishing the hardware communications connection ........................................................... 550
10.2.3.2 Configuring the devices ............................................................................................................. 551
10.2.3.3 Assigning Internet Protocol (IP) addresses ............................................................................... 551
10.2.3.4 Testing your PROFINET network ............................................................................................. 551
10.2.4 HMI-to-PLC communication ...................................................................................................... 552
10.2.4.1 Configuring logical network connections between two devices ................................................ 553
10.2.5 PLC-to-PLC communication...................................................................................................... 553
10.2.5.1 Configuring logical network connections between two devices ................................................ 554
10.2.5.2 Configuring the Local/Partner connection path between two devices ...................................... 555
10.2.5.3 Configuring transmit (send) and receive parameters ................................................................ 555
10.2.6 Configuring a CPU and PROFINET IO device.......................................................................... 558
10.2.6.1 Adding a PROFINET IO device................................................................................................. 558
10.2.6.2 Configuring logical network connections between a CPU and a PROFINET IO device .......... 558
10.2.6.3 Assigning CPUs and device names .......................................................................................... 559
10.2.6.4 Assigning Internet Protocol (IP) addresses ............................................................................... 559
10.2.6.5 Configuring the IO cycle time .................................................................................................... 560
10.2.7 Configuring a CPU and PROFINET iDevice ............................................................................. 561
10.2.7.1 I-device functionality .................................................................................................................. 561
10.2.7.2 Properties and advantages of the I-device ............................................................................... 562
10.2.7.3 Characteristics of an I-device .................................................................................................... 562
10.2.7.4 Data exchange between higher- and lower-level IO system .................................................... 565
10.2.7.5 Configuring the I-device ............................................................................................................ 567
10.2.8 Diagnostics ................................................................................................................................ 569
10.2.9 Distributed I/O instructions
........................................................................................................ 569
10.2.10 Diagnostic instructions .............................................................................................................. 569
10.2.11 Diagnostic events for distributed I/O ......................................................................................... 569
10.3 PROFIBUS ................................................................................................................................ 569
10.3.1 Communications services of the PROFIBUS CMs ................................................................... 571
10.3.2 Reference to the PROFIBUS CM user manuals ....................................................................... 572
10.3.3 Configuring a DP master and slave device ............................................................................... 572
10.3.3.1 Adding the CM 1243-5 (DP master) module and a DP slave ................................................... 572
10.3.3.2 Configuring logical network connections between two PROFIBUS devices ............................ 573
10.3.3.3 Assigning PROFIBUS addresses to the CM 1243-5 module and DP slave ............................. 574
10.3.4 Distributed I/O instructions ........................................................................................................ 575
10.3.5 Diagnostic instructions .............................................................................................................. 575
10.3.6 Diagnostic events for distributed ............................................................................................... 576
10.4 AS-i ............................................................................................................................................ 576
10.4.1 Configuring an AS-i master and slave device ........................................................................... 577
10.4.1.1 Adding the AS-i master CM 1243-2 and AS-i slave .................................................................. 577