Sie sind auf Seite 1von 340

EasyPort USB

Manual

CD-ROM included

721876
DEENESFR

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


Order No.: 721876
Edition: 11/2008
Authors: Eberhardt, Löffler
Graphics: Schwarzenberger
Layout: 11/2008

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

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


communication of its contents to others without expressed
authorization 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.

Hinweis
Soweit in dieser Broschüre nur von Lehrer, Schüler etc. die Rede ist,
sind selbstverständlich auch Lehrerinnen, Schülerinnen etc. gemeint.
Die Verwendung nur einer Geschlechtsform soll keine
geschlechtsspezifische Benachteiligung sein, sondern dient nur der
besseren Lesbarkeit und dem besseren Verständnis der
Formulierungen.

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


Inhalt

English _______________________________________________ 87
Español ______________________________________________ 171
Français ______________________________________________ 255

Deutsch Die Kapitel 7 bis 10 finden Sie in der PDF-Datei


zum EasyPort USB Handbuch auf der mitgelieferten CD-ROM

1. Einleitung __________________________________________ 5
1.1 Überblick zu EasyPort USB ____________________________ 5
1.2 Wichtige Hinweise __________________________________ 11
1.3 Verpflichtung des Betreibers __________________________ 12
1.4 Verpflichtung der Auszubildenden _____________________ 12
1.5 Gefahren im Umgang mit dem Prozessinterface EasyPort ___ 12
1.6 Gewährleistung und Haftung __________________________ 13
1.7 Bestimmungsgemäße Verwendung ____________________ 13

2. Sicherheitshinweise _________________________________ 14

3. Technische Daten ___________________________________ 15


3.1 EasyPort USB allgemein ______________________________ 15
3.2 SysLink-Schnittstelle für digitale Daten _________________ 16
3.3 Sub D Buchse für analoge Daten _______________________ 18
3.4 Datenschnittstellen zum PC ___________________________ 19
3.5 Stromversorgung ___________________________________ 20

4. Transport/Auspacken/Lieferumfang ____________________ 21

5. Aufbau und Funktion ________________________________ 22


5.1 Aufbau von EasyPort USB ____________________________ 22
5.2 Bedienelemente ____________________________________ 24
5.3 Befestigen von EasyPort USB _________________________ 25
5.4 Verbinden von EasyPort USB mit PC und Prozess _________ 26
5.5 Einstellen der Adresse am EasyPort USB ________________ 28

© Festo Didactic GmbH & Co. KG „ 721876 3

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


Inhalt

6. Inbetriebnahme ____________________________________ 29

7. Softwareschnittstellen zu EasyPort USB _________________ 36


7.1 Überblick: Kommunikation mit EasyPort USB_____________ 36
7.2 Kommunikation über EzOPC __________________________ 38

8. ActiveX Steuerelement zu EasyPort USB_________________ 42


8.1 Verwendung des ActiveX Steuerelementes ______________ 42
8.2 Installation des ActiveX Steuerelementes _______________ 43
8.3 Beispiel: EasyPort Demo-Anwendung ___________________ 44

9. Befehlsinterpreter von EasyPort USB ___________________ 51


9.1 Befehlsinterpreter __________________________________ 51
9.2 Befehlsstruktur _____________________________________ 52
9.3 Übertragungsebene _________________________________ 54
9.4 Befehle zur Initialisierung und Diagnose ________________ 56
9.5 Befehle für digitale Signale ___________________________ 58
9.6 Befehle für analoge Signale ___________________________ 61
9.7 Befehle zum Messen von analogen Signalen _____________ 68
9.8 Befehle für schnellen Zähler __________________________ 74
9.9 Beispiel: Aufbau einer Verbindung zu EasyPort USB _______ 75

10. Erstellen eigener Anwendungen _______________________ 86

Inhalt der CD-ROM


Prozessmodellsimulation EasyVeep
OPC-Server EasyOPC
Handbuch EasyPort USB
Handbuch EasyVeep
USB-Treiber für EasyPort
EasyPort USB ActiveX Steuerelement
Beispiele zur Ansteuerung
Beispiel mit Excel
Beispiel mit FluidSIM
Beispiel mit InTouch
Beispiel mit LabVIEW
Beispiel mit VC6

4 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Einleitung

1.1 Was ist EasyPort USB?


Überblick zu Das Prozessinterface EasyPort USB dient der bidirektionalen
EasyPort USB Übertragung von Prozesssignalen zwischen einem realen
Steuerungsprozess in Niedervolttechnik (24 VDC) und einem PC. Um
Rückwirkungen aus dem Prozess auf den PC auszuschließen, werden für
die Datenübertragung zwischen EasyPort USB und dem PC
grundsätzlich nur galvanisch getrennte Schnittstellen verwendet.

Die Einsatzmöglichkeiten von EasyPort USB sind vielfältig:


Steuern eines realen Steuerungsprozesses mit einer Steuerung, die
auf dem PC läuft
Steuern eines simulierten Prozessmodells mit einer realen SPS
Regelung eines realen Prozesses, die Regelung läuft auf dem PC
Aufnehmen und Auswerten von Messwerten aus einem realen
Prozess

© Festo Didactic GmbH & Co. KG „ 721876 5

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Einleitung

Beispielanwendung: Konfiguration mit simuliertem Prozess und realer SPS

In all diesen Anwendungen verbindet EasyPort USB die reale Welt mit
der virtuellen Welt des PC.

Das Prozessinterface EasyPort USB verfügt über je 16 digitale Ein- und


Ausgänge sowie 4 analoge Ein- und 2 analoge Ausgänge.

6 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Einleitung

Maximal 4 EasyPort USB Module können über einen USB Hub oder über
4 USB-Anschlüsse an einem PC zusammengeschaltet werden. Dabei ist
darauf zu achten, dass die Adressen der Module unterschiedlich sind.

USB-Hub

PORT 3 USB RS 232 24V 0V PORT 3 USB RS 232 24V 0V PORT 3 USB RS 232 24V 0V PORT 3 USB RS 232 24V 0V

EasyPort USB EasyPort USB EasyPort USB EasyPort USB


Error Status Error Status Error Status Error Status

IN IN IN IN

OUT OUT OUT OUT


0 7 0 7 0 7 0 7 0 7 0 7 0 7 0 7

PORT 1 PORT 2 PORT 1 PORT 2 PORT 1 PORT 2 PORT 1 PORT 2

Konfiguration mit 4 EasyPort USB Modulen

Für den Austausch der Prozesssignale zwischen EasyPort USB und der
PC-Software steht der OPC-Server EzOPC oder das ActiveX
Steuerelement von EasyPort USB zur Verfügung.

© Festo Didactic GmbH & Co. KG „ 721876 7

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Einleitung

Wie setzen Sie EasyPort USB ein?


Die Tabelle zeigt Ihnen, wie Sie das Prozessinterface EasyPort USB
zusammen mit anderen Festo Didactic Produkten einsetzen können.

Als realer Steuerungsprozess ist möglich


ein Automatisierungsprozess mit Aktoren und Sensoren
eine reale SPS
eine Simulationsbox.

Auch für die virtuelle Welt stehen Ihnen unterschiedliche


Softwareprogramme zur Verfügung. Es sind Programme zur
Steuerung
Regelung
Messwerterfassung
Visualisierung.

In diesen vorbereiteten Konfigurationen ist EasyPort USB sehr einfach


zu nutzen.

8 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Einleitung

Steuern eines realen Steuern eines Messen Regeln


Prozesses simulierten Prozesses

Software, eingesetzt zur Software, eingesetzt zur Software, eingesetzt Software, eingesetzt
Steuerung von Simulation von zur zur Regelung:
Prozessen: Prozessen: Messwerterfassung:

‟ FluidSim (nur digital) ‟ EasyVeep ‟ FluidLab PA ‟ FluidLab PA


‟ S7‟PLCSIM ‟ FluidSim ‟ FluidLab P ‟ FluidLab P
‟ CoDeSys Soft-SPS ‟ CIROS ‟ FluidLab H ab Version 2.0

Interface Interface Interface Interface


EasyPort USB: EasyPort USB: EasyPort USB: EasyPort USB:

Schnittstelle Schnittstelle Schnittstelle Schnittstelle


digital/analog digital digital/analog digital/analog

Das EasyPort USB ist die Das EasyPort USB ist die Das EasyPort USB ist Das EasyPort USB ist
Schnittstelle zwischen Schnittstelle zwischen die Schnittstelle die Schnittstelle
PC und realem Prozess. PC und SPS. zwischen PC und zwischen PC und
Vom PC aus wird der Die SPS steuert den realen Sensoren. realer Regelstrecke.
Prozess gesteuert. simulierten Prozess auf
dem PC.

Realer Prozess: Reale Steuerung: Reale Sensoren: Reale Regelstrecke:

‟ Simulationsbox, ‟ SPS beliebig ‟ Simulationsbox, ‟ Simulationsbox,


digital/analog ‟ Simulationsbox, digital/analog digital/analog
‟ MPS PA digital ‟ MPS PA ‟ MPS PA
‟ MPS ‟ SPS EduTrainer ‟ TP210 ‟ TP210
‟ TP301 ‟ SPS Board ‟ TP610 ‟ TP610

Beispielanwendungen zu EasyPort USB

© Festo Didactic GmbH & Co. KG „ 721876 9

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Einleitung

Genauso ist es möglich, das Prozessinterface EasyPort USB in eigene


Anwendungen einzubinden. Dazu nutzen Sie das ActiveX Steuerelement
von EasyPort USB. Die Ansteuerung selbst können Sie programmieren
in
Visual Basic
C++
LabVIEW
InTouch.

Was erfahren Sie in diesem Handbuch?


Das Handbuch beschreibt
wie das Prozessinterface EasyPort USB aufgebaut ist und wie es
funktioniert,
welche Sicherheitshinweise Sie beim Arbeiten mit EasyPort USB
beachten müssen,
welche Schnittstellen und welche Befehle es für die Kommunikation
mit EasyPort USB gibt,
wie Sie die Befehle für EasyPort USB mit einem einfachen Terminal-
Programm ausführen,
wie Sie anhand einer Demo-Anwendung die Methoden des ActiveX
Steuerelementes nutzen,
wo Sie weitere Beispiele für das Einbinden von EasyPort USB in
eigene Anwendungen finden.

10 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Einleitung

Das komplette Handbuch Kapitel 1 bis 10 finden Sie als PDF-Datei auf
der mitgelieferten CD-ROM.

1.2 Grundvoraussetzung für den sicherheitsgerechten Umgang und den


Wichtige Hinweise störungsfreien Betrieb des Prozessinterfaces EasyPort USB ist die
Kenntnis der grundlegenden Sicherheitshinweise und der
Sicherheitsvorschriften.

Dieses Handbuch enthält die wichtigsten Hinweise, um das EasyPort


USB sicherheitsgerecht zu betreiben.

Insbesondere die Sicherheitshinweise sind von allen Personen zu


beachten, die mit EasyPort USB arbeiten.

Darüber hinaus sind die für den Einsatzort geltenden Regeln und
Vorschriften zur Unfallverhütung zu beachten.

© Festo Didactic GmbH & Co. KG „ 721876 11

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Einleitung

1.3 Der Betreiber verpflichtet sich, nur Personen mit dem Prozessinterface
Verpflichtung des EasyPort USB arbeiten zu lassen, die:
Betreibers mit den grundlegenden Vorschriften über Arbeitssicherheit und
Unfallverhütung vertraut und in die Handhabung des EasyPort USB
eingewiesen sind,
das Sicherheitskapitel und die Warnhinweise in diesem Handbuch
gelesen und verstanden haben.

Das sicherheitsbewusste Arbeiten des Personals soll in regelmäßigen


Abständen überprüft werden.

1.4 Alle Personen, die mit Arbeiten am EasyPort USB beauftragt sind,
Verpflichtung der verpflichten sich, vor Arbeitsbeginn:
Auszubildenden das Sicherheitskapitel und die Warnhinweise in diesem Handbuch
zu lesen,
die grundlegenden Vorschriften über Arbeitssicherheit und
Unfallverhütung zu beachten.

1.5 Das Prozessinterface EasyPort USB ist nach dem Stand der Technik und
Gefahren im Umgang mit den anerkannten sicherheitstechnischen Regeln gebaut. Dennoch
dem Prozessinterface können bei seiner Verwendung Gefahren für Leib und Leben des
EasyPort Benutzers oder Dritter bzw. Beeinträchtigungen an der Maschine oder
an anderen Sachwerten entstehen.

Das Prozessinterface EasyPort USB ist nur zu benutzen:


für die bestimmungsgemäße Verwendung und
in sicherheitstechnisch einwandfreiem Zustand.

Störungen, die die Sicherheit beeinträchtigen können, sind umgehend


zu beseitigen!

12 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Einleitung

1.6 Grundsätzlich gelten unsere „Allgemeinen Verkaufs- und


Gewährleistung und Lieferbedingungen“. Diese stehen dem Betreiber spätestens seit
Haftung Vertragsabschluss zur Verfügung. Gewährleistungs- und
Haftungsansprüche bei Personen- und Sachschäden sind
ausgeschlossen, wenn sie auf eine oder mehrere der folgenden
Ursachen zurückzuführen sind:
Nicht bestimmungsgemäße Verwendung des EasyPort USB
Unsachgemäßes in Betrieb nehmen und Bedienen des EasyPort USB
Betreiben des EasyPort USB bei defekten Sicherheitseinrichtungen
oder nicht ordnungsgemäß angebrachten oder nicht
funktionsfähigen Sicherheits- und Schutzvorrichtungen
Nichtbeachten der Hinweise im Handbuch bezüglich Inbetriebnahme
und Betrieb
Eigenmächtige bauliche Veränderungen am EasyPort USB
Unsachgemäß durchgeführte Reparaturen
Katastrophenfälle durch Fremdkörpereinwirkung und höhere
Gewalt.

Festo Didactic schließt hiermit jegliche Haftung für Schäden des


Auszubildenden, des Ausbildungsunternehmens und/oder sonstiger
Dritter aus, die bei Gebrauch/Einsatz des EasyPort USB außerhalb einer
reinen Ausbildungssituation auftreten; es sei denn Festo Didactic hat
solche Schäden vorsätzlich oder grob fahrlässig verursacht.

1.7 Das Prozessinterface EasyPort USB ist ausschließlich für die Aus- und
Bestimmungsgemäße Weiterbildung im Bereich Automatisierung und Technik entwickelt und
Verwendung hergestellt. Das Ausbildungsunternehmen und/oder die Ausbildenden
hat/haben dafür Sorge zu tragen, dass die Auszubildenden die
Sicherheitsvorkehrungen, die in den begleitenden Handbüchern
beschrieben sind, beachten.

Zur bestimmungsgemäßen Verwendung gehört auch das Beachten aller


Hinweise aus dem Handbuch.

© Festo Didactic GmbH & Co. KG „ 721876 13

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


2. Sicherheitshinweise

Herstellen bzw. Abbauen von elektrischen Verbindungen nur in


spannungslosem Zustand!
Verwenden Sie nur Kleinspannungen von maximal 24 VDC an der
Stromversorgung und an den Ein- und Ausgängen von EasyPort USB.
Setzen Sie EasyPort USB ausschließlich in Systemen ein, bei denen
beim Abschalten der Spannung selbständig ein sicherer Zustand
erreicht wird.
Verwenden Sie ausschließlich die von Festo Didactic empfohlenen
Verbindungskabel für die elektrischen Verbindungen zwischen dem
Prozessinterface EasyPort USB und dem Prozess.
Beachten Sie auch die Angaben der Datenblätter zu den
angeschlossenen Geräten, insbesondere auch alle Hinweise zur
Sicherheit!

14 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Technische Daten

3.1 Prozessinterface EasyPort USB D16A


EasyPort USB allgemein
Betriebsspannung 24 VDC +/‟10%

Leistungsaufnahme 3 VA

Anzahl Ausgänge 16 digitale 24 VDC,


2 analoge 0…10 VDC oder
‟10…+10 VDC,
12 Bit Auflösung

Ausgangsbelastbarkeit 0,7 A pro digitalem Ausgang


10 mA pro analogem Ausgang

Kurzschlussschutz Ja

Anzahl Eingänge 16 digitale 24 VDC,


4 analoge 0…10 VDC oder
‟10…+10 VDC,
12 Bit Auflösung

Schaltschwelle der 12 VDC


Digitaleingänge

Hysterese der 3V
Digitaleingänge

Filter 5 ms

Anzahl Zähler 2 Eingänge als schneller Zähler


nutzbar,
fmax = 20 kHz / Uin = 5…24 VDC

Kommunikations- RS232, galvanisch getrennt


schnittstellen USB2.0, galvanisch getrennt

Protokoll ASCII, 115,2 kBaud,8,N,1

Technische Daten EasyPort USB allgemein

© Festo Didactic GmbH & Co. KG „ 721876 15

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Technische Daten

Prozessinterface EasyPort USB D16A

Schutzart IP20

CE-Zeichen Nach EU/EMV Richtlinie

Zulässige 0…55 °C/0…70 °C


Umgebungstemperatur
Betrieb/Lagerung

Maße in mm (L x B x H) 135 x 167 x 37

Gewicht in kg 0,65

Technische Daten EasyPort USB allgemein (Fortsetzung)

3.2 Je 8 digitale Ein- und Ausgänge sind bei EasyPort USB auf eine SysLink-
SysLink-Schnittstelle Steckbuchse 24-polig nach IEEE 488 verdrahtet. Zusätzlich kann der
für digitale Daten Eingang 0 bei Port 1 und Port 2 als schneller Zähleingang genutzt
werden. Die Zähleingänge können mit Spannungspegeln von 5…24 VDC
betrieben werden.

16 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Technische Daten

Anschluss IEEE 488, 24-polig, Buchse

Port 1 PIN Port 2 PIN

OUTPUT 0 1 OUTPUT 0 1

OUTPUT 1 2 OUTPUT 1 2

OUTPUT 2 3 OUTPUT 2 3

OUTPUT 3 4 OUTPUT 3 4

OUTPUT 4 5 OUTPUT 4 5

OUTPUT 5 6 OUTPUT 5 6

OUTPUT 6 7 OUTPUT 6 7

OUTPUT 7 8 OUTPUT 7 8

INPUT 0 13 INPUT 0 13

INPUT 1 14 INPUT 1 14

INPUT 2 15 INPUT 2 15

INPUT 3 16 INPUT 3 16

INPUT 4 17 INPUT 4 17

INPUT 5 18 INPUT 5 18

INPUT 6 19 INPUT 6 19

INPUT 7 20 INPUT 7 20

0 VDC 11/12/ 0 VDC 11/12/


23/24 23/24

24 VDC 9/10/ 24 VDC 9/10/


21/22 21/22

Technische Daten SysLink-Schnittstelle für digitale Signale

© Festo Didactic GmbH & Co. KG „ 721876 17

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Technische Daten

3.3 Die 4 analogen Eingänge und 2 analogen Ausgänge von EasyPort USB
Sub D Buchse für sind auf eine 15-polige Sub D-Buchse verdrahtet. Die Analog-Digital-
analoge Daten Umwandlung erfolgt mit einer Auflösung von 12 Bit. Die Abtastfrequenz
beträgt 0,5 kHz.

Anschluss Sub D 15-polig, Buchse

Port 3 PIN

OUTPUT 0 1

OUTPUT 1 2

0V 3

(frei) 4

(frei) 5

0V 6

INPUT 1 7

INPUT 2 8

(frei) 9

(frei) 10

+10 VDC REF 11

(frei) 12

(frei) 13

INPUT 3 14

INPUT 4 15

Technische Daten Sub D-Buchse für analoge Signale

18 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Technische Daten

3.4 Der Datenaustausch mit dem PC geschieht entweder über die serielle
Datenschnittstellen RS232- oder über die USB-Schnittstelle von EasyPort USB. Die
zum PC Übertragungsgeschwindigkeit beträgt 115,2 kBaud.

RS232 = PIN
Anschluss Sub D 9-polig, Buchse

(frei) 1

Daten empfangen RxD 2

Daten senden TxD 3

(frei) 4

Signal-Masse SGnd 5

(frei) 6

(frei) 7

(frei) 8

(frei) 9

Technische Daten RS232 Schnittstelle

Zum Anschluss an den PC kann ein handelsübliches 9-poliges serielles


Verlängerungskabel verwendet werden.

USB Schnittstelle
EasyPort USB ist mit einer galvanisch getrennten USB 2.0-Schnittstelle
ausgestattet. Maximal 4 EasyPort USB-Module können über einen USB
Hub zusammengeschaltet werden. Dabei ist darauf zu achten, dass die
Adressen der EasyPort-Module unterschiedlich sind. Erlaubt sind die
Adressen 1 bis 4.

Für den Anschluss von EasyPort USB an den USB-Port des PC bzw. eines
Hub verwenden Sie beigelegtes USB-Kabel A-B.

© Festo Didactic GmbH & Co. KG „ 721876 19

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Technische Daten

3.5 Die 24 VDC Stromversorgung für EasyPort USB wird extern zugeführt.
Stromversorgung Sie kann entweder über die Ports 1 und 2 oder über zwei getrennte
Schraubklemmen, die an der Rückseite von EasyPort USB angebracht
sind, erfolgen. Zwei Kabel mit 4 mm Sicherheitsstecker sind beigelegt.

20 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


4. Transport/Auspacken/Lieferumfang

Transport
Das Prozessinterface EasyPort USB wird in einem Karton geliefert.

Der Karton muss gegen Umfallen und Herunterfallen gesichert sein.

Transportschäden sind unverzüglich dem Spediteur und Festo Didactic


zu melden.

Auspacken
Nach dem Auspacken das Prozessinterface EasyPort USB auf mögliche
Beschädigungen überprüfen. Beschädigungen sind unverzüglich dem
Spediteur und Festo Didactic zu melden.

Lieferumfang
Im Lieferumfang sind folgende Komponenten enthalten:
Prozessinterface EasyPort USB
24 VDC Anschlussleitungen auf 4 mm Sicherheitsstecker
USB-Kabel
CD-ROM mit Software und Dokumentation:
Prozesssimulation EasyVeep, Software EzOPC, USB-Treiber, ActiveX-
Steuerelement als Programmierschnittstelle zu EasyPort USB mit
Online-Hilfe und Programmbeispielen
Handbuch EasyPort USB

Den Lieferumfang entsprechend dem Lieferschein und der Bestellung


überprüfen.

Mögliche Abweichungen sind unverzüglich Festo Didactic zu melden.

© Festo Didactic GmbH & Co. KG „ 721876 21

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Aufbau und Funktion

5.1
Aufbau von
EasyPort USB

(1) Sub D Buchse (Port 3) (2) USB-Schnittstelle


(3) RS232 Schnittstelle (4) Getrennte Schraubklemmen zur Stromversorgung
(5) Tasten   (6) LED STATUS (grün)
(7) LED ERROR (rot) (8) SysLink Schnittstellen (Port 1 und Port 2)
(9) LEDs für die Zustandsanzeige der digitalen Ausgänge (gelb)
(10) LEDs für die Zustandsanzeige der digitalen Eingänge (grün)
(11) LCD Anzeige für analoge Signale und Adresse des EasyPort

Aufbau EasyPort USB

22 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Aufbau und Funktion

Das Prozessinterface EasyPort USB besitzt


Zwei SysLink-Schnittstellen zum Einlesen und Ausgeben von je 8
digitalen Ein- und Ausgangssignalen.
Eingang 0 von jeder SysLink-Schnittstelle kann auch als schneller
Zähleingang genutzt werden
Sub D Buchse zum Einlesen und Ausgeben von 4 analogen
Eingangs- und 2 analogen Ausgangssignalen
USB 2.0 und serielle RS232 Schnittstelle zur Kopplung von EasyPort
USB mit einem PC
Zwei getrennte Schraubklemmen für die Stromversorgung
mit 24 VDC
16 LEDs (grün) für die Zustandsanzeige der digitalen Eingänge
16 LEDs (gelb) für die Zustandsanzeige der digitalen Ausgänge
LCD Anzeige für die Darstellung eines ausgewählten Analogsignals.
Angezeigt werden: Kanal, Einheit, Trend und Messwert (4 Stellen).
Zwei Tasten zum Einstellen des Analogkanals, zum Auswählen der
physikalischen Einheit des Analogwertes und zum Einstellen der
Adresse des EasyPort USB

Nicht im Lieferumfang enthalten sind


Netzgerät 24 VDC
Anschlusskabel für die SysLink-Schnittstelle
Anschlusskabel für Sub D Buchse

© Festo Didactic GmbH & Co. KG „ 721876 23

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Aufbau und Funktion

5.2 PORT 3 USB RS 232 24V 0V


Bedienelemente

EasyPort USB
Error Status

IN

OUT
0 7 0 7

PORT 1 PORT 2

Bedien- und Anzeigefeld von EasyPort USB

Das Bedienfeld von EasyPort USB enthält folgende Elemente


LED ERROR
Wird an einem der Ausgänge ein Kurzschluss erkannt, so leuchtet
die rote LED ERROR. Die Ausgänge von EasyPort USB werden
daraufhin abgeschaltet.
Beim Einschalten des EasyPort USB leuchtet diese LED ebenfalls
kurz auf. Sie wird im Laufe des Einschalttests gelöscht.
LED STATUS
Die grüne LED STATUS zeigt zwei Zustände an:
‟ Blinken 1 Hz:
Zustand nach Einschalten, das EasyPort USB Modul kommuniziert
noch nicht
‟ Blinken pulsierend:
EasyPort USB Modul ist adressiert. Die Adresse wird im Abstand
von 2 s durch eine Anzahl kurzer Leuchtsignale angezeigt.

24 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Aufbau und Funktion

LCD Anzeige
In der ersten Zeile werden die Ein- bzw. Ausgangsspannungen des
ausgewählten Analogsignals als Wert und zusätzlich als
Balkendiagramm angezeigt.
In der zweiten Zeile werden die Kanalnummer und die Richtung des
Signals dargestellt.
Es bedeuten: In = Eingangssignal, Out = Ausgangssignal.
LED IN 0...7
Zustandsanzeige der digitalen Eingänge durch grüne LEDs
LED OUT 0...7
Zustandsanzeige der digitalen Ausgänge durch gelbe LEDs
Tasten
Über die Taste  wird der in der LCD Anzeige dargestellte
Analogkanal ausgewählt.
Als Kanalnummer Ch für Eingangssignal ist möglich: 0…3.
Als Kanalnummer Ch für Ausgangssignal ist möglich: 0…1.
Mit der Taste  können verschiedene physikalische Einheiten
ausgewählt werden. Angeboten werden: V, bar, PSI, MPa, l/min, °C.
Durch gleichzeitiges Drücken der beiden Pfeiltasten wird die
Adresseinstellung aktiviert.

5.3 Durch den Adapter mit der Bestell-Nr. 549806 kann das EasyPort USB
Befestigen von Modul direkt auf einer Profilplatte befestigt werden.
EasyPort USB Der Adapter wird über drei M4 Schrauben am Boden des EasyPort USB
Moduls befestigt.

© Festo Didactic GmbH & Co. KG „ 721876 25

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Aufbau und Funktion

5.4 Die Verbindung zwischen dem PC und dem Prozessinterface EasyPort


Verbinden von EasyPort USB erfolgt mittels einer galvanisch getrennten RS232-Schnittstelle
USB mit PC und Prozess oder einer galvanisch getrennten USB-Schnittstelle.

Wenn Sie für die Kommunikation die USB-Schnittstelle nutzen,


dann verbinden Sie den PC und das EasyPort USB mit dem
beigelegten USB-Kabel.
Wollen Sie für die Kommunikation die serielle Schnittstelle
verwenden, dann können Sie als Verbindungskabel jedes
handelsübliche 9-polige serielle Verlängerungskabel einsetzen.

Verbinden von EasyPort USB mit PC und Prozess

Für die Verbindung von EasyPort USB mit dem realen


Steuerungsprozess stehen unterschiedliche E/A-Datenkabel zur
Verfügung.
Welches E/A-Kabel Sie benötigen, hängt von der steuerungstechnischen
Anwendung ab.

26 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Aufbau und Funktion

Die häufigsten Anwendungsfälle für EasyPort USB sind nachfolgend


zusammengestellt.
Der Grafik können Sie entnehmen, in welchen Fällen Sie ein gekreuztes
E/A-Kabel einsetzen müssen.
Um die digitalen E/A-Kabel besser unterscheiden zu können, besitzt das
gekreuzte digitale E/A-Kabel eine schwarze Kennung am Kabelende.

Kabel für das Verbinden von EasyPort USB mit PC und Prozess

© Festo Didactic GmbH & Co. KG „ 721876 27

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Aufbau und Funktion

Hinweis
Die 24 VDC Stromversorgung für EasyPort USB wird extern zugeführt.
Sie kann entweder über die Ports 1 und 2 oder über zwei getrennte
Schraubklemmen, die an der Rückseite von EasyPort USB angebracht
sind, erfolgen.
Achten Sie darauf, dass Sie nur von einer Seite Versorgungsspannung
anlegen.

5.5 Die Adresse des EasyPort USB wird über die beiden Pfeiltasten  
Einstellen der Adresse eingestellt. Sie aktivieren den Modus Adresseinstellung durch
am EasyPort USB gleichzeitiges Drücken der beiden Tasten. Mit  und  wählen Sie eine
Adresse von 1 bis 4. Durch gleichzeitiges Drücken beider Tasten wird
die Adresse gespeichert und der Adressmodus verlassen.
Werkseitig voreingestellt ist die Adresse 1 für jedes EasyPort USB
Prozessinterface.

PORT 3 USB RS 232 24V 0V

EasyPort USB
Error Status

IN

OUT
0 7 0 7

PORT 1 PORT 2

LCD Display von EasyPort USB mit Anzeige der Adresse

28 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Inbetriebnahme

Zur Inbetriebnahme des EasyPort USB benötigen Sie


das EasyPort USB
ein Netzgerät 24 VDC
einen PC, wenn Sie die Daten des EasyPort USB auf dem PC
auswerten wollen
die EasyPort CD-ROM zur Installation der USB-Treiber auf dem PC
das USB-Kabel

Hilfreich ist
die EasyPort Demo-Anwendung, um einfach und schnell eine
Verbindung zum EasyPort USB herzustellen
eine Simulationsbox, um ohne großen Aufwand Prozesssignale für
EasyPort USB zu erzeugen

Vorgehen
1. Schließen Sie EasyPort USB an eine externe 24 VDC
Stromversorgung an. Nutzen Sie dazu die beigelegten 24 VDC
Anschlussleitungen mit den 4 mm Sicherheitssteckern.
2. Schalten Sie die Stromversorgung des EasyPort USB ein.
‟ Die rote LED ERROR leuchtet kurz auf. Sie wird im Laufe des
Einschalttests gelöscht.
‟ Die grüne LED STATUS blinkt mit einer Frequenz von 1 Hz.
Das bedeutet: das EasyPort USB kommuniziert noch nicht.
3. Nach dem Einschalttest ist EasyPort USB betriebsbereit und wartet
auf die Initialisierung durch den PC. Dabei wird die über die
Pfeiltasten eingestellte Adresse verwendet.
4. Überprüfen Sie die Adresse des EasyPort USB.
‟ Aktivieren Sie dazu den Modus Adresseinstellung durch
gleichzeitiges Drücken der beiden Pfeiltasten.
‟ Stellen Sie mit den Pfeiltasten eine Adresse von 1 bis 4 ein.
‟ Verlassen Sie den Adressmodus durch gleichzeitiges Drücken
der beiden Pfeiltasten.
5. Verbinden Sie den PC mit dem EasyPort USB. Verwenden Sie dazu
das beigelegte USB-Kabel.

© Festo Didactic GmbH & Co. KG „ 721876 29

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Inbetriebnahme

6. Falls die erforderlichen USB-Treiber für den Betrieb von EasyPort


USB noch nicht auf dem PC installiert sind, erhalten Sie eine
entsprechende Meldung und der Assistent für das Suchen neuer
Hardware wird gestartet.
Führen Sie die Installation der USB-Treiber nicht über einen
Windows Update durch. Wird Ihnen ein entsprechender Dialog
angeboten, wählen Sie die Option Nein.
Erst wenn Ihnen der unten abgebildete Dialog angezeigt wird,
installieren Sie die USB-Treiber von der mitgelieferten CD-ROM.
Legen Sie dazu die EasyPort CD-ROM ein. Sobald das CD-ROM
Laufwerk betriebsbereit ist, klicken Sie auf die Schaltfläche Weiter.

30 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Inbetriebnahme

7. Die erforderliche Softwarekomponente wird gesucht.


Nach erfolgreicher Installation klicken Sie auf die Schaltfläche Fertig
stellen.

© Festo Didactic GmbH & Co. KG „ 721876 31

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Inbetriebnahme

8. Eine zweite Softwarekomponente muss installiert werden, deshalb


öffnet sich das Fenster des Assistenten für das Suchen neuer
Hardware erneut.
Installieren Sie auch hier die Software nicht über einen Windows
Update, sondern immer von der mitgelieferten EasyPort CD-ROM.
Wird Ihnen der unten abgebildete Dialog angezeigt und ist die
EasyPort CD-ROM eingelegt, dann klicken Sie auf die Schalfläche
Weiter.

32 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Inbetriebnahme

9. Nach erfolgreicher Installation klicken Sie auch hier auf die


Schaltfläche Fertig stellen.

10. Die erforderlichen USB-Treiber für den Betrieb von EasyPort USB
sind nun auf Ihrem PC installiert. Damit können Sie EasyPort USB in
Verbindung mit Ihrem PC nutzen.
11. Mit der EasyPort Demo-Anwendung können Sie auf einfache Weise
eine Verbindung zu EasyPort USB herstellen und EasyPort USB
initialisieren.

© Festo Didactic GmbH & Co. KG „ 721876 33

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Inbetriebnahme

12. Starten Sie dazu die EasyPort Demo-Anwendung. Sie finden die
Demo-Anwendung im Startmenü in der Programmgruppe EasyPort
unter dem Eintrag EasyPort Demo-Anwendung.
Mit der Installation des EasyPort ActiveX Steuerelementes von der
EasyPort CD-ROM wird die Demo-Anwendung auf Ihren PC kopiert.

13. Klicken Sie auf die Schaltfläche Connect, um die Verbindung


zwischen der EasyPort Demo-Anwendung und dem EasyPort USB
herzustellen. Gleichzeitig wird das EasyPort USB Modul initialisiert.

34 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Inbetriebnahme

14. Die EasyPort Demo-Anwendung zeigt Ihnen:


‟ das angeschlossene EasyPort USB Modul besitzt die Adresse 2,
‟ als serielle Schnittstelle für die Kommunikation wird COM5
genutzt.

15. An der grünen LED STATUS des EasyPort USB erkennen Sie, dass
EasyPort USB korrekt initialisiert wurde: Die LED STATUS blinkt zwei
Mal kurzzeitig und zeigt so die Adresse 2 des EasyPort USB an.

Hinweis
Bei Verwendung von Fremd-Software mit eigenen USB-Treibern
muss sichergestellt sein, dass noch mindestens eine serielle
Schnittstelle für den EasyPort USB-Treiber frei ist.
Wenn der PC, zu dem die USB-Verbindung von EasyPort besteht,
ausgeschaltet wird, sollte auch das USB-Kabel abgezogen werden.
Erst nach Neustart des PC und des Softwareprogramms, das mit
EasyPort USB kommunizieren soll, das USB-Kabel wieder
einstecken.

© Festo Didactic GmbH & Co. KG „ 721876 35

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Softwareschnittstellen zu EasyPort USB

7.1 Die Übertragung der Daten von und zu einem EasyPort USB
Überblick: Prozessinterface erfolgt durch einzelne, adressierte Schreib- und
Kommunikation Lesebefehle.
mit EasyPort USB

Beispiel: Schreib-/Lesebefehle im Terminalmode

Abhängig davon, wie EasyPort USB in Ihre Anwendung eingebunden


wird, gibt es unterschiedliche Zugriffsebenen, um diese Schreib-
/Lesebefehle auszuführen.
Befehlsinterpreter
stellt die unterste Ebene dar und kann mit einem Terminal-
Programm direkt angesprochen werden
ActiveX Steuerelement
beschreibt die Zugriffsfunktionen und ist damit die
Programmierschnittstelle zu EasyPort USB
EzOPC
EzOPC ist ein OPC-Server und stellt die
Kommunikationsverbindungen für vorbereitete Anwendungen mit
Festo Didactic Produkten her

36 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Softwareschnittstellen zu EasyPort USB

Softwareschnittstellen zu EasyPort USB

Die unterste Ebene bildet ein Befehlsinterpreter. Der Befehlsinterpreter


kennt alle Befehle, die das EasyPort USB ausführen kann. Über ein
Terminal-Programm wie zum Beispiel HyperTerminal von Windows
können Sie mit EasyPort USB direkt kommunizieren und die
gewünschten Befehle ausführen.

Als Schnittstelle zur Programmierung von EasyPort USB dient das


ActiveX Steuerelement. Es kann als COM-Objekt in Softwareprojekte
eingefügt werden. Voraussetzung ist, dass die eingesetzte Software die
COM-Schnittstelle unterstützt. Das ist der Fall für Programmiersprachen
wie Visual Basic und C++. Aber auch Programme zur Messwerterfassung
und ‟Auswertung wie zum Beispiel LabVIEW oder
Visualisierungssysteme bieten diese Schnittstelle an.

