show the entry list

WinCC flexible ES -- Configuring and programming communication -- Configuring communication to S5 
Which program changes have to be made in an S5 controller if a line or graphics operator panel with PROFIBUS connection is replaced by a Windows-based operator panel? 
How is the connection between a Windows-based panel and a SIMATIC S5 set up? 
Which communication options exist for the different controllers / CPs, and how are they configured? 

Which program changes have to be made in an S5 controller if a line or graphics operator panel with PROFIBUS connection is replaced by a Windows-based operator panel?Go to beginning
Part number:

Configuration Notes:
If you wish to exchange a line or graphics operator panel, which is connected to a SIMATIC S5 controller via a PROFIBUS DP link, for a Windows-based operator panel, this necessitates the program changes described below.

This example describes which settings need to be taken into consideration when exchanging an "OP25" for an "MP 277 Key". The S5 controller is an S5 115U / CPU 944A. 

This also applies to the following line and graphics operator panels:

  • TD10, TD20 and OP20 (PROFIBUS DP interface module and
    firmware memory module.)
  • OP5 and OP15: the OP5/A2, OP15/A2 or OP15/C2 versions of the operator panel.
  • OP7: the OP7/DP or OP7/DP–12 versions of the operator panel.
  • OP17: the OP17/DP or OP17/DP–12 versions of the operator panel.
  • OP25/35, OP27/37 and TP27/37.

Note:
Make a backup copy of your configuration before making any changes to your project.
 
No. COM PROFIBUS:
1 Open your COM PROFIBUS configuration.

Take a note of the settings of the HMI station(s) - in particular the
I/O addresses, as well as the PROFIBUS address which has been used.


Fig. 01

2 Changing the operator panel and assigning addresses
  • Once you have taken note of all the settings, delete the "old" HMI station (OP25).
  • Then insert the "new" HMI station (MP277).
  • Insert a module into the "new" HMI station, in this case "class B tiny".
  • Enter the addresses of the "old" HMI station into the "new" HMI station.
    Use the "Auto addressing" function to have the assignment of the I/O addresses added automatically.


Fig. 02

This concludes the configuration changes on the COM PROFIBUS side.
The data now still has to be transferred to the IM module.

3 Adding GSD files
If the replacement operator panel is not listed in your COM PROFIBUS software, you can add the missing GSD file afterwards.
  • The relevant GSD file is to be found in the installation directory*) of WinCC flexible, e.g. under "C:\Program Files\Siemens\SIMATIC WinCC flexible\WinCC flexible Support\PlcProg\GSD".
    This is the "Siem813F.gsd" file for the MP 277. You can open the separate GSD files with a text editor, e.g. Notepad. The operator panels for which this GSD file is valid are listed in the header.
  • Copy the GSD files to the COM PROFIBUS folder, for example: C:\Siemens\CPBV51\gsd\ ....
  • Then open the COM PROFIBUS software.
    The new GSD files are read in and updated in the "File > Read in GSD files" folder.


Fig. 03

*) Alternatively you can download the GSD files for SIMATIC panels in Entry ID: 39329178 .

 

No. S5 Configuration:
1 Basics
You need to make program changes on the S5 side.
Here is a summary of the essential differences.

Graphics operator panel:

FB58  --   Standard FB (TDOP:DP)
DB51  --  Interface DB (length 256DW)
DB52  --  Communication DB (DB-ZU, min. length 16DW)

Windows-based operator panel:

FB158  --  Protocol processing
FB159  --  Copies data to/from the memory
DB58   --  Free DB, main memory for FB158 (free DB with 11 data words in length. This DB can be used by the user from the eleventh data word.)

Note:
The following communication manuals contain detailed information about the structure of the FBs and DBs used:

  • SIMATIC HMI Communication for Line and Graphics Systems - Entry ID 1137086
  • SIMATIC WinCC flexible ES Communication Part 1 - Entry ID 18797552
2 S5 program changes:
If you replace a line or graphics operator panel with DP link with a Windows-based operator panel, the following blocks are no longer required.
  • FB58
  • DB51
  • DB52

The following blocks are required for communication with a Windows-based operator panel with DP link.

  • FB158
  • FB159
  • DBxx (free DB with 11 data words in length. This DB can be used by the user from the eleventh data word.)

FB158 and FB159 are installed together with WinCC flexible.
You can find the S5 file in the installation directory of WinCC flexible, for example, at:
C:\...\Siemens\SIMATIC WinCC flexible\WinCC flexible Support\PlcProg\SimaticS5\DEU\ag...


Fig. 04

Open the appropriate S5 program file (depending on which CPU you use) and copy the FB158 and FB159 blocks to your configuration.


Fig. 05

