IBHLink S7++:LOGO! with IBHLink S7++

From IBHsoftec Wiki English
Revision as of 16:49, 28 January 2013 by Axel (Talk | contribs)

Jump to: navigation, search

S7 Connection from Siemens LOGO! (RCE version) to a S7 PLC via IBHLink S7++ or IBHLink S7++ HS

The RCE versions from Siemens LOGO! are equiped with an Ethernet port and support S7 connections via Ethernet. This allows a data communication between LOGO! and a S7-PLC via IBH Link S7++. Process data can be exchanged between both PLC. Below there is the decription how to setup the LOGO! for data communication with the IBH Link S7++.

Communikation

The communikation with the LOGO! will be established via S7 connections. The LOGO! can read and write from data area of the S7 PLC via IBH Link S7++:

  • Inputs
  • Outputs
  • Flags
  • Content of data blocks.

Settings of the LOGO! via Display

First of all the LOGO! must be reachable via Ethernet. After that an IP addrees can be set with the LOGO! Soft Comfort software. Maybe the IP address of the PC neds to be changed, so that the LOGO! and the PC are with the same subnet. The currwent address of LOGO! is shown on the display.

  • With <ESC> you'll get to the settings.
  • Scroll down until <network> appears.
  • <OK> 'IP address'. <OK> The current adress is shown.

Settings within the LOGO!Soft Comfort software

Within the LOGO!Soft Comfort software setup the IP address of the PLC via "Extras - Transfer - Configure Network asdress".

Logo-comfort-setaddr-ger.PNG

Dann muss die Logo so konfiguriert werden, dass diese Clientverbindungen zu anderen Stationen aufbaut.

Via "Extras - Ethernet Connections" a new connection can be added.

Logo-comfort-connections-ger.PNG

Mit einem Doppelklick auf die Verbindung, kann diese konfiguriert werden.

Logo-comfort-softsps-ger.PNG

A Client cneectrion must be selected. The settings for the TSAPs are local '20.00' and remote '01.nn'. 'nn' stands hierbei für die MPI-Adresse der S7-Steuerung, mit der die Daten ausgetauscht werden sollen. Die Schreibweise ist Hexadezimal, d.h. '01.15' steht für die Adresse 21, '01.02' für die Adresse 2. Als Operationen stehen Lesen und Schreiben zu Verfügung. Die lokalen Variablen beziehen sich auf den intern simulierten DB1. Die Syntax für Variablen aus den lokalen DB lautet VBn, die des remoten Partners ist S7-Syntax.

To exchange variables with the DB1, the DB must be created. Via "Extras - Parameter VM assignment" the elements of the program can be selcted, die in den DB1 abgebildet werden sollen.

Logo-comfort-db1-ger.PNG

Es kann vorkommen, dass die LOGO! Soft Comfort Software nach Änderungen der Verbindungen neu gestartet werden muss, damit die geänderten Einstellungen auf die Steuerung übertragen werden.

Access with IBHNet object

Beginning with IBHNet V1.49 it is possible to access the LOGO!via 'RFC1006'. Die zu verwendende MPI-Adresse bei der Funktion 'Connect()' is 128, bei 'Connect_DP()' ist es der Steckplatz 128. As variables Inputs, Outputs, Flags, the DB1 and the Order N. can be eslected.