Wenn Sie EasyPort USB zusammen mit anderen Festo Didactic


Produkten einsetzen, können Sie auf einfache Weise die
Kommunikation zwischen den Kommunikationspartnern erstellen. Sie
nutzen dazu den OPC-Server EzOPC, ein Programm mit einer grafischen
Bedienoberfläche.

© Festo Didactic GmbH & Co. KG „ 721876 37

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Softwareschnittstellen zu EasyPort USB

7.2 EzOPC ist ein OPC-Server, der Datenverbindungen bereitstellt:


Kommunikation zu einem EasyPort USB Prozessinterface
über EzOPC zu OPC Clients von Festo Didactic:
COSIMIR , CIROS , FluidSIM , FluidLab
zum SPS Simulator S7-PLCSIM von Siemens
zum CoDeSys OPC Server V2.0 von 3S Software.

Die Daten können von jedem OPC 2.x konformen OPC Client
geschrieben und gelesen werden.

OPC steht für open connectivity via open standards und ist eine
etablierte Standardschnittstelle in der Automatisierungstechnik. Sie
sorgt für einen effizienten Datenfluss zwischen Windows-Applikationen
und Automatisierungsgeräten.

Softwareschnittstelle: EzOPC

38 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Softwareschnittstellen zu EasyPort USB

Mit der grafischen Bedienoberfläche EzOPC erstellen Sie auf einfache


Weise Datenverbindungen zwischen den Kommunikationspartnern von
einigen vorbereiteten Anwendungen.
Dazu wählen Sie die Kommunikationspartner aus. Anschließend geben
Sie den Bereich der Ein-/Ausgänge an, deren Signale Sie austauschen
wollen. Damit ist die Konfiguration abgeschlossen. EzOPC führt nun
selbstständig den Datenaustausch zwischen den
Kommunikationspartnern durch.

Beispielkonfiguration: Prozessmodelle in CIROS werden von einer externen SPS gesteuert. Der
Datenaustausch geschieht über EasyPort und EzOPC.

Die virtuelle Steuerung ist das „Herz“ des EzOPC. Sie stellt das virtuelle
Klemmbrett dar, das den Signalbereich des einen
Kommunikationspartners mit dem Signalbereich des anderen
Kommunikationspartners verbindet.

© Festo Didactic GmbH & Co. KG „ 721876 39

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Softwareschnittstellen zu EasyPort USB

Detaillierte Hinweise zur Konfiguration und zum Einsatz von EzOPC


finden Sie in der Online-Hilfe zu EzOPC und in den Handbüchern der
eingesetzten Software-Produkte.
Die Online-Hilfe steht Ihnen zur Verfügung, sobald Sie EzOPC installiert
haben.

So installieren Sie EzOPC


1. Legen Sie die EasyPort CD-ROM ein.
2. Das Installationsprogramm wird automatisch gestartet.
Wenn kein automatischer Start ausgeführt wird, dann starten Sie
das Programm Start.exe auf der CD-ROM.
3. Es erscheint der Starbildschirm.
Wählen Sie die Sprache aus, in der Sie das Softwareprogramm
EzOPC installieren wollen. Klicken Sie auf die entsprechende
Schaltfläche.

40 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Softwareschnittstellen zu EasyPort USB

4. Es werden Ihnen alle Softwareanwendungen, Handbücher, Treiber


und Programmbeispiele angeboten.
Klicken Sie unter Anwendungen auf Installieren von OPC-Server
EzOPC.

5. Für EzOPC wird standardmäßig die Programmgruppe EzOPC im


Startmenü angelegt. Dort finden Sie auch die zugehörige Online-
Hilfe zu EzOPC.

© Festo Didactic GmbH & Co. KG „ 721876 41

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. ActiveX Steuerelement zu EasyPort USB

8.1 Das ActiveX Steuerelement dient als Programmierschnittstelle zu


Verwendung des EasyPort USB. Es kann als COM-Objekt in Softwareprojekte eingefügt
ActiveX Steuerelementes werden. Zu den Softwaresystemen, die die COM-Schnittstelle
unterstützen, gehören die Programmiersprachen Visual Basic, C++ oder
auch HTML. Aber auch Systeme zur Messwerterfassung wie zum
Beispiel LabVIEW oder Visualiserungssysteme unterstützen die COM-
Schnittstelle.

Softwareschnittstelle: ActiveX Steuerelement

Das ActiveX Steuerelement und seine Methoden sind ausführlich


beschrieben in der Online-Hilfe.

42 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. ActiveX Steuerelement zu EasyPort USB

8.2 Bevor das ActiveX Steuerelement in Softwareprojekte eingebunden


Installation des ActiveX werden kann, muss es auf dem PC zur Verfügung stehen. Sie finden das
Steuerelementes ActiveX Steuerelement auf der mitgelieferten CD-ROM.

So installieren Sie das ActiveX Steuerelement


1. Legen Sie die EasyPort CD-ROM ein.
2. Das Installationsprogramm wird automatisch gestartet.
Wenn kein automatischer Start ausgeführt wird, dann starten Sie
das Programm Start.exe auf der CD-ROM.
3. Es erscheint der Starbildschirm.
Wählen Sie die Sprache aus, in der Sie das ActiveX Steuerelement
installieren wollen. Klicken Sie auf die entsprechende Schaltfläche.
4. Es werden Ihnen alle Softwareanwendungen, Handbücher, Treiber
und Programmbeispiele angeboten.
Klicken Sie auf Installieren von EasyPort ActiveX Steuerelement.

5. Für das EasyPort ActiveX Steuerelement wird standardmäßig die


Programmgruppe EasyPort im Startmenü angelegt. Dort finden Sie
auch die zugehörige Online-Hilfe und eine Demo-Anwendung zum
ActiveX Steuerelement.

© Festo Didactic GmbH & Co. KG „ 721876 43

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. ActiveX Steuerelement zu EasyPort USB

8.3 Die EasyPort Demo-Anwendung ist ein Programmbeispiel und zeigt, wie
Beispiel: Sie das ActiveX Steuerelement in C++ verwenden. Mit der Demo-
EasyPort Demo- Anwendung können Sie auf einfache Weise einige zentrale Methoden
Anwendung des ActiveX Steuerelementes ausführen und die Kommunikation
zwischen PC und EasyPort USB beobachten.
Auf Quellcode-Ebene zeigt das Beispiel, wie das ActiveX Steuerelement
von EasyPort in C++ eingebunden werden kann.

Mit der Installation des ActiveX Steuerelementes von EasyPort wird


auch die Demo-Anwendung auf Ihren PC kopiert.
Sie finden die Demo-Anwendung im Startmenü in der Programmgruppe
EasyPort unter dem Eintrag EasyPort Demo-Anwendung.

EasyPort Demo-Anwendung

44 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. ActiveX Steuerelement zu EasyPort USB

So arbeiten Sie mit der Demo-Anwendung


1. Stellen Sie sicher, dass das Prozessinterface EasyPort USB an eine
24 VDC Spannungsversorgung angeschlossen ist.
Schalten Sie die Spannungsversorgung des EasyPort USB ein.
2. Verbinden Sie den PC mit dem Prozessinterface EasyPort USB.
Verwenden Sie dazu das beigelegte USB-Kabel.

3. Falls die erforderlichen USB-Treiber für den Betrieb des EasyPort


USB auf dem PC noch nicht installiert sind, erhalten Sie eine
entsprechende Meldung. Führen Sie daraufhin die Installation der
USB-Treiber durch. Sie benötigen dazu die EasyPort CD-ROM.
4. Stellen Sie sicher, dass das ActiveX Steuerelement zu EasyPort USB
auf Ihrem PC installiert ist.

© Festo Didactic GmbH & Co. KG „ 721876 45

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. ActiveX Steuerelement zu EasyPort USB

5. Starten Sie die EasyPort Demo-Anwendung. Sie finden die Demo-


Anwendung im Startmenü in der Programmgruppe EasyPort unter
dem Eintrag EasyPort Demo-Anwendung.
Einige häufig genutzte Methoden des ActiveX Steuerelementes sind
auf Schaltflächen gelegt. Links von der Schaltfläche werden
Rückgabewerte angezeigt, sofern die Methode einen Rückgabewert
liefert. Auf der rechten Seite geben Sie die Parameterwerte für den
Aufruf der Methode ein.

6. Bevor Sie Befehle ausführen können, müssen Sie die Verbindung


zwischen der EasyPort Demo-Anwendung und dem EasyPort USB
Modul herstellen. Klicken Sie dazu auf die Schaltfläche Connect.

46 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. ActiveX Steuerelement zu EasyPort USB

7. Am Rückgabewert 1 erkennen Sie, dass das angeschlossene


EasyPort USB Modul die Adresse 1 besitzt, als serielle Schnittstelle
für die Kommunikation wird COM 5 genutzt.

8. Nun können Sie die angebotenen Methoden ausführen. Eine


Beschreibung der Methoden finden Sie in der Online-Hilfe.
9. Wollen Sie zum Beispiel die digitalen Ausgänge 0 bis 3 des EasyPort
USB Moduls setzen, dann tragen Sie den Wert 15 als Parameter für
die Methode SetOutputWord ein. Die digitalen Ausgänge müssen
als Ausgangswort 0 angesprochen werden. Die Adresse 0 für das
Ausgangswort ist voreingestellt, Sie können den Wert unverändert
übernehmen. Klicken Sie dann auf die Schaltfläche SetOutputWord.
Die LED der Ausgänge 0 bis 3 am Port 1 von Ihrem EasyPort USB
leuchten gelb.

© Festo Didactic GmbH & Co. KG „ 721876 47

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. ActiveX Steuerelement zu EasyPort USB

10. Umgekehrt können Sie auch den Zustand der digitalen Ausgänge am
EasyPort USB einlesen. Klicken Sie dazu auf die Schaltfläche
GetOutputWord. Der Wert des Ausgangswortes 0 beträgt 15 und
wird links neben der Methode angezeigt.

11. Wenn Sie die Kommunikation zwischen der EasyPort Demo-


Anwendung und dem EasyPort USB direkt verfolgen wollen, dann
klicken Sie auf die Schaltfläche ShowDebugWnd.

48 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. ActiveX Steuerelement zu EasyPort USB

12. Es wird das Fenster Trace Window angezeigt. In diesem Fenster


werden die Befehle an das EasyPort USB Modul und die Antwort des
EasyPort auf den Befehl protokolliert.

© Festo Didactic GmbH & Co. KG „ 721876 49

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. ActiveX Steuerelement zu EasyPort USB

13. Die Methode SendAndGetString bietet Ihnen die Möglichkeit, direkt


auch Befehle des Befehlsinterpreters an das angeschlossene
EasyPort USB Modul zu senden.
Beispiel: Tragen Sie als Befehl MAW1.0=FF ein, klicken Sie dann auf
die Schaltfläche SendAndGetString. Alle digitalen Ausgänge an Port
1 von EasyPort USB werden auf 1 gesetzt.
Die Antwort AW1.0=FF des EasyPort USB wird Ihnen links neben der
Schaltfläche angezeigt.

14. Wollen Sie die Verbindung zu EasyPort USB beenden, dann klicken
Sie auf die Schaltfläche Disconnect.

Hinweis
Mit der EasyPort Demo-Anwendung können Sie schnell und komfortabel
die Verbindung zu einem EasyPort USB herstellen und testen.

50 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

9.1 Die unterste Zugriffsebene für die Kommunikation bildet ein


Befehlsinterpreter Befehlsinterpreter. Der Befehlsinterpreter kennt alle Befehle, die das
EasyPort USB ausführen kann. Über ein Terminal-Programm wie zum
Beispiel HyperTerminal von Windows können Sie mit EasyPort USB
direkt kommunizieren und die gewünschten Befehle ausführen.

Softwareschnittstelle: Befehlsinterpreter

Der Befehlsinterpreter wird über die serielle Schnittstelle gesteuert.


Für die Einstellung der Schnittstelle gilt:
COMx: 115200,N,8,1
Bitte beachten Sie, dass EasyPort USB ausschließlich mit einer
festen Baudrate von 115200 Bd arbeitet.

Die Struktur der Befehle ist einfach:


Jeder Befehlt besteht aus einem Befehlsbuchstaben (Operator) und
einer Betriebsmitteladresse (Operand).
Die Betriebsmitteladresse adressiert das gewünschte Signal.

Für einige ältere Befehle ist die Angabe der Adresse des EasyPort USB
Moduls erforderlich, bei jüngeren Befehlen entfällt sie.

© Festo Didactic GmbH & Co. KG „ 721876 51

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

9.2 Es gibt zwei zentrale Befehle zum Lesen und Schreiben von
Befehlsstruktur Betriebsmitteln
• Display-Befehl (D) zum Lesen eines Betriebsmittels
• Modify-Befehl (M) zum Ändern eines Betriebsmittels

Als Betriebsmittel eines EasyPort USB Moduls sind möglich


• Eingang (E)
• Ausgang (A)
• Ereigniszeitgeber (T)
• schneller Zähler (C)

Das Betriebsmittel kann angesprochen werden als


• Bit
• Byte (B)
• Wort (W)

Ein Wort besteht aus Byte 0 und 1 und enthält die Bitadressen 0 bis 15.

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

Byte 1 Byte 0
(Port 2) (Port 1)

Wort 0

52 © Festo Didactic GmbH & Co. KG • 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

Beispiel für einen Lesebefehl (Display)

D E 1. 0. 5

Befehl Modul 1 Wort 0 Bit 5


Display
Adresse
Betriebsmittel
Eingang

Beschreibung: Display Eingangsbit 5 von Wort 0 in EasyPort USB Modul 1

Ein Display-Befehl besteht aus einem Befehlsbuchstaben, einem


Betriebsmittel und dem Datentyp des Betriebsmittels. Es folgt die
Adresse des Betriebsmittels mit Angabe der Modulnummer, der
Wortadresse und gegebenenfalls der Byte- oder Bitadresse. Die
einzelnen Adressangaben sind jeweils durch einen Punkt voneinander
getrennt.

Beispiel für einen Schreibbefehl (Modify)

Befehl Beschreibung

MA2.0.C=1 Modify Ausgangsbit 12 von Wort 0 in EasyPort USB


Modul 2 auf 1

Modify-Befehlen muss ein Datenwert mitgegeben werden. Der


Datenwert schließt sich an die Betriebsmitteladresse mit einem
Gleichheitszeichen an.

Beachten Sie: Adresszahlen und Datenwerte müssen immer


hexadezimal eingegeben werden

© Festo Didactic GmbH & Co. KG „ 721876 53

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

9.3 Die zum Übertragungszeitpunkt tatsächlich übertragenen Daten


Übertragungsebene entsprechen weitgehend den auf Benutzerebene eingegebenen Daten
als ASCII-Zeichen.

Für die Datenübertragung gilt:


Adresse und den Datenwert müssen hexadezimal eingegeben
werden.
Datenwerte, die EasyPort USB liefert, werden immer als
hexadezimale Zahlen zurückgegeben.
Gleitkommazahlen werden codiert.
Jede Nachricht ist mit einem CR (Wagenrücklauf) abgeschlossen.
Jeder Befehl für die eigene Adresse wird beantwortet.
Von jedem Display- oder Modify-Befehl wird dazu der erste
Buchstabe abgetrennt. Modify-Befehle werden mit dem
tatsächlichen Datenwert im Modul versehen. Dieser Datenwert ist
normalerweise der gleiche wie im Befehl.
An die Antwort auf einen Display-Befehl wird der ermittelte Wert in
der gleichen Schreibweise wie bei einem Modify-Befehl angefügt.

Nachfolgend sind einige Beispiele für Befehle und Antworten auf diese
Befehle aufgeführt. Mit dargestellt in diesen Beispielen ist auch das
Carriage Return Zeichen <CR>.

54 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

Modul- Befehl für das Modul Antwort vom Modul Bemerkung


adresse

3 DAW3.0<CR> AW3.0=1234<CR> Datenwert ist


1234 hexadezimal
bzw. 4660 dezimal.

Datenformat für Wort: xxxx

2 DEB2.0.1<CR> EB2.0.1=12<CR> Datenwert ist 12 hexadezimal


bzw.18 dezimal.

Datenformat für Byte: xx

1 DE1.0.E<CR> E1.0.E=0<CR> Eingangsbit 14 wird gelesen.

Datenformat für Bit: x

1 MAW1.0=201<CR> AW1.0=201<CR> Datenwert ist


201 hexadezimal
bzw. 513 dezimal

2 MAB2.0.0=73<CR> AB2.0.0=73<CR> Datenwert ist 73 hexadezimal bzw.


115 dezimal

3 MA3.0.A=1<CR> A3.0.A=1<CR> Ausgangsbit 10 wird auf 1 gesetzt.

Beispiele für Modify- und Display-Befehle

© Festo Didactic GmbH & Co. KG „ 721876 55

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

9.4 Neben den Befehlen zum Lesen und Schreiben von Signalen gibt es
Befehle zur weitere Befehle, die vor allem für Inbetriebnahme und Diagnose
Initialisierung und eingesetzt werden.
Diagnose
Dazu gehören die Befehle
Abfragen der Adresse eines EasyPort USB Moduls
Abfragen der Versionsnummer eines EasyPort USB Moduls
Auslesen des Statuswortes eines EasyPort USB Moduls

Befehl Antwort Beschreibung und Beispiel

setup0 setup<n> Adresse abfragen

Das EasyPort USB Modul gibt mit setup<n>, <n>=1…4, seine Moduladresse
zurück.

Beispiel

Befehl Antwort Beschreibung


setup0 setup1 Das EasyPort USB Modul gibt
als Adresse die Adresse 1 zurück.

DV V=2.10 Versionsnummer ausgeben

Das EasyPort USB Modul gibt mit V=2.10 seine Version zurück.

Initialisierung und Diagnose

56 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

Befehl Antwort Beschreibung und Beispiel

DS S=xx Statuswort auslesen

Das Statuswort eines EasyPort USB Moduls wird als hexadezimaler Wert
xx zurückgegeben.

Es bedeuten
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Display Up Down Out- In- Setup Error

Bit 0 = 1 Fehler der Ausgangstreiber


Bit 1 = 1 Modul initialisiert
Bit 2 = 1 Bereich für Eingangsspannung ‟10…+10 VDC
Bit 2 = 0 Bereich für Eingangsspannung 0…10 VDC
Bit 3 = 1 Bereich für Ausgangsspannung ‟10…+10 VDC
Bit 3 = 0 Bereich für Ausgangsspannung 0…10 VDC
Bit 4 = 1 Taste  gedrückt
Bit 5 = 1 Taste  gedrückt
Bit 6 = 1 Alle Segmente des Displays werden angezeigt
Bit 6 = 0 Die normale Anzeige des Displays ist aktiviert

Beispiel

Befehl Antwort Beschreibung


DS S=12 Es wird der Wert 12 hexadezimal bzw.
18 dezimal zurückgegeben.
Das bedeutet: Bit 1 = 1 und Bit 4 = 1
Das Easyport USB Modul ist korrekt
initialisiert, als Ein- und Ausgangs-
spannung sind 0…10 V eingestellt, die
Taste  ist gedrückt und die Anzeige
des Displays ist auf normale Anzeige
eingestellt.

Initialisierung und Diagnose (Fortsetzung)

© Festo Didactic GmbH & Co. KG „ 721876 57

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

9.5 In den nachfolgenden Tabellen sind die Befehle zum Lesen und
Befehle für Schreiben von digitalen Signalen zusammengestellt.
digitale Signale

Modify- Betriebs- Datentyp Adresse Beispiele und Hinweise


Befehl mittel

M A (Bit) 0…15 MA1.0.4=1


(Modify) (Ausgang) Modify Ausgangsbit 4 von Wort 0 in
EasyPort USB Modul 1 auf 1.

Der Datenwert bei Modify-Befehlen darf


ausschließlich hexadezimal angegeben
werden.

B (Byte) 0,1 MAB2.0.0=7


Modify Ausgangsbyte 0 von Wort 0 in
EasyPort USB Modul 2 auf 7 hexadezimal.
Das bedeutet:
Bit 0, Bit 1 und Bit 2 werden gesetzt.

niederwertig: Byte 0 (Port 1)


höherwertig: Byte 1 (Port 2)

W (Wort) 0 MAW1.0=101
Modify Ausgangswort 0 in EasyPort USB
Modul 1 auf 101 hexadezimal bzw. 257
dezimal.

58 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

Display- Betriebs- Datentyp Adresse Beispiele und Hinweise


Befehl mittel

D E (Bit) 0…15 DE1.0.3


(Display) (Eingang) Display Eingangsbit 3 von Wort 0 in
EasyPort USB Modul 1

DE2.0.E
Display Eingangsbit 14 von Wort 0 in
EasyPort USB Modul 2

B (Byte) 0,1 DEB1.0.0


Display Eingangsbyte 0 von Wort 0 in
EasyPort USB Modul 1

DEB3.0.1
Display Eingangsbyte 1 von Wort 0 in
EasyPort USB Modul 3

W (Wort) 0 DEW1.0
Display Eingangswort 0 von EasyPort USB
Modul 1

A (Bit) 0…15 DA3.0.5


(Ausgang) Display Ausgangsbit 5 von Wort 0 in
EasyPort USB Modul 3

DA4.0.C
Display Ausgangsbit 12 von Wort 0 in
EasyPort USB Modul 4

B (Byte) 0,1 DAB4.0.0


Display Ausgangsbyte 0 von Wort 0 in
EasyPort USB Modul 4

DAB2.0.1
Display Ausgangsbyte 1 von Wort 0 in
Modul 2

W (Wort) 0 DAW3.0
Display Ausgangswort 0 in EasyPort USB
Modul 3

© Festo Didactic GmbH & Co. KG „ 721876 59

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

Neben den Befehlen zum Lesen und Schreiben von digitalen Signalen
gibt es weitere Befehle, um das Verhalten eines EasyPort USB Moduls
zu steuern.

Dazu gehört der Befehl zum Setzen des Ereignismodus:


MT<n>=xx mit <n> als Moduladresse und xx als hexadezimalem Zeitwert,
xx = 00…FF [ms].

Ist der Ereignismodus aktiv, dann meldet das EasyPort USB Modul
selbständig geänderte digitale Eingangsdaten zum PC. Die Zeit, in der
eine Eingangsänderung frühestens gemeldet wird, ist einstellbar.

Modify- Betriebs- Modul- Beispiele und Hinweise


Befehl mittel Adresse

M (Modify) T (Timer) 1…4 MT2=01


Setze den Ereignismodus für EasyPort USB Modul mit der
Adresse 2 mit dem Zeitwert 1 ms.

Beschreibung: Ändert sich ein digitales Eingangssignal am


EasyPort USB Modul 2, dann wird das komplette
Eingangswort nach 10 ms automatisch an den PC
gemeldet.

MT2=00
Der Ereignismodus für EasyPort USB Modul 2 wird
beendet. Eingangssignale werden nur noch auf
Anforderung an den PC gemeldet.

60 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

9.6 EasyPort USB verarbeitet neben digitalen Ein-/Ausgangssignalen auch


Befehle für analoge Signale.
analoge Signale Der Befehlsinterpreter enthält deshalb Befehle
zum Einlesen von analogen Ein- oder Ausgangskanälen,
zum Ausgeben einer Spannung an einem analogen Ausgangskanal.

Die Analog-Digital-Umwandlung erfolgt mit einer Auflösung von 12 Bit.


12 Bit Auflösung bedeutet ein Raster mit 4096 Stufen.

Die Abtastfrequenz für die analogen Ein-/Ausgänge beträgt 0,5 kHz.

Bei den analogen Kanälen kann zwischen zwei Spannungsbereichen


gewählt werden:
0…10 V
‟10…+10 V

Die beiden Abbildungen zeigen die Zuordnung von analogem


Spannungsbereich zu digitalem Zahlenbereich. Der digitale
Zahlenbereich ist immer der Bereich von 0x0000 bis 0x7FFF (32767
dezimal).

0V 5V 10 V

0x0000 0x3FFF 0x7FFF

Zuordnung analog-digital für Spannungsbereich 0…10 V

-10 V 0V +10 V

0x0000 0x3FFF 0x 7FFF

Zuordnung analog-digital für den Spannungsbereich ‟10…+10 V

© Festo Didactic GmbH & Co. KG „ 721876 61

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

Umschalten des Messbereichs


Das Umschalten des Messbereichs von 0…10 V auf ‟10…+10 V
erreichen Sie mit den Befehlen MRE (Modify Range Eingänge) bzw. MRA
(Modify Range Ausgänge) des Befehlsinterpreters.

Befehl Beschreibung

MRE<n>=0 Messbereich der analogen Eingänge auf 0…10 V setzen

Am EasyPort USB Modul mit der Adresse <n>, <n>=1…4, wird der Messbereich für die
analogen Eingänge auf 0…10 V gesetzt.
Dieser Messbereich ist nach Initialisierung eines EasyPort USB Moduls automatisch
voreingestellt.

MRE<n>=1 Messbereich der analogen Eingänge auf –10…+10 V setzen

Am EasyPort USB Modul mit der Adresse <n>, <n>=1…4, wird der Messbereich für die
analogen Eingänge auf ‟10…+10 V gesetzt.

Beispiel

MRE2=1
Am EasyPort USB Modul mit der Adresse 2 den Spannungsbereich für die analogen
Eingänge auf ‟10…+10 V setzen.

Umschalten des Messbereichs für die analogen Eingänge

62 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

Befehl Beschreibung

MRA<n>=0 Messbereich der analogen Ausgänge auf 0…10 V setzen

Am EasyPort USB Modul mit der Adresse <n>, <n>=1…4, wird der Messbereich für die
analogen Ausgänge auf 0…10 V gesetzt.
Dieser Messbereich ist nach Initialisierung eines EasyPort USB Moduls automatisch
voreingestellt.

MRA<n>=1 Messbereich der analogen Ausgänge auf –10…+10 V setzen

Am EasyPort USB Modul mit der Adresse <n>, <n>=1…4, wird der Messbereich für die
analogen Ausgänge auf ‟10…+10 V gesetzt.

Umschalten des Messbereichs für die analogen Ausgänge

Einlesen von analogen Signalen


EasyPort USB besitzt die analogen Eingangskanäle 0…3. Für das
Einlesen eines analogen Eingangs wird der Befehl DEW mit Angabe der
Adresse des EasyPort USB Moduls und der Kanalnummer verwendet.
Aufgrund des Datenformats der analogen Eingänge ist der Wertebereich
von 0x0000 bis 0x7FF8 (32760 dezimal) möglich.

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20

0 X X X X X X X X X X X X 0 0 0

12-Bit-Analogeingang

Datenformat der analogen Eingänge

© Festo Didactic GmbH & Co. KG „ 721876 63

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

Befehl Antwort Beschreibung

DEW<n>.2 EW<n>.2=xxxx Eingangskanal 0 einlesen


mit xxxx = 0000…7FF8
Am EasyPort USB Modul mit der Adresse <n>, <n>=1…4,
werden die Werte am Eingangskanal 0 eingelesen.

Beispiel

DEW1.2
Am EasyPort USB Modul mit Adresse 1 den Eingangskanal
0 einlesen.

DEW<n>.4 EW<n>.4=xxxx Eingangskanal 1 einlesen


mit xxxx = 0000…7FF8
Am EasyPort USB Modul mit der Adresse <n>, <n>=1…4,
werden die Werte am Eingangskanal 1 eingelesen.

DEW<n>.6 EW<n>.6=xxxx Eingangskanal 2 einlesen


mit xxxx = 0000…7FF8
Am EasyPort USB Modul mit der Adresse <n>, <n>=1…4,
werden die Werte am Eingangskanal 2 eingelesen.

DEW<n>.8 EW<n>.8=xxxx Eingangskanal 3 einlesen


mit xxxx = 0000…7FF8
Am EasyPort USB Modul mit der Adresse <n>, <n>=1…4,
werden die Werte am Eingangskanal 3 eingelesen.

Einlesen der analogen Eingangssignale

64 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

Auch die analogen Ausgangssignale können eingelesen werden.

Befehl Antwort Beschreibung

DAW<n>.2 AW<n>.2=xxxx Ausgangskanal 0 einlesen


mit xxxx = 0000…7FF8
Am EasyPort USB Modul mit der Adresse <n>, <n>=1…4,
werden die Werte am Ausgangskanal 0 eingelesen.

DAW<n>.4 AW<n>.4=xxxx Ausgangskanal 1 einlesen


mit xxxx = 0000…7FF8
Am EasyPort USB Modul mit der Adresse <n>, <n>=1…4,
werden die Werte am Ausgangskanal 1 eingelesen.

Beispiel

DAW3.4
Ausgangskanal 1 von EasyPort USB Modul mit Adresse 3
einlesen.

Einlesen der analogen Ausgangssignale

Ausgeben einer Spannung am analogen Ausgangskanal


EasyPort USB besitzt zwei analoge Ausgangskanäle 0 und 1. Für das
Schreiben eines Spannungswertes wird der Befehl MAW mit Angabe der
Adresse des EasyPort USB Moduls, der Kanalnummer und des Wertes
verwendet.
Der Wertebereich für die analogen Ausgänge beträgt auch hier 0x0000
bis 0x7FF8 (32760 dezimal).

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20

0 X X X X X X X X X X X X 0 0 0

12-Bit-Analogausgang

Datenformat der analogen Ausgänge

© Festo Didactic GmbH & Co. KG „ 721876 65

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

Befehl Beschreibung

MAW<n>.2=xxxx Ausgangskanal 0 schreiben


mit xxxx = 0000…7FF8
Am EasyPort USB Modul mit der Adresse <n>, <n>=1…4, den gewünschten
Spannungswert am Ausgangskanal 0 ausgeben.

Beispiel

MAW1.2=2AC5
Am EasyPort USB Modul mit Adresse 1 als Spannungswert am Ausgangskanal
0 den Wert 2AC5 hexadezimal bzw. 10949 dezimal ausgeben.

MAW<n>.4=xxxx Ausgangskanal 1 schreiben


mit xxxx = 0000…7FF8
Am EasyPort USB Modul mit der Adresse <n>, <n>=1…4, den gewünschten
Spannungswert am Ausgangskanal 1 ausgeben.

Erzeugen eines analogen Ausgangssignals

Anzeige von analogen Signalen auf dem LCD Display


Die Werte eines analogen Ein- oder Ausgangs können Sie am LCD
Display des EasyPort USB verfolgen. Angezeigt werden Ihnen der
ausgewählte Kanal, der Trend, der Messwert mit 4 Stellen und die
Einheit.

Den Analogkanal für die Anzeige am LCD Display wählen Sie


üblicherweise mit den Pfeiltasten direkt am EasyPort USB aus.
Mit einem Befehl des Befehlsinterpreters können Sie die eingestellte
Kanalwahl vorübergehend vom PC aus unterdrücken und auf einen
anderen analogen Kanal umstellen. Sie verwenden dazu den Befehl MF.

66 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

Befehl Beschreibung

MF<n>=01 Analogen Eingangskanal 0 forcieren

Am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4, werden die
Messwerte des analogen Eingangskanals 0 angezeigt.

MF<n>=02 Analogen Eingangskanal 1 forcieren

Am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4, werden die
Messwerte des analogen Eingangskanals 1 angezeigt.

MF<n>=04 Analogen Eingangskanal 2 forcieren

Am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4, werden die
Messwerte des analogen Eingangskanals 2 angezeigt.

MF<n>=08 Analogen Eingangskanal 3 forcieren

Am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4, werden die
Messwerte des analogen Eingangskanals 3 angezeigt.

MF<n>=10 Analogen Ausgangskanal 0 forcieren

Am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4, werden die
Messwerte des analogen Ausgangskanals 0 angezeigt.

MF<n>=20 Analogen Ausgangskanal 1 forcieren

Am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4, werden die
Messwerte des analogen Ausgangskanals 1 angezeigt.

MF<n>=00 Forcierung des analogen Kanals aufheben

Am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4, werden wieder
die Messwerte des analogen Kanals angezeigt, der mit den Pfeiltasten direkt am EasyPort
USB eingestellt wird.

Forcieren eines Analogkanals zur Anzeige am LCD Display

© Festo Didactic GmbH & Co. KG „ 721876 67

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

9.7 Das Aufnehmen von analogen Messwerten unterstützt EasyPort USB


Befehle durch spezielle Befehle.
zum Messen von
analogen Signalen Mit dem Befehl MME (Modify Mess Modus) aktivieren Sie den
Messmodus. Es werden dann die eingelesenen analogen Eingangswerte
mit maximaler Geschwindigkeit ausgegeben.
Den analogen Eingangskanal, für den Sie die Werte automatisch
ausgeben wollen, wählen Sie mit dem Befehl MS aus.

Befehl Beschreibung

MS<n>=01 Analogen Eingangskanal 0 aktivieren

Am EasyPort USB Modul mit der Adresse <n>, <n>=1…4, den analogen Eingangskanal 0
für das automatische Senden von Eingangswerten aktivieren.

MS<n>=02 Analogen Eingangskanal 1 aktivieren

Am EasyPort USB Modul mit der Adresse <n>, <n>=1…4, den analogen Eingangskanal 1
für das automatische Senden von Eingangswerten aktivieren.

MS<n>=04 Analogen Eingangskanal 2 aktivieren

Am EasyPort USB Modul mit der Adresse <n>, <n>=1…4, den analogen Eingangskanal 2
für das automatische Senden von Eingangswerten aktivieren.

MS<n>=08 Analogen Eingangskanal 3 aktivieren

Am EasyPort USB Modul mit der Adresse <n>, <n>=1…4, den analogen Eingangskanal 3
für das automatische Senden von Eingangswerten aktivieren.

MS<n>=0F Alle analogen Eingangskanäle aktivieren

Am EasyPort USB Modul mit der Adresse <n>, <n>=1…4, die analogen Eingangskanäle
0…3 für das automatische Senden von Eingangswerten aktivieren.

MS<n>=00 Alle analogen Eingangskanäle deaktivieren

Am EasyPort USB Modul mit der Adresse <n>, <n>=1…4, alle analogen Eingangskanäle
deaktivieren. Ein automatisches Ausgeben der Eingangswerte ist dann nicht mehr
möglich.

Aktivieren von analogen Eingangskanälen

68 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

Befehl Antwort Beschreibung

MME=4 ME=4 Messmodus aktivieren

Datenformat der Am EasyPort USB werden die Messwerte des aktivierten


gesendeten Daten: analogen Eingangskanals automatisch zyklisch ausgegeben.
yxx<CR> Das Zeitraster für die Ausgabe beträgt 5 ms.

Das Datenformat xx ist ein binäres Format, es besteht aus 2


Bytes.

y ist die Kennung für den zuvor aktivierten Eingangskanal.


y=2: analoger Eingangskanal 0
y=4: analoger Eingangskanal 1
y=6: analoger Eingangskanal 2
y=8: analoger Eingangskanal 3

Beispiel: Eingangskanal 0 ausgeben

MS1=01<CR> S1=01<CR> Analogen Eingangskanal 0 von EasyPort USB mit Adresse 1


aktivieren.

MME=4<CR> ME=4<CR> Messmodus aktivieren.


2xx<CR> Das EasyPort USB gibt nun die Messwerte des analogen
2xx<CR> Eingangskanals 0 aus.

Aktivieren des Messmodus für analoge Eingangskanäle

Für die Anzeige der analogen Messwerte auf dem LCD Display ist
standardmäßig die Einheit Volt eingestellt.

Bei Mess- und Regelvorgänge sind häufig andere physikalische Größen


von Bedeutung. Deshalb kann jedem Analogkanal eine eigene
physikalische Einheit zugeordnet werden. Wird der Analogkanal zur
Anzeige am LCD Display ausgewählt, dann wird die vom PC aus
zugeordnete physikalische Einheit dargestellt.

© Festo Didactic GmbH & Co. KG „ 721876 69

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

Beachten Sie: Es werden jedoch keine Umrechnungen zwischen den


physikalischen Einheiten vorgenommen!

Für das Einstellen der physikalischen Einheit verwenden Sie den Befehl
MU.

Hinweis
Durch manuelle Eingabe der Einheit mit den Pfeiltasten direkt am
EasyPort USB wird die vom PC aus zugeordnete Einheit überschrieben.

Befehl Beschreibung

MU<n>.01=xx Analogem Eingangskanal 0 eine Einheit zuordnen

Am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4, wird für den
analogen Eingangskanal 0 die Einheit xx angezeigt.

Es bedeutet:
xx=00: V
xx=01: bar
xx=02: PSI
xx=03: MPa
xx=04: l/min
xx=05: oC

MU<n>.02=xx Analogem Eingangskanal 1 eine Einheit zuordnen

Am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4, wird für den
analogen Eingangskanal 1 die Einheit xx angezeigt.

MU<n>.04=xx Analogem Eingangskanal 2 eine Einheit zuordnen

Am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4, wird für den
analogen Eingangskanal 2 die Einheit xx angezeigt.

MU<n>.08=xx Analogem Eingangskanal 3 eine Einheit zuordnen

Am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4, wird für den
analogen Eingangskanal 3 die Einheit xx angezeigt.

Zuordnen einer physikalischen Einheit zur Darstellung auf dem LCD Display

70 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

Befehl Beschreibung

MU<n>.10=xx Analogem Ausgangskanal 0 eine Einheit zuordnen

Am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4, wird für
den analogen Ausgangskanal 0 die Einheit xx angezeigt.

