show the entry list

S7-1200 CPU 12xx -- Configuring and programming communication -- Configuring communication to HMIs 
How do you display the diagnostics buffer of a SIMATIC CPU with integrated web server on a SIMATIC Panel? 
How do you synchronize the time of the HMI Basic Panel with an S7-1200 PLC? 
How do you access S7-1200 tags with a panel or RT configured with WinCC flexible 2008 SP2? 
With which devices can the S7-1200 communicate over the integrated PROFINET interface and which protocols does the S7-1200 support? 
How can you access tags of the S7-1200 with WinCC? 

How do you display the diagnostics buffer of a SIMATIC CPU with integrated web server on a SIMATIC Panel?Go to beginning
Part number:

Description
The web server of the SIMATIC CPU provides the user with web pages for displaying diagnostics information. A SIMATIC Panel with Internet Explorer can access the web pages. In this way the user can display the diagnostic buffer and more CPU information on the SIMATIC Panel.

Note
The functional differences between the different SIMATIC Panels are given in Entry ID 40227286. This will help you determine which panels support the Internet Explorer.
You can use any SIMATIC CPU that supports the web server function.

Creation environment
This FAQ has been created with the software/hardware below.
 

No.

Software / Hardware
1 SIMATIC HMI TP900 Comfort (order no.: 6AV2124-0JC01-0AX0)
2 CPU 317-2 PN/DP (order no.: 6ES7317-2EK14-0AB0 as from firmware version V3.2)
3 SIMATIC STEP 7 Professional V11 SP2
4 SIMATIC WinCC Professional V11 SP2
Table 01

Instructions
Proceed as follows to have the diagnostics buffer of an S7 CPU displayed on the operator panel in Runtime.

  1. Configuration of the controller
  2. Configuration of the HMI operator panel
     
  1. Configuration of the controller
No. Procedure
1 Create controller
Create a SIMATIC controller in your project.
2 Define CPU properties
In the project navigation you open the device configuration of the SIMATIC controller and select the "Properties" tab. Click the "Web server" item and activate the "Enable web server on this module" option.

Save the settings and download the configuration into the SIMATIC controller.


Fig. 01

Table 02
  1. Configuration of the HMI operator panel
No. Procedure
1 Create operator panel
Create an operator panel in your project.
2 Create button
  • Add a button to your screen.
  • Change to the "Events" tab. Add the "OpenInternetExplorer" function and specify the IP address of the SIMATIC CPU as home page. In this example: "http://172.16.30.32"


Fig. 02

Table 03

Note on security
Caution
The functions and solutions described in this article confine themselves predominantly to the realization of the automation task. Furthermore, please take into account that corresponding protective measures have to be taken in the context of Industrial Security when connecting your equipment to other parts of the plant, the enterprise network or the internet. More information can be found in Entry ID: 50203404.

How do you synchronize the time of the HMI Basic Panel with an S7-1200 PLC?Go to beginning
Part number:

Description
Synchronize the system time of your HMI Basic Panel with the system time of your S7-1200 PLC by configuring tags and blocks and incorporating the configuration in your HMI Basic Panel.

Synchronize the time
Detailed instructions for synchronizing the time are available in PDF format in the section "Instructions for Synchronizing Time" in the file "S7-1200_HMI_time_sync_HowTo.pdf".
The sample project created in the instructions for STEP 7 Basic V10.5 can be downloaded in the section "Download" in the file "S7-1200_HMI_time_sync_example.zip".

Instructions for synchronizing the time

Contents:

  1. Configuring the S7-1200 PLC
  2. Configuring the HMI Basic Panel
  3. Using the time functions

Double-click the link "S7-1200_HMI_time_sync.pdf" to open the instructions. You need the Acrobat Reader program for this.

S7-1200_HMI_time_sync_HowTo.pdf ( 748 KB )

Download
Right-click the link. In the pop-up menu that opens, select the item "Save target as..." and save the file on your computer. Unpack the file with WinZip program.

S7-1200_HMI_time_sync_example.zip ( 1861 KB )

Validity
This FAQ is valid for

  • S7-1200 PLCs from firmware version V1.0.0.
  • STEP 7 Basic from V10.5.

Keywords
CPU, Alignment

How do you access S7-1200 tags with a panel or RT configured with WinCC flexible 2008 SP2?Go to beginning
Part number:

Core statement
With WinCC flexible 2008 Service Pack 2 all panels with an Ethernet interface that can be configured with WinCC flexible 2008 and the WinCC flexible 2008 Runtime can access S7-1200 data blocks using absolute addresses (no symbolic DBs) via the "SIMATIC S7 300/400" driver.

Compatibility
The following items are supported:

  • Data type: Bool, Byte, Char, DInt, DWord, Int, Real, Time, Word, String, Array
  • New S7-1200 data type:
    • SInt can be connected in WinCC flexible 2008 SP2 as Char
      (range: -128 to 127)
    • USInt can be connected in WinCC flexible 2008 SP2 as Byte
      (range: 0 to 255)
    • UInt can be connected in WinCC flexible 2008 SP2 as Word
      (range: 0 to 65535)
    • UDInt can be connected in WinCC flexible 2008 SP2 as DWord
      (range: 0 to 4294967295)
  • Structures (Struct, IEC_Counter, IEC_Timer, DTL, IEC_SCounter, IEC_DCounter, IEC_UCounter, IEC_USCounter, IEC_UDCounter, ErrorStruct) are not supported, but elements of structures can be connected in WinCC flexible 2008 SP2 separately.
  • Read and write access to peripheral inputs and outputs
  • Tag multiplexing
  • Recipes
  • Discrete alarms
  • Analog alarms
  • Screen number
  • Project ID
  • Data records
  • Coordination
  • Controller jobs