Calling FB 158
FB 158 must be called in the cyclic program, e.g. OB 1, with the following parameters:

  • PERA: I/O start address, must match the configuration in the COM PROFIBUS.
  • BLEN: Block length - not in AG (PLC) 95U (only supports tiny)
    0: tiny
    1: small
    2: middle
    3: big
  • CADB: free DB, serves as a main memory for FB 158. The first 11 words of the DB are used by FB 158 to save data temporarily. This DB can be used by the user from the eleventh data word.

The block length must match the configuration in WinCC flexible (Controller > Parameters).
0=tiny has been selected as the block length in our example (see Fig. 02).

Sample call for FB 158:
:SPA FB 158
NAME :DPHMI
PERA :KF 128
BLEN :KF 0
CADB :DB 58


Fig. 06

Multiple FB 158 calls:
When using multiple operator panels, the FB must be called for each operator panel once.

Calling FB 159:
FB 159 is only transferred to the PLC.
FB 159 may not be called by the user in the actual S5 program.

This concludes the changes which are required for communication.

 
No. Configuring WinCC flexible:
1 Converting projects
When using WinCC flexible, you can convert "text devices" and "graphics devices" into a Windows-based system.
You can convert provided the project does not exceed the system limits for the Windows-based operator panel.

Note:
Detailed information on the topic of "Migration" is available in the Online Help of WinCC flexible under "Help > Contents > Getting Started > Migration".

Refer to the following table to find out which operator panel you should prefer with a view towards achieving an optimum result for the conversion.


Fig. 07

2 Converting OP25 --> MP277
  • Before converting the project, open "OP25 Project" under ProTool and change the protocol from "SIMATIC S5 L2-DP" to "SIMATIC S5 - AS511". Close the project and terminate ProTool.
  • Open WinCC flexible and select the option "Open ProTool Project".
  •  Select the ProTool project to be converted and click on the "Open" button. The Migration Wizard starts.
  • In the course of the migration you enter the target device to which the ProTool project is to be migrated.
    See Fig. 07 for which panel you should choose. You can also use a different operator panel.
  • After converting the project, go to "Communication > Connections" and change the communication driver from "SIMATIC S5 - AS511" to "SIMATIC S5 - DP".
  • Then check the settings under "Parameters".
    The settings must match the settings saved in the COM PROFIBUS configuration.


Fig. 08

A few points are summarized below which you should perform or check before and after converting a project.

Area pointer:
The "Interface area" pointer is divided into three area pointers in Windows-based systems: ""Coordination", "Job mailbox" and "Date/time".
This split serves to simplify data exchange between the operator panel and the controller. Following conversion you have to insert the new area pointers into the target project and set up the source project accordingly.

S5 time:
The transfer of S5 time values (timer data type) to the controller is implemented in the operator panels via various time bases.

  • Line / graphics operator panels: S5 time has a time base of seconds.
  • Windows-based operator panels: S5 time has a time base of milliseconds.

When a line/graphics operator panel is converted into a Windows-based operator panel with integrated timer variables, the time bases for the timer variables change from 1s in the case of a line/graphics operator panel to 10 ms in the case of a Windows-based operator panel.
The entry of 1 s for a graphics operator panel corresponds to 10 ms for a Windows-based operator panel.

In order to create a time base of 1 s for a Windows-based operator panel as well, a conversion with a factor of 100 has to be set up for all timer variables.

Keywords:
RMOS operator panel, Panel

How is the connection between a Windows-based panel and a SIMATIC S5 set up?Go to beginning
Part number:

Instructions:
SIMATIC HMI Windows-based panels do not possess a TTY (20mA) interface which is needed for communication with a SIMATIC S5 PLC.

Exception:
The MP 370 operator panel possesses a TTY interface. Furthermore, the interface can be switched between V24 and TTY on a panel PC in the BIOS.

For all other Windows-based panels you need an adapter (9-pin female to 25-pin male) and an RS232/TTY converter cable for connecting to a SIMATIC S5.

Note:
The AS511 driver is no longer available for some operator panels for connecting to a SIMATIC S5 controller.
The latest information about which devices support the AS511 driver is available in the Online Help of WinCC flexible and ProTool, in the relevant manual of each operator panel, in the communication manual and in the ST80 catalog.
Below is an excerpt from the WinCC flexible Online Help.


Fig. 01
 

There are two possible options:

Option 1: for a maximum distance of 3.2 meters

Siemens TTY/RS232 converter cable and an adapter (9-pin female to 25-pin male)


Fig. 02

 
Article/description Order number Supplier
Siemens TTY/RS232 converter cable
PLC 15-pin / PC 25-pin
6ES5 734-1BD20 Siemens AG
Adapter (9-pin female to
25-pin male).
982075-14 Conrad Elektronik www.conrad.de

Option 2: for a maximum distance of 1000 meters
ELV TTY/RS232 converter.