MU<n>.20= xx Analogem Ausgangskanal 1 eine Einheit zuordnen

Am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4, wird für
den analogen Ausgangskanal 1 die Einheit xx angezeigt.

Zuordnen einer physikalischen Einheit zur Darstellung auf dem LCD Display (Fortsetzung)

Jeder physikalischen Einheit kann ein Verstärkungsfaktor zugewiesen


werden. Mit diesem Faktor wird der auf dem LCD Display dargestellte
Messwert multipliziert. Auf diese Weise können Sie den Messwert an
eine physikalische Einheit anpassen, die für Sie aussagekräftiger ist.
Sie setzen einen Verstärkungsfaktor mit dem Befehl MG.

Beachten Sie, dass der Verstärkungsfaktor den Messwert, wie er am


Analogkanal anliegt, nicht verändert. Der Verstärkungsfaktor wirkt nur
auf die Anzeige der Werte auf dem LCD Display.

Für jede physikalische Einheit ist der Verstärkungsfaktor voreingestellt.

Physikalische Einheit Voreinstellung Verstärkungsfaktor

V 10.0

bar 1.0

PSI 1.0

MPa 1.0

l/min 1.0
o
C 1.0

© Festo Didactic GmbH & Co. KG „ 721876 71

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

Beispiel
Sie nehmen die Werte eines pneumatischen Drucksensors auf. 10 V
entsprechen dabei 6 bar. Um die Messwerte am LCD Display in bar
verfolgen zu können, stellen Sie als Einheit bar ein. Als
Verstärkungsfaktor wählen Sie 6.

MU1.01=01 Dem Eingangskanal 0 des EasyPort USB


Moduls mit der Adresse 1 wird als Einheit bar
zugewiesen. Die Einheit bar wird am LCD
Display angezeigt.

MG1.1=6.00 Der am LCD Display von EasyPort USB Modul


1 angezeigte Messwert mit der Einheit bar
wird mit dem Faktor 6.00 multipliziert.

72 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

Befehl Beschreibung

MG<n>.0=x.xx Der physikalischen Einheit Volt einen Verstärkungsfaktor zuweisen

Der am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4,
dargestellte Messwert mit der Einheit Volt wird mit dem Faktor x.xx multipliziert.

x.xx stellt einen 3-stelligen dezimalen Wer dar.

MG<n>.1=x.xx Der physikalischen Einheit bar einen Verstärkungsfaktor zuweisen

Der am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4,
dargestellte Messwert mit der Einheit bar wird mit dem Faktor x.xx multipliziert.

MG<n>.2=x.xx Der physikalischen Einheit PSI einen Verstärkungsfaktor zuweisen

Der am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4,
dargestellte Messwert mit der Einheit PSI wird mit dem Faktor x.xx multipliziert.

MG<n>.3=x.xx Der physikalischen Einheit MPa einen Verstärkungsfaktor zuweisen

Der am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4,
dargestellte Messwert mit der Einheit MPa wird mit dem Faktor x.xx multipliziert.

MG<n>.4=x.xx Der physikalischen Einheit l/min einen Verstärkungsfaktor zuweisen

Der am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4,
dargestellte Messwert mit der Einheit l/min wird mit dem Faktor x.xx multipliziert.

MG<n>.5=x.xx Der physikalischen Einheit oC einen Verstärkungsfaktor zuweisen

Der am LCD Display des EasyPort USB Moduls mit der Adresse <n>, <n>=1…4,
dargestellte Messwert mit der Einheit oC wird mit dem Faktor x.xx multipliziert.

Zuweisen eines Verstärkungsfaktors zur Darstellung auf dem LCD Display

© Festo Didactic GmbH & Co. KG „ 721876 73

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

9.8 Die beiden schnellen Zähler 0 und 1 von EasyPort USB können Sie mit
Befehle für zwei Befehlen ansprechen. Mit dem Befehl MC aktivieren und
schnellen Zähler deaktivieren Sie den Zähler, der Befehl DC liefert den aktuellen
Zählerstand des Zählers.
Als Zählimpuls werden ausgewertet:
für Zähler 0 das Eingangsbit 0 von Port 1,
für Zähler 1 das Eingangsbit 0 von Port 2.

Befehl Antwort Beschreibung

MC<n>.<m>=1 C<n>.<m>=1 Schnellen Zähler aktivieren

Für das EasyPort USB Modul mit der Adresse <n>, <n>=1…4, wird
der schnelle Zähler mit der Nummer <m>, <m>=0,1 aktiviert.

Beispiel

MC1.0=1
Für das EasyPort USB Modul mit der Adresse 1 wird der Zähler
0 gestartet.

MC<n>.<m>=0 C<n>.<m>=0 Schnellen Zähler deaktivieren

Für das EasyPort USB Modul mit der Adresse <n>, <n>=1…4, wird
der schnelle Zähler mit der Nummer <m>, <m>=0,1 deaktiviert.

Aktivieren und Deaktivieren des schnellen Zählers

74 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

Befehl Antwort Beschreibung

DC<n>.<m> C<n>.<m>=xxxx Zählerstand auslesen

Für das EasyPort USB Modul mit der Adresse <n>, <n>=1…4, wird
der Zählerstand des schnellen Zählers mit der Nummer <m>,
<m>=0,1 ausgegeben.

Der Zählerstand wird als hexadezimale Zahl xxxx geliefert.

Beispiel

DC1.0<CR> C1.0=2AC5<CR>
Der Zählerstand von Zähler 0 des EasyPort USB Moduls mit der
Adresse 1 wird ausgelesen. Der Zählerstand beträgt 2AC5
hexadezimal bzw. 10949 dezimal.

Auslesen des Zählerstandes

9.9 Mit einem Terminalprogramm können Sie eine Verbindung zu EasyPort


Beispiel: USB herstellen und Befehle über die serielle Schnittstelle senden und
Aufbau einer Verbindung empfangen.
zu EasyPort USB
Terminalprogramme benötigen für ihre Arbeit die Information,
welche serielle Schnittstelle für die Kommunikation genutzt wird,
welche Einstellungen für die Schnittstelle erforderlich sind.

Um eine Verbindung zu EasyPort USB herzustellen, führen Sie deshalb


folgende Schritte aus:
1. EasyPort USB mit PC verbinden, EasyPort USB mit Spannung
versorgen.
2. Serielle Schnittstelle für den USB-Anschluss ermitteln.
3. Terminalprogramm starten.
4. Einstellungen zur seriellen Schnittstelle eintragen.
5. Befehle an EasyPort senden.

Der Aufbau einer Verbindung ist exemplarisch für das Terminal-


Programm HyperTerminal von Windows gezeigt.

© Festo Didactic GmbH & Co. KG „ 721876 75

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

Vorgehensweise
1. Verbinden Sie EasyPort USB mit dem PC.
2. Schalten Sie die Spannungsversorgung von EasyPort USB ein.
3. Starten Sie im Startmenü unter Systemeinstellungen den Eintrag
Systemsteuerung.
4. Wählen Sie den Eintrag System aus.
5. Es öffnet sich das Fenster Systemeigenschaften.
Klicken Sie im Register Hardware auf die Schaltfläche Geräte-
Manager.

76 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

6. Unter dem Eintrag Ports (COM & LPT) entnehmen Sie, dass als
serielle Schnittstelle für den USB-Anschluss COM5 verwendet wird.

7. Starten Sie nun das Programm HyperTerminal. Sie finden


HyperTerminal unter Programme\Zubehör\Communications.

© Festo Didactic GmbH & Co. KG „ 721876 77

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

8. Als erstes legen Sie eine neue Verbindung an. Bezeichnen Sie die
Verbindung mit EasyPort USB.

9. Im Folgenden werden die Einstellungen für die neue Verbindung


abgefragt.
Als Schnittstelle tragen Sie im Fenster Connect To die zuvor
ermittelte Schnittstelle COM5 ein.

78 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

10. Die erforderlichen Einstellungen für die serielle Datenübertragung


über die COM-Schnittstelle finden Sie in diesem Handbuch. Korrekt
sind folgende Angaben:

© Festo Didactic GmbH & Co. KG „ 721876 79

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

11. Die weiteren Eigenschaften tragen Sie im Fenster Eigenschaften von


EasyPort USB ein. Sie finden den Dialog im Menü File unter
Properties. Klicken Sie auf das Register Settings.

80 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

12. Im Register Settings klicken Sie auf die Schaltfläche ASCII Setup.

© Festo Didactic GmbH & Co. KG „ 721876 81

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

13. Im Fenster ASCII Setup wählen Sie folgende Einstellungen:

14. Damit sind alle erforderlichen Daten zur Kommunikationsverbindung


eingetragen. Sie können nun mit EasyPort USB kommunizieren.

82 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

15. Führen Sie als erstes den Befehl setup0 aus. Mit diesem Befehl
initialisieren Sie das EasyPort USB Modul.
Befehle schließen Sie mit der ENTER-Taste ab.

16. Als Antwort erhalten Sie vom EasyPort USB Modul die Zeichenkette
setup1. Das bedeutet: am EasyPort USB Modul ist die Adresse 1
eingestellt.
Der Cursor springt auf die nächste Zeile.

© Festo Didactic GmbH & Co. KG „ 721876 83

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

17. Sie können nun weitere Befehle an das EasyPort USB Modul senden
und zum Beispiel den Status abfragen. Dazu senden Sie den Befehl
DS.

18. Die Antwort S=02 zeigt Ihnen, dass das EasyPort USB Modul korrekt
initialisiert wurde.

84 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Befehlsinterpreter von EasyPort USB

19. Wenn Ihnen eine Simulationsbox zur Verfügung steht, können Sie
Eingänge am EasyPort USB setzen und den Status dieser Eingänge
abfragen.

20. In unserem Fall liefert EasyPort USB als Zustand der digitalen
Eingänge den Wert 3 zurück. Es sind also die Eingänge 0 und 1 von
Port 1 gesetzt.

21. Wenn Sie die Kommunikationsverbindung zwischen dem Programm


HyperTerminal und EasyPort USB beenden wollen, dann aktivieren
Sie den Eintrag Disconnect im Menü Call.

© Festo Didactic GmbH & Co. KG „ 721876 85

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


10. Erstellen eigener Anwendungen

Wenn Sie eigene Anwendungen erstellen, in denen ein Datenaustausch


mit EasyPort USB statt finden soll, dann verwenden Sie das ActiveX
Steuerelement von EasyPort.

Das ActiveX Steuerelement stellt die Programmierschnittstelle zu


EasyPort dar und kann in Programmiersystemen wie Visual C++, Visual
Basic for Applications oder auch LabVIEW eingesetzt werden.

In der Online-Hilfe zum ActiveX Steuerelement ist ausführlich


beschrieben,
unter welchem Namen Sie das ActiveX Steuerelement in Ihr
Softwareprojekt einbinden,
welche Methoden für den Datenaustausch zur Verfügung stehen
und wie sie angewendet werden,
wie Sie vorgehen, um eine Kommunikationsverbindung zu EasyPort
USB aufzubauen.

Das EasyPort ActiveX Steuerelement finden Sie auf der mitgelieferten


CD-ROM.

Wenn Sie das EasyPort ActiveX Steuerelement auf Ihrem PC installieren,


wird standardmäßig die Programmgruppe EasyPort im Startmenü
angelegt. Dort finden Sie auch die zugehörige Online-Hilfe und eine
Demo-Anwendung zum ActiveX Steuerelement.

Auf der EasyPort CD-ROM sind noch weitere Beispiele zur Anwendung
des ActiveX Steuerelementes für Sie vorbereitet. Die Beispiele zeigen
exemplarisch, wie Sie das ActiveX Steuerelement in Excel, LabVIEW,
InTouch oder auch FluidSIM einbinden.

Sobald Sie die Beispiele installiert haben, finden Sie auch diese im
Startmenü in der Programmgruppe EasyPort.

86 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


Contents

English Chapters 7 through 10 are in the PDF file for the EasyPort USB manual
on the included CD ROM.

1. Introduction _______________________________________ 89
1.1 Overview of EasyPort USB ____________________________ 89
1.2 Important instructions _______________________________ 95
1.3 Obligations of the operating company __________________ 96
1.4 Obligations of the trainees ___________________________ 96
1.5 Dangers associated with the EasyPort process interface ____ 96
1.6 Guarantee and liability _______________________________ 97
1.7 Use for intended purpose ____________________________ 97

2. Safety precautions __________________________________ 98

3. Technical data _____________________________________ 99


3.1 EasyPort USB, general _______________________________ 99
3.2 SysLink interface for digital data ______________________ 100
3.3 Sub-D socket for analogue data ______________________ 102
3.4 Data interfaces to the PC ____________________________ 103
3.5 Power supply _____________________________________ 104

4. Transport, unpacking, scope of delivery ________________ 105

5. Layout and function ________________________________ 106


5.1 Layout of the EasyPort USB __________________________ 106
5.2 Control elements __________________________________ 108
5.3 Mounting the EasyPort USB __________________________ 109
5.4 Connecting the EasyPort USB to the PC and the process ___ 110
5.5 Setting the address at the EasyPort USB _______________ 112

6. Commissioning ____________________________________ 113

7. Software interfaces to EasyPort USB __________________ 120


7.1 Overview: communication with EasyPort USB ___________ 120
7.2 Communication via EzOPC ___________________________ 122

© Festo Didactic GmbH & Co. KG „ 721876 87

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


Contents

8. ActiveX control for EasyPort USB ______________________ 126


8.1 Using ActiveX control _______________________________ 126
8.2 Installing ActiveX control ____________________________ 127
8.3 Example: EasyPort demo application __________________ 128

9. EasyPort USB command interpreter ___________________ 135


9.1 Command interpreter _______________________________ 135
9.2 Command structure ________________________________ 136
9.3 Transmission level _________________________________ 138
9.4 Commands for initialisation and diagnostics ____________ 140
9.5 Commands for digital signals ________________________ 142
9.6 Commands for analogue signals ______________________ 145
9.7 Commands for measuring analogue signals _____________ 152
9.8 Commands for high-speed counters ___________________ 158
9.9 Example: establishing a connection to the EasyPort USB __ 159

10. Creating your own applications _______________________ 170

CD ROM contents
EasyVeep process model simulation
OPC server, EasyOPC
EasyPort USB manual
EasyVeep manual
USB drivers for EasyPort
EasyPort USB ActiveX control
Control examples
‟ Example with Excel
‟ Example with FluidSIM®
‟ Example with InTouch
‟ Example with LabVIEW
‟ Example with VC6

88 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introduction

1.1 What is EasyPort USB?


Overview of The EasyPort USB process interface is used for bidirectional
EasyPort USB transmission of process signals between an actual control process
which uses low-voltage technology (24 V DC) and a PC. In order to
ensure that the process does not influence the PC, only electrically
isolated interfaces are used for data transmission between EasyPort
USB and the PC.

EasyPort USB can be used in a great variety of applications:


Control an actual control process with a controller which runs on a PC
Control a simulated process model with an actual PLC
Regulate an actual process from a PC
Record and evaluate measured values from an actual process

© Festo Didactic GmbH & Co. KG „ 721876 89

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introduction

Sample application: configuration with simulated process and an actual PLC

With all of these applications, EasyPort USB connects the actual world
to the virtual PC world.

The EasyPort USB process interface is equipped with 16 digital inputs


and outputs, as well as 4 analogue inputs and 2 analogue outputs.

90 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introduction

Up to 4 EasyPort USB modules can be connected to one other via a USB


hub, or via 4 USB ports at a PC. In this case, make sure that each
module has a different address.

Configuration with 4 EasyPort USB modules

The OPC server EzOPC, or EasyPort USB ActiveX control, can be used to
exchange process signals between the EasyPort USB and the PC
software.

© Festo Didactic GmbH & Co. KG „ 721876 91

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introduction

How do I use EasyPort USB?


The table indicates how the EasyPort USB process interface can be used
together with other Festo Didactic products.

The following actual control processes are possible:


An automation process with actuators and sensors
An actual PLC
A simulation box

Various software programs are also available for the virtual world.
Programs are available for:
Control
Regulation
Measured value recording
Visualisation

EasyPort USB is very easy to use in these preparatory configurations.

92 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introduction

Controlling an actual Controlling a simulated Measuring Regulating


process process

Software used for Software used for Software used for Software used for
controlling processes: simulating processes: recording measured regulation:
values:
‟ FluidSIM (digital only) ‟ EasyVeep ‟ FluidLab PA
‟ S7‟PLCSIM ‟ FluidSIM ‟ FluidLab PA ‟ FluidLab P as of
‟ CoDeSys Soft-SPS ‟ CIROS ‟ FluidLab P ersion 2.0
‟ FluidLab H

EasyPort USB interface: EasyPort USB interface: EasyPort USB EasyPort USB
interface: interface:

Digital/analogue Digital interface


interface Digital/analogue Digital/analogue
The EasyPort USB is the
interface interface
The EasyPort USB is the interface between the
interface between the PC and the PLC. The PLC The EasyPort USB is The EasyPort USB is
PC and the actual controls the simulated the interface between the interface between
process. The process is process at the PC. the PC and actual the PC and the actual
controlled from the PC. sensors. controlled system.

Actual process: Actual controller: Actual sensors: Actual controlled


system:
‟ Simulation box, ‟ Any PLC ‟ Simulation box,
digital/analogue ‟ Simulation box, digital digital/analogue ‟ Simulation box,
‟ MPS PA ‟ SPS EduTrainer ‟ MPS PA digital/analogue
‟ MPS ‟ PLC board ‟ TP210 ‟ MPS PA
‟ TP301 ‟ TP610 ‟ TP210
‟ TP610

Sample applications for EasyPort USB

© Festo Didactic GmbH & Co. KG „ 721876 93

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introduction

EasyPort USB can also be incorporated into your own applications. Use
EasyPort USB ActiveX control for this purpose. This can be programmed
in:
Visual Basic
C++
LabVIEW
InTouch

What will I learn from this manual?


The manual describes:
How the EasyPort USB process interface is designed and how it
works
Which safety precautions have to be observed when working with
EasyPort USB
Which interfaces and which commands are available for
communication with EasyPort USB
How to execute commands for EasyPort USB with a simple terminal
program
How to make use of ActiveX control methods with the help of a
demo application
Where to find additional examples for incorporating EasyPort USB
into your own application.

94 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introduction

A complete version of the manual (chapters 1 through 10) is available in


PDF format on the CD ROM.

1.2 Fundamental prerequisites for safe use and trouble-free operation of


Important instructions the EasyPort USB process interface include knowledge of basic safety
precautions and safety regulations.

This manual includes the most important instructions for safe use of
EasyPort USB.

In particular the safety precautions must be adhered to by all persons


who work with EasyPort USB.

In addition, all pertinent accident prevention rules and regulations, which


are applicable at the respective location of use, must be adhered to.

© Festo Didactic GmbH & Co. KG „ 721876 95

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introduction

1.3 The operating company undertakes to allow only those persons to work
Obligations of the with EasyPort USB who:
operating company Are familiar with the basic regulations regarding work safety and
accident prevention and have been instructed in the use of EasyPort USB
Have read and understood the section concerning safety, as well as
the safety precautions

Personnel should be tested at regular intervals for safety-conscious


work habits.

1.4 All persons who have been entrusted to work with EasyPort USB
Obligations of the undertake to complete the following steps before beginning work:
trainees Read the section concerning safety, as well as the safety
precautions in this manual
Familiarise themselves with basic regulations regarding work safety
and accident prevention

1.5 EasyPort USB is designed in accordance with the state-of-the-art, as


Dangers associated with well as with recognised safety rules. Nevertheless, life and limb of the
the EasyPort process user and third parties may be endangered, and the respective machine
interface or other property may be damaged during its use.

The EasyPort USB process interface may only be used:


For the intended purpose
When its safety functions are in perfect condition

Faults which may impair safety must be eliminated immediately!

96 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introduction

1.6 Our “general terms and conditions of sale and delivery” are always
Guarantee and liability applicable. These are made available to the operating company no later
than on conclusion of the sales contract. Guarantee and liability claims
resulting from personal injury and/or property damage are excluded if
they can be traced back to one or more of the following causes:
Use of EasyPort USB for other than its intended purpose
Improper commissioning and/or operation of EasyPort USB
Use of EasyPort USB with defective safety equipment, or with
improperly attached or non-functional safety and protective
equipment
Non-compliance with instructions included in the manual with
regard to commissioning and operation
Unauthorized modifications to EasyPort USB
Improperly executed repairs
Disasters resulting from the influence of foreign bodies and acts of God

Festo Didactic hereby excludes any and all liability for damages suffered
by trainees, the training company and/or any third parties, which occur
during use of EasyPort USB in situations which serve any purpose other
than training and/or vocational education, unless such damages have
been caused by Festo Didactic due to malicious intent or gross
negligence.

1.7 The EasyPort USB process interface has been developed and
Use for intended purpose manufactured exclusively for training and vocational education in the
fields of automation and technology. The respective training companies
and/or trainers must ensure that all trainees observe the safety
precautions which are described in the accompanying manuals.

Use for intended purpose also encompasses compliance with all


instructions included in the manual.

© Festo Didactic GmbH & Co. KG „ 721876 97

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


2. Safety precautions

Electrical connections may only be established and interrupted in a


de-energised state!
Use only low-voltage of up to 24 V DC at the power supply terminals,
and at the inputs and outputs of EasyPort USB.
Use EasyPort USB only in systems that automatically change to a
safe state when the power is switched off.
Use connecting cables recommended by Festo Didactic only for
electrical connections between the EasyPort USB process interface
and the process.
Also observe specifications included in the data sheets for the
connected devices and in particular all safety instructions!

98 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Technical data

3.1 EasyPort USB D16A process interface


EasyPort USB, general
Operating voltage 24 V DC ±10%

Power consumption 3 VA

Number of outputs 16 digital: 24 V DC,


2 analogue: 0...10 V DC or
‟10...+10 V DC,
12 bit resolution

Output load capacity 0,7 A per digital output,


10 mA per analogue output

Short circuit protection Yes

Number of inputs 16 digital: 24 V DC,


4 analogue: 0...10 V DC or
‟10...+10 V DC,
12 bit resolution

Digital input switching 12 V DC


threshold

Digital input hysteresis 3V

Filter 5 ms

Number of counters 2 inputs usable as high-speed


counters,
fmax = 20 kHz/Uin = 5 to 24 V DC

Communication RS 232, electrically isolated,


interfaces USB 2.0, electrically isolated

Protocol ASCII, 115.2 kBaud, 8, N, 1

Technical data for EasyPort USB, general

© Festo Didactic GmbH & Co. KG „ 721876 99

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Technical data

EasyPort USB D16A process interface

Protection IP 20

CE mark Per EU/EMC directive

Permissible ambient 0...55° C/0...70° C


temperature,
operation/storage

Dimensions in mm 135 x 167 x 37


(L x W x H)

Weight in kg 0,65

Technical data for EasyPort USB, general (continued)

3.2 Each set of 8 digital inputs and outputs is connected to a SysLink 24-pin
SysLink interface socket connector at the EasyPort USB in accordance with IEEE 488. In
for digital data addition, input 0 at ports 1 and 2 can be used as high-speed counter
inputs. The counter inputs can be operated with voltage levels ranging
from 5 to 24 V DC.

100 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Technical data

Connection: IEEE 488, 24-pin socket

Port 1 Pin Port 2 Pin

OUTPUT 0 1 OUTPUT 0 1

OUTPUT 1 2 OUTPUT 1 2

OUTPUT 2 3 OUTPUT 2 3

OUTPUT 3 4 OUTPUT 3 4

OUTPUT 4 5 OUTPUT 4 5

OUTPUT 5 6 OUTPUT 5 6

OUTPUT 6 7 OUTPUT 6 7

OUTPUT 7 8 OUTPUT 7 8

INPUT 0 13 INPUT 0 13

INPUT 1 14 INPUT 1 14

INPUT 2 15 INPUT 2 15

INPUT 3 16 INPUT 3 16

INPUT 4 17 INPUT 4 17

INPUT 5 18 INPUT 5 18

INPUT 6 19 INPUT 6 19

INPUT 7 20 INPUT 7 20

0 V DC 11/12/ 0 V DC 11/12/
23/24 23/24

24 V DC 9/10/ 24 V DC 9/10/
21/22 21/22

Technical data, SysLink interface for digital signals

© Festo Didactic GmbH & Co. KG „ 721876 101

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Technical data

3.3 The 4 analogue inputs and 2 analogue outputs at EasyPort USB are
Sub-D socket for connected to a 15-pin Sub-D socket. Analogue-digital conversion takes
analogue data place at a resolution of 12 bits. The sampling frequency is 0.5 kHz.

Connection, 15-pin Sub-D socket

Port 3 Pin

OUTPUT 0 1

OUTPUT 1 2

0V 3

(unused) 4

(unused) 5

0V 6

INPUT 1 7

INPUT 2 8

(unused) 9

(unused) 10

+10 V DC ref. 11

(unused) 12

(unused) 13

INPUT 3 14

INPUT 4 15

Technical data, Sub-D socket for analogue signals

102 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Technical data

3.4 Data is exchanged with the PC either via the RS 232 serial port or the
Data interfaces USB interface at EasyPort USB. Transmission speed is 115.2 kBaud.
to the PC
RS 232 = Pin
Connection, 9-pin Sub-D socket

(unused) 1

Receive data RxD 2

Transmit data TxD 3

(unused) 4

Signal ground SGnd 5

(unused) 6

(unused) 7

(unused) 8

(unused) 9

Technical data, RS 232 port

A commercially available 9-pin serial extension cable can be used for


connection to the PC.

USB port
EasyPort USB is equipped with an electrically isolated USB 2.0 port. Up
to 4 EasyPort USB modules can be connected to one other via a USB
hub. In this case, make sure that each EasyPort module has a different
address. Addresses 1 through 4 are permissible.

Use the included USB A-B cable to connect the EasyPort USB to the USB
port at the PC, or to a USB hub.

© Festo Didactic GmbH & Co. KG „ 721876 103

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Technical data

3.5 24 V DC is supplied externally to the EasyPort USB. It can be connected


Power supply either via ports 1 and 2, or via two isolated screw terminals which are
located on the back of the EasyPort USB. Two cables with 4 mm safety
plugs are included.

104 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


4. Transport, unpacking, scope of delivery

Transport
The EasyPort USB process interface is shipped in a carton.

The carton must be secured against drops and falling.

The freight forwarder and Festo Didactic must be notified immediately


of any damage during transport.

Unpacking
Inspect the EasyPort USB process interface for possible damage after
unpacking. The freight forwarder and Festo Didactic must be notified
immediately of any damage.

Scope of delivery
The following components are included in the scope of delivery:
EasyPort USB process interface
24 V DC connection cables with 4 mm safety plugs
USB cable
CD ROM with software and documentation:
EasyVeep process simulation, EzOPC software, USB drivers, ActiveX
control as programming interface to EasyPort USB with online help
and sample programs
EasyPort USB manual

Check delivered items against the delivery note and your purchase
order.

Festo Didactic must be notified immediately of any deviations.

© Festo Didactic GmbH & Co. KG „ 721876 105

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Layout and function

5.1
Layout of the
EasyPort USB

(1) Sub-D socket (port 3) (2) USB port


(3) RS 232 port (4) Isolated screw terminals for power supply
(5)   buttons (6) Status LED (green)
(7) Error LED (red) (8) SysLink interfaces (ports 1 and 2)
(9) LEDs for indicating the status of the digital outputs (yellow)
(10) LEDs for indicating the status of the digital inputs (green)
(11) LCD panel for EasyPort analogue signals and addresses

EasyPort USB layout

106 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Layout and function

The EasyPort USB process interface is equipped with:


Two SysLink interfaces for reading in 8 digital input signals and
reading out 8 digital output signals.
Input 0 at each SysLink interface can also be used as a high-speed
counter input.
Sub-D socket for reading in 4 analogue input signals and reading
out 2 analogue output signals
USB 2.0 and RS 232 serial ports for connecting EasyPort USB to a PC
Two isolated screw terminals for power supply, 24 V DC
16 LEDs (green) for indicating the status of the digital inputs
16 LEDs (yellow) for indicating the status of the digital outputs
LCD panel for displaying a selected analogue signal.
The following are displayed: channel, unit of measurement, trend
and measured value (4 digits).
Two buttons for setting the analogue channel, selecting the physical
unit of measurement of the analogue value, and for setting the
address of the EasyPort USB

Not included in scope of delivery:


24 V DC power supply unit
Connecting cable for SysLink interface
Connecting cable for Sub-D socket

© Festo Didactic GmbH & Co. KG „ 721876 107

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Layout and function

5.2 PORT 3 USB RS 232 24V 0V


Control elements

EasyPort USB
Error Status

IN

OUT
0 7 0 7

PORT 1 PORT 2

EasyPort USB control and display panel

The control panel at the EasyPort USB includes the following elements:
Error LED
The red error LED lights up if a short circuit is detected at one of the
outputs. The outputs at the EasyPort USB are then deactivated.
This LED also lights up briefly when the EasyPort USB is started up.
It goes out during the course of the start-up test.
Status LED
The green status LED indicates two states:
‟ Flashing at a frequency of 1 Hz:
Status immediately after start-up, the EasyPort USB module has not
yet started communicating.
‟ Pulsating flashing:
The EasyPort USB module has been addressed. The address is
indicated every 2 seconds by a series of briefly flashing light signals.

108 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Layout and function

LCD panel
The input and output voltages of the selected analogue signal are
displayed in the first line as a value, and additionally in the form of a
bar graph.
Channel number and signal direction appear in the second line.
Meanings of displays: In = input signal, Out = output signal.
LED IN 0...7
Status display of the digital inputs with green LEDs
LED OUT 0...7
Status display of the digital outputs with yellow LEDs
Buttons
The analogue channel displayed on the LCD is selected with the 
button.
Possible channel numbers (Ch) for the input signal: 0...3.
Possible channel numbers (Ch) for the output signal: 0...1.
Various physical units of measurement can be selected with the 
button. The following are available: V, bar, PSI, MPa, l/min, °C.
The address setting function can be activated by pressing both of
the scroll buttons simultaneously.

5.3 The EasyPort USB module can be mounted directly on a profile plate;
Mounting the the adapter is available under order number 549806.
EasyPort USB The adapter is secured to the bottom of the EasyPort USB module with
three M4 screws.

© Festo Didactic GmbH & Co. KG „ 721876 109

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Layout and function

5.4 The EasyPort USB process interface is connected to the PC via an


Connecting the EasyPort electrically isolated RS 232 port, or an electrically isolated USB port.
USB to the PC and the
process If you use the USB port for communication, connect the EasyPort
USB to the PC with the USB cable included.
If you want to use the serial port for communication, any
commercially available 9-pin serial extension cable can be used for
connection.

Connecting the EasyPort USB to the PC and the process

Various I/O data cables are available for connecting the EasyPort USB to
the actual control process.
Which I/O cable you will need depends on the control application.

110 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Layout and function

The most common applications for the EasyPort USB are summarised
below.
The graphic indicates in which cases a crossover cable is required.
The digital crossover cable has a black mark on the end to make it
easier to differentiate between the digital I/O cables.

Cables for connecting EasyPort USB to the PC and the process

© Festo Didactic GmbH & Co. KG „ 721876 111

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Layout and function

Note
24 V DC power supply is fed externally to the EasyPort USB. It can be
connected either via ports 1 and 2, or via two isolated screw terminals
which are included on the back of the EasyPort USB.
Make sure that power supply is only connected on one side.

5.5 The address of the EasyPort USB is selected with the  and  scroll
Setting the address buttons. The address setting mode is activated by simultaneously
at the EasyPort USB pressing both buttons. An address within a range of 1 and 4 is selected
by pressing the  and  buttons. The address is saved and the address
setting mode is exited by pressing both buttons simultaneously.
All EasyPort USB process interfaces are set to a default address of 1 at
the factory.

PORT 3 USB RS 232 24V 0V

EasyPort USB
Error Status

IN

OUT
0 7 0 7

PORT 1 PORT 2

LCD panel at EasyPort USB with address display

112 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Commissioning

You’ll need the following to commission the EasyPort USB:


The EasyPort USB
A 24 V DC power supply unit
A PC, if you want to evaluate data from the EasyPort USB using a PC
The EasyPort CD ROM for installing the USB drivers on the PC
The USB cable

The following items are also helpful:


The EasyPort demo application for quickly and easily establishing a
connection with the EasyPort USB
A simulation box, which makes it easy to generate process signals
for the EasyPort USB

Procedure
1. Connect the EasyPort USB to a 24 V DC power supply using the 24 V
DC connecting cable with 4 mm safety plugs.
2. Switch on the power supply for the EasyPort USB.
‟ The red error LED lights up briefly. It switches off again during the
start-up test.
‟ The green status LED flashes at a frequency of 1 Hz.
This means that the EasyPort USB is not yet communicating.
3. After the start-up test has been completed, EasyPort USB is ready
for operation and waits to be initialised by the PC. The address
selected with the help of the scroll buttons is used for this.
4. Check the address of the EasyPort USB.
‟ Activate the address setting mode by pressing both scroll buttons
simultaneously.
‟ Select an address within a range of 1...4 with the scroll buttons.
‟ Exit the address setting mode by simultaneously pressing
both scroll buttons.
5. Connect the EasyPort USB to the PC using the USB cable included.

© Festo Didactic GmbH & Co. KG „ 721876 113

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Commissioning

6. If the USB drivers required for operation of the EasyPort USB have
not yet been installed to the PC, a corresponding message appears
and the new hardware wizard is started.
Do not install the USB driver by running a Windows update. If a
dialogue box with this option appears at your screen, click No.
Install the USB drivers from the included CD ROM after the dialogue
box shown below appears.
Insert the EasyPort CD ROM into the CD drive to this end. As soon as
the CD drive is ready for operation, click the Next button.

114 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Commissioning

7. The wizard searches for the required software component.


Click on the Finish button after installation has been completed.

© Festo Didactic GmbH & Co. KG „ 721876 115

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Commissioning

8. A second software component must also be installed, for which


reason the new hardware wizard appears once again.
In this case as well, do not install the USB driver by running a
Windows update, but rather from the included EasyPort CD ROM.
When then dialogue box shown below appears, and after the
EasyPort CD ROM has been inserted into the CD drive, click the Next
button.

116 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Commissioning

9. Click on the Finish button once installation has been completed.

10. The USB drivers required for operating the EasyPort USB have now
been installed on your PC. You can now use EasyPort USB in
combination with your PC.
11. The EasyPort demo application makes it easy to establish a
connection with EasyPort USB and to initialise EasyPort USB.

© Festo Didactic GmbH & Co. KG „ 721876 117

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Commissioning

12. In order to do so, start the EasyPort demo application. The demo
application can be found under EasyPort demo application in the
EasyPort program group in the Start menu.
The demo application is copied to your PC when EasyPort ActiveX
control is installed from the EasyPort CD ROM.

13. Click on the Connect button in order to establish a connection


between the EasyPort demo application and the EasyPort USB. The
EasyPort USB module is initialised at the same time.

118 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Commissioning

14. The EasyPort demo application shows you that:


‟ Address 2 has been assigned to the connected EasyPort USB
module
‟ COM5 is being used as a serial port for communication

15. The green status LED at the EasyPort USB indicates that the
EasyPort USB has been correctly installed. The status LED flashes
twice briefly, thus indicating that address 2 has been assigned to
the EasyPort USB.

Note
If third party software with its own USB drivers is used, make sure
that at least one serial port is available for the EasyPort USB driver.
If the PC with the EasyPort’s USB connection is shut down, the USB
cable should also be disconnected.
The USB cable should not be plugged in again until the PC and the
software, which communicates with the EasyPort USB, have been
restarted.

© Festo Didactic GmbH & Co. KG „ 721876 119

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Software interfaces to EasyPort USB

7.1 Data is transmitted to and from an EasyPort USB process interface by


Overview: means of individual, addressed write and read commands.
communication
with EasyPort USB

Example: write/read commands in terminal mode

Different access levels are used for executing these write and read
commands depending on how EasyPort USB is incorporated into your
application.
Command interpreter
The command interpreter represents the lowest level, and can be
directly addressed with a terminal program.
ActiveX control
ActiveX control defines the access functions, and is thus the
programming interface to EasyPort USB.
EzOPC
EzOPC is an OPC server which establishes communications
connections for prepared applications with Festo Didactic products.

120 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Software interfaces to EasyPort USB

Software interfaces to EasyPort USB

The lowest level is a command interpreter. The command interpreter


knows all the commands that can be executed by the EasyPort USB.
Direct communication with EasyPort USB and execution of the desired
commands is possible with the help of a terminal program, for example
the Windows HyperTerminal.

ActiveX control is used as an interface for programming the EasyPort


USB. It can be added to software projects as a COM object. The only
prerequisite is that the utilised software supports the COM port. This is
the case for programming languages such as Visual Basic and C++. It is
also offered by programs for measured value recording and evaluation
such as LabVIEW, as well as visualisation systems.

If you use EasyPort USB in combination with other Festo Didactic


products, communication between them is easy to establish. The EzOPC
server, a program with graphic user interface, is used to do this.

© Festo Didactic GmbH & Co. KG „ 721876 121

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Software interfaces to EasyPort USB

7.2 EzOPC is an OPC server which establishes data links:


Communication To an EasyPort USB process interface
via EzOPC To OPC clients supplied by Festo Didactic:
COSIMIR , CIROS , FluidSIM , FluidLab
To the Siemens S7-PLCSIM PLC simulator
To the CoDeSys OPC server (V2.0) supplied by 3S software

