Table of contents
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
11
10.2.2.3 Ad hoc mode..............................................................................................................................400
10.2.2.4 TCP and ISO on TCP ................................................................................................................401
10.2.2.5 UDP............................................................................................................................................415
10.2.2.6 T_CONFIG .................................................................................................................................421
10.2.2.7 Common parameters for instructions.........................................................................................427
10.2.3 Communication with a programming device..............................................................................429
10.2.3.1 Establishing the hardware communications connection............................................................429
10.2.3.2 Configuring the devices .............................................................................................................430
10.2.3.3 Assigning Internet Protocol (IP) addresses ...............................................................................431
10.2.3.4 Testing your PROFINET network ..............................................................................................431
10.2.4 HMI-to-PLC communication.......................................................................................................431
10.2.4.1 Configuring logical network connections between two devices.................................................432
10.2.5 PLC-to-PLC communication ......................................................................................................433
10.2.5.1 Configuring logical network connections between two devices.................................................434
10.2.5.2 Configuring the Local/Partner connection path between two devices.......................................434
10.2.5.3 Configuring transmit (send) and receive parameters.................................................................434
10.2.6 Configuring a CPU and PROFINET IO device ..........................................................................437
10.2.7 Diagnostics.................................................................................................................................440
10.2.8 Distributed I/O Instructions.........................................................................................................441
10.2.9 Diagnostic instructions ...............................................................................................................441
10.2.10 Diagnostic events for distributed I/O..........................................................................................442
10.3
PROFIBUS.................................................................................................................................442
10.3.1 Communications modules PROFIBUS ......................................................................................444
10.3.1.1 Connecting to PROFIBUS .........................................................................................................444
10.3.1.2 Communications services of the PROFIBUS CMs....................................................................444
10.3.1.3 Other properties of the PROFIBUS CMs ...................................................................................446
10.3.1.4 Configuration examples for PROFIBUS ....................................................................................447
10.3.2 Configuring a DP master and slave device................................................................................448
10.3.2.1 Adding the CM 1243-5 (DP master) module and a DP slave....................................................448
10.3.2.2 Configuring logical network connections between two PROFIBUS devices .............................449
10.3.2.3 Assigning PROFIBUS addresses to the CM 1243-5 module and DP slave..............................449
10.3.3 Distributed I/O Instructions.........................................................................................................451
10.3.4 Diagnostic instructions ...............................................................................................................451
10.3.5 Diagnostic events for distributed I/O..........................................................................................451
10.4
AS-i ............................................................................................................................................452
10.4.1 Configuring an AS-i master and slave device............................................................................453
10.4.1.1 Adding the CM 1243-2 AS-i Master module and AS-i slave......................................................453
10.4.1.2 Configuring logical network connections between two AS-i devices.........................................453
10.4.1.3 Assigning AS-i addresses to the CM 1243-2 AS-i Master module and AS-i slave....................454
10.4.2 Exchanging data between the user program and AS-i slaves...................................................455
10.4.2.1 Configuring slaves with STEP 7.................................................................................................455
10.4.2.2 Configuring slaves without STEP 7 ...........................................................................................457
10.4.3 Distributed I/O Instructions.........................................................................................................458
10.4.4 Working with AS-i online tools ...................................................................................................458
10.5
S7 communication .....................................................................................................................460
10.5.1 GET and PUT instructions .........................................................................................................460
10.5.2 Creating an S7 connection.........................................................................................................464
10.5.3 Configuring the Local/Partner connection path between two devices.......................................464
10.5.4 GET/PUT connection parameter assignment............................................................................465
10.5.4.1 Connection parameters..............................................................................................................465
10.5.4.2 Configuring a CPU-to-CPU S7 connection ................................................................................468