Sie sind auf Seite 1von 14

®

Robotino View
Kommunikation
mit OPC

®
Robotino View
Communication
with OPC

1 DE/EN
04/08
Stand/Status: 04/2008
Autor/Author: Markus Bellenberg

© Festo Didactic GmbH & Co. KG, 73770 Denkendorf, Germany, 2008
Internet: www.festo-didactic.com
e-mail: did@de.festo.com

Weitergabe sowie Vervielfältigung dieses Dokuments, Verwertung und Mitteilung


seines Inhalts verboten, soweit nicht ausdrücklich gestattet. Zuwiderhandlungen
verpflichten zu Schadenersatz. Alle Rechte vorbehalten, insbesondere das Recht,
Patent-, Gebrauchsmuster- oder Geschmacksmusteranmeldungen durchzuführen.

The copying, distribution and utilisation of this document as well as the


communication of its contents to others without express authorisation is prohibited.
Offenders will be held liable for the payment of damages. All rights reserved, in
particular the right to carry out patent, utility model or ornamental design
registration.

2
Verbinden einer CoDeSys Software-SPS durch den CoDeSys OPC-Server mit
Robotino® View

OPC ist eine Standardschnittstelle zwischen verschiedenen Anwendungsprogrammen und


Baugruppentreibern (z.B. SPS). Mehrere OPC-Clients können sich an einem OPC-Server anmelden. Häufig
werden (spezielle) OPC-Server von SPS-Herstellern zur Verfügung gestellt.

Im unteren Beispiel wird eine CoDeSys Software SPS durch den CoDeSys OPC-Server mit Robotino® View
verbunden.

Der CoDeSys OPC-Server stellt die Variablen des aktuellen SPS-Programmes dabei in sogenannten
"Groups" und "Tags" zur Verfügung:
SPS 1 bildet Group "PLC1"
SPS Variable "X_pos" hat das Tag "PLC1:Machine.X_pos"

Gehen Sie bitte wie folgt vor:


1. CoDeSys mit PLCWinNT und OPC-Server installieren
2. "CoDeSys OPC Konfigurator" starten und auf "SinglePLC" umstellen

Festo Didactic GmbH & Co. KG 3


Verbinden einer CoDeSys Software-SPS durch den CoDeSys OPC-Server mit Robotino® View

3. Software-SPS "CoDeSys SP PLCWinNT" starten, "Program Loaded=NO" erscheint.

4. CoDeSys starten und Projekt "FirstStep.pro" laden


5. SPS-Typ wählen: Ressource / Zielsystemeinstellungen / "3S … PLCWinNT"/ OK

4 Festo Didactic GmbH & Co. KG


Verbinden einer CoDeSys Software-SPS durch den CoDeSys OPC-Server mit Robotino® View

6. Im Menu Projekt/Optionen/Symbolkonfiguration "Symboleinträge erzeugen" aktivieren

7. Menu Online/Kommunikationsparameter /Gateway / "local" wählen

Festo Didactic GmbH & Co. KG 5


Verbinden einer CoDeSys Software-SPS durch den CoDeSys OPC-Server mit Robotino® View

8. Update drücken und die TCP-IP-Adresse auf "localhost" stellen

9. Menü Online / Einloggen / "Es gibt noch kein Programm in der SPS! Laden ?" JA
Sobald das SPS-Programm in die SPS geladen wird, werden die Symbole auch in den OPC-Server
übertragen.

6 Festo Didactic GmbH & Co. KG


Verbinden einer CoDeSys Software-SPS durch den CoDeSys OPC-Server mit Robotino® View

10. Mit einem OPC-Client können nun alle verfügbaren Tags angezeigt werden

11. Im RobotinoView Menü Extras/Optionen/OPC kann ein Tag mit dem Robotino-OPC Bausteinen
verbunden werden:
z.B. DI_Port_0 mit "PLC1:Machine.X_pos" verbinden

12. Ggf. den "CoDeSys.OPC.02" Server auswählen