Data can be written and read by any OPC 2.x compatible OPC client.

OPC stands for open connectivity via open standards, and is a well
established standard interface in the field of automation technology. It
ensures an efficient flow of data between Windows applications and
automation equipment.

Software interface: EzOPC

122 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Software interfaces to EasyPort USB

The EzOPC graphic user interface enables you to establish data links
between communication partners from several prepared applications in
an easy manner.
First, select the communication partners. Then specify the range of I/Os
whose signals you want to exchange. Configuration is finished. EzOPC
autonomously exchanges data between the communicating partners.

Sample configuration: Process models in CIROS are controlled by an external PLC. Data is exchanged via
EasyPort and EzOPC.

The virtual controller is the “heart” of EzOPC. It represents a virtual


switchboard which connects the signal range of one communicating
partner with that of the other.

© Festo Didactic GmbH & Co. KG „ 721876 123

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Software interfaces to EasyPort USB

Detailed instructions regarding configuration and use of EzOPC are


included in the online help for EzOPC, and in the manuals for the
software products used.
Online help can be accessed as soon as EzOPC has been installed.

Installing EzOPC
1. Insert the EasyPort CD ROM into the CD drive.
2. The installation program is started automatically.
If installation is not started automatically, double click on the
Start.exe file on the CD ROM.
3. The initial window appears.
Select the language in which EzOPC software will be installed by
clicking on the appropriate button.

124 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Software interfaces to EasyPort USB

4. All software applications, manuals, drivers and sample programs are


offered for installation.
Click on Install next to OPC-Server EzOPC under Applications.

5. The EzOPC program group is added to the Start menu as a standard


feature for EzOPC. Online help for EzOPC can be accessed from this
program group.

© Festo Didactic GmbH & Co. KG „ 721876 125

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. ActiveX control for EasyPort USB

8.1 ActiveX control acts as a programming interface to EasyPort USB. It can


Using ActiveX control be added to software projects as a COM object. Software systems which
support the COM port include Visual Basic, C++ and HTML programming
languages. But the COM port is also supported by measured value
recording systems such as LabVIEW, as well as visualisation systems.

Software interface: ActiveX control

ActiveX control and its methods are described in detail in the online
help.

126 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. ActiveX control for EasyPort USB

8.2 Before ActiveX control can be incorporated into software projects, it


Installing ActiveX control must be installed on the PC. Use the CD ROM included to install ActiveX
control.

Installing ActiveX control


1. Insert the EasyPort CD ROM into the CD drive.
2. The installations program is started automatically. If installation is
not started automatically, double click on the Start.exe file on the
CD ROM.
3. The initial window appears.
Select the language in which ActiveX control will be installed by
clicking on the appropriate button.
4. All software applications, manuals, drivers and sample programs are
available for installation.
Click on Install next to EasyPort ActiveX control.

5. The EasyPort program group is added to the Start menu as a


standard feature for EasyPort ActiveX control. Online help and a
demo application for ActiveX control can be accessed from this
program group.

© Festo Didactic GmbH & Co. KG „ 721876 127

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. ActiveX control for EasyPort USB

8.3 The EasyPort demo application is a sample program that demonstrates


Example: how ActiveX control is used in C++. Several basic ActiveX control
EasyPort demo methods can be easily executed, and communication between the PC
application and EasyPort USB can be observed with the demo application.
At the source code level, the example shows how ActiveX control for
EasyPort can be incorporated in C++.

The demo application is also copied to your PC when ActiveX control for
EasyPort is installed.
The demo application can be started by clicking on EasyPort demo
application in the EasyPort program group in the Start menu.

EasyPort demo application

128 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. ActiveX control for EasyPort USB

Working with the demo application


1. Make sure that the EasyPort USB process interface is connected to a
24 V DC power supply.
Switch on the power supply for the EasyPort USB.
2. Connect the EasyPort USB process interface to the PC using the USB
cable included.

3. If the USB drivers required for operating the EasyPort USB have not
yet been installed on the PC, a corresponding message appears. If
this is the case, install the USB drivers. You’ll need the EasyPort CD
ROM to this end.
4. Make sure that ActiveX control for EasyPort USB has been installed
on your PC.

© Festo Didactic GmbH & Co. KG „ 721876 129

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. ActiveX control for EasyPort USB

5. Start the EasyPort demo application. The demo application can be


started by clicking on EasyPort demo application in the EasyPort
program group in the Start menu.
Several commonly used ActiveX control methods have been
assigned to the buttons. Return values are displayed to the left of
the button, if the respective method supplies a return value. Enter
the parameter values for invoking the method on the right-hand
side.

6. A connection must be established between the EasyPort demo


application and the EasyPort USB module before commands can be
executed. Click on the Connect button to do this.

130 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. ActiveX control for EasyPort USB

7. Return value 1 indicates that address 1 has been assigned to the


connected EasyPort USB module. The COM 5 serial port is being
used for communication.

8. The available methods can now be executed. Descriptions of the


methods are included in the online help.
9. For example, if you want to set digital outputs 0 through 3 at the
EasyPort USB module, enter the value 15 as a parameter for the
SetOutputWord method. The digital outputs must be addressed as
output word 0. Address 0 is preset for the output word, and can be
accepted without change. Then click on the SetOutputWord button.
The LEDs for outputs 0 through 3 at port 1 of the EasyPort USB light
up yellow.

© Festo Didactic GmbH & Co. KG „ 721876 131

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. ActiveX control for EasyPort USB

10. Conversely, you can read in the status of the digital outputs at the
EasyPort USB by clicking on the GetOutputWord button. Output
word 0 has a value of 15, which is displayed to the left of the
method.

11. If you want to follow communication between the EasyPort demo


application and the EasyPort USB directly, click on the
ShowDebugWnd button

132 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. ActiveX control for EasyPort USB

12. The Trace Window appears. Commands transmitted to the EasyPort


USB module and its responses are shown in this window.

© Festo Didactic GmbH & Co. KG „ 721876 133

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. ActiveX control for EasyPort USB

13. The SendAndGetString method also provides you with the


opportunity of transmitting commands directly from the command
interpreter to the connected EasyPort USB module.
Example: Enter the MAW1.0=FF command and then click on the
SendAndGetString button. All digital outputs at port 1 of the
EasyPort USB are set to 1.
The response from the EasyPort USB, namely AW1.0=FF, appears to
the left of the button.

14. If you want to terminate the connection to the EasyPort USB, click on
the Disconnect button.

Note
Connection with an EasyPort USB can be quickly and conveniently
established and tested with the EasyPort demo application.

134 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

9.1 A command interpreter is the lowest access level for communication.


Command interpreter The command interpreter knows all the commands that can be executed
by the EasyPort USB. Direct communication with EasyPort USB and
execution of the desired commands is possible with the help of a
terminal program, for example the Windows HyperTerminal.

Software interface: command interpreter

The command interpreter is controlled via an interface.


The following applies with regard to the interface settings:
COMx: 115,200, N, 8, 1
Please note that EasyPort USB is operated with a fixed transmission
speed of 115,200 baud.

The structure of the commands is simple:


Each command consists of a command letter (operator) and a
resource address (operand).
The resource address addresses the desired signal.

The address of the EasyPort USB module must be entered for several
older commands, but this is not required for newer commands.

© Festo Didactic GmbH & Co. KG „ 721876 135

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

9.2 There are two basic commands for reading and writing resources:
Command structure • Display command (D) for reading resources
• Modify command (M) for modifying resources

The following types of resources are possible for an EasyPort USB


module:
• Input (E)
• Output (A)
• Events timer (T)
• High-speed counter (C)

A resource can be addressed as:


• Bit
• Byte (B)
• Word (W)

A word consists of bytes 0 and 1, and contains bit addresses 0 through 15.

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

Byte 1 Byte 0
(port 2) (port 1)

Word 0

136 © Festo Didactic GmbH & Co. KG • 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

Example of a read command (display)

Description: display input bit 5 from word 0 in EasyPort USB module 1.

A display command consists of a command letter, a resource and the


resource’s data type. Along with indication of the model number, the
address of the resource follows the word address and, if applicable, the
byte or bit address. The individual address entries are separated by
periods.

Example of a write command (modify)

Command Description

MA2.0.C=1 Change output bit 12 from word 0 in EasyPort USB


module 2 to 1

Modify commands must be provided with a data value. The data value
follows the resource address and is preceded with an equal sign.

Please note: Address numbers and data values must always be entered
in hexadecimal format.

© Festo Didactic GmbH & Co. KG „ 721876 137

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

9.3 The data that are actually transmitted at the point of transmission
Transmission level correspond for the most part to the data entered as ASCII characters at
the user level.

The following applies to data transmission:


Addresses and data values must be entered in hexadecimal format.
Data values provided by EasyPort USB are always returned as
hexadecimal numbers.
Floating point numbers are encoded.
Every message is closed with a CR (carriage return).
Every command for a particular address is answered.
The first letter is separated from each display or modify command.
Modify commands are provided with the actual data value in the
module. This data value is usually the same as in the command.
The determined value is added to the response to a display
command using the same notation as for a modify command.

Several examples of commands and responses to them are listed below.


The carriage return symbol <CR> is also included in these examples.

138 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

Module Command for the Response from the Comment


address module module

3 DAW3.0<CR> AW3.0=1234<CR> Data value is


1234 hexadecimal
or 4660 decimal.

Data format for word: xxxx

2 DEB2.0.1<CR> EB2.0.1=12<CR> Data value is 12 hexadecimal or 18


decimal.

Data format for byte: xx

1 DE1.0.E<CR> E1.0.E=0<CR> Input bit 14 is read.

Data format for bit: x

1 MAW1.0=201<CR> AW1.0=201<CR> Data value is


201 hexadecimal
or 513 decimal

2 MAB2.0.0=73<CR> AB2.0.0=73<CR> Data value is 73 hexadecimal or


115 decimal

3 MA3.0.A=1<CR> A3.0.A=1<CR> Output bit 10 is set to 1.

Examples of modify and display commands

© Festo Didactic GmbH & Co. KG „ 721876 139

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

9.4 In addition to commands for reading and writing signals, there are other
Commands for commands that are primarily used for commissioning and diagnostics.
initialisation and
diagnostics These include the following commands:
Query the address of an EasyPort USB module
Query the version number of an EasyPort USB module
Read out the status word of an EasyPort USB module

Command Response Description and example

setup0 setup<n> Query address

The EasyPort USB module responds with its module address by reading out
setup <n> (<n> = 1...4).

Example

Command Response Description


setup0 setup1 The EasyPort USB module responds with
address 1 as its address.

DV V=2.10 Read out version number

The EasyPort USB module responds with V=2.10 as its version.

Initialisation and diagnostics

140 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

Command Response Description and example

DS S=xx Read out status word

The status word of an EasyPort USB module is returned as hexadecimal


value xx.

Meanings:
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Display Up Down Out In Setup Error

Bit 0 = 1 Output driver error


Bit 1 = 1 Module initialised
Bit 2 = 1 Input voltage range -10...+10 V DC
Bit 2 = 0 Input voltage range 0...10 V DC
Bit 3 = 1 Output voltage range -10...+10 V DC
Bit 3 = 0 Output voltage range 0...10 V DC
Bit 4 = 1  button pressed
Bit 5 = 1  button pressed
Bit 6 = 1 All display segments are activated.
Bit 6 = 0 The normal display is activated

Example

Command Response Description


DS S = 12 A value of 12 hexadecimal or
18 decimal is returned.
This means: bit 1 = 1 and bit 4 = 1.
The EasyPort USB module is correctly
initialised, input and output voltage
have been set to 0...10 V, the
 button is pressed and the
normal display is activated.

Initialisation and diagnostics (continued)

© Festo Didactic GmbH & Co. KG „ 721876 141

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

9.5 The commands for reading and writing digital signals are summarised in
Commands for the following tables.
digital signals

Modify Resource Data type Address Examples and comments


command

M A (bit) 0...15 MA1.0.4=1


(modify) (output) Change output bit 4 from word 0 at
EasyPort USB module 1 to 1.

The data value for modify commands can


only be specified in hexadecimal format.

B (byte) 0, 1 MAB2.0.0=7
Change output byte 0 from word 0 at
EasyPort USB module 2 to 7 hexadecimal.
This means:
bit 0, bit 1 and bit 2 are set.

Lower order: byte 0 (port 1)


Higher order: byte 1 (port 2)

W (word) 0 MAW1.0=101
Change output word 0 at EasyPort USB
module 1 to 101 hexadecimal or 257
decimal.

142 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

Display Resource Data type Address Examples and comments


command

D E (bit) 0...15 DE1.0.3


(display) (input) Display input bit 3 from word 0 at EasyPort
USB module 1.

DE2.0.E
Display input bit 14 from word 0 at EasyPort
USB module 2.

B (byte) 0, 1 DEB1.0.0
Display input byte 0 from word 0 at
EasyPort USB module 1.

DEB3.0.1
Display input byte 1 from word 0 at
EasyPort USB module 3.

W (word) 0 DEW1.0
Display input word 0 from EasyPort USB
module 1.

A (bit) 0...15 DA3.0.5


(output) Display output bit 5 from word 0 at
EasyPort USB module 3.

DA4.0.C
Display output bit 12 from word 0 at
EasyPort USB module 4.

B (byte) 0, 1 DAB4.0.0
Display output byte 0 from word 0 at
EasyPort USB module 4.

DAB2.0.1
Display output byte 1 from word 0 at
module 2.

W (word) 0 DAW3.0
Display output word 0 at EasyPort USB
module 3.

© Festo Didactic GmbH & Co. KG „ 721876 143

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

In addition to the commands for reading and writing digital signals,


there are additional commands for controlling the performance of an
EasyPort USB module.

These include the command for setting the event mode:


MT<n>=xx where <n> is the module address and xx is the hexadecimal
time value (xx = 00...FF [ms]).

If the event mode has been activated, the EasyPort USB module
automatically notifies the PC of modified digital input data. The
minimum time within which the PC is notified of an input change is
adjustable.

Modify Resource Module Examples and comments


command address

M (modify) T (timer) 1...4 MT2=01


Activate the event mode for the EasyPort USB module with
address 2 with a time value of 1 ms.

Description: if a digital input signal at EasyPort USB


module 2 is changed, the PC is automatically notified of
the entire input word after 10 ms.

MT2=00
The event mode for EasyPort USB module 2 is exited. From
now on, input signals are only sent to the PC on request.

144 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

9.6 In addition to digital input and output signals, EasyPort USB also
Commands for processes analogue signals.
analogue signals The command interpreter therefore includes commands for:
Reading in analogue input and output channels
Reading out voltage to an analogue channel

Analogue-digital conversion takes place at a resolution of 12 bits. 12 bit


resolution corresponds to a matrix with 4096 steps.

The sampling frequency for analogue inputs and outputs is 0.5 kHz.

One of two different voltage ranges can be selected for the analogue
channels:
0...10 V
‟10...+10 V

The two figures show how the analogue voltage range is assigned to the
digital numeric range. The digital numeric range is always a range of
0x0000 to 0x7FFF (32767 decimal).

0V 5V 10 V

0x0000 0x3FFF 0x7FFF

Analogue-to-digital assignment for the 0...10 V range

-10 V 0V +10 V

0x0000 0x3FFF 0x 7FFF

Analogue-to-digital assignment for the ‟10...+10 V range

© Festo Didactic GmbH & Co. KG „ 721876 145

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

Switching the measuring range


The measuring range can be switched from 0...10 V to ‟10...+10 V with
the MRE (modify input range) and MRA (modify output range)
commands from the command interpreter.

Command Description

MRE<n>=0 Set measuring range for analogue inputs to 0...10 V

The measuring range for the analogue inputs is set to 0 to 10 V at the EasyPort USB
module with address <n> (<n> = 1...4).
This measuring range is automatically preset after initialising an EasyPort USB module.

MRE<n>=1 Set measuring range for analogue inputs to –10...+10 V

The measuring range for the analogue inputs is set to -10 to +10 V at the EasyPort USB
module with address <n> (<n> = 1...4).

Example

MRE2=1
Set the voltage range for the analogue inputs at the EasyPort USB module with address
2 to ‟10...+10 V.

Switching the measuring range for the analogue inputs

146 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

Command Description

MRA<n>=0 Set measuring range for analogue outputs to 0...10 V

The measuring range for the analogue outputs is set to 0 to 10 V at the EasyPort USB
module with address <n> (<n> = 1...4).
This measuring range is automatically preset after initialising an EasyPort USB module.

MRA<n>=1 Set measuring range for analogue outputs to –10...+10 V

The measuring range for the analogue outputs is set to -10 to +10 V at the EasyPort
USB module with address <n> (<n> = 1...4).

Switching the measuring range for the analogue outputs

Reading in analogue signals


The EasyPort USB is equipped with analogue input channels 0...3. The
DEW command, along with indication of the address of the EasyPort USB
module and the channel number, is used to read in an analogue signal.
Due to the data format used by the analogue inputs, a value range of
0x0000 to 0x7FF8 (32760 decimal) is possible.

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20

0 X X X X X X X X X X X X 0 0 0

12 bit analogue input

Data format of the analogue inputs

© Festo Didactic GmbH & Co. KG „ 721876 147

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

Command Response Description

DEW<n>.2 EW<n>.2=xxxx Read in input channel 0


where xxxx =
Values at input channel 0 are read in at the EasyPort USB
0000...7FF8
module with address <n> (<n> = 1...4).

Example

DEW1.2
Read in input channel 0 at the EasyPort USB module with
address 1.

DEW<n>.4 EW<n>.4=xxxx Read in input channel 1


where xxxx =
Values at input channel 1 are read in at the EasyPort USB
0000...7FF8
module with address <n> (<n> = 1...4).

DEW<n>.6 EW<n>.6=xxxx Read in input channel 2


where xxxx =
Values at input channel 2 are read in at the EasyPort USB
0000...7FF8
module with address <n> (<n> = 1...4).

DEW<n>.8 EW<n>.8=xxxx Read in input channel 3


where xxxx =
Values at input channel 3 are read in at the EasyPort USB
0000...7FF8
module with address <n> (<n> = 1...4).

Reading in analogue input signals

148 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

The analogue output signals can also be read in.

Command Response Description

DAW<n>.2 AW<n>.2=xxxx Read in output channel 0


where xxxx =
Values at output channel 0 are read in at the EasyPort USB
0000...7FF8
module with address <n> (<n> = 1...4).

DAW<n>.4 AW<n>.4=xxxx Read in output channel 1


where xxxx =
Values at output channel 1 are read in at the EasyPort USB
0000...7FF8
module with address <n> (<n> = 1...4).

Example

DAW3.4
Read in output channel 1 from the EasyPort USB module
with address 3.

Reading in analogue output signals

Output a voltage at the analogue output channel


The EasyPort USB is equipped with two analogue outputs channels, 0
and 1. The MAW command, along with indication of the address of the
EasyPort USB module, the channel number and the value, is used to
write a voltage value.
In this case, the range of values for the analogue outputs is also 0x0000
to 0x7FF8 (32760 decimal).

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20

0 X X X X X X X X X X X X 0 0 0

12 bit analogue output

Data format of the analogue outputs

© Festo Didactic GmbH & Co. KG „ 721876 149

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

Command Description

MAW<n>.2=xxxx Write output channel 0


where xxxx =
Read out the desired voltage value from output channel 0 at the EasyPort USB
0000...7FF8
module with address <n> (<n> = 1...4).

Example

MAW1.2=2AC5
Read out a value of 2AC5 hexadecimal or 10949 decimal as a voltage value
from output channel 0 at the EasyPort USB module with address 1.

MAW<n>.4=xxxx Write output channel 1


where xxxx =
Read out the desired voltage value from output channel 1 at the EasyPort USB
0000...7FF8
module with address <n> (<n> = 1...4).

Generating an analogue output signal

Displaying analogue signals on the LCD


Analogue input or output signals can be monitored on the LCD panel on
the EasyPort USB. The selected channel, the trend, the measured value
with 4 digits and the unit of measurement are displayed.

The analogue channel to be displayed on the LCD is usually selected


directly at the EasyPort USB with the scroll buttons.
The selected channel can be temporarily suppressed with a command
from the command interpreter issued from the PC, and the display can
be switched to another analogue channel with the MF command.

150 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

Command Description

MF<n>=01 Force analogue input channel 0

Measured values from analogue input channel 0 are displayed on the LCD of the EasyPort
USB module with address <n> (<n> = 1...4).

MF<n>=02 Force analogue input channel 1

Measured values from analogue input channel 1 are displayed on the LCD of the EasyPort
USB module with address <n> (<n> = 1...4).

MF<n>=04 Force analogue input channel 2

Measured values from analogue input channel 2 are displayed on the LCD of the EasyPort
USB module with address <n> (<n> = 1...4).

MF<n>=08 Force analogue input channel 3

Measured values from analogue input channel 3 are displayed on the LCD of the EasyPort
USB module with address <n> (<n> = 1...4).

MF<n>=10 Force analogue output channel 0

Measured values from analogue output channel 0 are displayed on the LCD of the
EasyPort USB module with address <n> (<n> = 1...4).

MF<n>=20 Force analogue output channel 1

Measured values from analogue output channel 1 are displayed on the LCD of the
EasyPort USB module with address <n> (<n> = 1...4).

MF<n>=00 Disable analogue channel forcing

Measured values from the analogue channel which is selected directly at the EasyPort
USB using the scroll buttons are once again displayed on the LCD panel of the EasyPort
USB module with address <n> (<n> = 1...4).

Forcing analogue channel display on the LCD

© Festo Didactic GmbH & Co. KG „ 721876 151

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

9.7 The EasyPort USB supports the recording of analogue measured values
Commands for measuring with the help of special commands.
analogue signals
The measuring mode is activated with the MME command (modify
measuring mode). All analogue input values which are read in are then
read out at maximum speed.
The analogue channel for which values will be read out automatically is
selected with the MS command.

Command Description

MS<n>=01 Activate analogue input channel 0

Activate analogue input channel 0 at the EasyPort USB module with address
<n> (<n> = 1...4) for automatic transmission of input values.

MS<n>=02 Activate analogue input channel 1

Activate analogue input channel 1 at the EasyPort USB module with address
<n> (<n> = 1...4) for automatic transmission of input values.

MS<n>=04 Activate analogue input channel 2

Activate analogue input channel 2 at the EasyPort USB module with address
<n> (<n> = 1...4) for automatic transmission of input values.

MS<n>=08 Activate analogue input channel 3

Activate analogue input channel 3 at the EasyPort USB module with address
<n> (<n> = 1...4) for automatic transmission of input values.

MS<n>=0F Activate all analogue input channels

Activate analogue input channels 0 through 3 at the EasyPort USB module with address
<n> (<n> = 1...4) for automatic transmission of input values.

MS<n>=00 Deactivate all analogue input channels

Deactivate all analogue input channels at the EasyPort USB module with address
<n> (<n> = 1...4). Automatic read-out of input values is then no longer possible.

Activating analogue input channels

152 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

Command Response Description

MME=4 ME=4 Activate the measuring mode

Data format of Measured values at the activated analogue input channel are
transmitted data: automatically and cyclically read out from the EasyPort USB.
yxx<CR> The time period for read-out is 5 ms.

Data format xx is a binary format consisting of 2 bytes.

y is the identifier for the previously activated input channel.


y=2: analogue input channel 0
y=4: analogue input channel 1
y=6: analogue input channel 2
y=8: analogue input channel 3

Example: read out input channel 0

MS1=01<CR> S1=01<CR> Activate analogue input channel 0 at the EasyPort USB


module with address 1.

MME=4<CR> ME=4<CR> Activate the measuring mode


2xx<CR> The EasyPort USB reads out the measured values from
2xx<CR> analogue input channel 0.

Activating the measuring mode for analogue input channels

Volts is selected as the default unit of measurement for the display of


analogue measured values on the LCD.

Other physical quantities are frequently required for measuring and


control procedures. A separate physical unit of measurement can
therefore be assigned to each analogue channel. When an analogue
channel is selected for display on the LCD, the associated physical unit
of measurement that has been assigned at the PC is displayed.

© Festo Didactic GmbH & Co. KG „ 721876 153

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

Please note that one physical unit of measurement cannot be converted


to another!

The MU command is used to select the physical unit of measurement.

Note
The unit of measurement assigned at the PC is overwritten if a unit of
measurement is entered directly at the EasyPort USB using the scroll
buttons.

Command Description

MU<n>.01=xx Assign a unit of measurement to analogue input channel 0

The unit of measurement xx is displayed for analogue input channel 0 on the LCD of the
EasyPort USB module with address <n> (<n> = 1...4).

U/M button:
xx=00: V
xx=01: bar
xx=02: PSI
xx=03: MPa
xx=04: l/min
xx=05: oC

MU<n>.02=xx Assign a unit of measurement to analogue input channel 1

The unit of measurement xx is displayed for analogue input channel 1 on the LCD of the
EasyPort USB module with address <n> (<n> = 1...4).

MU<n>.04=xx Assign a unit of measurement to analogue input channel 2

The unit of measurement xx is displayed for analogue input channel 2 on the LCD of the
EasyPort USB module with address <n> (<n> = 1...4).

MU<n>.08=xx Assign a unit of measurement to analogue input channel 3

The unit of measurement xx is displayed for analogue input channel 3 on the LCD of the
EasyPort USB module with address <n> (<n> = 1...4).

Assigning a physical unit of measurement for display on the LCD

154 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

Command Description

MU<n>.10=xx Assign a unit of measurement to analogue output channel 0

Unit of measurement xx is displayed for analogue output channel 0 on the LCD of


the EasyPort USB module with address <n> (<n> = 1...4).

MU<n>.20= xx Assign a unit of measurement to analogue output channel 1

Unit of measurement xx is displayed for analogue output channel 1 on the LCD of


the EasyPort USB module with address <n> (<n> = 1...4).

Assigning a physical unit of measurement for display on the LCD (continued)

A gain factor can be assigned to each physical unit of measurement. The


measured value displayed on the LCD is multiplied by this factor. This
enables the measured value to be adapted to the physical unit of
measurement which is most meaningful.
A gain factor is selected with the MG command.

Please note that the gain factor does not change the actual measured
value applied to the analogue channel. Multiplication only affects how
the values are displayed on the LCD.

The gain factor is preset for each physical unit of measurement.

Physical unit of measurement Preset gain factor

V 10.0

bar 1.0

PSI 1.0

MPa 1.0

l/min 1.0
o
C 1.0

© Festo Didactic GmbH & Co. KG „ 721876 155

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

Example
Values are recorded from a pneumatic pressure sensor. 10 V correspond
to 6 bar. Set the unit of measurement to bar, in order to be able to
monitor the measured values at the display in bar. Select a gain factor
of 6.

MU1.01=01 The unit of measurement bar is assigned to


input channel 0 at the EasyPort USB module
with address 1. The unit of measurement bar
appears on the LCD.

MG1.1=6.00 The measured value with the unit of


measurement bar which is displayed on the
LCD of EasyPort USB module 1 is multiplied
by a factor of 6.00.

156 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

Command Description

MG<n>.0=x.xx Assign a gain factor to physical unit of measurement volt

The measured value with the unit of measurement volt which is displayed on the LCD
of the EasyPort USB module with address <n> (<n> = 1...4) is multiplied by a factor of
x.xx.

x.xx is a 3-digit decimal value.

MG<n>.1=x.xx Assign a gain factor to physical unit of measurement bar

The measured value with the unit of measurement bar which is displayed on the LCD of
the EasyPort USB module with address <n> (<n> = 1...4) is multiplied by a factor of x.xx.

MG<n>.2=x.xx Assign a gain factor to physical unit of measurement PSI

The measured value with the unit of measurement PSI which is displayed on the LCD of
the EasyPort USB module with address <n> (<n> = 1...4) is multiplied by a factor of x.xx.

MG<n>.3=x.xx Assign a gain factor to physical unit of measurement MPa

The measured value with the unit of measurement MPa which is displayed on the LCD
of the EasyPort USB module with address <n> (<n> = 1...4) is multiplied by a factor of
x.xx.

MG<n>.4=x.xx Assign a gain factor to physical unit of measurement l/min

The measured value with the unit of measurement l/min which is displayed on the LCD
of the EasyPort USB module with address <n> (<n> = 1...4) is multiplied by a factor of
x.xx.

MG<n>.5=x.xx Assign a gain factor to physical unit of measurement oC

The measured value with the unit of measurement oC which is displayed on the LCD
of the EasyPort USB module with address <n> (<n> = 1...4) is multiplied by a factor of
x.xx.

Assigning a gain factor for display on the LCD

© Festo Didactic GmbH & Co. KG „ 721876 157

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

9.8 The two high-speed counters 0 and 1 at the EasyPort USB can be
Commands for addressed with two commands. The command MC is used to activate
high-speed counters and deactivate the counter, and the command DC reads out the current
counter value.
The following are evaluated as counter pulses:
Input bit 0 from port 1 for counter 0
Input bit 0 from port 2 for counter 1

Command Response Description

MC<n>.<m>=1 C<n>.<m>=1 Activate high-speed counter

High-speed counter number <m> (<m> =0, 1) is activated for the


EasyPort USB module with address <n> (<n> = 1...4).

Example

MC1.0=1
Counter 0 is started for the EasyPort USB module with address 1.

MC<n>.<m>=0 C<n>.<m>=0 Deactivate high-speed counter

High-speed counter number <m> (<m> =0, 1) is deactivated for


the EasyPort USB module with address <n> (<n> = 1...4).

Activating and deactivating the high-speed counter

158 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

Command Response Description

DC<n>.<m> C<n>.<m>=xxxx Reading out counter values

The counter value of the high-speed counter number <m>


(<m> =0, 1) is read out for the EasyPort USB module with
address <n> (<n> = 1...4).

The counter value is read out as a hexadecimal number xxxx.

Example

DC1.0<CR> C1.0=2AC5<CR>
The counter value for counter 0 at the EasyPort USB module
with address 1 is read out. The counter value is 2AC5
hexadecimal, or 10949 decimal.

Reading out the counter value

9.9 Connection to the EasyPort USB can be established using a terminal


Example: program, and commands can be transmitted and received via the serial
establishing a connection port.
to the EasyPort USB
Terminal programs require the following information:
Which serial port will be used for communication?
Which settings are necessary for the port?

For this reason, the following steps must be executed in order to


establish a connection to the EasyPort USB:
1. Connect the EasyPort USB to the PC, as well as to the power supply.
2. Determine which serial port is used for the USB connection.
3. Start the terminal program.
4. Enter the settings for the serial port.
5. Transmit commands to the EasyPort.

The Windows terminal program HyperTerminal is used as a


representative example of how a connection is established.

© Festo Didactic GmbH & Co. KG „ 721876 159

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

Procedure
1. Connect the EasyPort USB to the PC.
2. Switch on the power supply for the EasyPort USB.
3. Go to the Start menu, click on Settings and then on Control Panel.
4. Click on System.
5. The System Properties dialog box is then opened.
Click on Device Manager under the Hardware tab.

160 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

6. The entries under Ports (COM & LPT) indicates that COM5 is used as
the USB serial port.

7. Start the HyperTerminal program. The HyperTerminal can be


accessed by clicking on Programs, Accessories and Communication
after opening the Start menu.

© Festo Didactic GmbH & Co. KG „ 721876 161

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

8. First of all, you’ll need to create a new connection. Enter EasyPort


USB as the name of the connection.

9. The settings for the new connection must then be entered. In the
Connect To dialogue box, enter the serial USB port determined
earlier, i.e. COM5, as the port in Connect using.

162 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

10. The settings required for serial data transmission via the COM port
are included in this manual. The following entries are correct:

© Festo Didactic GmbH & Co. KG „ 721876 163

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

11. Further properties are entered in the EasyPort USB Properties


dialogue box. This can be found under Properties in the File menu.
Click on the Settings tab.

164 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

12. Then click on ASCII Setup in the Settings tab.

© Festo Didactic GmbH & Co. KG „ 721876 165

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

13. Enter the following settings in the ASCII Setup dialogue box:

14. All data required for the communications link have now been
entered. You can now communicate with EasyPort USB.

166 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

15. Execute the setup0 command first. This command initialises the
EasyPort USB module.
Commands are executed after pressing the enter key.

16. The EasyPort USB module returns the setup1 string as a response.
This means that address 1 has been assigned to the EasyPort USB
module.
The cursor jumps to the next line.

© Festo Didactic GmbH & Co. KG „ 721876 167

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

17. You can now send other commands to the EasyPort USB module
and, for example, query its status. To do this, enter the DS
command.

18. A response of S=02 indicates that the EasyPort USB module has
been correctly initialised.

168 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. EasyPort USB command interpreter

19. If a simulation box is available, you can set inputs at the EasyPort
USB and then query their status.

20. In our example, EasyPort USB responds by returning the value 3 as


the status of the digital inputs. This means that inputs 0 and 1 at
port 1 are set.

21. When you’re ready to end communication between the


HyperTerminal program and EasyPort USB, click on Disconnect in
the Call menu.

© Festo Didactic GmbH & Co. KG „ 721876 169

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


10. Creating your own applications

Use EasyPort ActiveX control in order to create your own applications


for exchanging data with EasyPort USB.

ActiveX control is the programming interface for EasyPort and can be


used in programming systems such as Visual C++, Visual Basic for
Applications and LabVIEW.

The online help for ActiveX control describes in detail:


Under which name ActiveX control can be incorporated into your
software project
Which data exchange methods are available and how they’re used
How to establish a communications connection with EasyPort USB

EasyPort ActiveX control is on the included CD ROM.

When you install EasyPort ActiveX control on your PC, the EasyPort
program group is added to the Start menu as a standard feature. Online
help and a demo application for ActiveX control can be accessed from
this program group.

The EasyPort CD ROM contains further examples of how to use ActiveX


control. The examples typically show how ActiveX control can be
incorporated into Excel, LabVIEW, InTouch and FluidSIM®.

As soon as the examples have been initialised, they also appear in the
EasyPort program group in the Start menu.

170 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


Índice

Español Los capítulos 7 hasta 10 se encuentran en el archivo PDF del manual


EasyPort USB en el CD-ROM que se adjunta.

1 Introducción ______________________________________ 173


1.1 Información general sobre EasyPort USB _______________ 173
1.2 Indicaciones importantes____________________________ 179
1.3 Responsabilidad del propietario ______________________ 180
1.4 Responsabilidad de los estudiantes ___________________ 180
1.5 Riesgos del uso de la interface de procesos EasyPort _____ 180
1.6 Garantías y responsabilidades _______________________ 181
1.7 Utilización convenida _______________________________ 181

2. Indicaciones de seguridad ___________________________ 182

3. Datos técnicos ____________________________________ 183


3.1 EasyPort USB: generalidades ________________________ 183
3.2 Interface SysLink para señales digitales ________________ 184
3.3 Conector Sub D para señales analógicas _______________ 186
3.4 Interfaces de datos para PC __________________________ 187
3.5 Alimentación de corriente eléctrica ____________________ 188

4. Transporte/Desembalaje/Contenido __________________ 189

5. Composición y funciones ____________________________ 190


5.1 Composición del EasyPort USB _______________________ 190
5.2 Elementos de mando _______________________________ 192
5.3 Montaje del EasyPort USB ___________________________ 193
5.4 Conexión del EasyPort USB al PC y al proceso ___________ 194
5.5 Ajuste de la dirección en el EasyPort USB_______________ 196

6. Puesta en funcionamiento ___________________________ 197

7. Interfaces de software para EasyPort USB ______________ 204


7.1 Información general: comunicación con EasyPort USB ____ 204
7.2 Comunicación a través de EzOPC _____________________ 206

© Festo Didactic GmbH & Co. KG „ 721876 171

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


Índice

8. Elemento de control ActiveX para EasyPort USB _________ 210


8.1 Utilización del elemento de control ActiveX _____________ 210
8.2 Instalación del elemento de control ActiveX _____________ 211
8.3 Ejemplo: Aplicación de demostración de EasyPort_________ 21

9. Intérprete de órdenes de EasyPort USB ________________ 219


9.1 Intérprete de órdenes ______________________________ 219
9.2 Estructura de órdenes ______________________________ 220
9.3 Nivel de transmission _______________________________ 222
9.4 Órdenes para la inicialización y el diagnóstico ___________ 224
9.5 Órdenes para señales digitales _______________________ 226
9.6 Órdenes para señales analógicas _____________________ 229
9.7 Órdenes para la medición de señales analógicas _________ 236
9.8 Órdenes para contador rápido________________________ 242
9.9 Ejemplo: Creación de una conexión con EasyPort USB ____ 243

10. Crear aplicaciones propias___________________________ 254

Contenido del CD-ROM


Simulación modelo de procesos EasyVeep
OPC-Server EasyOPC
Manual EasyPort USB
Manual EasyVeep
Controlador USB para EasyPort
Elemento de control EasyPort USB ActiveX
Ejemplos de activación
‟ Ejemplo con Excel
‟ Ejemplo con FluidSIM
‟ Ejemplo con InTouch
‟ Ejemplo con LabVIEW
‟ Ejemplo con VC6

172 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introducción

1.1 ¿Qué es EasyPort USB?