Fig. 03

 
Article/description Order number Supplier
ELV AT adapter cable Sub-B 9-pin female to Sub-D 25-pin male 68-078-86 ELV
www.elv.de
ELV V24-20mA interface converter, ready-made device
Do-it-yourself instructions and description are available for downloading in a PDF file from the supplier.
68-176-10

Note:
For connecting the ELV interface converter to the SIMATIC S5 you need an adapter cable (ELV interface converter Sub-D 25-pin male connector to S5 PLC Sub-D 15-pin male connector) wired according to the following pin assignment:
 

ELV interface converter
25-pin Sub-D male connector

  PLC / IP / CP
15-pin Sub-D male connector
Signal Pin   Pin Signal
+ 20 mA 11

< jumper from 
pin 11 to pin 18

   
Sender + 18

< jumper from 
pin 18 to pin 11

   
Sender - 21 < to > 9 TTY IN +
GND 13 < to > 2 TTY IN -
+ 20 mA 12 < to > 6 TTY OUT +
Recipient + 9 < to > 7 TTY OUT -
Recipient - 10 < jumper from 
pin 10 to pin 14
   
GND 14 < jumper from 
pin 14 to pin 10
   

Further Information:
 
Connecting a Windows-based panel to an IM308C (SIMATIC S5) via PROFIBUS DP Entry ID:
17053153
Connecting a Windows-based panel to the SIMATIC S5 (CP5431) via PROFIBUS DP Entry ID:
16640044
Which program changes have to be made in an S5 controller if a line or graphics operator panel with PROFIBUS connection is replaced by a Windows-based operator panel? Entry ID:
21688871
WinCC flexible Communication Manual Entry ID:
18797552
ProTool Communication Manual Entry ID:
1405528

Which communication options exist for the different controllers / CPs, and how are they configured?Go to beginning
Part number:

Configuration Notes:
You can find detailed information about the topic of communication in association with WinCC flexible and the different types of interface in the "Communication User Manual".

The manual provides an overview of the possible types of interfaces between the operator panels and the different controllers.
Depending on which controller is used, it contains a brief description of the essential features of the individual types of interface and the corresponding type of connector. The individual chapters describe each type of interface in greater detail with connection-specific configuration notes.

For example, the Communication User Manual describes

  • The configuration and function of the individual user-data areas.
  • The different types of interface between the operator panel and the controller.
  • The requisite measures which have to be performed in the controller program.
  • Interface possibilities for the SIMATIC S5 / S7 controllers.

The descriptions apply to operator panels which are configured using WinCC flexible.

You can find instructions/descriptions relating to the points listed below, for example:

Types of interface implemented:
 
 
Communication system Interfaces WinCC Flexible
SIMATIC S5
 

- AS511 interface
- PROFIBUS DP interface
 

X

SIMATIC S7 - PROFIBUS DP interface
- Point-to-point interface (PPI)
- MPI interface
 

X

- Ethernet interface
 

X

SIMATIC 500/505 - PROFIBUS DP interface
- NITP protocol
 
X
SIMATIC WinAC
 
- SIMATIC S7 - 300/400 interface X
SIMOTION
 
- PROFIBUS DP interface
- MPI interface
 
X
- Ethernet interface
 
X
SINUMERIK
 
- PROFIBUS DP interface
- MPI interface
 
X 1)
- Ethernet
 
X 2)
OPC
- OPC interface   X
Allen Bradley SLC 500/PLC 5
 
- DF1, DH+ protocol
- DH485 protocol
 
X
GE Fanuc
 
- SNP protocol X
Lucky Goldstar
 
- GLOFA protocol X
Mitsubishi
 
- FX protocol
- Protocol 4
 
X
Modicon - MODBUS protocol
 
X
Omron
 
- HostLink/MultiLink X
Telemecanique - UNI-TELWAY
 
X
SIMATIC HMI - HTTP protocol
 
X
Modem connection
via TS adapter
(telephone network)
- PROFIBUS DP interface
- MPI interface
- Serial interface 3)
 
X
1) only available with the SINUMERIK options package
2) possible from WinCC flexible 2005 SP1 and the SINUMERIK V6.0 SP1 options package
3) only supports transfer


Note:
The type of interface is dependent upon the version of the configuration software, the relevant controller, as well as upon the type and image version of the operator panel! Some communication systems (controllers) and operator panels do not support all the types of interface which are listed in the table (e.g. OP77A does not possess an Ethernet interface). You can find further information in the Help system for WinCC flexible or in the relevant manual.
 

Communication manuals (ProTool) to download:
Manual for Windows-based systems, Part 1
(SIMATIC controllers)
Entry ID 18797552
Manual for Windows-based systems, Part 2
(third-party controllers / OPC)
Entry ID 18797249


Link to the entry for ProTool:
Link to ProTool Entry ID 23522063

Keywords:
CP, FAP Interface, Communication

 Entry ID:23522061   Date:2009-11-27 
I regard this article....as helpfulas not helpful                                 






























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