Procedure
The procedure for the communication with WinCC flexible 2008 Runtime  is described below.
 
No. Remarks
1 Create a data block using an absolute address in STEP 7 Basic V10.5 via "Add new block" and "Global DB".


Fig. 01

Remove the check mark for the option "Symbolic access only".

2 In the data block, you create the tags that WinCC flexible 2008 will access.


Fig. 02

3 In WinCC flexible 2008, you create a connection via "Communication > Connections".


Fig. 03

  • Select "SIMATIC S7 300/400" as the communication driver.
  • Select "Ethernet" as the interface.
  • Enter the IP address for the WinCC flexible Runtime and the S7-1200 station.
  • Select "S7ONLINE" as the operator panel's access point.
  • Specify "1" as the PLC's expansion slot.
4 Open the PG/PC interface under "Start > Control panel > Set PG/PC interface".
In the PG/PC interface, you must set the access point "S7ONLINE" to "TCP/IP -> [Used network card]".


Fig. 04

5 Create the S7-1200 tags using absolute addresses under "Communication > Tags" (compare with Fig. 02).


Fig. 05

Table 01

Notice
Service Pack 2 for WinCC flexible 2008 is available under entry ID: 38612895.

With which devices can the S7-1200 communicate over the integrated PROFINET interface and which protocols does the S7-1200 support?Go to beginning
Part number:

Communication partners of S7-1200
The S7-1200 CPU communicates with the devices below over the integrated PROFINET interface:

  • Other S7 CPUs (S7-200, S7-300, S7-400, S7-1200)
  • Programming devices
  • HMI devices (SIMATIC Basic Panels and SIMATIC Comfort Panels, for example)
  • Devices that support Open User Communications

Maximum number of simultaneous, asynchronous communication connections
The S7-1200 CPU supports the following maximum number of simultaneous, asynchronous communication connections:
 
Connection type Description and maximum number of connections
Open User Communications The S7-1200 CPU supports 8 connections for Open User Communications (active or passive) using the following instructions: T_SEND_C, T_RECV_C, TCON, TDISCON, TSEND and TRECV.

Note
Modbus TCP uses Open User Communications (OUC) connections as Modbus communications path. There can be multiple client-server connections in addition to the connection between STEP 7 and the CPU. Mixed client and server connections are supported up to the maximum number permitted to be supported by the CPU for Open User Communications.

S7 communication
  • 3 connections for a passive S7-1200 CPU communicating with an active S7 CPU or LOGO!, this means the S7-1200 is S7 server. The active S7 CPU or LOGO! establishes the connection and uses PUT and GET instructions (S7-300, S7-400 and S7-1200) or the ETHx_XFER instruction (S7-200)
    to read and write data.
  • 8 connections for an active S7-1200 CPU or LOGO! communicating with a passive S7 CPU, this means the S7-1200 is S7 client. The active S7-1200 CPU establishes the connection and uses PUT and GET instructions to read and write data.
HMI connections The S7-1200 CPU provides dedicated HMI connections to support up to 3 HMI devices.
PG connections  The S7-1200 CPU provides connections to support 1 programming device (PG).
Web server connections (HTTP) The S7-1200 provides connections for the web server.


Fig. 01

PROFINET and PROFIBUS
For PROFINET, the S7-1200 CPU supports a maximum of 8 PROFINET IO devices and 128 submodules, which ever is reached first. PROFIBUS supports a maximum of 16 DP slaves on one DP master with a maximum of 256 submodules per DP slave.

As from firmware version V3.0 the S7-1200 CPU supports 16 PROFINET IO devices with a maximum of 256 submodules. PROFIBUS supports 32 DP slaves with a maximum of 512 submodules per DP slave.

Validity
This entry is valid for:

  • S7-1200 CPUs with firmware version V1.0.0.
  • STEP 7 Basic V10.5 without Service Pack.

Integrated PROFINET interface of the S7-1200
The integrated PROFINET interface of the S7-1200 CPU is implemented as RJ45 socket.


Fig. 02

Supported protocols
The S7-1200 supports the following protocols over the integrated PROFINET interface:
 
Protocol Firmware version
TCP V1.0
ISO-on-TCP (RFC 1006) V1.0
UDP V2.0
PROFINET RT - Basic Services and IO Controller V2.0
S7 communication (S7 server) V1.0
S7 communication the PUT/GET instructions (S7 client) V2.0
Web server  V2.0
Modbus TCP V2.1
HTTP (Hypertext Transfer Protocol) V2.0
HTTPS - Hyper Text Transfer Protocol Secure V2.0
SNMP - Simple Network Management Protocol V2.0
LLDP - Link Layer Discovery Protocol V2.0
DCP - Discovery & Configuration Protocol V2.0
NTP - Network Time Protocol V2.0
ARP - Address Resolution Protocol V2.0

Additional Information
More information about communications with the S7-1200 CPU is available in the S7-1200 manual in Entry ID: 36932465.

How can you access tags of the S7-1200 with WinCC?Go to beginning
Part number:

Description
It is possible to access tags of the S7-1200 from WinCC via the OPC.
For this, you create a PC station with an OPC server. You can access the OPC server with WinCC.
A detailed description of the required procedure is available in chapters 1 to 5 of the PDF in Entry ID 39960679.

Validity
This FAQ is valid for

  • S7-1200 CPUs up to and including firmware version V1.0.2.
  • WinCC up to and including version V7.0 SP2.

Keywords
HMI
 

 Entry ID:38052940   Date:2013-01-21 
I regard this article....as helpfulas not helpful                                 






























related links
Making the transition from S7-200 ...
How can you reset WinCC flexible ...
Service Pack 2 for WinCC flexible ...
WinCC: Communication
SIMATIC HMI WinCC flexible 2008 W ...
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Help
Online Help
Guided Tour