Información general sobre La interface de procesos EasyPort USB se utiliza para la transmisión
EasyPort USB bidireccional de señales entre un proceso de control real en técnica de
bajo voltaje (24 VDC) y un PC. Con el fin de excluir posibles
interferencias en el PC, únicamente se utilizan interfaces
galvánicamente separadas para realizar la transmisión de datos entre
EasyPort USB y el PC.

EasyPort USB tiene numerosas utilizaciones posibles:


Control de un proceso de control real mediante un sistema de
control que funciona en el PC
Control de un modelo de proceso simulado mediante un PLC real
Regulación de un proceso real; la regulación funciona en el PC
Captación y evaluación de datos de medición provenientes de un
proceso real

© Festo Didactic GmbH & Co. KG „ 721876 173

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introducción

Ejemplo de aplicación: configuración con un proceso simulado y un PLC real

En todas estas aplicaciones, el EasyPort USB une el mundo real con el


mundo virtual del PC.

La interface de procesos EasyPort USB dispone de 16 entradas y salidas


digitales, así como de 4 entradas analógicas y 2 salidas analógicas.

174 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introducción

En un distribuidor («hub») de puertos USB conectado a un PC o en los


puertos USB del propio PC, pueden conectarse como máximo cuatro
módulos EasyPort USB. Deberá tenerse en cuenta que las direcciones
de los módulos son diferentes.

Configuración con 4 módulos EasyPort USB

Para transmitir las señales de los procesos entre el EasyPort USB y el


software del PC se dispone del server OPC EzOPC o del elemento de
control ActiveX del EasyPort USB.

© Festo Didactic GmbH & Co. KG „ 721876 175

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introducción

Como utilizar EasyPort USB


En la tabla se muestra cómo utilizar la interface de procesos EasyPort
UBS junto con otros productos de Festo Didactic.

Procesos de control reales posibles:


Un proceso de automatización con actuadores y detectores
Un PLC real
Una caja de simulación

También puede disponerse de diversos programas de software para el


mundo virtual. Se trata de programas para los siguientes fines:
Control
Regulación
Captación de valores de medición
Visualización

En esas configuraciones preparadas, es muy sencillo utilizar EasyPort


USB.

176 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introducción

Control de un proceso Control de un proceso Medir Regular


real simulado

Software utilizado para Software utilizado para Software utilizado Software utilizado
tareas de control de tareas de simulación de para tareas de para tareas de
procesos: procesos: captación de datos regulación:
de medición:
‟ FluidSim (sólo digital) ‟ EasyVeep
‟ S7‟PLCSIM ‟ FluidSim ‟ FluidLab PA ‟ FluidLab PA
‟ CoDeSys Soft-SPS ‟ CIROS ‟ FluidLab P ‟ FluidLab P
‟ FluidLab H a partir de V. 2.0

Interface Interface Interface Interface


EasyPort USB: EasyPort USB: EasyPort USB: EasyPort USB:

Interface Interface Interface Interface


digital/analógica digital digital/analógica digital/analógica

El EasyPort USB es la El EasyPort USB es la El EasyPort USB es la El EasyPort USB es la


interface entre el PC y el interface entre el PC y el interface entre el PC y interface entre el PC y
proceso real. El proceso PLC. El PLC controla en los detectores reales. el tramo real de
se controla desde el PC. el PC el proceso regulación.
simulado.

Proceso real: Control real: Detectores reales: Tramo real de


regulación:
‟ Caja de simulación, ‟ SPS indistinto ‟ Caja de simulación,
digital/analógica ‟ Caja de simulación, digital/analógica ‟ Caja de simulación,
‟ MPS PA digital ‟ MPS PA digital/analógica
‟ MPS ‟ SPS EduTrainer ‟ TP210 ‟ MPS PA
‟ TP301 ‟ SPS Board ‟ TP610 ‟ TP210
‟ TP610

Ejemplos de aplicaciones con EasyPort USB

© Festo Didactic GmbH & Co. KG „ 721876 177

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introducción

Igualmente es posible incluir la interface de procesos EasyPort USB en


aplicaciones propias. Para ello debe utilizarse el elemento de control
ActiveX del EasyPort USB. La activación como tal puede programarse
en:
Visual Basic
C++
LabVIEW
InTouch.

¿Qué informaciones se ofrecen en el presente manual?


En el manual se describe lo siguiente:
La estructura y el funcionamiento de la interface de procesos
EasyPort USB
Indicaciones de seguridad que deben tenerse en cuenta al trabajar
con EasyPort USB
Interfaces y órdenes existentes para la comunicación con EasyPort
USB
Ejecución de las órdenes para EasyPort USB mediante un programa
sencillo de terminal
Métodos de utilización del elemento de control ActiveX; explicación
mediante demostración
Cómo encontrar más ejemplos de la inclusión de EasyPort USB en
aplicaciones propias.

178 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introducción

El manual completo (capítulos 1 hasta 10) se encuentra en el CD-ROM


adjunto.

1.2 Para el uso correcto, seguro y fiable de la interface de procesos


Indicaciones importantes EasyPort USB, es indispensable conocer y respetar las indicaciones y
normas de seguridad.

El presente manual incluye las indicaciones más importantes que deben


tenerse en cuenta para el uso seguro del EasyPort USB.

Todos los usuarios del EasyPort USB deberán respetar las indicaciones
de seguridad.

Además, deberán respetarse las reglas y disposiciones de prevención


de accidentes.

© Festo Didactic GmbH & Co. KG „ 721876 179

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introducción

1.3 El propietario se compromete a permitir que únicamente trabajen


Responsabilidad del personas con el EasyPort USB que cumplen las siguientes condiciones:
propietario Personas que conocen las disposiciones de seguridad laboral y
prevención de accidentes y que han sido instruidas en el uso del
EasyPort USB.
Personas que han leído y entendido el capítulo sobre el tema de la
seguridad y las indicaciones a advertencias contenidas en el
presente manual.

Deberá comprobarse regularmente si los usuarios trabajan respetando


las disposiciones de seguridad.

1.4 Antes de empezar a trabajar con el EasyPort USB, todos los usuarios
Responsabilidad de los deben comprometerse a lo siguiente:
estudiantes Leer el capítulo de seguridad y las advertencias contenidas en el
presente manual.
Respetar las disposiciones básicas de seguridad laboral y de
prevención de accidentes.

1.5 En el proceso de producción de la interface de procesos EasyPort USB


Riesgos del uso de la se aplica la tecnología más avanzada y se respetan las normas de
interface de procesos seguridad reconocidas. Sin embargo, es posible que surjan riesgos para
EasyPort el usuario o para terceros o para la máquina u otros bienes materiales.

La interface de procesos EasyPort USB únicamente deberá utilizarse en


las siguientes condiciones:
Utilización correcta y convenida
Utilización en estado técnico impecable

¡Cualquier fallo que pueda poner en riesgo la seguridad, deberá


eliminarse de inmediato!

180 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introducción

1.6 En principio, son válidas nuestras «Condiciones generales de venta y


Garantías y entrega». El comprador dispone de esta documentación, a más tardar
responsabilidades en el momento de la firma del contrato. Se excluyen garantías y
responsabilidades en caso de daños físicos o materiales si los fallos se
deben a una o varias causas que se especifican a continuación:
Utilización no convenida del EasyPort USB
Puesta en funcionamiento y utilización incorrectas del EasyPort
USB.
Utilización del EasyPort USB estando defectuosos los sistemas de
seguridad. Utilización sin que estén instalados correctamente los
sistemas de seguridad y protección o sin que éstos funcionen
correctamente.
Utilización sin que se hayan tenido en cuenta las indicaciones para
la puesta en funcionamiento y el funcionamiento, incluidas en el
presente manual.
Utilización después de haber realizado modificaciones técnicas no
autorizadas en el EasyPort USB.
Utilización después de haber realizado reparaciones
incorrectamente.
Utilización después de haberse producido catástrofes naturales o
causas de fuerza mayor.

Festo Didactic excluye cualquier responsabilidad si el estudiante, la


empresa de instrucción y/o otros terceros sufren daños utilizando el
EasyPort USB en condiciones que no sean puramente educativas, a
menos que Festo Didactic haya ocasionado los fallos correspondientes
premeditadamente o por negligencia grave.

1.7 La interface de procesos EasyPort USB ha sido desarrollada y producida


Utilización convenida únicamente para fines de formación y perfeccionamiento profesional en
materia de técnica de automatización. La empresa educadora y/o los
estudiantes deben velar por que los estudiantes respeten las
disposiciones de seguridad que se describen en los manuales.

La utilización convenida incluye también la consideración de todas las


indicaciones que constan en el manual.

© Festo Didactic GmbH & Co. KG „ 721876 181

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


2. Indicaciones de seguridad

Establecer y retirar conexiones eléctricas únicamente cuando la


unidad no está bajo tensión.
Utilizar únicamente bajo voltaje de máximo 24 VDC para la
alimentación de corriente y en las entradas y salidas de EasyPort
USB.
Utilizar el EasyPort USB únicamente en sistemas que asumen
automáticamente un estado seguro al desconectar la tensión.
Utilizar únicamente los cables eléctricos recomendados por Festo
Didactic para establecer la conexión eléctrica entre la interface de
procesos EasyPort USB y el proceso.
También deberán tenerse en cuenta las indicaciones que constan en
las hojas de datos correspondientes a los aparatos conectados,
especialmente todas las indicaciones relacionadas con la seguridad.

182 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Datos técnicos

3.1 Interface de procesos EasyPort USB D16A


EasyPort USB:
generalidades Tensión de 24 VDC +/‟10%
funcionamiento

Consumo 3 VA

Cantidad de salidas 16 digitales de 24 VDC,


2 analógicas de 0…10 VDC ó
‟10…+10 VDC,
resolución de 12 bit

Carga admisible 0,7 A por salida digital


10 mA por salida analógica

Protección contra Sí
cortocircuitos

Cantidad de entradas 16 digitales de 24 VDC,


4 analógicas de 0…10 VDC ó
‟10…+10 VDC,
resolución de 12 bit

Umbral de conmutación 12 VDC


de las entradas digitales

Histéresis de las 3V
entradas digitales

Filtro 5 ms

Cantidad de contadores 2 entradas utilizables como contadores


rápidos,
fmáx = 20 kHz/Uin = 5…24 VDC

Interfaces de RS232, con separación galvánica


comunicación USB2.0, con separación galvánica

Protocolo ASCII, 115,2 kBaud,8,N,1

Datos técnicos generales de EasyPort USB

© Festo Didactic GmbH & Co. KG „ 721876 183

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Datos técnicos

Interface de procesos EasyPort USB D16A

Clase de protección IP20

Símbolo CE Según directiva UE/CEM

Temperatura ambiente 0…55 °C/0…70 °C


admisible para
funcionamiento/almace-
namiento

Medidas en mm (largo x 135 x 167 x 37


ancho x alto)

Peso en kg 0,65

Datos técnicos generales del EasyPort USB (continuación)

3.2 Las 8 entradas digitales y 8 salidas digitales del EasyPort USB están
Interface SysLink para conectadas según IEEE 488 a un conector tipo zócalo de 24 contactos
señales digitales SysLink. Además, la entrada 0 en el puerto 1 o en el puerto 2 puede
utilizarse como entrada de conteo rápido. Las entradas de conteo
pueden funcionar con niveles de tensión desde 5 hasta 24 VDC.

184 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Datos técnicos

Conector tipo zócalo IEEE 488 de 24 contactos

Puerto 1 Contacto Puerto 2 Contacto

OUTPUT 0 1 OUTPUT 0 1

OUTPUT 1 2 OUTPUT 1 2

OUTPUT 2 3 OUTPUT 2 3

OUTPUT 3 4 OUTPUT 3 4

OUTPUT 4 5 OUTPUT 4 5

OUTPUT 5 6 OUTPUT 5 6

OUTPUT 6 7 OUTPUT 6 7

OUTPUT 7 8 OUTPUT 7 8

INPUT 0 13 INPUT 0 13

INPUT 1 14 INPUT 1 14

INPUT 2 15 INPUT 2 15

INPUT 3 16 INPUT 3 16

INPUT 4 17 INPUT 4 17

INPUT 5 18 INPUT 5 18

INPUT 6 19 INPUT 6 19

INPUT 7 20 INPUT 7 20

0 VDC 11/12/ 0 VDC 11/12/


23/24 23/24

24 VDC 9/10/ 24 VDC 9/10/


21/22 21/22

Datos técnicos de la interface SysLink para señales digitales

© Festo Didactic GmbH & Co. KG „ 721876 185

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Datos técnicos

3.3 Las 4 entradas analógicas y las 2 salidas analógicas del EasyPort USB
Conector Sub D para están conectadas a un conector Sub D tipo zócalo de 15 contactos. La
señales analógicas transformación analógica/digital se realiza con una resolución de 12
bit. La frecuencia de exploración es de 0,5 kHz.

Conector tipo zócalo Sub D de 15 contactos

Puerto 3 Contactos

OUTPUT 0 1

OUTPUT 1 2

0V 3

(Libre) 4

(Libre) 5

0V 6

INPUT 1 7

INPUT 2 8

(Libre) 9

(Libre) 10

+10 VDC REF 11

(Libre) 12

(Libre) 13

INPUT 3 14

INPUT 4 15

Datos técnicos del conector Sub D tipo zócalo, para señales analógicas

186 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Datos técnicos

3.4 El intercambio de datos con el PC se realiza a través del puerto serie


Interfaces de datos para RS232 o a través del puerto USB de EasyPort USB. La velocidad de la
PC transmisión de datos es de 115,2 kBaud.

RS232 = Contactos
Conector Sub D tipo zócalo, de 9
contactos

(Libre) 1

Recibir datos RxD 2

Enviar datos TxD 3

(Libre) 4

Masa de señales SGnd 5

(Libre) 6

(Libre) 7

(Libre) 8

(Libre) 9

Datos técnicos de la interface RS232

Para realizar la conexión a un PC puede utilizarse un cable prolongador


de conexión en serie de 9 contactos, de venta comercial.

Puerto USB
EasyPort USB cuenta con una interface USB 2.0 con separación
galvánica. A un hub USB pueden conectarse como máximo 4 módulos
EasyPort USB. Deberá tenerse en cuenta que las direcciones de los
módulos EasyPort son diferentes. Se admiten las direcciones desde 1
hasta 4.

© Festo Didactic GmbH & Co. KG „ 721876 187

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Datos técnicos

Para conectar el EasyPort USB al puerto USB del PC o de un hub, deberá


utilizarse el cable USB A-B que se incluye en el suministro.

3.5 La alimentación de 24 VDC para el EasyPort USB es externa. La conexión


Alimentación de corriente puede realizarse a través de los puertos 1 y 2 o mediante dos bornes
eléctrica roscados separados, que se encuentran en la parte posterior del
EasyPort USB. El suministro incluye dos cables con conectores de
seguridad de 4 mm.

188 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


4. Transporte/Desembalaje/Contenido

Transporte
La interface de procesos EasyPort USB se entrega en una caja de cartón.

La caja debe asegurarse de tal manera que no pueda volcarse o caerse.

Cualquier daño ocasionado durante el transporte deberá notificarse de


inmediato al transportista y a Festo Didactic.

Desembalaje
Después de desembalar la interface de procesos EasyPort USB, deberá
verificarse si ha sufrido algún daño. En caso de ser así, deberá
notificarse de inmediato al transportista y a Festo Didactic.

Contenido
El envío contiene los siguientes componentes:
Interface de procesos EasyPort USB
Cables de 24 VDC con conectores de seguridad tipo clavija de 4 mm
Cable USB
CD-ROM con software y documentación:
Simulador de procesos EasyVeep, software EzOPC, controlador USB,
elemento de control ActiveX como interface de programación entre
el EasyPort USB con ayuda online y ejemplos de programas
Manual del EasyPort USB

Comprobar si el contenido del envío coincide con el albarán y el pedido.

Cualquier diferencia deberá notificarse de inmediato a Festo Didactic.

© Festo Didactic GmbH & Co. KG „ 721876 189

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Composición y funciones

5.1
Composición del
EasyPort USB

(1) Conector Sub D (puerto 3) (2) Puerto USB


(3) Interface RS232 (4) Bornes roscados por separado, para alimentación de
corriente eléctrica
(5) Teclas   (6) LED STATUS (verde)
(7) LED ERROR (rojo) (8) Interfaces SysLink (puerto 1 y puerto 2)
(9) LEDs para indicación del estado de las salidas digitales (amarillos)
(10) LEDs para indicación del estado de las entradas digitales (verde)
(11) LCD de indicación para señales analógicas y dirección del EasyPort

Composición del EasyPort USB

190 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Composición y funciones

La interface de procesos EasyPort USB cuenta con lo siguiente:


2 interfaces SysLink para recibir y transmitir señales digitales a
través de 8 entradas y 8 salidas.
La entrada 0 de cada interface SysLink puede utilizarse como
contador rápido.
Conector Sub D tipo zócalo para recibir y transmitir señales
analógicas a través de 4 entradas y 2 salidas.
Puerto USB 2.0 e interface serie RS232 para conectar el EasyPort
USB a un PC.
Dos bornes roscados separados, para la alimentación de corriente
de 24 VDC.
16 LEDs (verdes) para la indicación del estado de las entradas
digitales.
16 LEDs (amarillos) para indicación de estado de las salidas
digitales.
LCD para indicar una señal analógica seleccionada.
Se indica lo siguiente: canal, unidad, tendencia y valor de medición
(4 dígitos).
Dos teclas para ajustar el canal analógico, para seleccionar la
unidad física del valor analógico y para ajustar la dirección del
EasyPort USB.

El suministro no incluye lo siguiente


Unidad de alimentación eléctrica de 24 VDC
Cable para la interface de SysLink
Cable para el conector Sub D tipo zócalo

© Festo Didactic GmbH & Co. KG „ 721876 191

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Composición y funciones

5.2 PORT 3 USB RS 232 24V 0V


Elementos de mando

EasyPort USB
Error Status

IN

OUT
0 7 0 7

PORT 1 PORT 2

Panel de mandos e indicación del EasyPort USB

El panel de mandos del EasyPort USB contiene lo siguiente:


LED ERROR
Si se detecta un cortocircuito en una de las salidas, se enciende el
LED ERROR. En ese caso, se desconectan las salidas del
EasyPort USB.
Al conectar el EasyPort USB, se enciende este LED brevemente. Se
apaga durante el test de conexión.
LED STATUS
El LED STATUS de color verde indica dos estados:
‟ Parpadeo con frecuencia de 1 Hz:
Estado después de la conexión. El módulo EasyPort USB todavía
no comunica.
‟ Parpadeo pulsante:
Se ha definido la dirección del módulo EasyPort USB. La dirección
se muestra cada 2 segundos mediante una determinada cantidad
de señales luminosas que se encienden brevemente.

192 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Composición y funciones

LCD de indicación
En la primera línea se muestran las tensiones de entrada y salida de
la señal analógica seleccionada mediante un valor y,
adicionalmente, se muestra un diagrama de barras.
En la segunda línea se indican el número del canal y el sentido de la
señal.
Significados: In = Señal de entrada, Out = Señal de salida.
LED IN 0...7
Indicación de estado de las entradas digitales mediante LEDs verdes
LED OUT 0...7
Indicación de estado de las salidas digitales mediante LEDs
amarillos
Teclas
Con la tecla  se selecciona el canal analógico que consta en el
LCD.
El número de canal Ch como señal de entrada puede ser: 0…3.
El número de canal Ch como señal de salida puede ser: 0…1.
Con la tecla  pueden seleccionarse diversas magnitudes físicas.
Puede escogerse entre: V, bar, PSI, MPa, l/min, °C.
Pulsando simultáneamente ambas teclas se activa el ajuste de la
dirección.

5.3 Con el adaptador (n° de art. 549806) es posible montar el EasyPort USB
Montaje del directamente en el panel de prácticas perfilado.
EasyPort USB El adaptador se fija a la parte inferior del EasyPort USB mediante tres
tornillos M4.

© Festo Didactic GmbH & Co. KG „ 721876 193

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Composición y funciones

5.4 La conexión entre el PC y la interface de procesos EasyPort USB se


Conexión del EasyPort realiza mediante la interface RS232 con separación galvánica o a través
USB al PC y al proceso de un Puerto USB separado galvánicamente.

Si para la comunicación se utiliza el puerto USB, se conecta el


EasyPort USB al PC con el cable USB incluido en el envío.
Si se opta por la comunicación a través de la interface serie, puede
utilizarse cualquier cable prolongador de conexión en serie de 9
contactos, de venta comercial.

Conectar el EasyPort USB con el PC y con el proceso

Para conectar el EasyPort USB con un proceso de control real, se


dispone de diversos cables /E/S.
El cable E/S depende de la tecnología del control de la aplicación.

A continuación se explican las aplicaciones más frecuentes del EasyPort


USB.
En la gráfica se puede apreciar en qué casos debe utilizarse un cable
E/S cruzado.

194 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Composición y funciones

Para diferenciar mejor los cables E/S digitales, el cable E/S cruzado
está identificado con color negro en el extremo.

Cables para conectar el EasyPort USB con un PC y con el proceso

© Festo Didactic GmbH & Co. KG „ 721876 195

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Composición y funciones

Indicación
La alimentación de corriente de 24 VDC para el EasyPort USB es
externa. La conexión puede realizarse a través de los puertos 1 y 2 o
mediante dos bornes roscados separados, que se encuentran en la
parte posterior del EasyPort USB.
Deberá tenerse cuidado en aplicar tensión de alimentación en un solo
lado.

5.5 La dirección del EasyPort USB se ajusta mediante las teclas   . Para
Ajuste de la dirección en activar la modalidad de ajuste de la dirección, deberán pulsarse
el EasyPort USB simultáneamente las dos teclas. Con  y  se selecciona entre las
direcciones desde 1 hasta 4. Pulsando simultáneamente las dos teclas,
se memoriza la dirección y se abandona la modalidad de ajuste de la
dirección.
De fábrica viene ajustada la dirección 1 en cada interface de procesos
del EasyPort USB.

PORT 3 USB RS 232 24V 0V

EasyPort USB
Error Status

IN

OUT
0 7 0 7

PORT 1 PORT 2

Display de LCD del EasyPort USB con indicación de la dirección

196 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Puesta en funcionamiento

Para poner en funcionamiento el EasyPort USB se necesita lo siguiente:


El EasyPort USB
Una unidad de alimentación eléctrica de 24 VDC
Un PC si se desea evaluar los datos del EasyPort USB en un PC
El CD-ROM de EasyPort para la instalación de los controladores USB
en el PC
El cable USB

Ayuda útil:
La aplicación de demostración de EasyPort, para establecer
rápidamente y de manera sencilla una conexión con el EasyPort USB
Una caja de simulación, para generar de manera sencilla señales de
proceso para EasyPort USB

Forma de proceder
1. Conecte el EasyPort USB a una toma de corriente externa de 24 VDC.
Para ello, utilice los cables incluidos de 24 VDC con conectores de
seguridad tipo clavija de 4 mm.
2. Active la alimentación de corriente del EasyPort USB.
‟ Se enciende brevemente el LED ERROR de color rojo. Este LED se
apaga durante el test de conexión.
‟ El LED STATUS verde parpadea con una frecuencia de 1 Hz.
Ello significa que el EasyPort USB aún no está comunicando.
3. Una vez concluido el test de conexión, el EasyPort USB está listo
para funcionar y está esperando la inicialización desde el PC. En ese
caso, se utiliza la dirección que se ajustó con las teclas de las
flechas.
4. Revise la dirección del EasyPort USB.
‟ Para ello, active la modalidad de ajuste de la dirección pulsando
simultáneamente las dos teclas de las flechas.
‟ Utilizando estas teclas, ajuste una dirección desde 1 hasta 4.
‟ Abandone la modalidad de ajuste de la dirección pulsando
simultáneamente las dos teclas de las flechas.
5. Conecte el PC al EasyPort USB. Para ello, utilice el cable USB
incluido en el suministro.

© Festo Didactic GmbH & Co. KG „ 721876 197

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Puesta en funcionamiento

6. Si los controladores necesarios para el funcionamiento del EasyPort


USB no están instalados en el PC, recibirá un aviso del asistente
para búsqueda de nuevo hardware. Para instalar el controlador
USB, no recurra al update de Windows. Si aparece un diálogo
correspondiente, rechace esta opción con No.
Cuando aparezca el diálogo que se muestra abajo, instale el
controlador USB desde el CD-ROM incluido.
Para ello, introduzca el CD-ROM EasyPort. Cuando la unidad de CD
del ordenador está lista para funcionar, haga clic en Continuar.

198 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Puesta en funcionamiento

7. El sistema busca el componente de software necesario.


Una vez concluida la instalación con éxito, haga clic en el botón
terminar.

© Festo Didactic GmbH & Co. KG „ 721876 199

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Puesta en funcionamiento

8. Es necesario instalar un componente de software más, por lo que


nuevamente se abre la ventana del asistente de búsqueda de nuevo
hardware. En este caso, tampoco instale el software desde el
update de Windows. Siempre recurra únicamente al CD-ROM de
EasyPort.
Cuando aparezca el diálogo que se muestra abajo estando puesto el
CD de EasyPort, haga clic en Continuar.

200 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Puesta en funcionamiento

9. Una vez concluida la instalación con éxito, haga clic en el botón


terminar.

10. Ya se instalaron los controladores USB necesarios para el


funcionamiento del EasyPort USB. Ello significa que puede utilizar el
EasyPort USB conectado al PC.
11. Con la aplicación de demostración EasyPort es posible establecer de
manera sencilla una conexión con el EasyPort USB e inicializar el
EasyPort USB.

© Festo Didactic GmbH & Co. KG „ 721876 201

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Puesta en funcionamiento

12. Para ello, active la aplicación de demostración de EasyPort. Esta se


encuentra en el menú de inicio, en el grupo EasyPort. Haga clic en
Aplicación de demostración EasyPort.
Al instalar el elemento de control ActiveX que se encuentra en el CD-
ROM de EasyPort, se copia la aplicación de demostración al PC.

13. Haga clic en el botón Conectar para establecer la conexión entre la


aplicación de demostración EasyPort con el EasyPort USB. Al mismo
tiempo se inicializa el módulo EasyPort USB.

202 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Puesta en funcionamiento

14. La aplicación de demostración de EasyPort muestra lo siguiente:


‟ El EasyPort USB conectado tiene la dirección 2
‟ La interface serie para la comunicación es COM5

15. El LED STATUS de color verde indica que el EasyPort USB ha sido
inicializado correctamente. El LED STATUS se enciende brevemente
dos veces indicando que la dirección del EasyPort USB es 2.

Indicación
Si se utiliza software de terceros con controladores USB propios,
deberá asegurarse que quede libre por lo menos una interface serie
para el EasyPort USB.
Si se desconecta el PC con conexión USB para EasyPort, también
debería retirarse el cable USB.
El cable USB deberá conectarse sólo después de reiniciar el PC y
activar nuevamente el programa que deberá establecer la
comunicación con el EasyPort USB.

© Festo Didactic GmbH & Co. KG „ 721876 203

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Interfaces de software para EasyPort USB

7.1 La transmisión de datos desde y hacia una interface de procesos


Información general: EasyPort USB se lleva a cabo a mediante órdenes de escritura y lectura
comunicación con individuales, atribuidas a determinadas direcciones.
EasyPort USB

Ejemplo: órdenes de escritura y lectura en modo de terminal

Dependiendo cómo se incluye el EasyPort USB en la aplicación, existen


diversos niveles de acceso para ejecutar esas órdenes de
escritura/lectura.
Intérprete de órdenes
Es el nivel más bajo y se accede a él directamente mediante un
programa de terminal
Elemento de control ActiveX
Describe las funciones de acceso y, por lo tanto, es la interface de
programación para el EasyPort USB
EzOPC
EzOPC es un server OPC y establece la conexión de comunicación
con productos de Festo Didactic para aplicaciones preparadas

204 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Interfaces de software para EasyPort USB

Interfaces de software para EasyPort USB

El intérprete de órdenes es el nivel más bajo. El intérprete conoce todas


las órdenes que puede ejecutar el EasyPort USB. Con un programa de
terminal (por ejemplo, Hyper Terminal de Windows) es posible
establecer una comunicación directa con el EasyPort USB y ejecutar las
órdenes seleccionadas.

Para la programación del EasyPort USB se utiliza el elemento de control


ActiveX a modo de interface. Puede incluirse como objeto COM en
proyectos de software. Para ello es necesario que el software utilizado
soporte la interface COM. Así sucede en el caso de lenguajes de
programación como Visual Basic y C++. Pero también programas para la
captación y evaluación de datos de medición como, por ejemplo,
LabVIEW o sistemas de visualización, ofrecen esta interface.

Si se utiliza el EasyPort USB junto con otros productos de Festo


Didactic, es sencillo establecer la comunicación. Para ello se utiliza el
server OPC EzOPC, un programa con interface gráfica de usuario.

© Festo Didactic GmbH & Co. KG „ 721876 205

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Interfaces de software para EasyPort USB

7.2 EzOPC es un server OPC que permite establecer una conexión de


Comunicación a través de transmisión de datos
EzOPC con una interface de procesos EasyPort USB,
con clientes OPC de Festo Didactic
COSIMIR , CIROS , FluidSIM , FluidLab ,
con el simulador de PLC S7-PLCSIM de Siemens,
con el server CoDeSys OPC V2.0 de 3S Software.

Los datos pueden escribirse y leerse en cualquier cliente OPC de


conformidad con OPC 2.x.

OPC significa open connectivity via open standards y se trata de una


interface estándar utilizada en el sector de la automatización. Esta
interface garantiza un eficiente flujo de datos entre aplicaciones de
Windows y aparatos de automatización.

Interface de software: EzOPC

206 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Interfaces de software para EasyPort USB

La interface gráfica de usuario EzOPC permite crear de manera sencilla


una conexión de transmisión de datos entre las unidades de
comunicación de algunas aplicaciones preparadas. Para ello deberá
seleccionar esas unidades de comunicación. A continuación deberá
indicar las entradas y salidas para el intercambio de señales. De esta
manera concluye la instalación. A continuación, EzOPC se encargará
automáticamente del intercambio de datos entre las unidades.

Ejemplo de configuración: los modelos de procesos en CIROS se controlan mediante un PLC externo. El
intercambio de datos se realiza a través de EasyPort y EzOPC.

El control virtual es el «corazón» del EzOPC. Este control hace las veces
de regleta de bornes que une la zona de señales de una unidad con la
zona de señales de la otra unidad.

En la ayuda online de EzOPC y en los manuales de los programas de


software utilizados se ofrecen informaciones detalladas para la
configuración y el uso de EzOPC.

© Festo Didactic GmbH & Co. KG „ 721876 207

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Interfaces de software para EasyPort USB

La ayuda online está disponible inmediatamente después de instalar


EzOPC.

Cómo instalar EzOPC


1. Introduzca el CD-FOM EasyPort.
2. El programa de instalación se inicia automáticamente.
Si no se inicia automáticamente, deberá iniciarlo haciendo doble clic
en el archivo Start.exe que se encuentra en el CD-ROM.
3. A continuación aparece una ventana de inicio de la instalación.
Seleccione el idioma para la instalación del programa de software
EzOPC. Haga clic en el botón que corresponda.

208 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Interfaces de software para EasyPort USB

4. Durante la instalación se ofrecen todas las aplicaciones de software,


los manuales, los controladores y los ejemplos de programas.
En Aplicaciones, haga clic en Instalar OPC-Server EzOPC.

5. Al instalar EzOPC se crea por defecto un grupo de programas EzOPC


en el menú de inicio. Allí también se encuentra la correspondiente
ayuda online para EzOPC.

© Festo Didactic GmbH & Co. KG „ 721876 209

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. Elemento de control ActiveX para EasyPort USB

8.1 El elemento de control ActiveX sirve de interface de programación para


Utilización del elemento el EasyPort USB. Puede incluirse en el software como objeto COM. Los
de control ActiveX lenguajes de programación que soportan la interface COM son, entre
otros, Visual Basic, C++ y, también, HTML. Pero también los sistemas de
captación de datos de medición como LabVIEW y sistemas de
visualización soportan la interface COM.

Interface de software: elemento de control ActiveX

El elemento de control ActiveX y los métodos de su utilización se


explican en la ayuda online.

210 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. Elemento de control ActiveX para EasyPort USB

8.2 Antes de incluir el elemento de control ActiveX en el proyecto de


Instalación del elemento software, dicho elemento debe estar disponible en el PC. El elemento de
de control ActiveX control ActiveX se encuentra en el CD-ROM incluido en el suministro.

Cómo instalar el elemento de control ActiveX


1. Introduzca el CD-ROM EasyPort.
2. El programa de instalación se inicia automáticamente.
Si no se inicia automáticamente, deberá iniciarlo haciendo doble clic
en el archivo Start.exe que se encuentra en el CD-ROM.
3. A continuación aparece una ventana de inicio.
Seleccione el idioma para la instalación del programa de software
EzOPC. Haga clic en el botón que corresponda.
4. Durante la instalación se ofrecen todas las aplicaciones de software,
los manuales, los controladores y los ejemplos de programas.
Haga clic en Instalar el elemento de control EasyPort ActiveX.

5. Al instalar EasyPort ActiveX se crea de manera predeterminada un


grupo de programas EasyPort en el menú Inicio. Allí también se
encuentra la correspondiente ayuda online y una aplicación de
demostración del elemento de control ActiveX.

© Festo Didactic GmbH & Co. KG „ 721876 211

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. Elemento de control ActiveX para EasyPort USB

8.3 La aplicación de demostración de EasyPort es un ejemplo de programa


Ejemplo: que muestra cómo utilizar el elemento de control ActiveX en C++. Con la
Aplicación de aplicación de demostración es posible utilizar de manera sencilla
demostración de EasyPort algunos métodos importantes del elemento de control ActiveX y
observar el intercambio de datos que se produce entre el PC y el
EasyPort USB.
En el nivel de código de fuente, el ejemplo demuestra cómo se puede
incluir el elemento de control ActiveX en C++.

Al instalar el elemento de control ActiveX de EasyPort, también se copia


la aplicación de demostración en el PC.
La aplicación de demostración se encuentra en el menú de inicio, en el
grupo de programas EasyPort. Dentro del grupo, haga clic en Aplicación
de demostración EasyPort.

Aplicación de demostración EasyPort

212 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. Elemento de control ActiveX para EasyPort USB

Cómo trabajar con la aplicación de demostración


1. Asegúrese de que la interface de procesos EasyPort USB esté
conectada a una fuente de alimentación de 24 VDC.
Conecte la alimentación de tensión del EasyPort USB.
2. Conecte el PC a la interface de procesos EasyPort USB. Para ello,
utilice el cable USB incluido en el suministro.

3. Si los controladores USB necesarios para el funcionamiento del


EasyPort USB no están instalados en el PC, se emite una notificación
de error. En ese caso, deberá realizarse la instalación de los
controladores USB. Para ello deberá recurrirse al CD-ROM de
EasyPort.
4. Asegúrese de que el elemento de control ActiveX para EasyPort USB
esté instalado en su PC.

© Festo Didactic GmbH & Co. KG „ 721876 213

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. Elemento de control ActiveX para EasyPort USB

5. Inicie la aplicación de demostración EasyPort. La aplicación de


demostración se encuentra en el menú de inicio, en el grupo de
programas EasyPort. Haga clic en la aplicación de demostración
EasyPort. S
Varios botones incluyen algunas de las órdenes del elemento de
control ActiveX utilizadas con mayor frecuencia. A la izquierda de los
botones se muestran los valores de respuesta, suponiendo que la
aplicación ofrezca ese tipo de valores. En el lado derecho deberán
ingresarse los valores de los parámetros para activar la orden.

6. Antes de ejecutar las órdenes, deberá establecerse la conexión


entre la aplicación de demostración EasyPort y el módulo EasyPort
USB. Para ello, haga clic en Conectar.

214 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. Elemento de control ActiveX para EasyPort USB

7. El valor de respuesta 1 indica que el módulo EasyPort USB tiene la


dirección 1. COM 5 se utiliza a modo de interface serie para la
comunicación.

8. A continuación pueden ejecutarse las órdenes que ofrece el sistema.


En la ayuda online se ofrecen informaciones detalladas sobre estas
órdenes (métodos).
9. Si, por ejemplo, desea activar las salidas digitales 0 hasta 3 del
módulo EasyPort USB, deberá introducirse el valor 15 a modo de
parámetro para la orden SetOutputWord. Las salidas digitales
deben activarse como palabra de salida 0. El valor predeterminado
de la dirección para la palabra de salida es 0. Usted puede aceptar
este valor sin modificarlo. A continuación, haga clic en el botón
SetOutputWord.
Se enciende el LED amarillo de las salidas 0 hasta 3 del puerto 1 del
EasyPort USB.

© Festo Didactic GmbH & Co. KG „ 721876 215

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. Elemento de control ActiveX para EasyPort USB

10. Y viceversa: también es posible leer el estado de las salidas


digitales en el EasyPort USB. Para ello haga clic en el botón
GetOutputWord. El valor de la palabra de salida 0 es 15 y se muestra
a la izquierda de la orden.

11. Si desea hacer un seguimiento directo de la comunicación entre la


aplicación de demostración EasyPort y el EasyPort USB, haga clic en
el botón ShowDebugWnd.

216 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. Elemento de control ActiveX para EasyPort USB

12. Se abre la ventana de seguimiento Trace Window. En esta ventana


constan las órdenes enviadas al módulo EasyPort USB y las
repuestas del EasyPort a dichas órdenes.

