Beruflich Dokumente
Kultur Dokumente
Robotinoview Mit Codesys Opc Deen
Robotinoview Mit Codesys Opc Deen
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
2
Verbinden einer CoDeSys Software-SPS durch den CoDeSys OPC-Server mit
Robotino® View
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"
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.
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
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.
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"
3. Start the software-PLC "CoDeSys SP PLCWinNT", "Program Loaded=NO" will show up.
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
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"
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.