13. Verbindung starten.

Festo Didactic GmbH & Co. KG 7


Verbinden einer CoDeSys Software-SPS durch den CoDeSys OPC-Server mit Robotino® View

Das OPC-Symbol (Robotino® View Bildschirm unten rechts) wechselt von grau auf grün.
Die EasyPort Ein-/Ausgangswerte können nun in Robotino® View verarbeitet werden.

Tipp
Möchten Sie eine SPS eines anderen Herstellers anbinden, benötigen Sie von diesem Hersteller entweder
einen OPC-Server oder einen OPC-Client. Verwenden Sie einen OPC Client um zu sehen, welche OPC-
Server mit welchen Tags auf Ihrem PC zur Verfügung stehen.

Downloads und weitere Informationen erhalten Sie z.B. unter http://www.opcconnect.com/

8 Festo Didactic GmbH & Co. KG


Connecting a CoDeSys software-PLC to Robotino® View via the CoDeSys
OPC-Server

OPC is a standardised interface between different software applications and drivers of different hardware
modules (e.g. PLC). Multiple OPC-Clients can connect to one OPC-Server. A (special) OPC-Server will often be
provided by the common PLC manufacturers.

In the below sample a CoDeSys software-PLC will be connected to Robotino® View via the CoDeSys OPC-
Server.

The CoDeSys OPC -Server allocates the variables of the current plc-program that is loaded in the PLC using
so called "Groups" and "Tags":
PLC1 shows as group "PLC1"
PLC variable 1 therefore shows as Tag "PLC1:Machine.X_pos"

Please follow these steps:


1. Install CoDeSys with PLCWinNT and OPC-Server
2. Start the "CoDeSys OPC config" and switch to "SinglePLC"

Festo Didactic GmbH & Co. KG 9


Connecting a CoDeSys software-PLC to Robotino® View via the CoDeSys OPC-Server

3. Start the software-PLC "CoDeSys SP PLCWinNT", "Program Loaded=NO" will show up.

4. Start CoDeSys and open project "FirstStep.pro"


5. Choose the PLC-typ: Ressource / Target-Settings / "3S …-PLCWinNT"/ OK

10 Festo Didactic GmbH & Co. KG


Connecting a CoDeSys software-PLC to Robotino® View via the CoDeSys OPC-Server

6. In the menu project/options/symbol configuration enable "dump symbol entries"

7. In the menu Online/communication parameters /Gateway / choose "local"

Festo Didactic GmbH & Co. KG 11


Connecting a CoDeSys software-PLC to Robotino® View via the CoDeSys OPC-Server

8. Press Update and change the TCP-IP-Adresse to "localhost"

9. In the menu online / login / "No program on controller. Download …?" - press YES
As soon as the PLC program is loaded into the PLC the symbol entries are also loaded into the OPC-
Server

12 Festo Didactic GmbH & Co. KG


Connecting a CoDeSys software-PLC to Robotino® View via the CoDeSys OPC-Server

10. Show all available Tags using an OPC-Client

11. In the RobotinoView menu Extras/optionen/OPC a tag can be connected to a Robotino-OPC module
e.g. connected DI_Port_0 to "PLC1:Machine.X_pos"

12. If needed choose the "CoDeSys.OPC.02" server


13. Start the connection

Festo Didactic GmbH & Co. KG 13


Connecting a CoDeSys software-PLC to Robotino® View via the CoDeSys OPC-Server

The OPC-symbol (lower right hand of Robotino® View) will turn from gray to green.
Now you will be able to use all in-/outputs of the EasyPort in RobotinoView.

Hint
If you would like to use a PLC of a different manufacturer you need a OPC-Server or OPC-Client of this
manufacturer. Use an OPC-Client to see which tags are available on your PC's OPC-Server.

Downloads and additional information can be found at http://www.opcconnect.com/

14 Festo Didactic GmbH & Co. KG

Das könnte Ihnen auch gefallen