© Festo Didactic GmbH & Co. KG „ 721876 217

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. Elemento de control ActiveX para EasyPort USB

13. La orden SendAndGetString ofrece la posibilidad de enviar órdenes


del intérprete directamente al módulo EasyPort USB conectado.
Ejemplo: Introduzca la orden MAW1.0=FF, haga clic en el botón
SendAndGetString. Todas las salidas digitales en el puerto 1 de
EasyPort USB se ponen en 1.
La respuesta AW1.0=FF del EasyPort USB se muestra a la izquierda
del botón.

14. Si se quiere desconectar la conexión con el EasyPort USB, deberá


hacerse clic en el botón Disconnect.

Indicación
Con la aplicación de demostración EasyPort es posible crear y
comprobar rápidamente y de manera sencilla la conexión con un
EasyPort USB.

218 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

9.1 El intérprete para órdenes es el nivel de acceso inferior para la


Intérprete de órdenes comunicación. El intérprete de órdenes conoce todas las órdenes que
puede ejecutar el EasyPort USB. Mediante un programa de terminal
como, por ejemplo, Hyper Terminal de Windows, es posible establecer
una comunicación directa con el EasyPort USB y ejecutar las órdenes
deseadas.

Interface de software: intérprete de órdenes

El intérprete de órdenes se controla a través de la interface de serie.


Criterios para el ajuste de esta interface:

COMx: 115200,N,8,1
Debe tenerse en cuenta que el EasyPort USB funciona únicamente
con una velocidad de transmisión fija de 115200 Bd.

La estructura de las órdenes es muy sencilla:


Cada orden está compuesta por una letra (operador) y una dirección
(operando).
El operando direcciona la señal necesaria.

© Festo Didactic GmbH & Co. KG „ 721876 219

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

En el caso de algunas órdenes más antiguas, es necesario indicar la


dirección del módulo EasyPort, mientras que no es necesario hacerlo
tratándose de órdenes más recientes.

9.2 Existen dos órdenes centrales para leer y escribir:


Estructura de órdenes • Orden Display (D) para leer un elemento
• Orden Modify (M) para modificar un elemento

Los elementos de un EasyPort USB pueden ser los siguientes:


• Entrada (E)
• Salida (A)
• Temporizador de operaciones (T)
• Contador rápido (C)

El elemento puede activarse como


• Bit
• Byte (B)
• Palabra (W)

Una palabra está compuesta de byte 0 y 1 y contiene direcciones de bit


desde 0 hasta 15.

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

Byte 1 Byte 0
(puerto 2) (puerto 1)

Palabra 0

220 © Festo Didactic GmbH & Co. KG • 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

Ejemplo de una orden de lectura (display)

Descripción: bit de entrada 5 del display de palabra 0 en módulo 1 de EasyPort USB

Una orden de display está compuesta por una letra de orden, un


elemento y el tipo de datos del elemento. Le sigue la dirección del
elemento con indicación del número de módulo, la dirección de palabra
y, si procede, la dirección byte o bit. Las indicaciones de las direcciones
están separadas entre sí mediante un punto.

Ejemplo de orden de lectura (modify)

Orden Descripción

MA2.0.C=1 Modificar a 1 el bit de salida 2 de palabra 0 en el


módulo 2 del EasyPort USB

Las órdenes de modificación (modify) deben incluir un valor de datos.


El valor de datos le sigue a la dirección del elemento, tras un signo de
ecuación.

Téngase en cuenta lo siguiente: los números de las direcciones y los


valores de datos siempre deben introducirse de manera hexadecimal.

© Festo Didactic GmbH & Co. KG „ 721876 221

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

9.3 Los datos realmente transmitidos en el momento de la transmisión


Nivel de transmission corresponden casi completamente a los datos introducidos como
símbolos ASCII a nivel de usuario.

Criterios válidos para la transmisión de datos:


La dirección y el valor de los datos deben introducirse de manera
hexadecimal.
Los valores emitidos por el EasyPort USB siempre se muestran como
números hexadecimales.
Los números con coma flotante se codifican.
Cada mensaje termina con un CR (tecla Intro).
Cada orden para la propia dirección recibe una respuesta.
Para ello se separa la primera letra de cada orden Display o Modify.
Las órdenes Modify se expresan mediante el valor de datos real en
el módulo. Este valor de datos normalmente es el mismo que el de
la orden.
A la respuesta de una orden de display se agrega el valor
comprobado, escrito de la misma manera que la orden de
modificación Modify.

A continuación se muestran algunos ejemplos de órdenes y las


respectivas respuestas. En los ejemplos también consta el símbolo CR
(carriage return, es decir, señal de Intro del teclado).

222 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

Dirección Orden para el módulo Respuesta del Observación


del módulo módulo

3 DAW3.0<CR> AW3.0=1234<CR> El valor de los datos es


1234 hexadecimal
o 4660 decimal.

Formato de palabra: xxxx

2 DEB2.0.1<CR> EB2.0.1=12<CR> El valor de los datos es 12


hexadecimal o 18 decimal

Formato de datos para byte: xx

1 DE1.0.E<CR> E1.0.E=0<CR> Lectura de bit de entrada 14.

Formato de datos para bit: x

1 MAW1.0=201<CR> AW1.0=201<CR> El valor de los datos es


201 hexadecimal
o 513 decimal

2 MAB2.0.0=73<CR> AB2.0.0=73<CR> El valor de los datos es 73


hexadecimal o 115 decimal

3 MA3.0.A=1<CR> A3.0.A=1<CR> El bit de salida 10 se pone en 1

Ejemplos de órdenes Modify y Display

© Festo Didactic GmbH & Co. KG „ 721876 223

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

9.4 Además de las órdenes para leer y escribir señales, existen otras
Órdenes para la órdenes que se utilizan principalmente durante la puesta en
inicialización y el funcionamiento y el diagnóstico.
diagnóstico
Entre ellas, cabe mencionar los siguientes órdenes
Consulta de la dirección de un módulo EasyPort USB
Consulta del número de versión de un módulo EasyPort USB
Lectura de la palabra de estado de un módulo EasyPort USB

Orden Respuesta Descripción y ejemplo

setup0 setup<n> Consulta de dirección

Con setup<n>, <n>=1…4, el módulo EasyPort USB responde con su dirección


de módulo.

Ejemplo

Orden Respuesta Descripción


setup0 setup1 El módulo EasyPort USB responde
con la dirección 1.

DV V=2.10 Emisión del número de versión

El módulo EasyPort USB responde con su número de versión: V=2.10

Inicialización y diagnóstico

224 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

Orden Respuesta Descripción y ejemplos

DS S=xx Lectura de palabra de estado

La palabra de estado de un módulo EasyPort USB se entrega como valor


xx hexadecimal.

Significados
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Display Up Down Out- In- Setup Error

Bit 0 = 1 Error de controlador de salida


Bit 1 = 1 Módulo inicializado
Bit 2 = 1 Margen de tensión de entrada ‟10…+10 VDC
Bit 2 = 0 Margen de tensión de entrada 0…10 VDC
Bit 3 = 1 Margen de tensión de salida ‟10…+10 VDC
Bit 3 = 0 Margen de tensión de salida 0…10 VDC
Bit 4 = 1 Tecla  pulsada
Bit 5 = 1 Tecla  pulsada
Bit 6 = 1 Se muestran todos los segmentos del display
Bit 6 = 0 Está activada la modalidad normal del display

Ejemplos

Orden Respuesta Descripción


DS S=12 Se responde con el valor 12
hexadecimal o 18 decimal.
Significado: bit 1 = 1 y bit 4 = 1
El módulo EasyPort USB fue
inicializado correctamente. Ajuste de la
tensión de entrada y de salida: 0…10 V.
La tecla  está pulsada y la indicación
del display está en modalidad normal.

Inicialización y diagnóstico (continuación)

© Festo Didactic GmbH & Co. KG „ 721876 225

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

9.5 En las siguientes tablas se muestran las órdenes para leer y escribir
Órdenes para señales señales digitales.
digitales

Orden Elemento Tipo de Dirección Ejemplos e indicaciones


Modify datos

M A (Salida) (Bit) 0…15 MA1.0.4=1


(Modify) Modificar bit de salida de 4 de palabra 0 a 1
en el módulo 1 de EasyPort USB.

En el caso de órdenes Modify, el valor de


los datos puede entregarse únicamente de
manera hexadecimal.

B (Byte) 0,1 MAB2.0.0=7


Modificar byte de salida 0 de palabra 0 a 7
en el módulo 2 de EasyPort USB
Significado
Activación de bit 0, bit 1 y bit 2.

Valor bajo: byte 0 (puerto 1)


Valor alto: byte 1 (puerto 2)

W 0 MAW1.0=101
(Palabra) Modificar palabra de salida 0 a 101
hexadecimal o a 257 decimal en el módulo
1 de EasyPort USB.

226 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

Orden Elemento Tipo de Dirección Ejemplos e indicaciones


Display datos

D E (Entrada) (Bit) 0…15 DE1.0.3


(Display) Display bit de entrada 3 de palabra 0 en
módulo 1 del EasyPort USB

DE2.0.E
Display bit de entrada 14 de palabra 0 en
módulo 2 del EasyPort USB

B (Byte) 0,1 DEB1.0.0


Display bit de entrada 0 de palabra 0 en
módulo 1 del EasyPort USB

DEB3.0.1
Display byte de entrada 1 de palabra 0 en
módulo 3 del EasyPort USB

W 0 DEW1.0
(Palabra) Display palabra de entrada 0 del módulo 1
del EasyPort USB

A (Salida) (Bit) 0…15 DA3.0.5


Display bit de salida 5 de palabra 0 en
módulo 3 del EasyPort USB

DA4.0.C
Display bit de salida 12 de palabra 0 en
módulo 4 del EasyPort USB

B (Byte) 0,1 DAB4.0.0


Display byte de salida 0 de palabra 0 en
módulo 4 del EasyPort USB

DAB2.0.1
Display byte de salida 1 de palabra 0 en
módulo 2 del EasyPort USB

W 0 DAW3.0
(Palabra) Display palabra de salida 0 en módulo 3 del
EasyPort USB

© Festo Didactic GmbH & Co. KG „ 721876 227

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

Además de las órdenes para leer y escribir señales digitales, existen


otras órdenes que se utilizan para controlar el comportamiento de un
EasyPort USB.

Entre ellas, la orden para Activar modalidad de eventos:


MT<n>=xx con <n> como dirección de módulo y xx como valor de tiempo
hexadecimal, xx = 00…FF [ms].

Si está activo el módulo de eventos, el módulo EasyPort USB transmite


automáticamente señales digitales modificadas de entrada al PC. Es
posible ajustar el tiempo más corto hasta el envío de la modificación de
entrada.

Orden Elemento Dirección Ejemplos e indicaciones


Modify de módulo

M (Modify) T 1…4 MT2=01


(Tempori- Activar el módulo de eventos del módulo EasyPort USB con
zador) dirección 2 y tiempo de 1 ms

Descripción: si cambia una señal digital de entrada en el


módulo 2 del EasyPort USB, se envía la palabra de entrada
completa al PC transcurridos 10 segundos.

MT2=00
Finaliza la modalidad de eventos para el módulo 2 del
EasyPort USB. Las señales de entrada únicamente se
transmiten al PC si se solicitan.

228 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

9.6 EasyPort USB procesa señales digitales de entrada/salida y, además,


Órdenes para señales señales analógicas.
analógicas Por ello, el intérprete contiene órdenes
para cargar datos de canales de entrada y salida,
para transmitir una tensión en un canal de salida analógica.

La conversión analógica/digital se realiza con una resolución de 12 bit.


La resolución de 12 bit significa un patrón con 4.096 niveles.

La frecuencia de exploración de las entradas/salidas analógicas es de


0,5 kHz.

En los canales analógicos puede seleccionarse entre dos márgenes de


tensión:
0…10 V
‟10…+10 V

Las dos gráficas muestran la atribución del margen de tensión analógica


al margen numérico digital. Éste siempre es un margen desde 0x0000
hasta 0x7FFF (32767 decimal).

0V 5V 10 V

0x0000 0x3FFF 0x7FFF

Atribución analógica/digital al margen de tensión de 0…10 V

-10 V 0V +10 V

0x0000 0x3FFF 0x 7FFF

Atribución analógica/digital al margen de tensión de ‟10…+10 V

© Festo Didactic GmbH & Co. KG „ 721876 229

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

Cambiar el margen de medición


Para cambiar el margen de medición de 0…10 V a ‟10…+10 V, deberá
utilizarse la orden MRE (modificar margen de entradas) o MRA
(modificar margen de salidas) del intérprete de órdenes.

Orden Descripción

MRE<n>=0 Definir el margen de medición de las entradas analógicas en 0…10 V

Con la dirección <n>, <n>=1…4 se define el margen de medición de las entradas


analógicas en 0…10 V en el módulo EasyPort USB.
Este margen de medición está definido automáticamente después de la inicialización
de un módulo EasyPort USB.

MRE<n>=1 Definir el margen de medición de las entradas analógicas en –10…+10 V

Con la dirección <n>, <n>=1…4 se define el margen de medición de las entradas


analógicas en ‟10…+10 V en el módulo EasyPort USB.

Ejemplo

MRE2=1
Definición del margen de tensión en ‟10…+10 V en el módulo EasyPort USB con la
dirección 2.

Cambio del margen de medición para las entradas analógicas

230 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

Orden Descripción

MRA<n>=0 Definir el margen de medición de las salidas analógicas en 0…10 V

Con la dirección <n>, <n>=1…4 se define el margen de medición de las salidas analógicas
en 0…10 V en el módulo EasyPort USB.
Este margen de medición está definido automáticamente después de la inicialización
de un módulo EasyPort USB.

MRA<n>=1 Definir el margen de medición de las salidas analógicas en –10…+10 V

Con la dirección <n>, <n>=1…4 se define el margen de medición de las salidas analógicas
en ‟10…+10 V en el módulo EasyPort USB.

En el módulo EasyPort USB con la dirección <n>, <n>=1…4, se carga el margen de


medición de ‟10…+10 V para las salidas analógicas.

Cambio del margen de medición para las salidas analógicas

Cargar señales analógicas


El EasyPort USB tiene los canales de entradas analógicas 0…3. Para
cargar una entrada analógica se utiliza la orden DEW indicando la
dirección del módulo EasyPort USB y el número del canal.
Debido al formato de los datos de las entradas analógicas, el margen de
los valores es desde 0x0000 hasta 0x7FF8 (32760 decimal).

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20

0 X X X X X X X X X X X X 0 0 0

Entrada analógica de 12 bit

Formato de los datos de las entradas analógicas

© Festo Didactic GmbH & Co. KG „ 721876 231

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

Orden Respuesta Descripción

DEW<n>.2 EW<n>.2=xxxx Cargar el canal de entrada 0


con xxxx = 0000…7FF8
En el módulo EasyPort USB con la dirección <n>, <n>=1…4
se carga los valores en el canal de entrada 0.

Ejemplo

DEW1.2
Cargar el canal de entrada 0 en el módulo EasyPort USB
con la dirección 1.

DEW<n>.4 EW<n>.4=xxxx Cargar canal de entrada 1


con xxxx = 0000…7FF8
En el módulo EasyPort USB con la dirección <n>, <n>=1…4
se carga los valores en el canal de entrada 1.

DEW<n>.6 EW<n>.6=xxxx Cargar canal de entrada 2


con xxxx = 0000…7FF8
En el módulo EasyPort USB con la dirección <n>, <n>=1…4
se carga los valores en el canal de entrada 2.

DEW<n>.8 EW<n>.8=xxxx Cargar canal de entrada 3


con xxxx = 0000…7FF8
En el módulo EasyPort USB con la dirección <n>, <n>=1…4
se carga los valores en el canal de entrada 3.

Cargar las señales analógicas de entrada

232 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

También es posible cargar las señales analógicas de salida.

Orden Respuesta Descripción

DAW<n>.2 AW<n>.2=xxxx Cargar canal de salida 0


con xxxx = 0000…7FF8
En el módulo EasyPort USB con la dirección <n>, <n>=1…4
se cargan los valores en el canal de salida 0.

DAW<n>.4 AW<n>.4=xxxx Cargar canal de salida 1


con xxxx = 0000…7FF8
En el módulo EasyPort USB con la dirección <n>, <n>=1…4
se cargan los valores en el canal de salida 1.

Ejemplo

DAW3.4
Cargar el canal de salida 1 en el módulo EasyPort USB con
la dirección 3.

Cargar las señales analógicas de salida

Transmitir una tensión en el canal de salidas analógicas


El EasyPort USB tiene dos canales de salidas analógicas 0 y 1. Para
transmitir un valor de tensión se utiliza la orden MAW con indicación de
la dirección del módulo EasyPort USB, del número de canal y del valor.
El margen de valor de las salidas analógicas es también en este caso
desde 0x0000 hasta 0x7FF8 (32760 decimal).

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20

0 X X X X X X X X X X X X 0 0 0

Salida analógica de 12 bit

Formato de datos de las salidas analógicas

© Festo Didactic GmbH & Co. KG „ 721876 233

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

Orden Descripción

MAW<n>.2=xxxx Transmitir canal de salida 0


con xxxx = 0000…7FF8
En el módulo EasyPort USB con la dirección <n>, <n>=1…4 se transmite el valor
de la tensión en el canal de salida 0.

Ejemplo

MAW1.2=2AC5
Transmitir el valor 2AC5 hexadecimal o 10949 decimal como valor de tensión
en el canal de salida 0 en el EasyPort USB con la dirección 1.

MAW<n>.4=xxxx Emitir canal de salida 1


con xxxx = 0000…7FF8
En el módulo EasyPort USB con la dirección <n>, <n>=1…4 se emite el valor de
tensión en el canal de salida 1.

Crear una señal de salida analógica

Indicación de señales analógicas en el display LCD


Los valores de una entrada o salida analógica pueden observarse en el
display LCD del EasyPort USB. Se muestran el canal seleccionado, la
tendencia, el valor de medición expresado con 4 dígitos y la unidad.

El canal analógico para la indicación en el display LCD se selecciona


normalmente de modo directo en el EasyPort USB utilizando las teclas
de las flechas. Con una orden del intérprete de órdenes es posible
suprimir pasajeramente desde el PC el canal seleccionado y cambiar a
otro canal analógico. Para ello deberá utilizarse la orden MF.

234 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

Orden Descripción

MF<n>=01 Forzado del canal de entradas analógicas 0

En el display LCD del módulo EasyPort USB con la dirección <n>, <n>=1…4 se muestran los
valores de medición del canal de entradas analógicas 0.

MF<n>=02 Forzado del canal de entradas analógicas 1

En el display LCD del módulo EasyPort USB con la dirección <n>, <n>=1…4 se muestran los
valores de medición del canal de entradas analógicas 1.

MF<n>=04 Forzado del canal de entradas analógicas 2

En el display LCD del módulo EasyPort USB con la dirección <n>, <n>=1…4 se muestran los
valores de medición del canal de entradas analógicas 2.

MF<n>=08 Forzado del canal de entradas analógicas 3

En el display LCD del módulo EasyPort USB con la dirección <n>, <n>=1…4 se muestran los
valores de medición del canal de entradas analógicas 3.

MF<n>=10 Forzado del canal de salidas analógicas 0

En el display LCD del módulo EasyPort USB con la dirección <n>, <n>=1…4 se muestran los
valores de medición del canal de salidas analógicas 0.

MF<n>=20 Forzado del canal de salidas analógicas 1

En el display LCD del módulo EasyPort USB con la dirección <n>, <n>=1…4 se muestran los
valores de medición del canal de salidas analógicas 1.

MF<n>=00 Anulación del forzado del canal analógico

En el display LCD del módulo EasyPort USB con la dirección <n>, <n>=1…4 se muestran
nuevamente los valores de medición del canal analógico que se ajusta directamente con
las teclas de flechas del EasyPort USB.

Forzado de un canal analógico para indicación en el display LCD

© Festo Didactic GmbH & Co. KG „ 721876 235

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

9.7 El EasyPort USB soporta la inclusión de valores de medición analógicos


Órdenes para la medición mediante órdenes especiales.
de señales analógicas
Con la orden MME (modalidad de medición Modify) se activa el modo
de medición. Entonces se entregan a máxima velocidad los valores de
entrada analógicos cargados. Con el fin de seleccionar el canal de
entradas analógicas para el que se desean emitir los valores
automáticamente, se utiliza la orden MS.

Orden Descripción

MS<n>=01 Activar el canal de entradas analógicas 0

Activar el canal de entradas analógicas 0 para la transmisión automática de valores de


entrada en el módulo EasyPort USB con la dirección <n>, <n>=1…4.

MS<n>=02 Activar el canal de entradas analógicas 1

Activar el canal de entradas analógicas 1 para la transmisión automática de valores de


entrada en el módulo EasyPort USB con la dirección <n>, <n>=1…4.

MS<n>=04 Activar el canal de entradas analógicas 2

Activar el canal de entradas analógicas 2 para la transmisión automática de valores de


entrada en el módulo EasyPort USB con la dirección <n>, <n>=1…4.

MS<n>=08 Activar el canal de entradas analógicas 3

Activar el canal de entradas analógicas 3 para la transmisión automática de valores de


entrada en el módulo EasyPort USB con la dirección <n>, <n>=1…4.

MS<n>=0F Activar todos los canales de entradas analógicas

Activar los canales de entradas analógicas 0…3 para la transmisión automática de


valores de entrada en el módulo EasyPort USB con la dirección <n>, <n>=1…4.

MS<n>=00 Desactivar todos los canales de entradas analógicas

Desactivar todos los canales de entradas analógicas en el módulo EasyPort USB con la
dirección <n>, <n>=1…4. Entonces ya no es posible la transmisión automática de los
valores de entrada.

Activación de canales de entradas analógicas

236 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

Orden Respuesta Descripción

MME=4 ME=4 Activar la modalidad de medición

Formato de los datos En el EasyPort USB se transmiten cíclicamente los valores de


enviados: medición del canal de entradas analógicas activado. La
yxx<CR> transmisión se realiza en ciclos de 5 ms.

El formato de datos xx es un formato binario y es de 2 byte.

«y» es la identificación del canal activado anteriormente.


y=2: Canal de entradas analógicas 0
y=4: Canal de entradas analógicas 1
y=6: Canal de entradas analógicas 2
y=8: Canal de entradas analógicas 3

Ejemplo: transmitir canal de entradas 0

MS1=01<CR> S1=01<CR> Activar el canal de entradas analógicas 0 del EasyPort USB


con dirección 1.

MME=4<CR> ME=4<CR> Activación de la modalidad de medición.


2xx<CR> A continuación, el EasyPort USB transmite los valores de
2xx<CR> medición del canal de entradas analógicas 0.

Activación de la modalidad de medición para canales de entradas analógicas

Para la indicación de los valores de medición analógicos en el display


LCD, el ajuste predeterminado es V (voltios).

En el caso de operaciones de medición y regulación, con frecuencia


tienen importancia otras magnitudes físicas. Por ello es posible atribuir
una magnitud diferente a cada canal analógico. Si se selecciona el canal
analógico para la indicación en el display LCD, se muestra la magnitud
física seleccionada en el PC.

¡Téngase en cuenta que no se realiza una conversión entre las


magnitudes físicas!

© Festo Didactic GmbH & Co. KG „ 721876 237

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

Para el ajuste de la magnitud física deberá utilizarse la orden MU.

Indicación
Introduciendo manualmente la magnitud directamente utilizando las
teclas de las flechas del EasyPort USB, se sobrescribe la magnitud
atribuida desde el PC.

Orden Descripción

MU<n>.01=xx Atribuir una magnitud al canal de entradas analógicas 0

Para el canal de entradas analógicas 0 se muestra la magnitud xx en el display LCD del


módulo EasyPort USB con la dirección <n>, <n>=1…4.

Explicación:
xx=00: V
xx=01: bar
xx=02: PSI
xx=03: MPa
xx=04: l/min
xx=05: oC

MU<n>.02=xx Atribuir una magnitud al canal de entradas analógicas 1

Para el canal de entradas analógicas 1 se muestra la magnitud xx en el display LCD del


módulo EasyPort USB con la dirección <n>, <n>=1…4.

MU<n>.04=xx Atribuir una magnitud al canal de entradas analógicas 2

Para el canal de entradas analógicas 2 se muestra la magnitud xx en el display LCD del


módulo EasyPort USB con la dirección <n>, <n>=1…4.

MU<n>.08=xx Atribuir una magnitud al canal de entradas analógicas 3

Para el canal de entradas analógicas 3 se muestra la magnitud xx en el display LCD del


módulo EasyPort USB con la dirección <n>, <n>=1…4.

Atribución de una magnitud física para su representación en el display LCD

238 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

Orden Descripción

MU<n>.10=xx Atribuir una magnitud al canal de salidas analógicas 0

Para el canal de salidas analógicas 0 se muestra la magnitud xx en el display LCD


del módulo EasyPort USB con la dirección <n>, <n>=1…4.

MU<n>.20= xx Atribuir una magnitud al canal de salidas analógicas 1

Para el canal de salidas analógicas 1 se muestra la magnitud xx en el display LCD


del módulo EasyPort USB con la dirección <n>, <n>=1…4.

Atribución de una magnitud física para su representación en el display LCD (continuación)

Es posible atribuir a cada magnitud física un factor de multiplicación.


El valor que aparece en el display LCD se multiplica por este factor.
De esta manera es posible adaptar el valor de medición a la magnitud
física, para que sea más informativa. El factor de multiplicación se
define con la orden MG.

Deberá tenerse en cuenta que el factor de multiplicación no altera el


valor de medición que se recibe en el canal analógico. El factor de
multiplicación únicamente tiene efecto en la representación de los
valores en el display LCD.

Para cada magnitud física existe un factor de multiplicación


predeterminado.

© Festo Didactic GmbH & Co. KG „ 721876 239

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

Magnitud física Factor de multiplicación


predeterminado

V 10.0

bar 1.0

PSI 1.0

MPa 1.0

l/min 1.0
o
C 1.0

Ejemplo
Suponga que está captando los valores de un sensor de presión
neumático. 10 V corresponden a una presión de 6 bar. Con el fin de ver
los valores expresados en bar en el display LCD, deberá ajustar la
magnitud bar y utilizar el factor de multiplicación 6.

MU1.01=01 Atribución de la magnitud bar al canal de


entradas 0 del módulo EasyPort USB con la
dirección 1. En el display LCD aparece la
presión expresada en bar.

MG1.1=6.00 El valor de medición que aparece en el


display del módulo 1 del EasyPort USBD se
multiplica por el factor 6.00.

240 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

Orden Descripción

MG<n>.0=x.xx Atribución de un factor de multiplicación a la magnitud física V

El valor de medición correspondiente a V que aparece en el display LCD del módulos


EasyPort USB con la dirección <n>, <n>=1…4 se multiplica por el factor x.xx .

x.xx representa un valor decimal de 3 dígitos.

MG<n>.1=x.xx Atribución de un factor de multiplicación a la magnitud física bar

El valor de medición correspondiente a bar que aparece en el display LCD del


módulos EasyPort USB con la dirección <n>, <n>=1…4 se multiplica por el factor x.xx .

MG<n>.2=x.xx Atribución de un factor de multiplicación a la magnitud física PSI

El valor de medición correspondiente a PSI que aparece en el display LCD del


módulos EasyPort USB con la dirección <n>, <n>=1…4 se multiplica por el factor x.xx ..

MG<n>.3=x.xx Atribución de un factor de multiplicación a la magnitud física MPa

El valor de medición correspondiente a MPa que aparece en el display LCD del


módulos EasyPort USB con la dirección <n>, <n>=1…4 se multiplica por el factor x.xx .

MG<n>.4=x.xx Atribución de un factor de multiplicación a la relación l/min

El valor de medición correspondiente a l/min que aparece en el display LCD del


módulos EasyPort USB con la dirección <n>, <n>=1…4 se multiplica por el factor x.xx .

MG<n>.5=x.xx Atribución de un factor de multiplicación a la magnitud física oC

El valor de medición correspondiente a °C que aparece en el display LCD del


módulos EasyPort USB con la dirección <n>, <n>=1…4 se multiplica por el factor x.xx .

Atribución de un factor multiplicador para la representación en el display LCD

© Festo Didactic GmbH & Co. KG „ 721876 241

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

9.8 A los dos contadores rápidos 0 y 1 del EasyPort USB se accede


Órdenes para contador mediante órdenes. Con la orden MC se activa y desactiva el contador,
rápido mientras que con la orden DC se obtiene el estado de conteo actual.
Impulsos de conteo que se evalúan:
Contador 0 el bit de entrada 0 del puerto 1,
Contador 1 el bit de entrada 0 del puerto 2.

Orden Respuesta Descripción

MC<n>.<m>=1 C<n>.<m>=1 Activación del contador rápido

En el módulo EasyPort USB con la dirección <n>, <n>=1…4 se


activa el contador rápido con el número <m>, <m>=0,1.

Ejemplo

MC1.0=1
En el módulo EasyPort USB con dirección 1 se activa el
contador 0.

MC<n>.<m>=0 C<n>.<m>=0 Desactivación del contador rápido

En el módulo EasyPort USB con la dirección <n>, <n>=1…4 se


desactiva el contador rápido con el número <m>, <m>=0,1.

Activación y desactivación del contador rápido

242 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

Orden Respuesta Descripción

DC<n>.<m> C<n>.<m>=xxxx Lectura del conteo del contador

En el módulo EasyPort USB con la dirección <n>, <n>=1…4 se


entrega el estado de conteo <m>=0,1 del contador rápido con el
número <m>.

El estado del contador se muestra como número hexadecimal


xxxx.

Ejemplo

DC1.0<CR> C1.0=2AC5<CR>
Lectura del estado de conteo del contador 0 del módulo
EasyPort USB con la dirección 1. El estado de conteo es 2AC5
hexadecimal o 10949 decimal.

Lectura del estado del contador

9.9 Con el programa de terminal es posible establecer la conexión con el


Ejemplo: EasyPort USB y enviar y recibir órdenes a través de la interface serie.
Creación de una conexión
con EasyPort USB Para que funcionen los programas de terminal, es necesario que reciban
las siguientes informaciones,
La interface serie que se utiliza para la comunicación,
El ajuste necesario de la interface.

Para establecer una conexión con el EasyPort USB, deberá procederse


de la siguiente manera:
1. Conectar el EasyPort al PC, aplicar tensión al EasyPort USB.
2. Definir la interface serie para la conexión USB.
3. Iniciar el programa de terminal.
4. Introducir los ajustes correspondientes a la interface serie.
5. Transmitir las órdenes al EasyPort.

Para explicar la conexión, se recurre al ejemplo del programa Hyper


Terminal de Windows.

© Festo Didactic GmbH & Co. KG „ 721876 243

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

Forma de proceder
1. Conecte el EasyPort USB al PC.
2. Conecte la alimentación de tensión del EasyPort USB.
3. En el menú Inicio, seleccione Configuración y, a continuación, Panel
de control.
4. Seleccione Sistema.
5. Se abre la ventana Propiedades del sistema.
Haga clic en la pestaña Hardware y, a continuación, en el botón
Administrador de dispositivos.

244 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

6. En Puertos (COM & LPT) constatará que como interface serie se


utiliza el puerto COM5.

7. A continuación, inicie el programa HyperTerminal. Este programa se


encuentra en Programas\Accesorios\Comunicación.

© Festo Didactic GmbH & Co. KG „ 721876 245

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

8. En primer lugar, establezca una nueva conexión. Para esa conexión,


defina el nombre EasyPort USB.

9. A continuación se consultan los ajustes correspondientes a la nueva


conexión.
En la ventana Connect To, introduzca COM 5 en Connect using, es
decir, la interface que comprobó anteriormente.

246 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

10. Los ajustes necesarios para la transmisión de los datos en serie a


través de la interface COM se explican en el presente manual.
Los ajustes correctos se indican a continuación:

© Festo Didactic GmbH & Co. KG „ 721876 247

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

11. Las demás datos deberá introducirlos en la ventana Propiedades de


EasyPort USB. El diálogo correspondiente se encuentra en el menú
Archivo, en el punto Propiedades. Haga clic en la pestaña Settings.

248 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

12. Después de hacer clic en la pestaña Settings, haga clic en el botón


ASCII Setup.

© Festo Didactic GmbH & Co. KG „ 721876 249

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

13. En la ventana ASCII Setup realice los ajustes pertinentes, tal como
se indica a continuación:

14. Así concluye la introducción de los datos necesarios para establecer


la conexión de comunicación. A continuación, podrá comunicarse
con el EasyPort USB.

250 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

15. En primer lugar, ejecute la orden setup0. Con esta orden se inicializa
el módulo EasyPort USB.
Las órdenes deberán concluirse con la tecla INTRO.

16. A modo de respuesta se recibe del módulo EasyPort USB la cadena


de caracteres setup1. Ello significa lo siguiente: en el módulo
EasyPort USB se ha ajustado la dirección 1.
El cursor salta a la siguiente línea.

© Festo Didactic GmbH & Co. KG „ 721876 251

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

17. A continuación podrá enviar más órdenes al módulo EasyPort USB y,


por ejemplo, consultar el estado. Para ello, envíe la orden DS.

18. La respuesta S=02 indica que el módulo EasyPort USB fue


inicializado correctamente.

252 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Intérprete de órdenes de EasyPort USB

19. Si dispone de una caja de simulación, puede activar las entradas en


el EasyPort USB y consultar el estado de esas entradas.

20. En el ejemplo que aquí se comenta, el EasyPort USB indica que el


estado de las entradas digitales tiene el valor 3. Ello significa que se
han activado las entradas 0 y 1 del puerto 1

21. Si quiere concluir la conexión de comunicación entre el programa


HyperTerminal y EasyPort USB, active Disconnect en el menú Call.

© Festo Didactic GmbH & Co. KG „ 721876 253

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


10. Crear aplicaciones propias

Al crear aplicaciones propias con intercambio de datos con el EasyPort


USB, utilice el elemento de control ActiveX de EasyPort.

El elemento de control ActiveX es la interface de programación que


conecta con EasyPort y admite lenguajes de programación como Visual
C++, Visual Basic for Applications o LabVIEW.

En la ayuda online del elemento de control ActiveX se describe


detalladamente lo siguiente,
El nombre con el que se incluye el elemento de control ActiveX en el
proyecto de software,
Los métodos disponibles para el intercambio de datos y cómo
aplicarlos,
La forma de proceder para establecer una comunicación con
EasyPort USB.

El elemento de control EasyPort ActiveX se encuentra en el CD-ROM


incluido en el suministro.

Al instalar el elemento de control EasyPort ActiveX en el PC, se crea el


grupo de programas EasyPort en el menú Inicio. Allí también se
encuentra la ayuda online correspondiente, además de una aplicación
de demostración con el elemento de control ActiveX.

El EasyPort CD-ROM incluye más ejemplos relacionados con la


utilización del elemento de control ActiveX. Los ejemplos muestran
cómo incluir el elemento de control ActiveX en Excel, LabVIEW, InTouch
o FluidSIM.

Una vez instalados los ejemplos, estos también aparecen en el grupo de


programas EasyPort en el menú Inicio.

254 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


Table des matières

Français Les chapitres 7 à 10 se trouvent dans le fichier PDF


du manuel de l'EasyPort USB figurant sur le CD-ROM fourni.

1. Introduction ______________________________________ 257


1.1 Aperçu de l'EasyPort USB ___________________________ 257
1.2 Remarques importantes_____________________________ 263
1.3 Engagement de l'exploitant __________________________ 264
1.4 Engagement des étudiants __________________________ 264
1.5 Dangers liés à l'utilisation de l'interface de process
EasyPort _________________________________________ 264
1.6 Garantie et responsabilité ___________________________ 265
1.7 Utilisation conforme ________________________________ 265

2. Consignes de sécurité ______________________________ 266

3. Caractéristiques techniques _________________________ 267


3.1 Caractérisques générales de l'EasyPort USB ____________ 267
3.2 Interface SysLink pour données numériques ____________ 268
3.3 Connecteur Sub D pour données analogiques ___________ 270
3.4 Interfaces de données avec le PC _____________________ 271
3.5 Alimentation ______________________________________ 272

4. Transport/Déballage/Fourniture ______________________ 273

5. Présentation et fonctionnement ______________________ 274


5.1 Présentation de l'EasyPort USB _______________________ 274
5.2 Éléments de commande _____________________________ 276
5.3 Fixation de l'EasyPort USB ___________________________ 277
5.4 Connexion de l'EasyPort USB au PC et au process ________ 278
5.5 Réglage de l'adresse sur l'EasyPort USB _______________ 280

6. Mise en service ____________________________________ 281

7. Interfaces logicielles avec l'EasyPort USB ______________ 288


7.1 Aperçu de la communication avec l'EasyPort USB ________ 288
7.2 Communication via EzOPC ___________________________ 290

© Festo Didactic GmbH & Co. KG „ 721876 255

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


Table des matières

8. Contrôle ActiveX de l'EasyPort USB____________________ 294


8.1 Utilisation du contrôle ActiveX _______________________ 294
8.2 Installation du contrôle ActiveX _______________________ 295
8.3 Exemple : application de démonstration de l'EasyPort ____ 296

9. Interpréteur d'instructions de l'EasyPort USB ___________ 303


