×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 56348902, Entry date: 12/13/2013
(13)
Rate

How do you establish a connection between a LOGO! 0BA7 and an HMI Panel?

  • Entry
  • Associated product(s)
Description The aim of this entry is to enable you to establish a connection between a LOGO! and an HMI Panel. The table below shows you step by step how to create the LOGO! project and the HMI project for your HMI Panel with LOGO!Soft Comfort and WinCC (TIA-Portal).  ...

Description
The aim of this entry is to enable you to establish a connection between a LOGO! and an HMI Panel. The table below shows you step by step how to create the LOGO! project and the HMI project for your HMI Panel with LOGO!Soft Comfort and WinCC (TIA-Portal). 

Instructions
Before you begin creating your LOGO! project and the HMI project you assign an IP address on your LOGO! device, on your HMI device and on your PC. Make sure that the IP addresses are in the same subnetwork.

Assign IP address on LOGO! device
How to assign an IP address on your LOGO! device is described in the latest LOGO! manual in the section entitled "Configuring Network Settings". After assigning the IP address to your LOGO! you connect the LOGO! with your PC over the Ethernet interface.

Assign IP address on HMI device
How to assign an IP address on your HMI device is described in the latest HMI Panel manual in the section entitled "Configuring Network Settings".

Set IP address on PC
In your operating system go to "Start > Settings > Network Connections" and double-click on your network connection to the LOGO!. Select the "Properties" menu item and double-click the "Internet Protocol (TCP/IP)" item. Now assign an IP address for your network connection and make sure that this is in the same subnet as the IP addresses for your LOGO! and your HMI Panel. How to proceed is described in the tables below.

Procedure in LOGO!Soft Comfort
 

No. Procedure
1 Open LOGO!Soft Comfort V7.0.
2 Open your old project or create a new project.
3 Select the menu "Tools > Select Hardware".
4 Select 0BA7 as basic device and confirm with OK.


Fig. 01

5 Select the menu "Tools > Options > Interface". Select the "Ethernet" item and click "Add".
6 Enter the IP address and subnet mask of your LOGO!. On the LOGO! 0BA7 device you can see this with the menu item "Network > IP Address".


Fig. 02

7 Click "Detect" to check the connection. If the word "Yes" appears under "Status", your connection has been established.

 
Fig. 03

8 Select the menu "Tools > Parameter VM Mapping".
9 Select the analog values to be transferred to your HMI project. Digital values that you want transferred to your HMI project do not have to be specified in the VM Mapping parameter.


Fig. 04

10 Select the menu "Tools > Ethernet Connections".
11 Enter the IP address and the subnet mask of your LOGO!.
12 Right-click "Ethernet Connections" and "Add connection".


Fig. 05

13 Double-click the newly created connection to open the Properties dialog.
14 Select the "Server Connection" item and enter the value 02.00 for "TSAP".
15 Select "Connect with an Operator Panel (OP)" and "Accept all connection requests".


Fig. 06

16 Select the menu "Tools > Transfer > PC > LOGO!". Select the IP address of your LOGO! and confirm with "OK" so that the program is downloaded to your LOGO! 0BA7 device.
Table 01

Procedure in WinCC (TIA Portal)
 

No. Procedure
1 Open WinCC (TIA Portal).
2 Create a new project.
3 In the project navigation double-click "Add new device" and select your HMI Panel.
4 Go to "Connections" in the project navigation and double-click it.
5 Double-click "Add" to create a new connection.
6 Enter your "S7-200" connection as communication driver.
Note
In WinCC (TIA Portal) V12 you can also select "LOGO" as communication driver.
7 Under "HMI device" you enter the IP address of your HMI Panel. Make sure that the IP address is in the same subnet as the IP addresses for your LOGO! and your computer.
8 Under "Controller" you enter the IP address you assigned to your LOGO!.


Fig. 07

9 In the project navigation you go to the "HMI Tags" folder and open it.
10 Create your new tags in the default tag table.

Analog values
Tags for analog values defined in LOGO!Soft Comfort with the VM Mapping parameter for transfer to the HMI Panel must be configured with the same data type and same address in WinCC (TIA Portal). For example: the tag with the "Word" type and address "0" in LOGO!Soft Comfort must be configured in WinCC (TIA Portal) with the "Word" data type and the address "VW0".

Digital values
Continue with Step 11.


Fig. 08

11 Digital values
In order to access digital values of LOGO!Soft Comfort the tag in WinCC (TIA Portal) must be configured with the corresponding address order. For example, the digital output "Q1" from LOGO!Soft Comfort must be configured in the tag table of WinCC (TIA Portal) with the address "Q0.0" and the "Bool" data type. The digital input "I1" has the address "I0.0" in WinCC (TIA Portal). According to this address order, therefore, a digital input "I8" from LOGO!Soft Comfort has the address "I0.7" in WinCC (TIA Portal) and a digital input "I9" the address "I1.0".  The same rules for the address order in the tag table of WinCC (TIA Portal) also apply for markers and outputs from LOGO!Soft Comfort.


Fig. 09

12 In the project navigation you go to the "Screens" folder and open it. Create a new screen.
13 Insert an object into the screen, for example a circle for the light display (On/Off).
14 Click the configured "circle" object to open its properties.
15 Configure an animation with tag link in the properties. For example, under "Display > Appearance" change of the background color depending on the bit value of the "Light_Display_On_Off" tag.


Fig. 10

16 As soon as you have completed your configuration, in the menu you select "Online > Download to device".
17 After connecting your LOGO! and your HMI panel through the Ethernet interface you can test the application created.
18 Entry IDs 68585344 and 68585346 include prepared sample applications for connecting a LOGO! with an HMI Panel which can also be operated by means of the PC with the simulation of the HMI Panel in WinCC (TIA Portal).
Table 02

Note
The current LOGO! manual is available for downloading in Entry ID: 109741041

Further Information
In the sample applications in Entry IDs 68585344 and 68585346 you will find detailed information about:

  • The settings on the HMI device for transferring the project and the connection to the LOGO! 0BA7.
  • How to operate an application created between a LOGO! 0BA7 and an HMI Panel.
  • How with LOGO! 0BA7 (multiple LOGO! controllers) and an HMI Panel you can implement an automatic control.

Creation environment
The screens in this FAQ response were created with the LOGO!Soft Comfort V7.0 and WinCC (TIA Portal) V11 software.

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 is available in Entry ID: 50203404.

Additional Keywords
Panel, WinCC V11, LOGO! Communication partners


Rate entry
no rating
Requests and feedback
What do you want to do?
Hinweis: Das Feedback bezieht sich immer auf den vorliegenden Beitrag. Ihre Nachricht wird an die Redakteure im Online Support gesendet. In einigen Tagen erhalten Sie von uns eine Antwort, wenn Ihr Feedback das erfordert. Ist für uns alles klar, werden wir Ihnen nicht mehr antworten.