How do you establish a connection between a LOGO! 0BA7 and an HMI Panel?
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).
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
|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.
|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".
|7||Click "Detect" to check the connection. If the word "Yes" appears under "Status", your connection has been established.
|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.
|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".
|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".
|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.|
Procedure in WinCC (TIA Portal)
|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.|
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!.
|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.
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.
|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.
|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).|
The current LOGO! manual is available for downloading in Entry ID: 109741041
- 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.
The screens in this FAQ response were created with the LOGO!Soft Comfort V7.0 and WinCC (TIA Portal) V11 software.
Note on security
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.
Panel, WinCC V11, LOGO! Communication partners
- You have a technical question / problem: Ask the Technical Support
- You want to discuss in our forum and exchange experiences with other users
- You want to create CAx data for one or more products
- You would like to send us feedback on this Entry