9.1 Interpréteur d'instructions___________________________ 303
9.2 Structure des instructions ___________________________ 304
9.3 Niveau de transmission _____________________________ 306
9.4 Instructions de diagnostic et initialisation ______________ 308
9.5 Instructions pour signaux numériques _________________ 310
9.6 Instructions pour signaux analogiques _________________ 313
9.7 Instructions de mesure de signaux analogiques _________ 320
9.8 Instructions pour compteurs rapides __________________ 326
9.9 Exemple : établissement d'une connexion
à l'EasyPort USB ___________________________________ 327

10. Création de vos propres applications __________________ 338

Contenu du CD-ROM
Simulation de modèles de process EasyVeep
Serveur OPC EasyOPC
Manuel de l'EasyPort USB
Manuel d'EasyVeep
Pilotes USB pour EasyPort
Contrôle ActiveX de l'EasyPort USB
Exemples de pilotage
‟ Exemple avec Excel
‟ Exemple avec FluidSIM®
‟ Exemple avec InTouch
‟ Exemple avec LabVIEW
‟ Exemple avec VC6

256 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introduction

1.1 Qu'est-ce que l'EasyPort USB ?


Aperçu de L'interface de process EasyPort USB sert à la transmission
l'EasyPort USB bidirectionnelle de signaux de process entre un process de commande
réel en technique très basse tension (24 V=) et un PC. Afin d'exclure les
rétroactions du process sur le PC, la transmission des données entre
l'EasyPort USB et le PC fait systématiquement appel à des interfaces à
séparation galvanique.

Les possibilités d'utilisation de l'EasyPort USB sont multiples:


commande d'un process de commande réel par une commande
tournant sur le PC
commande d'un modèle de process simulé par un API réel
régulation d'un process réel par un programme tournant sur le PC
acquisition et dépouillement de mesures effectuées sur un process
réel.

© Festo Didactic GmbH & Co. KG „ 721876 257

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introduction

Exemple d'application: configuration à process simulé et API réel

Dans toutes ces applications, l'EasyPort USB relie le monde réel au


monde virtuel du PC.

L'interface de process EasyPort USB dispose de 16 entrées et 16 sorties


numériques (TOR) ainsi que de 4 entrées et 2 sorties analogiques.

258 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introduction

4 modules EasyPort USB maximum peuvent se connecter à un PC par


l'intermédiaire d'un concentrateur USB (« hub ») ou de 4 connecteurs
USB. Il convient dans ce cas de noter que les adresses des modules
sont différentes.

Configuration à 4 modules EasyPort USB

Pour l'échange des signaux de process entre l'EasyPort USB et le


logiciel du PC, on dispose du serveur OPC EzOPC ou du contrôle ActiveX
de l'EasyPort USB.

© Festo Didactic GmbH & Co. KG „ 721876 259

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introduction

Comment utiliser l'EasyPort USB ?


Le tableau qui suit vous montre comment utiliser l'interface de process
EasyPort USB en même temps que d'autres produits Festo Didactic.

Le process de commande réel peut être


un process d'automatisation à actionneurs et capteurs,
un API réel,
une boîte de simulation.

Différents logiciels sont également à votre disposition pour le monde


virtuel. Il existe ainsi des logiciels de
commande,
régulation,
acquisition de mesures et,
visualisation.

L'EasyPort est très simple à utiliser dans ces configurations déjà


préparées.

260 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introduction

Commande d'un Commande d'un Mesure Régulation


process réel process simulé

Logiciel, utilisé pour la Logiciel, utilisé pour la Logiciel, utilisé pour Logiciel, utilisé pour
commande de process : simulation de process : l'acquisition de la régulation :
mesures :
‟ FluidSim (numérique ‟ EasyVeep
uniquement) ‟ FluidSim ‟ FluidLab PA ‟ FluidLab PA
‟ S7‟PLCSIM ‟ CIROS ‟ FluidLab P ‟ FluidLab P
‟ API logiciel CoDeSys ‟ FluidLab H à partir de la
version 2.0

Interface Interface Interface Interface


EasyPort USB : EasyPort USB : EasyPort USB : EasyPort USB :

Interface Interface Interface Interface


numérique/analogique numérique numérique/analogiq numérique/analogiq
ue ue
L'EasyPort USB est L'EasyPort USB est
l'interface entre PC et l'interface entre PC et L'EasyPort USB est L'EasyPort USB est
process réel. API. l'interface entre PC et l'interface entre PC et
Le process se L'API commande le capteurs réels. boucle de régulation
commande depuis le PC. process simulé sur le réelle.
PC.

Process réel: Commande réelle: Capteurs réels: Boucle de régulation


réelle:
‟ Boîte de simulation, ‟ API quelconque ‟ Boîte de simulation,
numérique/analogique ‟ Boîte de simulation, numérique/analogiq ‟ Boîte de simulation,
‟ MPS PA numérique ue numérique/analogiq
‟ MPS ‟ API EduTrainer ‟ MPS PA ue
‟ TP301 ‟ Tableau API ‟ TP210 ‟ MPS PA
‟ TP610 ‟ TP210
‟ TP610

Exemples d'applications de l'EasyPort USB

© Festo Didactic GmbH & Co. KG „ 721876 261

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introduction

Il est de même possible d'intégrer l'interface de process EasyPort USB


dans ses propres applications. Pour ce faire, il vous suffit d'utiliser le
contrôle ActiveX de l'EasyPort USB. C'est alors vous qui en programmez
la commande en
Visual Basic,
C++,
LabVIEW ou
InTouch.

Que vous apprend ce manuel ?


Le présent manuel décrit
comment se présente l'interface de process EasyPort USB et
comment elle fonctionne,
quelles sont les consignes de sécurité à respecter pour utiliser
l'EasyPort USB,
quelles sont les interfaces et les instructions qui existent pour la
communication avec l'EasyPort USB,
comment faire exécuter les instructions de l'EasyPort USB avec un
simple programme terminal,
comment utiliser les méthodes du contrôle ActiveX à l'aide d'une
application de démonstration,
où trouver d'autres exemples d'intégration de l'EasyPort USB dans
vos propres applications.

262 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introduction

Le manuel complet, du chapitre 1 au chapitre 10, se trouve sous forme


de fichier PDF sur le CD-ROM fourni.

1.2 La condition de base à l’utilisation en toute sécurité et au parfait


Remarques importantes fonctionnement de l'interface de process EasyPort USB est de bien
connaître les consignes élémentaires et prescriptions de sécurité.

Le présent manuel contient les indications les plus importantes pour


utiliser l'EasyPort USB en toute sécurité.

Les consignes de sécurité, notamment, doivent être respectées par tous


ceux qui travaillent sur l'EasyPort USB.

Il conviendra en outre de respecter les règles et prescriptions de


prévention des accidents en vigueur sur le site considéré.

© Festo Didactic GmbH & Co. KG „ 721876 263

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introduction

1.3 L’exploitant s’engage à ne laisser travailler sur l'EasyPort USB que des
Engagement de personnes:
l'exploitant au fait des prescriptions fondamentales de sécurité et de prévention
des accidents et ayant été initiées à la manipulation de l'EasyPort
USB,
ayant lu et compris le chapitre sécurité et les avertissements du
présent manuel.

Le respect de la sécurité par le personnel sera vérifié à intervalles


réguliers.

1.4 Toutes les personnes chargées de travailler sur l'EasyPort USB


Engagement des s’engagent, avant de commencer, à:
étudiants lire le chapitre sécurité et les avertissements du présent manuel,
respecter les prescriptions fondamentales de sécurité et de
prévention des accidents.

1.5 L'interface de process EasyPort USB est construite conformément à


Dangers liés à l'utilisation l’état de l’art et aux règles techniques reconnues en matière de sécurité.
de l'interface de process Son utilisation peut néanmoins mettre en danger la vie et la santé de
EasyPort l’utilisateur ou de tiers ainsi qu’affecter l’intégrité de la machine ou
d’autres biens.

L'interface de process EasyPort USB ne doit s’utiliser que:


pour l’usage auquel elle est destinée et
en parfait état sur le plan de la sécurité.

Les défauts susceptibles d’affecter la sécurité doivent être


immédiatement éliminés !

264 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


1. Introduction

1.6 Nos « Conditions générales de vente et de livraison » sont


Garantie et systématiquement applicables. Elles sont à la disposition de l’exploitant
responsabilité au plus tard à la signature du contrat. Les recours en garantie légale et
responsabilité civile pour dommages corporels et matériels sont exclus
si ces derniers sont dus à l’une ou plusieurs des causes suivantes:
utilisation non conforme de l'EasyPort USB,
mise en service et manipulation non conformes de l'EasyPort USB,
utilisation de l'EasyPort USB en présence d’équipements de sécurité
défectueux ou de dispositifs de sécurité et de protection mal montés
ou non opérationnels,
non-respect des consignes de mise en service et d'utilisation
données dans le manuel,
transformations arbitraires apportées à l'EasyPort USB,
réparations non conformes aux règles de l’art,
catastrophes dues à l’action de corps étrangers et force majeure.

Festo Didactic décline par conséquent toute responsabilité quant aux


dommages causés aux étudiants, à l’établissement de formation et/ou
à des tiers du fait de l’utilisation de l'EasyPort USB en dehors du
contexte d’une pure formation, à moins que ces dommages ne soient
imputables à une faute intentionnelle ou à une négligence grossière de
Festo Didactic.

1.7 L'interface de process EasyPort USB est exclusivement destinée à la


Utilisation formation initiale et continue dans le domaine de l'automatisation et de
conforme la technique. Il incombe à l’établissement de formation et/ou aux
formateurs de faire respecter par les étudiants les consignes de sécurité
décrites dans les manuels qui l'accompagnent.

L'utilisation conforme implique également le respect de toutes les


consignes données dans le manuel.

© Festo Didactic GmbH & Co. KG „ 721876 265

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


2. Consignes de sécurité

N’établissez et ne coupez les connexions électriques qu’en


l’absence de tension!
N'utilisez que des très basses tensions de 24 V CC maximum pour
l'alimentation et sur les entrées/sorties de l'EasyPort USB.
Utilisez exclusivement l'EasyPort USB dans des systèmes dans
lesquels un état sûr est automatiquement atteint en cas de coupure
de la tension.
Utilisez exclusivement les câbles recommandés par Festo Didactic
pour les connexions électriques entre l'interface de process
EasyPort USB et le process.
Respectez les indications données dans les fiches techniques des
appareils raccordés, en particulier toutes les consignes de sécurité!

266 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Caractéristiques techniques

3.1 Interface de process EasyPort USB D16A


Caractérisques générales
de l'EasyPort USB Tension de service 24 V CC +/‟ 10 %

Consommation 3 VA

Nombre de sorties 16 numériques (TOR) 24 V CC,


2 analogiques 0…10 V CC ou
‟10…+10 V CC,
résolution de 12 bits

Capacité de charge 0,7 A par sortie numérique


10 mA par sortie analogique

Protection contre les Oui


courts-circuits

Nombre d’entrées 16 numériques (TOR) 24 V CC,


4 analogiques 0…10 V CC ou
‟10…+10 V CC,
résolution de 12 bits

Seuil de commutation 12 V CC
des entrées numériques

Hystérésis des entrées 3V


numériques

Filtre 5 ms

Nombre de compteurs 2 entrées utilisables en compteurs


rapides,
fmax = 20 kHz / Uin = 5…24 V CC

Interfaces de RS232, à séparation galvanique


communication USB2.0, à séparation galvanique

Protocole ASCII, 115,2 Kbaud, 8, N, 1

Caractérisques techniques générales de l'EasyPort USB

© Festo Didactic GmbH & Co. KG „ 721876 267

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Caractéristiques techniques

Interface de process EasyPort USB D16A

Degré de protection IP 20

Marque CE Selon directive CEM européenne

Température ambiante 0…55 °C/0…70 °C


admissible en service/au
stockage

Dimensions en mm (L x l 135 x 167 x 37


x H)

Poids en kg 0,65

Caractérisques techniques générales de l'EasyPort USB (suite)

3.2 8 entrées numériques (TOR) et 8 sorties numériques (TOR) sont câblées


Interface SysLink sur l'EasyPort USB sur un connecteur SysLink femelle à 24 contacts. Les
pour données numériques entrées 0 du port 1 et du port 2 peuvent en outre s'utiliser en entrées de
comptage rapides. Les entrées de comptage peuvent s'utiliser avec des
niveaux de tension de 5...24 V CC.

268 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Caractéristiques techniques

Connecteur IEE 488, 24 contacts, femelle

Port 1 Broche Port 2 Broche

OUTPUT 0 1 OUTPUT 0 1

OUTPUT 1 2 OUTPUT 1 2

OUTPUT 2 3 OUTPUT 2 3

OUTPUT 3 4 OUTPUT 3 4

OUTPUT 4 5 OUTPUT 4 5

OUTPUT 5 6 OUTPUT 5 6

OUTPUT 6 7 OUTPUT 6 7

OUTPUT 7 8 OUTPUT 7 8

INPUT 0 13 INPUT 0 13

INPUT 1 14 INPUT 1 14

INPUT 2 15 INPUT 2 15

INPUT 3 16 INPUT 3 16

INPUT 4 17 INPUT 4 17

INPUT 5 18 INPUT 5 18

INPUT 6 19 INPUT 6 19

INPUT 7 20 INPUT 7 20

0 V CC 11/12/ 0 V CC 11/12/
23/24 23/24

24 V CC 9/10/ 24 V CC 9/10/
21/22 21/22

Caractéristique techniques de l'interface SysLink pour données numériques

© Festo Didactic GmbH & Co. KG „ 721876 269

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Caractéristiques techniques

3.3 Les 4 entrées analogiques et les 2 sorties analogiques de l'EasyPort


Connecteur Sub D USB sont câblées sur un connecteur Sub D femelle à 15 contacts. La
pour données conversion analogique-numérique s'opère avec une résolution de 12
analogiques bits. La fréquence d'échantillonnage est de 0,5 kHz.

Connecteur Sub D, 15 contacts, femelle

Port 3 Broche

OUTPUT 0 1

OUTPUT 1 2

0V 3

(libre) 4

(libre) 5

0V 6

INPUT 1 7

INPUT 2 8

(libre) 9

(libre) 10

+10 V CC REF. 11

(libre) 12

(libre) 13

INPUT 3 14

INPUT 4 15

Caractéristiques techniques du connecteur Sub D pour signaux analogiques

270 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Caractéristiques techniques

3.4 L'échange de données avec le PC s'opère soit via l'interface série RS


Interfaces de données 232, soit via l'interface USB de l'EasyPort USB. La vitesse de
avec le PC transmission est de 115,2 Kbaud.

RS 232 = Broche
Connecteur Sub D, 9 contacts,
femelle

(libre) 1

Réception de données RxD 2

Émission de données TxD 3

(libre) 4

Masse du signal SGnd 5

(libre) 6

(libre) 7

(libre) 8

(libre) 9

Caractéristiques techniques de l'interface RS 232

Le raccordement au PC peut s'opèrer à l'aide d'un câble usuel du


commerce à connecteurs à 9 contacts.

Interface USB
L'EasyPort USB est doté d'une interface USB 2.0 à séparation
galvanique. 4 modules EasyPort USB maximum peuvent être associés
par l'intermédiaire d'un concentrateur (« hub ») USB. Il convient dans ce
cas de noter que les adresses des modules EasyPort sont différentes.
Les adresses permises vont de 1 à 4.

Pour raccorder l'EasyPort USB au port USB du PC ou à un concentrateur,


utilisez le câble USB A-B fourni.

© Festo Didactic GmbH & Co. KG „ 721876 271

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


3. Caractéristiques techniques

3.5 L'alimentation 24 V CC de l'EasyPort USB s'applique de l'extérieur. Elle


Alimentation peut l'être soit par l'intermédiaire des ports 1 et 2, soit par
l'intermédiaire de deux vis disposées à l'arrière de l'EasyPort USB. Deux
câble à fiches de sécurité de 4 mm sont fournis.

272 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


4. Transport/Déballage/Fourniture

Transport
L'interface de process EasyPort USB est livrée en carton.

Le carton ne doit ni se renverser ni tomber.

Les dommages subis lors du transport doivent être immédiatement


signalés au transporteur et à Festo Didactic.

Déballage
Une fois déballée l'interface de process EasyPort USB, vérifiez qu'elle
n'est pas endommagée. Les endommagements doivent être
immédiatement signalés au transporteur et à Festo Didactic.

Fourniture
La fourniture comprend les composants suivants:
interface de process EasyPort USB,
câbles de raccordement 24 V CC à connecteurs de sécurité de 4 mm,
câble USB,
CD-ROM avec logiciel et documentation :
simulateur de process EasyVeep, logiciel EzOPC, pilotes USB,
contrôle ActiveX comme interface de programmation avec l'EasyPort
USB, avec aide en ligne et exemples de programmes,
manuel de l'EasyPort USB.

Vérifiez la conformité de la fourniture au bon de livraison et à la


commande.

Les non-conformités éventuelles doivent être immédiatement signalées


à Festo Didactic.

© Festo Didactic GmbH & Co. KG „ 721876 273

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Présentation et fonctionnement

5.1
Présentation de
l'EasyPort USB

(1) Connecteur Sub D femelle (port 3) (2) Interface USB


(3) Interface RS 232 (4) Bornes à vis d'alimentation
(5) Touches   (6) LED STATUS (verte)
(7) LED ERROR (rouge) (8) Interfaces SysLink (port 1 et port 2)
(9) LED d'indication d'état des sorties numériques (jaunes)
(10) LED d'indication d'état des entrées numériques (vertes)
(11) Écran LCD d'affichage des signaux analogiques et de l'adresse de l'EasyPort

Présentation de l'EasyPort USB

274 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Présentation et fonctionnement

L'interface de process EasyPort USB possède :


deux interfaces SysLink destinées à la lecture de 8 signaux d'entrée
numériques (TOR) et à la délivrance de 8 signaux de sortie
numériques (TOR).
l'entrée 0 de chaque interface SysLink peut aussi s'utiliser en entrée
de comptage rapide.
un connecteur Sub D destiné à la lecture de 4 signaux d'entrée
analogiques et à la délivrance de 2 signaux de sortie analogiques.
des interfaces USB 2.0 et RS 232 série destinées au couplage de
l'EasyPort USB à un PC.
deux bornes à vis d'alimentation en 24 V CC.
16 LED (vertes) d'indication d'état des entrées numériques.
16 LED (jaunes) d'indication d'état des sorties numériques.
un écran LCD d'affichage d'un signal analogique sélectionné.
Paramètres affichés : canal, unité, tendance et valeur mesurée (4
chiffres).
deux touches de réglage du canal analogique, de sélection de l'unité
physique de la valeur analogique et de réglage de l'adresse de
l'EasyPort USB.

Ne sont pas compris dans la fourniture


bloc d’alimentation 24 V CC,
câble de raccordement à l'interface SysLink,
câble de raccordement au connecteur Sub-D.

© Festo Didactic GmbH & Co. KG „ 721876 275

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Présentation et fonctionnement

5.2 PORT 3 USB RS 232 24V 0V


Éléments de commande

EasyPort USB
Error Status

IN

OUT
0 7 0 7

PORT 1 PORT 2

Panneau de commande et d'affichage de l'EasyPort USB

Le panneau de commande de l'EasyPort USB comprend les éléments


suivants:
LED ERROR
Quand un court-circuit est détecté sur l'une des sorties, la LED rouge
ERROR s'allume. Les sorties de l'EasyPort sont alors déconnectées.
Cette LED s'allume aussi brièvement à la mise sous tension de
l'EasyPort USB. Elle s'éteint au cours du test de mise sous tension.
LED STATUS
La LED verte STATUS indique deux états:
‟ Clignotement à 1 Hz :
État après mise sous tension ; le module EasyPort USB ne
communique pas encore.
‟ Clignotement modulé:
Le module EasyPort USB est adressé ; l'adresse est indiquée au
rythme de 2 s par le nombre de signaux lumineux.

276 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Présentation et fonctionnement

Écran LCD
La première ligne affiche les tensions d'entrée ou de sortie du signal
analogique sélectionné, sous forme de valeur et, en plus, de
bargraphe.
La deuxième ligne indique le numéro de canal et le sens du signal.
On a : In = signal d'entrée, Out = signal de sortie.
LED IN 0...7
Indication d'état des entrées numériques (TOR) par LED vertes
LED OUT 0...7
Indication d'état des sorties numériques (TOR) par LED jaunes
Touches
La touche  permet de sélectionner le canal analogique affiché à
l'écran LCD.
Le numéro de canal Ch possible pour signal d'entrée est: 0…3.
Le numéro de canal Ch possible pour signal de sortie est: 0…1.
La touche  permet de sélectionner différentes unités physiques.
Les unités proposées sont: V, bar, PSI, MPa, l/min, °C.
L'actionnement simultané des deux touches fléchées active le
réglage d'adresse.

5.3 L'adaptateur référencé 549806 permet de fixer directement l'EasyPort


Fixation de USB sur une plaque profilée.
l'EasyPort USB L'adaptateur se fixe par trois vis M4 sous le module EasyPort USB.

© Festo Didactic GmbH & Co. KG „ 721876 277

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Présentation et fonctionnement

5.4 La connexion entre le PC et l'interface de process EasyPort USB fait


Connexion de l'EasyPort appel à une interface RS 232 à séparation galvanique ou à une interface
USB au PC et au process USB également à séparation galvanique.

Si vous utilisez l'interface USB pour la communication, reliez le PC


et l'EasyPort USB à l'aide du câble USB fourni.
Si vous voulez utiliser l'interface série pour la communication, vous
pouvez utiliser comme câble de liaison n'importe quel câble série
usuel du commerce à connecteurs à 9 contacts.

Connexion de l'EasyPort USB au PC et au process

Différents câbles de données d'E/S sont disponibles pour relier


l'EasyPort USB au process de commande réel.
Le câble d'E/S dont vous avez besoin dépend de l'application de
commande.

Les applications les plus fréquentes de l'EasyPort USB sont récapitulées


dans le graphique qui suit.

278 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Présentation et fonctionnement

Ce graphique vous indique dans quels cas vous devez utiliser un câble
d'E/S croisé.
Pour pouvoir mieux distinguer les câbles d'E/S numériques, le câble
d'E/S numérique possède un repère noir en bout de câble.

Câbles de connexion de l'EasyPort USB au PC et au process

© Festo Didactic GmbH & Co. KG „ 721876 279

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


5. Présentation et fonctionnement

Nota
L'alimentation 24 V CC de l'EasyPort USB s'applique de l'extérieur. Elle
peut l'être soit par l'intermédiaire des ports 1 et 2, soit par
l'intermédiaire de deux vis disposées à l'arrière de l'EasyPort USB.
Veillez à ce que la tension d'alimentation ne soit appliquée que d'un
seul côté.

5.5 L'adresse de l'EasyPort USB se règle par l'intermédiaire des deux


Réglage de l'adresse touches fléchées  . Pour activer le mode réglage d'adresse, appuyez
sur l'EasyPort USB en même temps sur les deux touches.  et  vous permettent de
choisir une adresse de 1 à 4. Quand vous appuyez à nouveau en même
temps sur les deux touches, l'adresse est mise en mémoire, et vous
quittez le mode réglage d'adresse.
L'adresse est préréglée par défaut à 1 pour chaque interface de process
EasyPort USB.

PORT 3 USB RS 232 24V 0V

EasyPort USB
Error Status

IN

OUT
0 7 0 7

PORT 1 PORT 2

Écran LCD de l'EasyPort USB avec affichage de l'adresse

280 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Mise en service

Pour mettre en service l'EasyPort USB, il vous faut


l'EasyPort USB,
un bloc d’alimentation 24 V CC,
un PC si vous voulez dépouiller sur PC les données de l'EasyPort
USB,
le CD-ROM EasyPort pour l'installation des pilotes USB sur le PC,
le câble USB.

Sont également utiles


l'application de démonstration de l'EasyPort, pour établir aisément
et rapidement une liaison avec l'EasyPort USB,
une boîte de simulation, pour générer sans gros efforts des signaux
de process à appliquer à l'EasyPort USB.

Marche à suivre
1. Raccordez l'EasyPort USB à une alimentation 24 V CC externe.
Utilisez à cet effet les cordons de raccordement 24 V CC à
connecteurs de sécurité de 4 mm fournis.
2. Mettez sous tension l'alimentation de l'EasyPort USB.
‟ La LED rouge ERROR s'allume brièvement. Elle s'éteint au cours du
test de mise sous tension.
‟ La LED verte STATUS clignote à une fréquence de 1 Hz.
Cela signifie que l'EasyPort USB ne communique pas encore.
3. À l'issue du test de mise sous tension, l'EasyPort USB est prêt à
fonctionner et attend son initialisation par le PC. L'adresse alors
utilisée est celle réglée par l'intermédiaire des touches fléchées.
4. Vérifiez l'adresse de l'EasyPort USB.
‟ Activez le mode réglage d'adresse en appuyant en même
temps sur les deux touches fléchées.
‟ Réglez à l'aide des touches fléchées une adresse de 1 à 4.
‟ Quittez le mode réglage d'adresse en appuyant en même temps
sur les deux touches fléchées.
5. Reliez le PC à l'EasyPort USB. Utilisez à cet effet le câble USB fourni.

© Festo Didactic GmbH & Co. KG „ 721876 281

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Mise en service

6. Au cas où les pilotes USB nécessaires au fonctionnement de


l'EasyPort USB ne sont pas encore installés sur le PC, un message
correspondant s'affiche, et l'Assistant de recherche de nouveau
matériel est lancé.
N'installez pas les pilotes USB au moyen d'une mise à jour
Windows. Si la boîte de dialogue correspondant s'ouvre,
sélectionnez l'option Non.
Installez le pilote USB à partir du CD-ROM fourni seulement lorsque
le dialogue représenté ci-dessous s'affiche.
Insérez pour ce faire le CD-ROM EasyPort dans le lecteur. Dès que le
lecteur de CD-ROM est prêt, cliquez sur le bouton Suivant.

282 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Mise en service

7. L'assistant recherche alors le composant logiciel nécessaire.


Une fois l'installation réussie, cliquez sur le bouton Terminer.

© Festo Didactic GmbH & Co. KG „ 721876 283

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Mise en service

8. Un second composant logiciel doit être installé, ce qui explique que


la fenêtre de l'Assistant de recherche de nouveau matériel s'ouvre
à nouveau.
Dans ce cas également, n'installez pas le logiciel au moyen d'une
mise à jour Windows, mais toujours à partir du CD-ROM EasyPort
fourni.
Lorsque le dialogue représenté ci-dessous s'affiche et que le CD-
ROM EasyPort est en place, cliquez sur le bouton Suivant.

284 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Mise en service

9. Une fois l'installation réussie, cliquez, ici aussi, sur le bouton


Terminer.

10. Les pilotes USB nécessaires au fonctionnement de l'EasyPort USB


sont à présent installés sur votre PC: vous pouvez ainsi utiliser
l'EasyPort USB avec votre PC.
11. L'application de démonstration de l'EasyPort vous permet d'établir
aisément une liaison avec l'EasyPort USB et de l'initialiser.

© Festo Didactic GmbH & Co. KG „ 721876 285

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Mise en service

12. Pour ce faire, lancez l'application de démonstration de l'EasyPort.


Vous la trouverez, dans le menu Démarrer, dans le groupe de
programmes EasyPort, à l'option Application de démonstration de
l'EasyPort.
L'installation du contrôle ActiveX EasyPort depuis le CD-ROM
EasyPort copie en même l'application de démonstration sur votre
PC.

13. Cliquez sur le bouton Connect pour établir la liaison entre


l'application de démonstration de l'EasyPort et l'EasyPort USB. Le
module EasyPort USB est en même temps initialisé.

286 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


6. Mise en service

14. L'application de démonstration de l'EasyPort vous montre que:


‟ le module EasyPort USB connecté possède l'adresse 2,
‟ l'interface série utilisée pour la communication est COM5.

15. La LED verte STATUS de l'EasyPort USB vous montre que l'EasyPort
USB a été correctement initialisé: la diode clignote brièvement deux
fois pour indiquer que l'adresse de l'Easyport USB est 2.

Nota
En cas d'utilisation de logiciels externes apportant leurs propres
pilotes USB, il convient de s'assurer qu'au moins une interface série
est encore libre pour le pilote de l'EasyPort USB.
En cas d'arrêt du PC auquel est raccordé l'EasyPort USB, débranchez
de préférence également le câble USB.
Ne rebranchez le câble USB qu'à l'issue du redémarrage du PC et du
logiciel avec lequel doit communiquer l'EasyPort USB.

© Festo Didactic GmbH & Co. KG „ 721876 287

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Interfaces logicielles avec l'EasyPort USB

7.1 La transmission des données en provenance et en direction d'une


Aperçu de interface de process EasyPort USB s'opère par instructions adressées
la communication d'écriture et de lecture.
avec l'EasyPort USB

Exemple : instructions d'écriture et de lecture en mode terminal

Selon le mode d'intégration de l'EasyPort USB dans votre application, il


existe différents niveaux d'accès pour exécuter ces instructions
d'écriture et de lecture.
L'interpréteur d'instructions
représente le niveau le plus bas, auquel il est possible d'accéder à
l'aide d'un programme terminal;
le contrôle ActiveX
décrit les fonctions d'accès et constitue ainsi l'interface de
programmation avec l'EasyPort USB ;
l'EzOPC
est un serveur OPC et établit les liaisons de communication avec des
produits Festo Didactic pour des applications spécialement
préparées à cet effet.

288 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Interfaces logicielles avec l'EasyPort USB

Interfaces logicielles avec l'EasyPort USB

Le niveau le plus bas est un interpréteur d'instructions. L'interpréteur


connaît toutes les instructions susceptibles d'être exécutées par
l'EasyPort USB. Un programme terminal, comme par exemple
HyperTerminal de Windows, vous permet alors de communiquer
directement avec l'EasyPort USB et de faire exécuter les instructions
désirées.

Le contrôle ActiveX, lui, sert d'interface de programmation avec


l'EasyPort USB. Il peut s'intégrer en tant qu'objet COM dans vos projets
de logiciels. La condition est que le logiciel utilisé supporte l'interface
COM. C'est le cas de langages de programmation tels que Visual Basic
et C++. Mais des logiciels d'acquisition et de dépouillement de mesures,
comme par exemple LabVIEW, ou des systèmes de visualiation offrent
également cette interface.

Si vous utilisez l'EasyPort USB en même temps que d'autres produits


Festo Didactic, vous pouvez aussi réaliser aisément la communication
entre les intervenants. Il vous suffit dans ce cas d'utiliser le serveur OPC
EzOPC, un programme possédant sa propre interface utilisateur
graphique.

© Festo Didactic GmbH & Co. KG „ 721876 289

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Interfaces logicielles avec l'EasyPort USB

7.2 EzOPC est un serveur OPC fournissant des liaisons de données:


Communication avec une interface de process EasyPort USB,
via EzOPC avec des clients OPC de Festo Didactic:
COSIMIR , CIROS , FluidSIM , FluidLab ,
avec le simulateur d'API S7-PLCSIM de Siemens,
avec le serveur OPC CoDeSys V2.0 de 3S Software.

Les données peuvent être écrites et lues par tout client OPC conforme à
OPC 2.x.

OPC est l'acronyme de open connectivity via open standards et est une
interface standard bien connue en automatisation. Elle assure un
échange efficace de données entre applications Windows et
équipements d'automatisation.

Interface logicielle : EzOPC

290 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Interfaces logicielles avec l'EasyPort USB

L'interface utilisateur graphique EzOPC vous permet de créer aisément


des liaisons de données entre les interlocuteurs de certaines
applications spécialement préparées à cet effet.
Pour ce faire, vous sélectionnez les interlocuteurs. Vous indiquez
ensuite la gamme des entrées/sorties dont vous voulez échanger les
signaux. La configuration est ainsi achevée. EzOPC se charge alors
automatiquement de l'échange des données entre les interlocuteurs.

Exemple de configuration : commande par un API externe de modèles de process en CIROS. L'échange des
données s'opère via EasyPort et EzOPC.

La commande virtuelle est le « cœur » de l'EzOPC. Elle constitue le


bornier virtuel reliant la gamme des signaux de l'un des interlocuteurs à
celle de l'autre.

© Festo Didactic GmbH & Co. KG „ 721876 291

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Interfaces logicielles avec l'EasyPort USB

Vous trouverez des indications détaillées sur la configuration et


l'utilisation d'EzOPC dans l'aide en ligne d'EzOPC et dans les manuels
des produits logiciels utilisés.
L'aide en ligne est à votre disposition dès que vous avez installé EzOPC.

Comment installer EzOPC


1. Insérez le CD-ROM EasyPort dans le lecteur.
2. La programme d'installation démarre automatiquement.
Si le démarrage n'est pas automatique, lancez le programme
Start.exe figurant sur le CD-ROM.
3. L'écran d'accueil s'affiche.
Sélectionnez la langue dans laquelle vous voulez installer le logiciel
EzOPC. Cliquez sur le bouton correspondant.

292 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


7. Interfaces logicielles avec l'EasyPort USB

4. Tous les logiciels, manuels, pilotes et exemples de programmes


vous sont proposés.
Cliquez sous Applications sur Installation de OPC-Server EzOPC.

5. Pour EzOPC, le groupe de programmes EzOPC est automatiquement


créé dans le menu Démarrer. Vous y trouverez aussi l'aide en ligne
associée à EzOPC.

© Festo Didactic GmbH & Co. KG „ 721876 293

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. Contrôle ActiveX de l'EasyPort USB

8.1 Le contrôle ActiveX sert d'interface de programmation de l'EasyPort


Utilisation du USB. Il peut s'intégrer en tant qu'objet COM dans vos projets de
contrôle ActiveX logiciels. Parmi les systèmes logiciels supportant l'interface COM,
figurent les langages de programmation Visual Basic, C++ ou encore
HTML. Mais des logiciels d'acquisition et de dépouillement de mesures,
comme par exemple LabVIEW, ou des systèmes de visualisation
supportent également l'interface COM.

Interface logicielle : contrôle ActiveX

Le contrôle ActiveX et ses méthodes sont décrits en détail dans l'aide en


ligne.

294 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. Contrôle ActiveX de l'EasyPort USB

8.2 Avant de pouvoir intégrer le contrôle ActiveX dans vos projets de


Installation du contrôle logiciels, il faut qu'il soit disponible sur votre PC. Vous trouverez le
ActiveX contrôle ActiveX sur le CD-ROM fourni.

Comment installer le contrôle ActiveX


1. Insérez le CD-ROM EasyPort dans le lecteur.
2. Le programme d'installation démarre automatiquement.
Si le démarrage n'est pas automatique, lancez le programme
Start.exe figurant sur le CD-ROM.
3. L'écran d'accueil s'affiche.
Sélectionnez la langue dans laquelle vous voulez installer le
contrôle ActiveX. Cliquez sur le bouton correspondant.
4. Tous les logiciels, manuels, pilotes et exemples de programmes
vous sont proposés.
Cliquez sur Installation du contrôle ActiveX EasyPort.

5. Pour le contrôle ActiveX EasyPort, le groupe de programmes


EasyPort est automatiquement créé dans le menu Démarrer. Vous y
trouverez aussi l'aide en ligne associée et une application de
démonstration du contrôle ActiveX.

© Festo Didactic GmbH & Co. KG „ 721876 295

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. Contrôle ActiveX de l'EasyPort USB

8.3 L'application de démonstration de l'EasyPort est un exemple de


Exemple : programme montrant comment utiliser le contrôle ActiveX en C++.
application de L'application de démonstration vous permet de faire exécuter aisément
démonstration de quelques méthodes capitales du contrôle ActiveX et d'observer la
l'EasyPort communication entre PC et EasyPort USB.
Au niveau du code source, l'exemple montre comment intégrer le
contrôle ActiveX EasyPort en C++.

L'installation du contrôle ActiveX EasyPort copie en même l'application


de démonstration sur votre PC.
Vous la trouverez, dans le menu Démarrer, dans le groupe de
programmes EasyPort, à l'option Application de démonstration de
l'EasyPort.

Application de démonstration de l'EasyPort

296 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. Contrôle ActiveX de l'EasyPort USB

Comment utiliser l'application de démonstration


1. Faites en sorte que l'interface de process EasyPort USB soit
raccordée à une alimentation 24 V CC.
Mettez sous tension l'alimentation de l'EasyPort USB.
2. Reliez le PC à l'interface de process EasyPort USB. Utilisez à cet effet
le câble USB fourni.

3. Au cas où les pilotes USB nécessaires au fonctionnement de


l'EasyPort USB ne sont pas encore installés sur le PC, un message
correspondant s'affiche. Procédez alors à l'installation des pilotes
USB. Il vous faut pour ce faire le CD-ROM EasyPort.
4. Faites en sorte que le contrôle ActiveX de l'EasyPort USB soit
installé sur votre PC.

© Festo Didactic GmbH & Co. KG „ 721876 297

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. Contrôle ActiveX de l'EasyPort USB

5. Lancez l'application de démonstration de l'EasyPort. Vous la


trouverez, dans le menu Démarrer, dans la groupe de programmes
EasyPort, à l'option Application de démonstration de l'EasyPort.
Les méthodes les plus utilisées du contrôle ActiveX sont affectées à
des boutons. À gauche du bouton, est indiquée la valeur de retour,
dans la mesure où la méthode en a une. Sur le côté droit, vous
indiquez la valeur des paramètres pour l'appel de la méthode.

6. Avant de pouvoir faire exécuter des instructions, vous devez établir


la connexion entre l'application de démonstration de l'EasyPort et le
module EasyPort USB. Cliquez pour ce faire sur le bouton Connect.

298 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. Contrôle ActiveX de l'EasyPort USB

7. La valeur de retour 1 vous indique que le module EasyPort USB


raccordé possède l'adresse 1 et que l'interface série utilisée pour la
communication sera COM 5.

8. Vous pouvez à présent faire exécuter les méthodes proposées. Vous


trouverez la description des méthodes dans l'aide en ligne.
9. Si vous voulez, par exemple, mettre à 1 les sorties numériques 0 à 3
du module EasyPort USB, entrez la valeur 15 comme paramètre de
la méthode SetOutputWord. Les sorties numériques doivent être
adressées en tant que mot de sortie 0. L'adresse du mot de sortie
réglée par défaut est 0, et vous pouvez donc la reprendre telle
quelle. Cliquez alors sur le bouton SetOutputWord.
Les LED des sorties 0 à 3 sur le port 1 de votre EasyPort USB
s'allument en jaune.

© Festo Didactic GmbH & Co. KG „ 721876 299

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. Contrôle ActiveX de l'EasyPort USB

10. Inversement, vous pouvez aussi lire l'état des sorties numériques de
l'EasyPort USB. Cliquer pour ce faire sur le bouton GetOutputWord.
La valeur du mot de sortie 0 est 15 et s'affiche à gauche de la
méthode.

11. Si vous voulez suivre directement la communication entre


l'application de démonstration de l'EasyPort et l'EasyPort USB,
cliquez sur le bouton ShowDebugWnd.

300 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. Contrôle ActiveX de l'EasyPort USB

12. La fenêtre Trace Window s'affiche. Cette fenêtre affiche les


instructions transmises au module EasyPort USB et la réponse de
l'EasyPort à chaque instruction.

© Festo Didactic GmbH & Co. KG „ 721876 301

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


8. Contrôle ActiveX de l'EasyPort USB

13. La méthode SendAndGetString vous offre la possibilité d'envoyer


aussi directement des instructions de l'interpréteur d'instructions
au module EasyPort USB raccordé.
Exemple: entrez comme instruction MAW1.0=FF, puis cliquez sur le
bouton SendAndGetString. Toutes les sorties numériques du port 1
de l'EasyPort USB sont alors mises à 1.
La réponse AW1.0=FF de l'EasyPort USB vous est affichée à gauche
du bouton.

14. Si vous voulez mettre fin à la liaison avec l'EasyPort USB, cliquez sur
le bouton Disconnect.

Nota
L'application de démonstration de l'EasyPort vous permet d'établir et
de tester rapidement et aisément la connexion à un EasyPort USB.

302 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

9.1 Le niveau d'accès le plus bas pour la communication est un interpréteur


Interpréteur d'instructions. L'interpréteur connaît toutes les instructions
d'instructions susceptibles d'être exécutées par l'EasyPort USB. Un programme
terminal, comme par exemple HyperTerminal de Windows, vous permet
alors de communiquer directement avec l'EasyPort USB et de faire
exécuter les instructions désirées.

Interface logicielle : interpréteur d'instructions

L'interpréteur d'instructions se pilote par l'intermédiaire de l'interface


série.
L'interface se paramètre comme suit:
COMx: 115200, N, 8, 1
Notez que l'EasyPort USB fonctionne exclusivement à une vitesse
fixe de 115200 bauds.

La structure des instructions est simple:


chaque instruction se compose d'une lettre (opérateur) et de l'adresse
d'un appareil (opérande).
L'adresse est celle du signal désiré.

© Festo Didactic GmbH & Co. KG „ 721876 303

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Certaines instructions plus anciennes exigent d'indiquer l'adresse du


module EasyPort USB ; ce n'est plus nécessaire pour les instructions
plus récentes.

9.2 Il y a deux instructions centrales de lecture et d'écriture sur des


Structure des instructions appareils:
• l'instruction Display (D) destinée à la lecture d'un appareil et
• l'instruction Modify (M) destinée à la modification d'un appareil

L'« appareil » d'un module EasyPort USB peut être:


• une entrée (E)
• une sortie (A)
• une base de temps d'événement (T)
• un compteur rapide (C)

L'appareil peut être adressé sous forme de :


• bit,
• octet (B),
• mot (W).

Un mot se compose des octets 0 et 1 et contient les adresses 0 à 15.

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

Octet 1 Octet 0
(Port 2) (Port 1)

Mot 0

304 © Festo Didactic GmbH & Co. KG • 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Exemple d'instruction de lecture (Display)

Description : Display bit d'entrée 5 du mot 0 sur module EasyPort USB 1

Une instruction Display se compose d'une lettre, d'un appareil et du


type de donnée de l'appareil. Suit l'adresse de l'appareil, indiquant le
numéro du module, l'adresse du mot et, le cas échéant, l'adresse de
l'octet ou du bit. Les différentes indications d'adresse sont séparées par
un point.

Exemple d'instruction d'écriture (Modify)

Instruction Description

MA2.0.C=1 Modify bit de sortie 12 du mot 0 sur module


EasyPort USB 2 à 1

L'instruction Modify doit comporter une valeur de donnée. La valeur de


donnée se rattache à l'adresse de l'appareil par un signe égal.

Nota : Les adresses et données doivent toujours s'entrer en


hexadécimal.

© Festo Didactic GmbH & Co. KG „ 721876 305

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

9.3 Les données réellement transférées au moment de la transmission


Niveau de transmission correspondent en grande partie aux données entrées sous forme de
caractères ASCII au niveau utilisateur.

Les règles applicables à la transmission des données sont les suivantes:


L'adresse et la valeur de donnée doivent s'entrer en hexadécimal.
Les valeurs de données que délivrent l'EasyPort USB sont toujours
retournées en hexadécimal.
Les nombres en virgule flottante sont codés.
Tout message se termine par un CR (retour chariot).
Toute instruction adressée à sa propre adresse fait l'objet d'une
réponse.
Pour toute instruction Display ou Modify, la première lettre est à cet
effet tronquée. Les instructions Modify s'accompagnent de la valeur
de donnée réelle du module. Cette valeur de donnée est
normalement la même que dans l'instruction.
À la réponse à une instruction Display, est rajoutée la valeur
déterminée, dans le même notation que pour une instruction
Modify.

Quelques exemples d'instructions et de réponses à ces instructions


sont donnés dans le tableau qui suit. Ces exemples indiquent
également le caractère Carriage Return <CR>.

306 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Adresse du Instruction adressée Réponse du module Remarque


module au module

3 DAW3.0<CR> AW3.0=1234<CR> La valeur de donnée est


1234 en hexadécimal
ou 4660 en décimal.

Format du mot: xxxx

2 DEB2.0.1<CR> EB2.0.1=12<CR> La valeur de donnée est 12 en


hexadécimal ou 18 en décimal.

Format de l'octet: xx

1 DE1.0.E<CR> E1.0.E=0<CR> Lecture du bit d'entrée 14.

Format du bit: x

1 MAW1.0=201<CR> AW1.0=201<CR> La valeur de donnée est


201 en hexadécimal
ou 513 en décimal.

2 MAB2.0.0=73<CR> AB2.0.0=73<CR> La valeur de donnée est 73 en


hexadécimal ou 115 en décimal.

3 MA3.0.A=1<CR> A3.0.A=1<CR> Mise à 1 du bit de sortie 10.

Exemples d'instructions Modify et Display

© Festo Didactic GmbH & Co. KG „ 721876 307

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

9.4 Outre les instructions de lecture et d'écriture de signaux, il existe aussi


Instructions de d'autres instructions, surtout utilisées pour la mise en service et le
diagnostic et initialisation diagnostic.

En font partie les instructions suivantes


demande de l'adresse d'un module EasyPort USB
demande du numéro de version d'un module EasyPort USB
lecture du mot d'état d'un module EasyPort USB

Instructi Réponse Description et exemple


on

setup0 setup<n> Demande de l'adresse

Le module EsyPort USB retourne par setup<n>, <n>=1…4 son adresse de


module.

Exemple

Instruction Réponse Description


setup0 setup1 Le module EsyPort USB retourne
comme adresse l'adresse 1.

DV V=2.10 Demande du numéro de version

Le module EsyPort USB retourne par V=2.10 sa version.

Initialisation et diagnostic

308 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Instruction Réponse Description et exemple

DS S=xx Lecture du mot d'état

Le mot d'état d'un module EasyPort USB est retourné sous forme de
valeur hexadécimale xx.

On a:
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Display Up Down Out- In- Setup Error

Bit 0 = 1 Erreur des pilotes de sortie


Bit 1 = 1 Module initialisé
Bit 2 = 1 Gamme de tension d'entrée ‟10…+10 V CC
Bit 2 = 0 Gamme de tension d'entrée 0…10 V CC
Bit 3 = 1 Gamme de tension de sortie ‟10…+10 V CC
Bit 3 = 0 Gamme de tension de sortie 0…10 V CC
Bit 4 = 1 Touche  actionnée
Bit 5 = 1 Touche  actionnée
Bit 6 = 1 Affichage de tous les segments à l'écran
Bit 6 = 0 Affichage normal de l'écran activé

Exemple

Instruction Réponse Description


DS S=12 Retour de la valeur 12 en hexadécimal
ou 18 en décimal.
Autrement dit: bit 1 = 1 et bit 4 = 1
Le module Easyport USB Modul est
correctement initialisé, 0...10 V est
réglé comme tension d'entrée et de
sortie, la touche  est actionnée et
l'affichage à l'écran est réglé sur
affichage normal.

Initialisation et diagnostic (suite)

© Festo Didactic GmbH & Co. KG „ 721876 309

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

9.5 Les tableaux qui suivent récapitulent les instructions de lecture et


Instructions pour d'écriture de signaux numériques.
signaux numériques

Instruction Appareil Type de Adresse Exemples et notes


Modify données

M A (sortie) (Bit) 0…15 MA1.0.4=1


(Modify) Modify bit de sortie 4 du mot 0 sur module
EasyPort USB 1 à 1.

Dans les instructions Modify, la valeur de


donnée doit être exclusivement indiquée en
hexadécimal.

B (octet) 0,1 MAB2.0.0=7


Modify bit de sortie 0 du mot 0 sur module
EasyPort USB 2 à 7 en hexadécimal.
Autrement dit:
mise à 1 des bit 0, 1 et 2.

Plus faible poids: octet 0 (port 1)


Plus fort poids: octet 1 (port 2)

W (mot) 0 MAW1.0=101
Modify mot de sortie 0 sur module EasyPort
USB 1 à 101 en hexadéciaml ou 257 en
décimal.

310 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Instruction Appareil Type de Adresse Exemples et notes


d'affichage données

D E (entrée) (Bit) 0…15 DE1.0.3


(Display) Display bit d'entrée 3 du mot 0 sur module
EasyPort USB 1

DE2.0.E
Display bit d'entrée 14 du mot 0 sur module
EasyPort USB 2

B (octet) 0,1 DEB1.0.0


Display bit d'entrée 0 du mot 0 sur module
EasyPort USB 1

DEB3.0.1
Display bit d'entrée 1 du mot 0 sur module
EasyPort USB 3

W (mot) 0 DEW1.0
Display bit d'entrée 0 du module EasyPort
USB 1

A (sortie) (Bit) 0…15 DA3.0.5


Display bit de sortie 5 du mot 0 sur module
EasyPort USB 3

DA4.0.C
Display bit de sortie 12 du mot 0 sur
module EasyPort USB 4

B (octet) 0,1 DAB4.0.0


Display octet de sortie 0 du mot 0 sur
module EasyPort USB 4

DAB2.0.1
Display octet de sortie 1 du mot 0 sur
module 2

W (mot) 0 DAW3.0
Display mot de sortie 0 sur module
EasyPort USB 3

© Festo Didactic GmbH & Co. KG „ 721876 311

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Outre les instructions de lecture et d'écriture de signaux numériques, il


existe aussi des instructions permettant de commander le
comportement du module EasyPort USB.

En fait partie l'instruction d'activation du mode événement:


MT<n>=xx avec <n> comme adresse de module et xx comme valeur de
temps en hexadécimal, xx = 00…FF [ms].

Quand le mode événement est activé, le module EasyPort USB signale


lui-même au PC la modification de données d'entrée numériques. Le
délai dans lequel une modification d'entrée doit être au plus tôt
signalée est réglable.

Instruction Appareil Adresse du Exemples et notes


Modify module

M (Modify) T (base de 1…4 MT2=01


temps) Activer le mode événement pour le module EasyPort USB
ayant l'adresse 2 avec la valeur de temps 1 ms.

Description : quand un signal d'entrée numérique change


sur le module EasyPort USB 2, le mot d'entrée complet est
automatiquement transmis au PC au bout de 10 ms.

MT2=00
L'instruction met fin au mode événement pour le module
EasyPort USB 2. Les modifications des signaux d'entrée ne
sont plus signalées au PC que sur demande.

312 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

9.6 L'EasyPort USB traite également, en plus des signaux d'entrée/sortie


Instructions pour numériques, des signaux analogiques.
signaux analogiques L'interpréteur d'instructions comprend de ce fait des instructions de
lecture de canaux d'entrée ou de sortie analogiques,
délivrance d'une tension à un canal de sortie analogique.

La conversion analogique-numérique s'opère avec une résolution de 12


bits. La résolution de 12 bits équivaut à une échelle de 4096 niveaux.

La fréquence d'échantillonnage des entrées/sorties analogiques est de


0,5 kHz.

Pour les canaux analogiques, on a le choix entre deux gammes de


tension:
0…10 V
‟10…+10 V

Les deux figures ci-dessous montrent la correspondance entre gamme


de tension analogique et plage numérique. La plage numérique est
toujours celle allant de 0x0000 à 0x7FFF (32767 en décimal).

0V 5V 10 V

0x0000 0x3FFF 0x7FFF

Correspondance analogique-numérique pour gamme de tension 0...10 V

-10 V 0V +10 V

0x0000 0x3FFF 0x 7FFF

Correspondance analogique-numérique pour gamme de tension ‟10…+10 V

© Festo Didactic GmbH & Co. KG „ 721876 313

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Commutation de la gamme de mesure


La commutation de la gamme de mesure de 0…10 V à ‟10…+10 V
s'obtient à l'aide des instructions MRE (Modify Range entrées) et MRA
(Modify Range sorties) de l'interpréteur d'instructions.

Instruction Description

MRE<n>=0 Réglage de la gamme de mesure des entrées analogiques à 0...10 V

Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4, réglage de la gamme de
mesure des entrées analogiques à 0…10 V.
Cette gamme de mesure est celle automatiquement réglée par défaut à l'issue de
l'initialisation d'un module EasyPort USB.

MRE<n>=1 Réglage de la gamme de mesure des entrées analogiques à –10...+10 V

Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4, réglage de la gamme de
mesure des entrées analogiques à ‟10…+10 V.

Exemple

MRE2=1
Sur le module EasyPort USB ayant l'adresse 2, la gamme de mesure des entrées
analogiques est réglée à ‟10…+10 V.

Commutation de la gamme de mesure des entrées analogiques

314 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Instruction Description

MRA<n>=0 Réglage de la gamme de mesure des sorties analogiques à 0...10 V

Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4, réglage de la gamme de
mesure des sorties analogiques à 0…10 V.
Cette gamme de mesure est celle automatiquement réglée par défaut à l'issue de
l'initialisation d'un module EasyPort USB.

MRA<n>=1 Réglage de la gamme de mesure des sorties analogiques à –10...+10 V

Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4, réglage de la gamme de
mesure des sorties analogiques à ‟10…+10 V.

Commutation de la gamme de mesure des sorties analogiques

Lecture de signaux analogiques


L'EasyPort USB possède les canaux d'entrée analogiques 0...3. Pour la
lecture d'une entrée analogique, on utilise l'instruction DEW, en
indiquant l'adresse du module EasyPort USB et le numéro de canal.
Compte tenu du format de données des entrées analogiques, la gamme
de valeurs possible est de 0x0000 à 0x7FF8 (32760 en décimal).

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20

0 X X X X X X X X X X X X 0 0 0

Entrée analogique sur 12 bits

Format de données des entrées analogiques

© Festo Didactic GmbH & Co. KG „ 721876 315

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Instruction Réponse Description

DEW<n>.2 EW<n>.2=xxxx Lecture du canal d'entrée 0


avec xxxx = 0000…7FF8
Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4,
lecture des valeurs sur le canal d'entrée 0.

Exemple

DEW1.2
Sur le module EasyPort USB ayant l'adresse 1, lecture du
canal d'entrée 0.

DEW<n>.4 EW<n>.4=xxxx Lecture du canal d'entrée 1


avec xxxx = 0000…7FF8
Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4,
lecture des valeurs sur le canal d'entrée 1.

DEW<n>.6 EW<n>.6=xxxx Lecture du canal d'entrée 2


avec xxxx = 0000…7FF8
Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4,
lecture des valeurs sur le canal d'entrée 2.

DEW<n>.8 EW<n>.8=xxxx Lecture du canal d'entrée 3


avec xxxx = 0000…7FF8
Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4,
lecture des valeurs sur le canal d'entrée 3.

Lecture des signaux d'entrée analogiques

316 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Il est également possible de lire les signaux de sortie analogiques.

Instruction Réponse Description

DAW<n>.2 AW<n>.2=xxxx Lecture du canal de sortie 0


avec xxxx = 0000…7FF8
Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4,
lecture des valeurs sur le canal de sortie 0.

DAW<n>.4 AW<n>.4=xxxx Lecture du canal de sortie 1


avec xxxx = 0000…7FF8
Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4,
lecture des valeurs sur le canal de sortie 1.

Exemple

DAW3.4
Lecture du canal de sortie 1 sur le module EasyPort USB
ayant l'adresse 3.

Lecture des signaux de sortie analogiques

Délivrance d'une tension sur canal de sortie analogique


L'EasyPort USB possède deux canaux de sortie analogiques 0 et 1. Pour
l'écriture d'une valeur de tension, on utilise l'instruction MAW, en
indiquant l'adresse du module EasyPort USB, le numéro de canal et la
valeur.
La plage de valeurs pour les sorties analogiques est, ici aussi, de
0x0000 à 0x7FF8 (32760 en décimal).

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20

0 X X X X X X X X X X X X 0 0 0

Sortie analogique sur 12 bits

Format de données des sorties analogiques

© Festo Didactic GmbH & Co. KG „ 721876 317

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Instruction Description

MAW<n>.2=xxxx Écriture sur canal de sortie 0


avec xxxx =
Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4, délivrer la valeur de
0000…7FF8
tension désirée au canal de sortie 0.

Exemple

MAW1.2=2AC5
Sur le module EasyPort USB ayant l'adresse 1, délivrer comme valeur de
tension au canal de sortie 0 la valeur 2AC5 en hexadécimal ou 10949 en
décimal.

MAW<n>.4=xxxx Écriture sur canal de sortie 1


avec xxxx =
Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4, délivrer la valeur de
0000…7FF8
tension désirée au canal de sortie 1.

Génération d'un signal de sortie analogique

Affichage de signaux analogiques à l'écran LCD


Vous pouvez suivre à l'écran LCD de l'EasyPort USB les valeurs d'une
entrée ou d'une sortie analogique. L'affichage indique le canal
sélectionné, la tendance, la valeur mesurée sur 4 chiffres et l'unité.

Le canal analogique à afficher à l'écran LCD se sélectionne comme


d'habitude directement sur l'EasyPort USB, à l'aide des touches
fléchées.
Une instruction de l'interpréteur vous permet de neutraliser
provisoirement depuis le PC le canal sélectionné et de passer à un autre
canal analogique. Pour ce faire, utilisez l'instruction MF.

318 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Instruction Description

MF<n>=01 Forçage du canal d'entrée analogique 0

Sur l'écran LCD du module EasyPort USB ayant l'adresse <n>, <n>=1…4, sont affichées les
valeurs mesurées du canal d'entrée analogique 0.

MF<n>=02 Forçage du canal d'entrée analogique 1

Sur l'écran LCD du module EasyPort USB ayant l'adresse <n>, <n>=1…4, sont affichées les
valeurs mesurées du canal d'entrée analogique 1.

MF<n>=04 Forçage du canal d'entrée analogique 2

Sur l'écran LCD du module EasyPort USB ayant l'adresse <n>, <n>=1…4, sont affichées les
valeurs mesurées du canal d'entrée analogique 2.

MF<n>=08 Forçage du canal d'entrée analogique 3

Sur l'écran LCD du module EasyPort USB ayant l'adresse <n>, <n>=1…4, sont affichées les
valeurs mesurées du canal d'entrée analogique 3.

MF<n>=10 Forçage du canal de sortie analogique 0

Sur l'écran LCD du module EasyPort USB ayant l'adresse <n>, <n>=1…4, sont affichées les
valeurs mesurées du canal de sortie analogique 0.

MF<n>=20 Forçage du canal de sortie analogique 1

Sur l'écran LCD du module EasyPort USB ayant l'adresse <n>, <n>=1…4, sont affichées les
valeurs mesurées du canal de sortie analogique 1.

MF<n>=00 Suppression du forçage du canal analogique

Sur l'écran LCD du module EasyPort USB ayant l'adresse <n>, <n>=1…4, sont à nouveau
affichées les valeurs mesurées du canal de sortie analogique réglé directement sur
l'EasyPort USB à l'aide des touches fléchées.

Forçage d'un canal analogique en vue de l'affichage à l'écran LCD

© Festo Didactic GmbH & Co. KG „ 721876 319

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

9.7 L'EasyPort USB supporte par des instructions spéciales l'acquisition de


Instructions de mesures analogiques.
mesure de signaux
analogiques L'instruction MME (Modify mode mesure) vous permet d'activer le
mode mesure. Les valeurs d'entrée analogiques lues sont alors
délivrées à vitesse maximale. Le canal d'entrée analogique pour lequel
vous voulez délivrer automatiquement les valeurs se sélectionne à
l'aide de l'instruction MS.

Instruction Description

MS<n>=01 Activation du canal d'entrée analogique 0

Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4, activer le canal d'entrée
analogique 0 en vue de l'envoi automatique de valeurs d'entrée.

MS<n>=02 Activation du canal d'entrée analogique 1

Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4, activer le canal d'entrée
analogique 1 en vue de l'envoi automatique de valeurs d'entrée.

MS<n>=04 Activation du canal d'entrée analogique 2

Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4, activer le canal d'entrée
analogique 2 en vue de l'envoi automatique de valeurs d'entrée.

MS<n>=08 Activation du canal d'entrée analogique 3

Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4, activer le canal d'entrée
analogique 3 en vue de l'envoi automatique de valeurs d'entrée.

MS<n>=0F Activation de tous les canaux d'entrée analogiques

Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4, activer les canaux d'entrée
analogiques 0...3 en vue de l'envoi automatique de valeurs d'entrée.

MS<n>=00 Désactivation de tous les canaux d'entrée analogiques

Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4, désactiver tous les canaux
d'entrée analogiques. La délivrance automatique des valeurs d'entrée n'est plus alors
possible.

Activation de canaux d'entrée analogiques

320 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Instruction Réponse Description

MME=4 ME=4 Activation du mode mesure

Format des données Les valeurs mesurées du canal d'entrée analogique activé
envoyées: sur l'EasyPort USB sont automatiquement délivrées de
yxx<CR> manière cyclique. La trame de temps pour la délivrance est
de 5 ms.

Le format de données xx est un format binaire, composé de 2


octets.

y est l'identificateur du canal d'entrée préalablement activé.


y=2: canal d'entrée analogique 0
y=4: canal d'entrée analogique 1
y=6: canal d'entrée analogique 2
y=8: canal d'entrée analogique 3

Exemple : délivrer le canal d'entrée 0

MS1=01<CR> S1=01<CR> Activer le canal d'entrée analogique 0 sur le module EasyPort


USB ayant l'adresse 1.

MME=4<CR> ME=4<CR> Activer le mode mesure.


2xx<CR> L'EasyPort USB délivre alors les valeurs mesurées du canal
2xx<CR> d'entrée analogique 0.

Activation du mode mesure pour canaux d'entrée analogiques

L'unité réglée pour l'affichage des valeurs mesurées analogiques à


l'écran LCD est par défaut le volt.

Les mesures et régulations font souvent intervenir d'autres grandeurs


physiques. C'est pourquoi chaque canal analogique peut se voir
attribuer sa propre unité physique. En cas de sélection du canal
analogique considéré en vue de l'affichage à l'écran LCD, l'unité
affichée est alors l'unité physique attribuée depuis le PC.

© Festo Didactic GmbH & Co. KG „ 721876 321

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Nota : Aucune conversion n'est toutefois effectuée entre les unités


physiques !

Pour régler l'unité physique, utilisez l'instruction MU.

Nota
L'entrée manuelle directe de l'unité à l'aide des touches fléchées sur
l'EasyPort USB a pour effet d'écraser l'unité attribuée depuis le PC.

Instruction Description

MU<n>.01=xx Attribution d'une unité au canal d'entrée analogique 0

Sur l'écran LCD du module EasyPort USB ayant l'adresse <n>, <n>=1…4, l'unité affichée
pour le canal d'entrée analogique 0 est xx.

On a :
xx=00: V
xx=01: bar
xx=02: PSI
xx=03: MPa
xx=04: l/min
xx=05: oC

MU<n>.02=xx Attribution d'une unité au canal d'entrée analogique 1

Sur l'écran LCD du module EasyPort USB ayant l'adresse <n>, <n>=1…4, l'unité affichée
pour le canal d'entrée analogique 1 est xx.

MU<n>.04=xx Attribution d'une unité au canal d'entrée analogique 2

Sur l'écran LCD du module EasyPort USB ayant l'adresse <n>, <n>=1…4, l'unité affichée
pour le canal d'entrée analogique 2 est xx.

MU<n>.08=xx Attribution d'une unité au canal d'entrée analogique 3

Sur l'écran LCD du module EasyPort USB ayant l'adresse <n>, <n>=1…4, l'unité affichée
pour le canal d'entrée analogique 3 est xx.

Attribution d'une unité physique en vue de l'affichage à l'écran LCD

322 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Instruction Description

MU<n>.10=xx Attribution d'une unité au canal de sortie analogique 0

Sur l'écran LCD du module EasyPort USB ayant l'adresse <n>, <n>=1…4, l'unité
affichée pour le canal de sortie analogique 0 est xx.

MU<n>.20= xx Attribution d'une unité au canal de sortie analogique 1

Sur l'écran LCD du module EasyPort USB ayant l'adresse <n>, <n>=1…4, l'unité
affichée pour le canal de sortie analogique 1 est xx.

Attribution d'une unité physique en vue de l'affichage à l'écran LCD (suite)

À chaque unité physique peut être affecté un coefficient multiplicateur.


C'est alors par ce coefficient qu'est multipliée la valeur mesurée
affichée à l'écran LCD. Vous pouvez de cette manière adapter la valeur
mesurée à une unité physique plus éloquente.
Le coefficient multiplicateur se définit à l'aide de l'instruction MG.

Notez que le coefficient multiplicateur ne change pas la valeur mesurée


présente sur le canal analogique. Le coefficient multiplicateur n'agit
que sur l'affichage des valeurs à l'écran LCD.

Le coefficient multiplicateur est réglé par défaut pour chaque unité


physique.

© Festo Didactic GmbH & Co. KG „ 721876 323

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Unité physique Coefficient multiplicateur par


défaut

V 10.0

bar 1.0

PSI 1.0

MPa 1.0

l/min 1.0
o
C 1.0

Exemple
Vous relevez les valeurs d'un capteur de pression pneumatique. 10 V
correspondent à 6 bar. Pour pouvoir suivre les valeurs mesurées à
l'écran LCD, vous réglez le bar comme unité. Comme coefficient
multiplicateur, vous choisissez 6.

MU1.01=01 Le bar est attribué comme unité au canal


d'entrée 0 du module EasyPort USB ayant
l'adresse 1. L'unité bar est affichée à l'écran
LCD.

MG1.1=6.00 La valeur mesurée affichée à l'écran LCD du


module EasyPort USB 1, dans l'unité bar, est
multipliée par le coefficient 6.00.

324 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Instruction Description

MG<n>.0=x.xx Affectation d'un coefficient multiplicateur à l'unité physique volt

La valeur mesurée affichée à l'écran LCD du module EasyPort USB ayant l'adresse
<n>, <n>=1…4, dans l'unité volt, est multipliée par le coefficient xx.

x.xx représente une valeur décimale à 3 chiffres.

MG<n>.1=x.xx Affectation d'un coefficient multiplicateur à l'unité physique bar

La valeur mesurée affichée à l'écran LCD du module EasyPort USB ayant l'adresse
<n>, <n>=1…4, dans l'unité bar, est multipliée par le coefficient xx.

MG<n>.2=x.xx Affectation d'un coefficient multiplicateur à l'unité physique PSI

La valeur mesurée affichée à l'écran LCD du module EasyPort USB ayant l'adresse
<n>, <n>=1…4, dans l'unité PSI, est multipliée par le coefficient xx.

MG<n>.3=x.xx Affectation d'un coefficient multiplicateur à l'unité physique MPa

La valeur mesurée affichée à l'écran LCD du module EasyPort USB ayant l'adresse
<n>, <n>=1…4, dans l'unité MPa, est multipliée par le coefficient xx.

MG<n>.4=x.xx Affectation d'un coefficient multiplicateur à l'unité physique l/min

La valeur mesurée affichée à l'écran LCD du module EasyPort USB ayant l'adresse
<n>, <n>=1…4, dans l'unité l/min, est multipliée par le coefficient xx.

MG<n>.5=x.xx Affectation d'un coefficient multiplicateur à l'unité physique oC

La valeur mesurée affichée à l'écran LCD du module EasyPort USB ayant l'adresse
<n>, <n>=1…4, dans l'unité oC, est multipliée par le coefficient xx.

Affectation d'un coefficient multiplicateur en vue de l'affichage à l'écran LCD

© Festo Didactic GmbH & Co. KG „ 721876 325

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

9.8 Vous pouvez accéder aux deux compteurs rapides 0 et 1 de l'EasyPort


Instructions pour USB à l'aide de deux instructions. L'instruction MC vous permet
compteurs rapides d'activer et de désactiver le compteur, l'instruction DC de lire la valeur
actuelle du compteur.
Sont évalués comme impulsions de comptage:
pour le compteur 0, le bit d'entrée 0 du port 1,
pour le compteur 1, le bit d'entrée 0 du port 2.

Instruction Réponse Description

MC<n>.<m>=1 C<n>.<m>=1 Activation d'un compteur rapide

Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4,


activation du compteur rapide numéro <m>, <m>=0,1.

Exemple

MC1.0=1
Démarre sur l'EasyPort USB ayant l'adresse 1 le compteur 0.

MC<n>.<m>=0 C<n>.<m>=0 Désactivation d'un compteur rapide

Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4,


désactivation du compteur rapide numéro <m>, <m>=0,1.

Activation et désactivation d'un compteur rapide

326 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Instruction Réponse Description

DC<n>.<m> C<n>.<m>=xxxx Lecture de la valeur d'un compteur

Sur le module EasyPort USB ayant l'adresse <n>, <n>=1…4,


lecture de la valeur du compteur rapide numéro <m>, <m>=0, 1.

La valeur du compteur est délivrée sous forme de nombre


hexadécimal xxx.

Exemple

DC1.0<CR> C1.0=2AC5<CR>
Lecture de la valeur du compteur 0 de l'EasyPort USB ayant
l'adresse 1. La valeur du compteur est 2AC5 en hexadécimal ou
10949 en décimal.

Lecture de la valeur d'un compteur

9.9 Un programme terminal vous permet d'établir une liaison avec


Exemple : l'EasyPort USB ainsi que d'envoyer et de recevoir des instructions via
établissement d'une l'interface série.
connexion à l'EasyPort
USB Pour effectuer son travail, le programme terminal a besoin de savoir:
quelle est l'interface série utilisée pour la communication,
quel est le paramétrage nécessaire de l'interface.

Pour établir une connexion à l'EasyPort USB, procédez donc aux


opérations suivantes:
1. Relier l'EasyPort USB au PC, alimenter l'EasyPort USB en tension.
2. Déterminer l'interface série pour la connexion USB.
3. Lancer le programme terminal.
4. Paramétrer l'interface série.
5. Envoyer des instructions à l'EasyPort.

L'établissement d'une connexion sera présenté en prenant l'exemple du


programme terminal HyperTerminal de Windows.

© Festo Didactic GmbH & Co. KG „ 721876 327

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

Marche à suivre
1. Reliez l'EasyPort USB au PC.
2. Mettez sous tension l'alimentation de l'EasyPort USB.
3. Lancez dans le menu Démarrer, à la rubrique Paramètres système,
l'option Panneau de configuration.
4. Sélectionnez l'option Système.
5. La fenêtre Propriétés du système s'ouvre.
Cliquez sous l'onglet Matériel sur le bouton Gestionnaire de
périphériques.

328 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

6. L'option Ports (COM & LPT) vous indique que l'interface série
utilisée pour la connexion USB est COM5.

7. Lancez à présent le programme HyperTerminal. Vous trouverez


HyperTerminal sous Programmes\Accessoires\Communications.

© Festo Didactic GmbH & Co. KG „ 721876 329

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

8. Créez d'abord une nouvelle connexion. Appelez-la EasyPort USB.

9. Les paramètres de la nouvelle connexion vous sont demandés dans


ce qui suit.
Comme interface, entrez dans le fenêtre Connect To l'interface
COM5 précédemmment déterminée.

330 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

10. Vous trouverez dans le présent manuel les paramètres nécessaires à


la transmission série de données via l'interface COM. Les indications
correctes sont les suivantes:

© Festo Didactic GmbH & Co. KG „ 721876 331

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

11. Entrez les autres propriétés dans la fenêtre Propriétés de l'EasyPort


USB. Vous trouverez la boîte de dialogue dans le menu File, sous
Properties. Cliquez sur l'onglet Settings.

332 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

12. Sous l'onglet Settings, cliquez sur le bouton ASCII Setup.

© Festo Didactic GmbH & Co. KG „ 721876 333

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

13. Dans la fenêtre ASCII Setup, choisissez les paramètres suivants:

14. Les données nécessaires à la communication par cette connexion


sont ainsi complètes. Vous pouvez à présent communiquer avec
l'EasyPort USB.

334 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

15. Faites d'abord exécuter l'instruction setup0. Cette instruction


initialise le module EasyPort USB.
Validez toujours les instructions à l'aide de la touche ENTER.

16. Vous recevez alors en réponse du module EasyPort USB la chaîne de


caractères setup1. Elle signifie que l'adresse réglée sur le module
EasyPort USB est l'adresse 1.
Le curseur passe alors à la ligne suivante.

© Festo Didactic GmbH & Co. KG „ 721876 335

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

17. Vous pouvez à présent envoyer des instructions à l'EasyPort USB et


lui demander, par exemple, son état. Pour ce faire, envoyez
l'instruction DS.

18. La réponse S=02 vous montre que le module EasyPort USB a été
correctement initialisé.

336 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


9. Interpréteur d'instructions de l'EasyPort USB

19. Si vous disposez d'une boîte de simulation, vous pouvez mettre à 1


des entrées sur l'EasyPort USB et demander l'état de ces entrées.

20. Dans notre cas, l'EasyPort USB retourne comme état des entrées
numériques la valeur 3. Les entrées à 1 sont donc les entrées 0 et 1
du port 1.

21. Si vous voulez mettre fin à la communication entre le programme


HyperTerminal et l'EasyPort USB, activez l'option Disconnect dans le
menu Call.

© Festo Didactic GmbH & Co. KG „ 721876 337

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


10. Création de vos propres applications

Pour créer des applications dans lesquelles doit avoir lieu un échange
de données avec l'EasyPort USB, utilisez le contrôle ActiveX de
l'EasyPort.

Le contrôle ActiveX constitue l'interface de programmation de


l'EasyPort et peut s'utiliser dans des systèmes de programmation tels
que Visual C++, Visual Basic for Applications ou encore LabVIEW.

L'aide en ligne du contrôle ActiveX décrit en détail,


sous quel nom intégrer le contrôle ActiveX dans votre projet de
logiciel,
quelles sont les méthodes disponibles pour l'échange de données et
comme les utiliser,
comment procéder pour établir une connexion de communication
avec l'EasyPort USB.

Vous trouverez le contrôle ActiveX de l'EasyPort sur le CD-ROM fourni.

Quand vous installez le contrôle ActiveX de l'EasyPort sur votre PC, le


groupe de programmes EasyPort est automatiquement créé dans le
menu Démarrer. Vous y trouverez aussi l'aide en ligne associée et une
application de démonstration du contrôle ActiveX.

Nous avons préparé à votre intention d'autres exemples d'application


du contrôle ActiveX sur le CD-ROM EasyPort. Ces exemples montrent
comment intégrer le contrôle ActiveX dans Excel, LabVIEW, InTouch ou
encore FluiSIM.

Dès que vous avez installé les exemples, vous les trouverez également
dans le menu Démarrer, dans le groupe de programmes EasyPort.

338 © Festo Didactic GmbH & Co. KG „ 721876

Heruntergeladen von manualslib.de Handbücher-Suchmachiene


Heruntergeladen von manualslib.de Handbücher-Suchmachiene
Heruntergeladen von manualslib.de Handbücher-Suchmachiene

Das könnte Ihnen auch gefallen