Entdecken Sie eBooks
Kategorien
Entdecken Sie Hörbücher
Kategorien
Entdecken Sie Zeitschriften
Kategorien
Entdecken Sie Dokumente
Kategorien
607062
Hinweise zur Sicherheit von Lasergerten sind mit dem Symbol Hinweise zu wichtigen Informationen sind mit dem Symbol
Die Siemens AG haftet nicht fr Schden,die durch unsachgeme Benutzung entstehen. Zur sachgerechten Verwendung gehrt auch die Kenntnis dieses Handbuchs. Fassung des Inhalts:V1.0 Copyright Siemens AG 2003 All rights reserved Weitergabe sowie Vervielfltigung dieser Unterlage, Verwertung und Mitteilung ihres lnhalts ist nicht gestattet, soweit nicht ausdrcklich zugestanden. Zuwiderhandlungen verpflichten zu Schadenersatz. Alle Rechte vorbehalten, insbesondere fr den Fall der Patenterteilung oder GM-Eintragung Technical Assistance: Telefon: +49 (0)9131-7-43833 (8 -17 MEZ) Fax: +49 (0)9131-7-42899 E-Mail: technical-assistance@siemens.com Internet: www.siemens.de/lowvoltage/technical-assistance Technische nderungen bleiben vorbehalten.
SPANISCH
ITALIENISCH
FRANZSISCH
gekennzeichnet.
ENGLISCH
DEUTSCH
Inhaltsverzeichnis
1 Allgemeines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.1 1.2 2 Zulassungen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Symbole und Begriffe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Systemberblick . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 2.2 2.3 2.4 PROFIBUS DP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 PROFIsafe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Laserscanner LS4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 PROFIsafe-Adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Sicherheitshinweise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.1 3.2 3.3 3.4 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 Gefahren bei Nichtbeachtung der Sicherheitshinweise . . . . . . . . . . . . . . . . . . . . . . . . . . Einsatzbedingungen und bestimmungsgemer Gebrauch . . . . . . . . . . . . . . . . . . . . . . Einsatzgebiete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Organisatorische Manahmen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Dokumentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Sicherheitsvorschriften . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Qualifiziertes Personal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Reparatur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Entsorgung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 13 15 15 15 15 15 15 16
Aufbau, Montage und elektrischer Anschluss . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.1 4.2 4.3 4.4 4.5 Aufbau . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Montage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Anschluss . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Anzeige . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PROFIBUS-Adresse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 16 17 19 20
Datenstruktur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.1 5.1.1 5.1.2 5.2 5.2.1 5.2.2 5.2.3 5.3 5.3.1 5.3.2 Zyklischer Datenaustausch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Zyklische Eingangsdaten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Zyklische Ausgangsdaten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Azyklischer Datenaustausch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Header fr azyklische Kommandos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Kommandos fr den PROFIsafe-Adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Kommandos fr den LS4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Alarme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Update-Alarm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Diagnose-Alarm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 21 23 25 26 28 34 40 41 41
Projektierung des Masters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 6.1 6.2 6.3 6.4 6.5 6.6 Hardwarekonfiguration in STEP 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Konfigurierung des PROFIsafe-Treibers in STEP 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . Diagnosedaten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LS4-Daten-Funktionsbaustein FB LS4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Anwenderprogramm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Reaktionszeit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 44 47 48 53 55
Inbetriebnahme und Gertetausch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 7.1 7.1.1 7.1.2 7.2 7.2.1 7.2.2 7.2.3 7.2.4 7.3 7.3.1 7.3.2 Einschaltverhalten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PC-Adapter nicht angeschlossen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PC-Adapter angeschlossen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Szenarien . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Erstinbetriebnahme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . nderung der Parametrierung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Einschalten eines parametrierten Gert . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Gertetausch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Programmierbeispiele . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . HW-Konfig Einstellung des Laserscanners LS4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Anwenderprogramm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 56 56 57 57 58 58 58 59 59 60
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Prfungen vor der ersten Inbetriebnahme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 Regelmige Prfungen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 Reinigen der Scheibe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
9 10
Technische Daten und Mazeichnungen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 Lieferumfang und Bestellhinweise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 10.1 10.2 Lieferumfang . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 Bestellhinweise LS4 PROFIBUS und Zubehr LS4 PROFIBUS . . . . . . . . . . . . . . . . . . . 67
11
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISCH
DEUTSCH
1
DEUTSCH 1.1 ENGLISCH FRANZSISCH 1.2 ITALIENISCH SPANISCH PORTUGUESE 6
Allgemeines
Der Sicherheits-Flchenscanner LS4 ist eine Aktive Opto-elektronische Schutzeinrichtung (Active Opto-electronic Protective Devices, AOPD) Typ 3 gem EN/IEC61496-1 und (pr)EN/IEC61496-3. Der PROFIsafe-Adapter ist eine Ergnzung des LS4 zur sicheren Ankopplung dieses Gertes an PROFIBUS-DP.
Zulassungen
Der SIGUARD Laserscanner LS4 PROFIBUS wurde unter Beachtung geltender europischer Richtlinien und Normen entwickelt und gefertigt. Die EG-Baumusterpfung nach EN IEC 61496 Teil 1 und Teil 3 wurde erteilt durch: TV Sddeutschland Group Zertifizierstelle Ridlerstrae 65 D-80339 Mnchen Produkt
Funktionsbaustein
Laserscanner Steuereinheit in einem Bussystem, verteilt das Buszugriffsrecht an Slaves Micro Memory Card
Kabelverbindung zwischen der optischen Parametrier- und DiagnoseSchnittstelle des LS4 PROFIBUS und der RS232-Schnittstelle eines PC Protokoll Data Unit
PROFIsafe Applikations-Profil sicherer PROFIBUS-Gerte, das durch eine sichere Software-Komponente, den PROFIsafe-Treiber, realisiert wird
Schutzfeld Systemfunktion dem Master kommunikationstechnisch untergeordnete Einheit, sendet auf dem Bus nur Antworten auf Anforderungen vom Master Speicherprogrammierbare Steuerung bertragung von Parametern von einem Slave zum Master Warnfeld Bezeichnung fr die beiden Micro-Controller im PROFIsafe-Adapter
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
LS4-Daten-FB
Funktionsblock in der S7 Master-Steuerung, der den automatischen Parameterabgleich mit dem LS4 PROFIBUS realisiert
ENGLISCH
DEUTSCH
2
DEUTSCH ENGLISCH FRANZSISCH ITALIENISCH SPANISCH PORTUGUESE 8 2.1
Systemberblick
PROFIBUS DP
PROFIBUS ist ein herstellerunabhngiger, offener Feldbusstandard mit breitem Anwendungsbereich in der Fertigungs- und Prozessautomatisierung. Herstellerunabhngigkeit und Offenheit sind durch die internationalen Normen EN 50170 und IEC 61158 garantiert. PROFIBUS ermglicht die Kommunikation von Gerten verschiedener Hersteller ohne besondere Schnittstellenanpassungen und ist sowohl fr schnelle, zeitkritische Anwendungen, als auch fr komplexe Kommunikationsaufgaben geeignet. Durch kontinuierliche technische Weiterentwicklungen ist PROFIBUS weiterhin das zukunftssichere industrielle Kommunikationssystem. PROFIBUS bietet funktional abgestufte Kommunikationsprotokolle (Communication Profiles): DP und FMS. Als bertragungstechniken (Physical Profiles) stehen hierfr, je nach Anwendungsbereich, RS-485, IEC 1158-2 oder Lichtwellenleiter zur Verfgung. An PROFIBUS DP knnen bis zu 126 Stationen angeschlossen werden, die sich das bertragungsmedium zeitmultiplex teilen. Die projektierbare Datenbertragungsrate betrgt 9,6 KBd bis 12 MBd, wobei die maximal erreichbare Rate von der Kabellnge begrenzt wird. Die meist benutzte RS485-Verkabelung erfordert einen Abschluss der Leitungsenden mit einer definierten Widerstands-Kombination (Zubehr siehe Kap. 10.2).
Master-Token Transfer
Slave 1
Slave 2
Slave n
Der Buszugriff wird ber ein Master/Slave-Protokoll mit berlagertem Token Passing gesteuert. Dabei erzeugt eine Master-Station eine Anforderung an eine kommunikationstechnisch untergeordnete Slave-Station, die auf die Master-Anforderung mit einem Antwort-Telegramm reagiert. Nur der Master, der aktuell im Besitz des Tokens ist, darf Anforderungs-Telegramme erzeugen. Mit dem Token wird das Bussteuerrecht zyklisch zwischen den Master-Stationen ausgetauscht. Neben der Peer-to-Peer-Kommunikation zwischen einem Master und einem Slave kann ein Master auch sog. BroadcastTelegramme erzeugen (Senden an Adresse 127), die zeitgleich von allen Slaves empfangen und ausgewertet, aber nicht quittiert werden. In sog. modularen Slaves knnen im PROFIBUS-Telegramm neben der Slave-Adresse auch Slot und Kanal angegeben werden. PROFIBUS DP kennt zwei Arten von Mastern: Master Klasse 1; ist die zentrale Komponente fr das Polling-Buszugriffsverfahren zum Datenaustausch mit den Ein-/Ausgabe-Gerten (Slaves). Er legt die Datenrate fest, an die sich die Slaves blicherweise automatisch adaptieren und steuert den TokenAustausch mit anderen Mastern. Mehrere Master Klasse 1 knnen gleichzeitig an PROFIBUS DP betrieben werden. Typische Master Klasse 1 sind SPSen und Steuerungs-PCs. Master Klasse 2; werden meist als Projektierungs- oder Visualisierungsgert benutzt und dienen als Hilfsmittel beim Systemstart und der Diagnose. Der Datenaustausch zwischen Master Klasse 1 und Slave kann zyklisch oder azyklisch erfolgen. Zyklische Daten werden in jedem Buszyklus in den Prozessabbild-Speicher des Master eingelesen bzw. von dort in die Slaves geschrieben. Es ist blicherweise keine Programmierung sondern lediglich eine Projektierung, d.h. Zuordnung der Daten des Master-Prozessabbildes zu den korrespondierenden Daten in den PROFIBUS-Slaves ntig. Das SPS-Programm greift einfach auf die Daten im Prozessabbild-Speicher zu ohne zu wissen, ob diese Daten lokal in der SPS oder ber einen PROFIBUS-Slave ein- bzw. ausgegeben werden. Den automatischen zyklischen Austausch bernimmt PROFIBUS. Azyklischer Datenaustausch kann von dem Master, der den Slave parametriert hat, durchgefhrt werden und benutzt die Funktionen READ und WRITE. Anwendung findet der azyklische Datenverkehr beispielsweise beim Transfer von Parameterstzen vom Master in den LS4 PROFIBUS (Download) bzw. vom LS4 PROFIBUS in den Master (Upload). Einen Sonderfall stellen Alarme dar. Sie werden innerhalb des zyklischen Datenverkehrs im PROFIBUS-Statusbyte beim Master angemeldet, der sich die eigentliche Alarm-Information mittels eines azyklischen Telegramms vom meldenden Slave holt. Diese Information wird vom Master in einen fr Alarme reservierten Speicherbereich (SAP51) geschrieben und kann vom Applikationsprogramm ausgewertet werden.
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISCH
DEUTSCH
Zur Projektierung jedes PROFIBUS DP Master Klasse 1 und jedes Slaves ist eine sog. Gertestammdaten-Datei (GSD) notwendig. Sie wird vom Hersteller des Masters bzw. des Slaves geliefert und beschreibt dessen Eigenschaften aus der Sicht von PROFIBUS. Neben den PROFIBUS-Daten wie z. B. untersttze Datenraten untersttzte Telegrammlnge Anzahl von Ein- und Ausgabedaten befinden sich in der GSD-Datei Informationen zu Diagnosemeldungen und spezifischen Gerteparametern.
PROFIsafe
PROFIsafe ist eine funktionale Erweiterung von PROFIBUS DP und ermglicht es, sichere Bus-Komponenten gemeinsam mit nicht sicheren Standard-Komponenten am selben Bus zu betreiben. PROFIsafe-Gerte erfordern keinerlei Vernderungen in den existierenden Hardware-Komponenten und fgen sich problemlos in bestehende Anlagen ein. Der PROFIsafe-Treiber ist eine Software-Komponente, die durch den TV zertifiziert wurde. Er setzt oberhalb der Kommunikationsschichten auf den PROFIBUS DP-Stack auf. Die Sicherheit der Datenbertragung wird durch eine spezielle Struktur der Nutzdaten erreicht, in die neben den eigentlichen Sicherheitsdaten ein Steuerbyte, eine laufende Nummer sowie eine weitere Prfsumme eingebettet ist. Die DestinationAdresse ermglicht die eindeutige Adressierung eines PROFIsafe-Gertes auch in Systemen mit mehreren PROFIBUS-Strngen, also mit evtl. mehrfachen SlaveAdressen fr gleichartige Gerte. Nur die zyklischen Daten werden sicher bertragen, d.h. vor der bertragung durch den PROFIsafe-Treiber verarbeitet.
Laserscanner LS4
Der Flchenscanner LS4 ist eine berhrungslos wirkende Schutzeinrichtung BWS vom Typ 3. Er sendet sehr kurze Laserimpulse und misst die Laufzeit bis zum Auftreffen eines Impulses auf ein Objekt sowie dessen Remission zum Empfnger im LS4. Aus der Laufzeit wird im Gert die Entfernung zwischen Objekt und LS4 berechnet. Die Abtasteinheit im LS4 rotiert und sendet / empfngt nach jeweils 0,36 einen Laserpuls. Dadurch wird ein Kreissektor von bis zu 190 abgetastet, in deren Mittelpunkt sich der LS4 befindet. Das zu berwachende Schutzfeld wird begrenzt durch eine beliebig geformte Kurve um den Scanner herum, deren maximaler Abstand zum Scannermittelpunkt 4 m betrgt. Wird ein Objekt zwischen dieser Begrenzungslinie und dem Scanner detektiert, das aktive Schutzfeld also verletzt, schaltet der Scanner seinen sicherheitsrelevanten OSSD-Ausgang ab und bringt damit eine gefahrbringende Bewegung zum Stillstand. Whrend des Betriebes kann eines von maximal 4 Schutzfeldern durch Ansteuerung eines von 4 Eingngen angewhlt werden.
2.4
PROFIsafe-Adapter
LS4 PROFIBUS setzt sich zusammen aus dem LS4 und dem PROFIsafe-Adapter. Der PROFIsafe-Adapter realisiert die Verbindung zu PROFIBUS und hat folgenden Aufbau:
Restart
Warn
OSDD1 SF1 .. 4
OSDD2
RS232
C1
C1
DPC31
PWR
Restart
PROFIBUS-DP
24VDC
PC-Adapter
11
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISCH
DEUTSCH
Abhngig von der Parametrierung kann der Scanner ein nicht sicherheitsrelevantes Warnsignal ausgeben, falls ein Anwender-definiertes Warnfeld verletzt wird. Dieses Warnfeld bildet zusammen mit dem Schutzfeld ein Schutzfeldpaar. Alle Schutzfeldpaare sowie die zulssigen Umschaltungen werden whrend der Inbetriebnahme an die jeweilige Anwendung angepasst.
Die sicherheitsrelevanten Ausgangssignale OSSD1 und OSSD2 und das Warn-Signal des LS4 werden durch den PROFIsafe-Adapter als Bit eines sicheren Telegramms zum PROFIBUS-Master (im Normalfall eine Sicherheits-SPS) bertragen. Der Abschaltvorgang der Gefahr bringenden Bewegung muss durch das Programm dieser Sicherheitsfolgeschaltung realisiert werden (siehe Kap. 7.3). Die Umschaltung der Schutzfeldpaare whrend des Betriebes erfolgt ber Ausgangsbits der SicherheitsSPS, die ber PROFIBUS und den PROFIsafe-Adapter an den LS4 (SF1 .. 4) bertragen werden. Das Restart-Signal fr den LS4 kann ber einen lokal an Buchse 1 angeschlossenen Taster (Kap. 4.3) oder ber PROFIBUS als Bit des zyklischen Ausgangsbytes (Kap. 5.1.2) bereit gestellt werden. Der optische PC-Adapter wird ber die Infrarot-Schnittstelle mit dem PROFIsafeAdapter verbunden, der die Telegramme an die RS232 des LS4 weiterleitet, sofern nicht gerade ein Parameterabgleich mit dem LS4-Daten-FB im Master luft (Kap. 5.1.2). Obwohl die Datenbertragung sicher ist, darf das Warnsignal nicht sicherheitsrelevant verwendet werden, da es nicht als sicheres Signal vom Scanner geliefert wird. Fr LS4 PROFIBUS ersetzt dieses Dokument die Anleitung der Anschaltung an das Maschinen-Interface in der Technischen Anleitung LS4-4. Beachten Sie unbedingt die lngere Reaktionszeit des LS4 PROFIBUS gegenber einem LS4 ohne PROFIBUS-Anschluss bei der Dimensionierung Ihrer Anwendung (Kap. 6.6)
3
3.1
Sicherheitshinweise
Gefahren bei Nichtbeachtung der Sicherheitshinweise
Entwicklung und Fertigung von Produkten der SIEMENS AG erfolgen unter sorgfltiger Anwendung anerkannter Regeln der Technik. Die Schutzfunktion der Gerte kann jedoch beeintrchtigt werden, wenn sie unsachgem oder nicht entsprechend ihres bestimmungsgemen Gebrauches eingesetzt werden. In diesem Fall knnen Gefahrbereiche nicht oder nicht vollstndig abgesichert werden. Gefahren fr Leib und Leben der Personen entstehen, welche sich in der Maschinen- oder Anlagenumgebung aufhalten. Achtung Laserstrahlung! Der Laserscanner LS4 ist ein Lasergert der Laserklasse 1. Beachten Sie die geltenden gesetzlichen und rtlichen Bestimmungen zum Betrieb von Laseranlagen. Vermeiden Sie die Anbringung des Scanners in Augenhhe.
3.2
ENGLISCH
DEUTSCH
Fr den Einsatz des Laserscanners LS4 PROFIBUS gelten die einschlgigen Vorschriften der Maschinensicherheit. Die zustndigen Behrden (z. B. Berufsgenossenschaften, OSHA) stehen fr sicherheitstechnische Fragen zur Verfgung. Generell sind die folgenden Einsatzbedingungen einzuhalten: Ist fr den Scanner ein Schutzgehuse vorgesehen, so darf die Detektion nicht durch weiteres Fenstermaterial (Kunststoff, Glas, etc.) erfolgen. Das Berhren des Scannerfensters und der sechs Streulichtscheiben ist zu vermeiden. Der Laserscanner LS4 PROFIBUS eignet sich nicht als Schutzeinrichtung, wenn mit dem Herausschleudern von gefhrlichen Flssigkeiten oder Gegenstnden mit langen Maschinenbremszeiten (max. Schutzfeldtiefe 4 m) gerechnet werden muss. Die Siemens AG bietet fr diese Flle geeignete Trverriegelungen (Sicherheitsschalter) ohne und mit Zuhaltung an. Arbeiten an Elektroanlagen sind ausschlielich von Elektrofachkrften auszufhren. Die 24 VDC Stromversorgung (+ 20 %, -30 %) muss durch einen Sicherheitstransformator gem IEC 742 erfolgen. Gleiche Anforderungen gelten fr alle angeschlossenen Ein- und Ausgabestromkreise. Die Versorgungsspannung muss dem Scanner ber einen separaten Zweig mittels einer im Schaltschrank installierten 1,25 Ampere Sicherung, mitteltrge, zugefhrt werden. Ein Test der Anlage (Scanner, Maschine, Steuer- und Schaltkomponenten) darf nur dann durchgefhrt werden, wenn hieraus fr Personen keine Gefhrdungen resultieren. Eingriffe und Vernderungen am Laserscanner LS4 PROFIBUS, knnen zum Verlust der Sicherheitsfunktion fhren. Inbetriebnahme, Wartung, Parametereinstellungen und Schutzfeldkonfigurationen sind nur von sachkundigem Personal durchzufhren. Die Kenntnis der Sicherheitshinweise dieser Technischen Anleitung und des Benutzerhandbuchs ber das Programm LS4soft ist Teil der Sachkunde. Das fr die Konfiguration von sicherheitsrelevanten Einstellungen notwendige Passwort ist vom Sicherheitsbeauftragten verschlossen aufzubewahren. Informationen ber die Passwortebenen finden Sie in der Bedienanleitung von LS4soft. Der Einsatz des Scanners fr die Personen-Durchgangskontrolle (vertikales Schutzfeld) gem IEC 61496-3 ist nicht zulssig.
3.3
Einsatzgebiete
Die SIGUARD Laserscanner LS4 dienen vorzugsweise der Gefahrbereichssicherung. Dabei wird bei vorwiegend horizontaler Ausrichtung der Aufenthalt von Personen im Schutzfeld stetig berwacht. Der Zugang zur Gefahrstelle darf bei Einsatz von LS4 nur durch das Schutzfeld mglich sein. Zwischen Schutzfeld und Gefahrstelle ist ein Sicherheitsabstand einzuhalten. Er errechnet sich nach den Formeln in den spezifischen maschinenbezogenen europischen C-Normen oder in der allgemeinen B1Norm EN 999. LS4 eignet sich grundstzlich nicht als Schutzeinrichtung, wenn mit dem Herausschleudern von Gegenstnden oder dem Herausspritzen von heien oder gefhrlichen Flssigkeiten gerechnet werden muss. Er eignet sich auch nicht fr Maschinen mit langen Nachlaufzeiten. Die Siemens AG bietet fr diese Flle geeignete Trverriegelungen (Sicherheitsschalter) ohne und mit Zuhaltung an. Zu beachten ist beim Einsatz des LS4 PROFIBUS dass sich die Reaktionszeit gegenber den Angaben in der Technischen Anleitung SIGUARD Laserscanner LS4 erhht und damit Einfluss auf den notwendigen Sicherheitsabstand zur Gefahrstelle hat (siehe Kap. 6.6).
3.4.1 Dokumentation
Alle Angaben dieser Technischen Anleitung, insbesondere die der Kapitel 2 und Kap. 7 mssen unbedingt beachtet werden. Bewahren Sie diese Technische Anleitung sorgfltig auf. Sie sollte immer verfgbar sein. Zustzlich muss die Technische Anleitung SIGUARD Laserscanner LS4, die die Funktion des Laserscanners beschreibt, beachtet werden.
3.4.2 Sicherheitsvorschriften
Beachten Sie die rtlich geltenden gesetzlichen Bestimmungen und die Vorschriften der Berufsgenossenschaften.
3.4.4 Reparatur
Reparaturen, insbesondere das ffnen des Gehuses, darf nur vom Hersteller oder einer vom Hersteller autorisierten Person vorgenommen werden. Eine Ausnahme macht hier die Einstellung der PROFIBUS-Adresse ber die Drehschalter, siehe Kapitel 4.5.
15
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
3.4
Organisatorische Manahmen
ENGLISCH
DEUTSCH
3.4.5 Entsorgung
Elektronikschrott ist Sondermll! Beachten Sie die rtlichen Vorschriften zu dessen Entsorgung! Der Laserscanner LS4 PROFIBUS enthalten keine Batterien oder andere Materialien, die vor der Entsorgung des Gertes zu entfernen wren.
DEUTSCH
4
4.1 ENGLISCH FRANZSISCH ITALIENISCH SPANISCH PORTUGUESE 16 4.2
1 2
Montage
Fr die Montage des LS4 PROFIBUS sind lngere Befestigungsschrauben von mindestens 50 mm Lnge und einem Durchmesser von 5 mm zu verwenden, ansonsten gelten die Montagehinweise zum SIGUARD Laserscanner LS4. Die Bohrmae entnehmen Sie bitte den Mazeichnungen in Kap. 9.
4.3
Anschluss
X5
X2
X3
X4
Abb. 4.3-1: Anschluss des LS4 PROFIBUS Buchse / Stecker X1 X2 X3 X4 Funktion Restart-Taste PROFIBUSAusgang PROFIBUSEingang Spannungsversorgung Pin 1 n.c. VP n.c. +24 VDC Pin 2 +24 VDC RxD/TxD-N RxD/TxD-N n.c. Pin 3 n.c. Pin 4 Restart Pin 5 n.c.
n.c.
RxD/TxD-P
Schirm n.c.
0 VDC n.c.
17
PORTUGUESE
SPANISCH
ITALIENISCH
DGND RxD/TxD-P
Schirm
FRANZSISCH
ENGLISCH
DEUTSCH
ber Stecker 1 ist der LS4 PROFIBUS mit 24 VDC +20, - 30% aus einem Netzgert entsprechend Schutzklasse 2 ber eine einseitig geschirmte max. 50 m lange Versorgungsleitung zu versorgen. Der Schirm ist am Schaltschrank aufzulegen. Die Versorgung des Laserscanners LS4 erfolgt ber den PROFIsafe-Adapter. An Stecker 2 und Buchse 3 sind geschirmte Standard-PROFIBUS-Kabel mit dem passenden M12-PROFIBUS-Stecker/-Buchse aufgeschraubt. Ist der LS4 PROFIBUS das letzte Gert am PROFIBUS, so muss ein normgerechter Abschlusswiderstand an Buchse 3 (siehe Kap. 10.2) angeschlossen werden. Buchse 1 des PROFIsafe-Adapters ist fr den Anschluss einer Restart-Taste vorgesehen. Diese Taste dient einerseits zum Entriegeln der Scanner-internen Anlauf-/ Wiederanlaufsperre, falls diese aktiviert wurde. Darber hinaus wird mit dieser Taste die Fehlerquittierung vorgenommen, die bentigt wird wenn der Scanner in Strung gegangen ist. Whrend der Bettigung der Restart-Taste sind die sicheren Ausgnge OSSD 1 und OSSD 2 des LS4 abgeschaltet; die Anzeige am Scanner (LED 3) leuchtet rot. Die Dauer des Rcksetz-Signals muss zwischen zwei und drei Sekunden betragen. Die zulssige Lnge der Restart Leitung betrgt 25 Meter. Der Schirm ist einseitig am Gert anzuschlieen. Zur Parametrierung sowie zur lokalen Diagnose des LS4 wird ein PC mit der Parametrier- und Diagnose-Software LS4soft ber eine RS232-Schnittstelle, das Programmierkabel und die optische Schnittstelle an der Oberseite des PROFIsafeAdapters angeschlossen. Der Kabelabgang des PC-Adapters am LS4 PROFIBUS zeigt dabei in Richtung Schutzfeld. Ein starker Magnet im PC-Adapter sorgt nicht nur fr mechanischen Halt sondern signalisiert gleichzeitig einem Reedkontakt im Gert, dass der PC-Adapter angeschlossen ist. Die Schnittstelle wird nur dann zum LS4 durchgeschaltet, wenn aktuell kein automatischer Parameter-Abgleich mit dem optionalen LS4-Daten-FB im Master erfolgt (Kap. 6.4). Da die Stromversorgung des PC-Adapters aus dem PC COM-Port erfolgt, muss dieser RS232-compliant sein, also bei einer Last von 3 kOhm noch eine Spannung von 5 Volt liefern knnen. Die bei Notebook-PCs gelegentlich vorkommende Angabe RS232-compatible reicht nicht aus. Der PROFIsafe-Adapter liest den Datenstrom zwar mit, beeinflusst ihn aber in keiner Weise. Diese Schnittstelle entspricht deshalb funktionell der RS232-Schnittstelle ber SUB-D-Stecker am LS4. Eine ausfhrliche Beschreibung der Software finden Sie im Benutzerhandbuch LS4soft.
Abb. 4.3-2: Verbindung von PC mit LS4 PROFIBUS ber optischen PC-Adapter
4.4
Anzeige
Unter der Auflageflche fr den PC-Adapter befindet sich eine LED, die den Status der Verbindung zu PROFIBUS anzeigt. Nach Anlegen der Versorgungsspannung durchluft der PROFIsafe-Adapter eine Initialisierungsphase, whrend der die LED fr zwei bis drei Sekunden Dauerlicht wiedergibt. Ein schnelles Blinken (ca. 5 Hz) bedeutet, dass er fr den Aufbau der PROFIBUS-Verbindung bereit ist. Nach erfolgreicher Verbindungsaufnahme erlischt diese Anzeige. Ein Fehler wird signalisiert, wenn die LED den Zustand Dauerlicht lnger als 3 Sekunden bei behlt oder einen Blinktakt kleiner ca. 5Hz anzeigt. Die verschiedenen Blinkraten sind fr Ferndiagnose mit dem Service Techniker vorgesehen. Signalisiert die LED bei Strungen keinen Fehler, dann sollte die Versorgungsspannung nochmals kontrolliert werden.
19
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISCH
DEUTSCH
PROFIBUS-Adresse
Nach dem Lsen der 6 oben liegenden Schrauben kann der Deckel des PROFIsafeAdapters abgenommen werden. Nun sind die beiden Hex-Schalter zugnglich, mit denen die PROFIBUS-Adresse eingestellt wird. HexL stellt dabei die niederwertigen 4 Bit, HexH die hherwertigen 4 Bit der PROFIBUS-Adresse ein. Adressen ber dezimal 126 (Hex 7E) sind nicht zulssig. Das wird dadurch verhindert, dass das hchstwertige Bit 7 nicht ausgewertet wird. Die Einstellungen 127 (Hex 7F) und 255 (Hex FF) drfen nicht verwendet werden. Werkeinstellung ist Adresse 4. Die fr das PROFIsafe-Protokoll bentigte sog. F_Dest_Add muss nicht separat eingestellt werden, sondern ergibt sich aus der PROFIBUS-Adresse + 500. Der Projektierer hat deshalb dafr zu sorgen, dass in jedem der miteinander in Verbindung stehenden PROFIBUS-Strnge jeder LS4 PROFIBUS eine andere PROFIBUSAdresse hat.
1 2
1 2
HexL HexH
Datenstruktur
Der LS4 PROFIBUS untersttzt sowohl den zyklischen als auch den azyklischen Datenverkehr. Zyklisch, also in jedem Buszyklus, werden die sog. zyklischen Eingangs- und Ausgangsdaten zwischen Master und LS4 PROFIBUS ausgetauscht. Die Bezeichnung Eingangs- bzw. Ausgangs-Daten bezieht sich dabei auf die Sichtweise des Masters: Eingangsdaten werden vom Master gelesen, sind also die Ausgangsdaten des LS4 PROFIBUS
Untersttzt werden die azyklischen Kommandos READ und WRITE, um auf Anforderung durch einen Master grere Datenblcke fr die Parametrierung oder das Auslesen von Messdaten transportieren zu knnen, ohne den zyklischen Echtzeitbetrieb permanent stark zu belasten.
5.1
Zyklischer Datenaustausch
Der zyklische Datenverkehr wird nach erfolgreicher Parametrierung unabhngig vom Zustand des LS4 gestartet. Die Eingangsdaten werden auf sichere Werte gesetzt, bis der LS4 hochgelaufen ist und ggf. sein Parametersatz vom LS4-Daten-FB berprft wurde.
Gibt den Zustand der OSSDs des LS4 an 0 Mindestens einer der beiden OSSDs des LS4 ist aus oder konnte nicht richtig eingelesen werden. ber die Bits 1-5 kann die Ursache fr OSSD = 0 ermittelt werden. Beide OSSDs des LS4 sind eingeschaltet.
Warnausgang Gibt den Zustand des Warnausgangs des LS4 wieder ber die Parametrierung des LS4 sollte dem Warnausgang die Warnung Verschmutzte Scheibe zugeordnet werden. 0 1 Der Warnausgang ist gesetzt. Der Warnausgang ist nicht gesetzt.
21
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISCH
Ausgangsdaten werden vom Master geschrieben und sind Steuersignale fr den LS4 PROFIBUS
DEUTSCH
Bit 5
Bedeutung
Zeigt an, ob ein Fehler im Gert aufgetreten ist (OSSD = 0 im Fehlerfall) Informationen zur Art des Fehlers liefert Kap. 5.3.2 0 1 Es ist kein Fehler im LS4 oder im PROFIsafeAdapter aufgetreten. Es ist ein Fehler im LS4 oder im PROFIsafeAdapter aufgetreten.
Betriebszustand
Zeigt den Betriebszustand des Gertes an Der LS4 kann sowohl ber den PROFIBUS (C1- oder C2Dienst) als auch ber die PC-Schnittstelle und den PC-Adapter parametriert werden. 0 1 Normaler Schutzbetrieb LS4-Parametrierzustand, LS4-Initialisierungphase oder die autom. Parameterkontrolle ist noch nicht erfolgt bzw. noch nicht beendet; OSSD = 0.
RS232 aktiv
Zeigt an, ob der optische PC-Adapter an der RS232 angeschlossen ist Beim Wechsel von 1 nach 0, das heit wenn der PC-Adapter entfernt wurde, wird immer das Proxy-Request-Bit (Bit 2) gesetzt, damit der LS4-Daten-FB, falls erforderlich, den Parametersatz im Master aktualisieren kann. 0 1 Es ist kein optischer PC-Adapter angeschlossen. Der optische PC-Adapter ist angeschlossen. Es kann keine LS4-Parametrierung ber den PROFIBUS erfolgen, C1- und C2-Dienste werden mit einer Fehlermeldung quittiert.
ProxyRequest
Vor dem ersten sowie whrend des Parameterabgleichs ist das OSSD-Bit auf 0 gesetzt. Wird whrend des Parameterabgleichs der optische PC-Adapter angeschlossen, so wird die RS232 und das Bit 3 erst aktiviert, wenn der Parameterabgleich abgeschlossen ist. In dieser Zeit kann das PC-Programm LS4soft keine Verbindung zum LS4 aufbauen. 0 Die Kontrolle des Parametersatzes durch den LS4Daten-FB muss nicht erfolgen. Dieses Bit wird mit Beginn der Parameterkontrolle auf 0 gesetzt. Tritt whrend der Parameterkontrolle ein Fehler auf, wird es wieder auf 1 gesetzt. Der LS4 PROFIBUS signalisiert dem LS4-Daten-FB im Master, dass er Parameter vom LS4 PROFIBUS anfordern bzw. bereit stellen und berprfen muss.
Bit 1
Bedeutung
0 1 0 Warnfeld
0 1
Tabelle 5.1-1: Zyklische Eingangsdaten Die zyklischen Eingangsdaten werden als PROFIsafe-Daten mit 16Bit-CRC bertragen. Die Bits 0-6 drfen nicht fr sicherheitsrelevante Entscheidungen genutzt werden. Die fehlersichere SPS muss hier lediglich das Bit 7 auswerten, um gegebenenfalls die nachgeschaltete Maschine freizugeben.
Erzeugt ein Restart-Signal auf der Restart-Leitung des LS4 Das fr den LS4 definierte Timing muss durch die SPS oder externe Sensoren sicher gestellt sein. 0 1 Kein Restart-Puls, Leitung auf 0 gesetzt. Der Restart Eingang des LS4 wird auf 1 geschaltet (Restart aktiv).
23
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISCH
Zeigt an, ob das Warnfeld verletzt ist. Dieses Bit darf nicht fr sicherheitsrelevante Entscheidungen verwendet werden!
DEUTSCH
Zeigt an, ob das Schutzfeld verletzt ist. Dieses Bit darf nicht fr sicherheitsrelevante Entscheidungen verwendet werden!
Bit 6
Bedeutung
Dieses Bit bestimmt, ob beim Einschalten des Scanners und nach dem ndern von Scanner-Parametern ber die optische PC-Schnittstelle ein automatischer Abgleich mit dem LS4-Daten-FB erfolgt. Dieses Bit wird nur beim Hochlaufen des PROFIBUS und beim Abnehmen des optischen PC-Adapters ausgewertet. Es sollte im Anwenderprogramm fest auf 1 oder auf 0 gelegt werden. 0 Das OSSD-Bit wird frei gegeben, ohne dass der LS4-Daten-FB gelaufen ist. Das Proxy-RequestBit im zyklischen Eingangsbyte (siehe Kap. 5.1.1) wird trotzdem gesetzt, muss aber vom Master nicht beachtet werden. Es erfolgt kein automatischer Parameterabgleich bei Austausch des LS4 PROFIBUS. Der LS4-Daten-FB wird aktiviert; der automatische Abgleich der Parameter zwischen Master und LS4 PROFIBUS erfolgt.
5 4 3 2 1 0
Wird mit 0 erwartet Wird mit 0 erwartet Wird mit 0 erwartet Whlt ein Schutz-/Warnfeld-Paar im LS4 aus Die Nummer des anzuwhlenden Schutzfeldes wird mit 1 - 4 erwartet. Jede andere Zahl wrde einen Umschaltfehler erzeugen und wird nicht an den LS4 weitergeleitet. Das OSSDBit wird bei ungltiger Schutzfeldnummer auf 0 gesetzt. Ca. 500 ms nachdem wieder eine gltige Schutzfeldnummer anliegt, wird das OSSD-Bit frei gegeben. Das heit nicht, dass grundstzliche alle Schutzfelder 1 bis 4 sowie beliebige Schutzfeld-Umschaltungen erlaubt sind, da ber die LS4-Parametrierung zustzliche Einschrnkungen mglich sind. Welche Schutzfelder in welcher Reihenfolge eingeschaltet werden drfen und welches Schutzfeld beim Einschalten aktiviert sein darf, ist mit LS4soft im LS4 hinterlegt. Fr korrektes Zeitverhalten beim Umschalten sorgt der PROFIsafe-Adapter. Das heit das SPS-Programm kann, anders als fr den LS4 beschrieben, unmittelbar von einem auf ein anderes zulssiges Schutzfeld umschalten, ohne fr max. 1 s beide Schutzfelder einzuschalten. Die Schutzfeldnummer wird wie folgt codiert: Schutzfeldnummer 1 2 3 4 Bit 2 0 0 0 1 Bit 1 0 1 1 0 Bit 0 1 0 1 0
Die zyklischen Ausgangsdaten werden als PROFIsafe-Daten mit 16Bit-CRC bertragen. Da der PROFIsafe-Adapter whrend der Hochlaufphase von PROFIBUS immer das Schutzfeld 1 anwhlt, mssen, wenn der Anlauf (nach einem Fehler oder nach dem Einschalten) mit jedem Schutzfeld mglich sein soll, bei der LS4-Parametrierung mindestens die von Schutzfeld 1 ausgehenden Umschaltreihenfolgen zugelassen werden.
5.2
Azyklischer Datenaustausch
Der azyklische Datenaustausch wird dann vorteilhaft verwendet, wenn relativ selten relativ groe Datenmengen bertragen werden mssen. Die gesamte Busbelastung kann dadurch vergleichsweise klein gehalten werden, was das Echtzeitverhalten der zyklischen Telegramme sichert. Fr die azyklische Datenbertragung wird ein bestimmter Zeit-Slot geschachtelt mit den zyklischen Telegrammen verwendet. Hier knnen mit READ und WRITE-Befehlen azyklische PROFIBUS-Daten bertragen werden, um z. B. den Parametersatz abzugleichen
Steuerbefehle zu bertragen Master Klasse 1-Befehle Die azyklischen Klasse 1 Schreib-/ Lesebefehle READ und WRITE sind fr LS4 PROFIBUS fr den automatischen Parameterabgleich erforderlich, der durch den LS4Daten-FB (Kap. 5.1.1) realisiert wird. Zustzlich ist es mglich, LS4-Kommandos unter Beachtung des Kommunikationsprotokolls und der Sicherheits-Vorschriften durch den sicheren Master SPS zu erzeugen und an den Scanner zu senden (Kap. 5.2.3). Darber hinaus knnen Steuer-Kommandos fr den PROFIsafe-Adapter erzeugt werden, die das gleiche Format wie LS4-Kommandos haben (Kap. 5.2.2). Es ist zu beachten, dass azyklische Kommunikation ber das SPS-Anwenderprogramms nur mglich ist, wenn folgende Bedingungen erfllt sind: Der LS4 PROFIBUS befindet sich im normalen Betriebszustand. An die optische Schnittstelle ist kein PC-Adapter angeschlossen (Reedkontakt nicht aktiviert).
Solange der PC-Adapter an die optische Schnittstelle angeschlossen ist, werden alle azyklischen WRITE-Kommandos ignoriert. Hat der LS4-Daten-FB den Parameterabgleich noch nicht beendet, so fhrt ein vom Anwenderprogramm erzeugtes azyklisches Kommando an diesen LS4 PROFIBUS zum Abbruch der Abarbeitung des LS4-DatenFBs mit einer Fehlermeldung. Diese Kommandos mssen deshalb mit dem LS4DatenFB synchronisiert werden (Kap. 5.2.2, FB_BUSY). Ein fehlerhaftes Kommando an den LS4 im Normalbetrieb kann einen Fehler am LS4 auslsen, so dass dieser in den sicheren Zustand versetzt wird (OSSD = 0).
25
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISCH
DEUTSCH
Master Klasse 2-Befehle ber Master Klasse 2-Befehle knnen alle LS4-Kommandos verwendet werden (Kap. 5.2.3), nicht aber die speziellen Kommandos fr den PROFIsafe-Adapter zur Steuerung der automatischen Konfiguration (Kap. 5.2.2). Alle Kommandos werden transparent von und zur RS232 des LS4 bertragen. Die Kommunikation ber Klasse 2-Befehle ist zu einem Zeitpunkt nur fr einen Master erlaubt.
5 - 196 Nutzdaten Tabelle 5.2-1: Header fr azyklische Kommando-Telegramme Da der LS4 bis zu 2 Minuten braucht um Daten zu verarbeiten, wird das DatenflussSteuerbyte beim READ-Kommando vom LS4 PROFIBUS gesetzt und muss vom Master ausgewertet werden. Beim WRITE-Kommando setzt der Master dieses Byte auf 0.
Sowohl fr READ als auch fr WRITE werden die Bits im Datenfluss-Steuerbyte vom LS4 PROFIBUS folgendermaen gesetzt: Bit 0 Wert 0 Bedeutung Der LS4 PROFIBUS kann kein WRITE-Kommando bearbeiten. Wird trotzdem ein WRITE-Kommando an den LS4 PROFIBUS gesendet, so wird dieses nicht bearbeitet, ein Fehler in den Fehlerpuffer eingetragen und ein Alarm an den Master abgesetzt. Der PROFIsafe-Adapter ist bereit zum Schreiben des ersten oder nchsten Datenblocks. In diesem Datenblock sind keine Nutzdaten enthalten. In diesem Datenblock sind Nutzdaten enthalten. reserviert reserviert
1 1 0 1 2 3 0 0
0, 0, 1 Es konnte noch kein Kommunikationspfad eingestellt werden. Kann nur vom Master Klasse 2 empfangen werden, wenn der PROFIsafe-Adapter noch nicht vollstndig hochgelaufen ist. 0, 1, 0 Der PC-Adapter ist an die optische Schnittstelle angeschlossen. In diesem Zustand werden azyklische WRITE-Kommandos ignoriert; es erfolgt keine Fehlermeldung. 0, 1, 1 Der LS4-Daten-FB des Masters bearbeitet gerade ein azyklisches Kommando (READ oder WRITE). Jedes zustzliche azyklische WRITE- oder READ -Kommando fhrt zu einem Fehler im Ablauf des LS4-Daten-FB. Diese Fehler knnen durch Abfrage des FB-Ausgangs FB_BUSY auf dem Master verhindert werden. 1, 0, 0 Normaler Betrieb; Die azyklischen READ- und WRITE-Kommandos knnen unter Bercksichtigung der Bits 0 und 1 abgesetzt werden. 1, 0, 1 Es ist keine Kommunikationsverbindung aktiv. Das heit es besteht keine Verbindung zu einem Master Klasse 1 und der PC-Adapter ist nicht an die optische Schnittstelle angeschlossen. Dieser Zustand kann nur einem Master Klasse 2 angezeigt werden. 7 0 reserviert
27
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
6, 5, 4 In diesen Bits wird mit einer Nummer der Kommunikationszustand des PROFIsafe-Adapters angezeigt.
ENGLISCH
DEUTSCH
Die maximal Lnge fr einen Datensatz betrgt 240 Byte, die minimale Datensatzlnge ist 5 Byte. Es ist nur der Slot 0 zu verwenden. Als Index kann 2 oder 3 verwendet werden, beide werden vom PROFIsafe-Adapter gleich behandelt. Falls im Master nicht mit dynamischer Datensatzlnge gearbeitet werden kann, ist es durch die Verwendung dieser zwei Indizes mglich die Busbelastung niedrig zu halten, indem kurze Nachrichten ber einen kurzen Datensatz (z. B. DS2 (Index2)) und lange Nachrichten ber einen langen Datensatz (z. B. DS3 (Index3)) bertragen werden. Welcher Datensatz verwendet wird, bestimmt der Master. Es werden nur die im Header beschriebenen Datenbytes ausgewertet. Neben der lokalen Parametrierung ber die PC-Schnittstelle RS232 kann die Parametrierung des LS4 ber den PROFIBUS nur durch den LS4-Daten-FB in einem Master Klasse 1 (automatischer Parameterabgleich) ber azyklische READ- und WRITEBefehle erfolgen. Nachfolgend wird auf die Struktur von azyklischen Kommandos eingegangen, die durch den Anwender programmiert werden knnen. Dabei wird unterschieden in Kommandos fr den PROFIsafe-Adapter und solchen fr den LS4. Da der LS4 PROFIBUS Kommandos bentigt um LS4-Daten bereit zu stellen, kann ein LS4-Datensatz nicht direkt mit einem READ-Kommando abgefragt werden. Eine vollstndige LS4-Datenabfrage setzt sich deshalb stets zusammen aus einem WRITE, in dem der Master mit einem Kommando spezifiziert welche Daten er lesen will gefolgt von einem READ, mit dem die angeforderten und zwischenzeitlich bereit gestellten Daten ausgelesen werden. Hingegen knnen einige Kommandos an den PROFIsafe-Adapter direkt mit einem WRITE-Kommando gesetzt werden.
Alle nachfolgend beschriebenen LS4 PROFIBUS-Kommando-Telegramme mssen zustzlich mit dem oben beschriebenen Header (Tab. 5.2-1) versehen werden (Master LS4 PROFIBUS) oder sind vom PROFIsafe-Adapter mit dem oben beschriebenen Header versehen (LS4 PROFIBUS Master). Beschrieben werden hier ausschliesslich die Nutzdaten. Deshalb beginnt die Nummerierung in den nachfolgenden Tabellen mit Byte 5, dem ersten Nutzdaten-Byte.
Byte 5 6 7
5.2.2.1
Tabelle 5.2-4: PROFIsafe-Adapter; Rcksetzen Es erfolgt keine Antwort des PROFIsafe-Adapters. Sofort nach Empfang dieses Kommandos wird das Rcksetzen (wie Power-On Reset) des PROFIsafe-Adapters durchgefhrt. Die PROFIBUS-Verbindung ist dabei ca. 2s unterbrochen. Der LS4 wird hiervon nicht beeinflusst (Restart LS4 siehe Kap 5.1.2).
5.2.2.2
29
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISCH
DEUTSCH
Ist das Telegramm fr den PROFIsafe-Adapter bestimmt, so werden die Telegrammlnge und die Parameterbereichsgrenzen berprft. Sind diese fehlerhaft, so wird mit einem Fehlertelegramm geantwortet. Der PROFIsafe-Adapter antwortet bei fehlerhaften Master READ-Kommandos mit:
Byte 7
Beschreibung 0 = nur ein Telegramm wird an den Master weiter geleitet. 1 = die oben ausgewhlten Telegramme werden permanent an den Master weitergeleitet (bei Messwert-Telegrammen nur verwenden wenn der Master die Telegramm tatschlich liest, da die Telegramme sonst veralten). Fehleroder Warnungs-Telegramme werden vom LS4 nur einmal gesendet, so dass diese nur sicher empfangen werden knnen, wenn Byte 7 = 1 ist. >1 = nicht zulssig
Tabelle 5.2-5: PROFIsafe-Adapter; Weiterleiten von LS4-Telegrammen Als Antwort wird das oder die ausgewhlten Telegramme geschickt. Da der PROFIsafe-Adapter mehrere Telegramme des LS4 zwischen speichert, steht die Antwort, falls das gewnschte Telegramm vorhanden ist, sofort zum Lesen bereit. Erst wenn dieses vom Master abgeholt wurde, wird ein neues Telegramm aus den aktuell vom LS4 empfangenen Telegrammen bereit gestellt. Werden z. B. die Messwert-Telegramme permanent an den Master weiter geleitet und sollte der LS4 ein Fehler- oder Warnungs-Telegramm erzeugen, so wird dieses in einem zweiten Puffer fr den Master abgelegt, sofern auch dieses weiter geleitet werden soll. Dadurch kann auch ein langsamer Master sowohl alle MesswertTelegramme auslesen als auch Fehler- oder Warnungs-Telegramme empfangen.
Antwort des PROFIsafe-Adapters auf nachfolgendes Master READ-Kommando: Byte 5 6 7 8 9 Beschreibung Versionsabfrageantwort PROFIsafe-Version (high Byte) PROFIsafe-Version (low Byte) PROFIBUS DP-Version (high Byte) PROFIBUS DP-Version (low Byte) Antwort des PROFIsafe-Adapters 0x90 1 0 1 0
Byte 10
Beschreibung DPV1SL Komponenten (high Byte) 0x01 = V1SL_COMP_INSTALLED_C2 0x02 = V1SL_COMP_INSTALLED_C2_RQB_IFA 0x04 = V1SL_COMP_INSTALLED_IBC 0x08 = V1SL_COMP_INSTALLED_ASPC2 0x10 = V1SL_COMP_INSTALLED_DPC31 0x20 = V1SL_COMP_INSTALLED_SPC3 0x40 = V1SL_COMP_INSTALLED_DPR
11
DPV1SL Komponenten (low Byte) 0x01 = V1SL_COMP_INSTALLED_C2 0x02 = V1SL_COMP_INSTALLED_C0_RQB_IFA 0x04 = V1SL_COMP_INSTALLED_SUB_AL 0x08 = V1SL_COMP_INSTALLED_SUB_C1 0x20 = V1SL_COMP_INSTALLED_SUB_S7 0x40 = V1SL_COMP_INSTALLED_SUB_SC
0x0D
12 13 14
6 5 1
31
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISCH
DEUTSCH
Antwort des PROFIsafe-Adapters auf nachfolgendes Master READ-Kommando: Byte 5 6 7 8 9 10 11 12 13 Beschreibung 0x84 = Antwort fr letzten Fehler vom Slave high Byte Fehlernummer in C2 low Byte Fehlernummer in C2 high Byte der Anzahl wie oft dieser Fehler seit dem letzten Power-On in C2 aufgetreten ist low Byte der Anzahl wie oft dieser Fehler seit dem letzten Power-On in C2 aufgetreten ist high Byte Fehlernummer in C1 low Byte Fehlernummer in C1 low Byte der Anzahl wie oft dieser Fehler seit dem letzten Power-On in C1 aufgetreten ist high Byte der Anzahl wie oft dieser Fehler seit dem letzten Power-On in C1 aufgetreten ist
Antwort des PROFIsafe-Adapters auf nachfolgendes Master READ-Kommando: Byte 5 6 7 8 9 10 11 ... ... 46 47 48 49 50 51 52 53 ... ... 88 89 Beschreibung 0x91 = Antwort fr alle Fehler vom PROFIsafe-Adapter
Schreibindex des zuletzt in den Ringpuffer eingetragenen Fehlers in C2 0 = Fehler ist beim letzten Zyklus aufgetreten 1 = Fehler ist schon lter Fehlernummer (high Byte) Index 0 in Ringpuffer von C2 Fehlernummer (low Byte) Index 0 in Ringpuffer von C2 Fehlernummer (high Byte) Index 1 in Ringpuffer von C2 Fehlernummer (low Byte) Index 1 in Ringpuffer von C2 ... ... Fehlernummer (high Byte) Index 19 in Ringpuffer von C2 Fehlernummer (low Byte) Index 19 in Ringpuffer von C2 Schreibindex des zuletzt in den Ringpuffer eingetragenen Fehlers in C1 0 = Fehler ist beim letzten Zyklus aufgetreten 1 = Fehler ist schon lter Fehlernummer (high Byte) Index 0 in Ringpuffer von C1 Fehlernummer (low Byte) Index 0 in Ringpuffer von C1 Fehlernummer (high Byte) Index 1 in Ringpuffer von C1 Fehlernummer (low Byte) Index 1 in Ringpuffer von C1 ... ... Fehlernummer (high Byte) Index 19 in Ringpuffer von C1 Fehlernummer (low Byte) Index 19 in Ringpuffer von C1
Tabelle 5.2-8: PROFIsafe-Adapter; Fehlerspeicher auslesen Der Inhalt des Fehlerspeichers bleibt beim Restart des System erhalten, geht aber beim Ausschalten des Gertes verloren.
33
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISCH
DEUTSCH
Option 1 Option 1 wird immer mit gesendet und besitzt folgenden Aufbau: 7 6 5 4 3 2 1 0 Bit
aktueller Betriebszustand
Die Anzahl der Optionsbytes ist auf 1-3 (Bit 0 & Bit 1) beschrnkt Das Feld aktueller Betriebszustand (Bit 2-4) zeigt den Betriebszustand an, welcher im Augenblick aktiv ist, und besitzt folgenden Aufbau: 000 keine Angabe (bei Nachrichten zum LS4) 001 Initialisierung 010 Messbetrieb 011 Konfiguration 100 Fehler/Strung Da die Anzahl der Optionsbytes mindestens 1 ist, besitzt Option 1 niemals den Wert 0x00. Tabelle 5.2-9: Struktur der Optionsbytes in LS4-Kommandos
Name
Beschreibung
Option 2 Option 2 bertrgt Statusinformationen ber die einzelnen Schutzfelder + Strung + Warnung + Wiederanlaufsperre. Es wird nur dann bertragen, wenn wenigstens ein Flag gesetzt ist, d.h. dieses Bytes kann nicht den Wert 0x00 besitzen. Wenn diese Option bertragen wird, so muss die Anzahl der Optionsfelder in Option 1 mindestens 2 betragen. Dieses Optionszeichen besitzt folgenden Aufbau: 7 6 5 4 3 2 1 0 Bit
Strung
35
PORTUGUESE
SPANISCH
Bei Nachrichten zum LS4 hat dieses Optionsbyte keine Bedeutung. Bit 7 ist auf 1 gesetzt, wenn Option 3 bertragen werden muss, damit Option 2 nicht den Wert 0 annehmen kann.
ITALIENISCH
FRANZSISCH
ENGLISCH
DEUTSCH
Name
Beschreibung
Option 3 Option 3 bertrgt Statusinformationen ber die ausgewhlten Schutzfeldpaare. Es wird nur dann bertragen, wenn wenigstens ein Flag gesetzt ist, d.h. dieses Byte kann nicht den Wert 0x00 besitzen. Wenn dieses Optionsbyte bertragen wird, so muss die Anzahl der Optionsfelder im Byte Option 1 mindestens 3 betragen. Dieses Optionsbyte besitzt folgenden Aufbau: 7 6 5 4 3 2 1 0 Bit
1. ausgewhltes Schutzfeldpaar
2. ausgewhltes Schutzfeldpaar
reserviert
=1
Da es vorkommen kann, dass whrend einer Schutzfeldumschaltung zwei Schutzfeldpaare gleichzeitig ausgewhlt sind, sind zwei Angaben fr das ausgewhlte Schutzfeldpaar ntig. Bei den ausgewhlten Schutzfeldpaaren bedeutet: 0: nichts ausgewhlt 1-4: Schutzfeldpaar 1-4 ausgewhlt Bei Nachrichten zum LS4 besitzt dieses Byte keine Bedeutung. Tabelle 5.2-9: Struktur der Optionsbytes in LS4-Kommandos
5.2.3.1
Tabelle 5.2-10: Aufbau des Alive-Telegramms Steht kein Telegramm vom LS4 zur Verfgung so wird ein Block ohne Dateninhalt geschickt.
5.2.3.2
Fehler-Telegramm
Tritt im LS4 ein Fehler auf, so wird folgendes Kommando als Alarm (Kap. 5.3.2) oder auch als Antwort auf ein azyklisches READ-Kommando an den Master geschickt. Byte 5 6 7 8 9 10 11 12 13 14 Beschreibung 0x53 = COM_CMD_ERROR_OCCURE Option 1 Option 2 Option 3 Fehler-Nummer (High Byte) des LS4 Fehler-Nummer (Low Byte) des LS4 Fehler-Parameter (High Byte) des LS4 Fehler-Parameter (Low Byte) des LS4 Fehler-Funktion (High Byte) des LS4 Fehler-Funktion (Low Byte) des LS4
Warnungs-Telegramm
Ist die Scheibe des LS4 zu stark verschmutzt, so wird folgendes Kommando als Alarm oder auch als Antwort auf ein azyklisches READ-Kommando an den Master geschickt. Byte 5 6 7 8 9 10 11 12 13 14 Beschreibung 0x54 = COM_CMD_WARNING_OCCURE Option 1 Option 2 Option 3 Fehler-Nummer (High Byte) des LS4 Fehler-Nummer (Low Byte) des LS4 Fehler-Parameter (High Byte) des LS4 Fehler-Parameter (Low Byte) des LS4 Fehler-Funktion (High Byte) des LS4 Fehler-Funktion (Low Byte) des LS4
Messwert-Telegramm
Wenn Messwert-Telegramme mit PROFI_CMD_GET_LS4_DATA freigeschaltet sind, dann kann der Master, wenn der LS4 Messwert-Telegramme schickt, diese in folgendem Format lesen. Byte 5 6 7 8 9 ... Beschreibung 0x23 = COM_CMD_MESS_16_RT Option 1 Option 2 Option 3 Nutzdaten (siehe unten)
Tabelle 5.2-13: Aufbau des Messwert-Telegramms Die Anzahl der Nutzdatenbytes ist abhngig von der Parametrierung des LS4. Steht kein Telegramm vom LS4 zur Verfgung so wird ein Nutzdaten-Block ohne Dateninhalt geschickt.
Byte 9
Name ScanNummer
Beschreibung
Gre
Bei jeder Umdrehung des LS4 wird eine Scan-Num- 8 Byte mer inkrementiert. Diese Scan-Nummer kann verwendet werden, um den zeitlichen Abstand zwischen zwei ausgegebenen Messkonturen zu ermitteln. Die eigentliche Scan-Nummer ist 32 Bit gro. Damit ein kleiner Wert bei der bertragung dieser 4 Bytes keine Mehrfach-Null erzeugt, werden zwischen den einzelnen Bytes der Scan-Nummer Fllbytes mit dem Wert 0xFE eingefgt. Somit ergibt sich folgender Aufbau der Scan-Nummer: Bit 24-31 0xFE Bit 16-23 0xFE Bit 8-15 0xFE Bit 0-7 0xFE Gibt den Abstand in Segmenten (Messpunkten) zwi- 1 Byte schen zwei aufeinander folgenden Messwerten an. Beispiel: Die Messkontur wird beginnend vom Messwert 0 bis 528 ausgegeben und die Auflsung ist auf den Wert 4 gesetzt. Ausgegeben werden die Messwerte an folgenden Segmenten der gemessenen Kontur: 0 4 ... 524 528 Gibt an bei welchem Segment (0 .. 528) der gemessenen Kontur die Ausgabe beginnt. 2 Byte
18
Ausgabe Start
39
PORTUGUESE
SPANISCH
ITALIENISCH
17
Auflsung
FRANZSISCH
ENGLISCH
DEUTSCH
Jede gemessene Kontur besitzt 529 Messwerte (Winkel -5.04 - 185.04 mit 0.36 Auflsung). Jeder einzelne Messwert besitzt eine Segment-Nummer beginnend mit 0 der Messwert an der Stelle -5.04 besitzt die Segment-Nummer 0 und der Messwert an der Stelle 0 besitzt die Segment-Nummer 14. Innerhalb einer Messnachricht mssen nicht unbedingt alle Werte der gemessenen Kontur bertragen werden (siehe Auflsung, Ausgabe-Start und Ausgabe-Stop). Folgende Daten werden innerhalb einer Messkontur bertragen:
Byte 20
Beschreibung
Gre
Gibt an welches Segment (0 .. 528) den letzten Mess- 2 Byte wert liefert. Wenn das Verhltnis zwischen Anzahl der ausgegebenen Messwerten (durch Ausgabe-Start und Ausgabe-Stop) und Auflsung nicht aufgeht, so wird der dem Ausgabe-Stop entsprechende Messwert mit ausgegeben. Nacheinander werden die einzelnen Messwerte beginnend mit dem Messwert entsprechend AusgabeStart und endend mit dem Messwert entsprechend Ausgabe-Stop bertragen. Jeder Messwert entspricht hierbei der gemessenen Distanz zwischen LS4-Drehachse und Objekt an der entsprechenden Winkelposition in Millimeter. Das Bit 0 eines jeden Messwertes definiert, ob zwischen dem entsprechenden Messwert und dem vorherigen Messwert die gemessene Kontur ein Schutzfeld verletzt hat bei Auswertung der Messwerte als Entfernungswert muss Bit 0 ausmaskiert werden. je nach Ausgabe Start und Stop, je 2 Byte
22
Messwerte
Tabelle 5.2-14: Struktur der Messdaten im Messwert-Telegramm 2 Byte-Werte innerhalb des Messwert-Telegramms werden in der Reihenfolge High Byte-Low Byte bertragen.
Alarme
Alarme werden von PROFIBUS automatisch zum Master bertragen, wenn sie im zyklischen Telegramm im PROFIBUS-Statusbyte beim Master angemeldet werden. Dieser holt sich die eigentliche Alarm-Information mittels eines azyklischen Telegramms vom meldenden Slave und schreibt sie in einen fr Alarme reservierten Speicherbereich (SAP51). Das Applikationsprogramm kann die Alarmmeldung nun auswerten, ohne diese Daten explizit ber READ anzufordern.
Sequ. Nr
5.3.2 Diagnose-Alarm
Fehler oder Warnungen des LS4 und Fehler im PROFIsafe-Adapter werden ber den PROFIBUS als Diagnose-Alarme gemeldet. Jeder neue Fehler wird als neuer kommender Alarm gemeldet. Dauerhaft anliegende Fehler werden bei stehender Verbindung nur einmal gemeldet. Bei Unterbrechung der Verbindung und erneutem bergang in den zyklischen Datenverkehr wird der letzte aufgetretene Fehler, falls er noch anliegt, erneut als kommender Alarm gemeldet. Liegt mindestens 500 ms kein Fehler mehr vor, so wird ein gehender Alarm gesendet. Es wird der Sequenzmode fr 8 Alarme untersttzt, das heit bis zu 8 Alarme werden im PROFIsafe-Adapter zwischen gespeichert, bis sie vom Master abgeholt werden. Die Diagnose-Alarm-PDU ist wie folgt codiert: Byte Bit 7 1 2 3 4 5 6 7 0 0 0 0 1 x x 6 0 0 0 0 0 x x 5 0 0 0 4 0 0 0 3 1 0 0 2 1 0 0 1 1 x x 1 0 0 0 0 0 x x 0 1 Lnge der Alarm-PDU inklusive Header, abhngig vom Alarm 1 Typ ist Diagnose-Alarm 0 keine Slots (Slot 0) 0 keine Alarm Differenzierung, mit Quittung, Sequenznummer 0-7 0 Fehlercode 0x84 = Fehler vom Slave x x high Byte Fehlernummer in C2 low Byte Fehlernummer in C2 Beschreibung
Sequ. Nr 0 x x 0 x x 0 x x
Byte
Bit 7 6 x x x x x x 5 x x x x x x 4 x x x x x x 3 x x x x x x 2 x x x x x x 1 x x x x x x 0 x x x x x x
Beschreibung
8 9 10 11 12 13
x x x x x x
high Byte der Anzahl dieses Fehlers seit dem letzten Power-Up in C2 low Byte der Anzahl dieses Fehlers seit dem letzten Power-Up in C2 high Byte Fehlernummer in C1 low Byte Fehlernummer in C1 high Byte der Anzahl dieses Fehlers seit dem letzten Power-Up in C1 low Byte der Anzahl dieses Fehlers seit dem letzten Power-Up in C1
Tabelle 5.3-2: Aufbau des Diagnose-Alarms Mit dem Fehlercode, der in den Bytes 6 und 7 bzw. 10 und 11 steht, wird der letzte aufgetretene Fehler vom LS4 oder von C1 oder C2 im PROFIsafe-Adapter angezeigt. Er hat folgende Bedeutung: Code Ursache / Bedeutung LED am LS4 leuchten nicht Manahme zur Fehlerbehebung +24 VDC Versorgungsspannung prfen (auch auf Verpolung), Anschlusskabel prfen, ggf. Gert tauschen Ungltiger Betriebszustand; kann bei Strungen am PROFIBUS auftreten. Ungltiger Betriebszustand; kann bei Strungen am PROFIBUS auftreten. Nur die Schutzfelder 1 bis 4 anwhlen. Das Datenfluss-Steuerbyte (Kap. 5.2.1) bei azyklischen WRITEKommandos auswerten.
0x2418
Der PROFIsafe-Treiber kann die zyklischen Outputdaten nicht prfen Die Bearbeitung der Outputdaten liefert kein konsistentes Ergebnis Falsche Schutzfeldnummer PROFIBUS -Telegramm konnte nicht bearbeitet werden
0x2A05
Alle Lesepuffer fr PROFIBUS -Te- Nach jedem WRITE-Kommando legramme belegt muss das vom PROFIsafe-Adapter angeforderte Resultat durch den Master abgeholt werden. PROFIBUS-Telegramm zu lang (>=1100 Byte) Nur gltige azyklisches WRITE-Kommandos generieren.
0x2A06
Ursache / Bedeutung
6.1
ITALIENISCH
FRANZSISCH
ENGLISCH
Unbekannter Zustand des LS4-Da- Azyklische READ-und WRITE-Komten-FB mandos drfen erst dann bearbeitet werden, wenn der LS4-Daten-FB den Fehler bei CRC-Vergleich Parameterabgleich komplett durchgefhrt hat; FB_BUSY beachten Echodaten CRC Nr. x falsch (Kap. 6.4). CRC Nr. x anders bei Lesewiederholung
DEUTSCH
Unerwartete Blocknummer in PRO- Die Blcke der Telegramme mssen FIBUS-Telegramm sequenziell durchnumeriert werden.
Erluterung Einstellbar 0 oder 1 (default: 0) 0 - die laufende Nummer wird nicht in die CRC einbezogen 1 - die laufende Nummer wird mit in die CRC einbezogen Nicht einstellbar, fest auf 0 fr keine iParameter Nicht einstellbar, fest auf 1 fr SIL2 Nicht einstellbar, fest auf 1 fr 2 Byte CRC Nicht einstellbar, fest auf 0 Nicht einstellbar, fest auf 0 Einstellbar 1 - 65534 (default 1) Anmerkung: wird vom SIMATIC-Manager automatisch vergeben muss eingestellt werden auf 500 + PROFIBUS-Adresse (Werkeinstellung = 504). Das Gert verfgt ber Hex-Schalter, mit denen die PROFIBUSAdresse eingestellt werden kann. Die PROFIsafe DestinationAdresse wird aus der 16 Bit Summe von 500 und der PROFIBUS-Adresse gebildet und ist vom Anwender bei der Projektierung anzugeben. Damit ist in einem System mit nur einem PROFIBUS-Strang sicher gestellt, dass die Destination-Adresse eindeutig ist. Nur diese Destination-Adresse wird vom LS4 PROFIBUS akzeptiert. Bei einem System mit mehreren PROFIBUS-Strngen liegt es in der Verantwortung des Anwenders dafr zu sorgen, dass alle im Gesamtsystem vorhandenen LS4 verschiedene PROFIBUS-Adressen erhalten, um die geforderte Eindeutigkeit der Destination-Adresse zu erreichen. Das hier beschriebene Gert ist ein PROFIBUS-Slave mit nur einem PROFIsafe-Modul. Es ist daher kein zustzlicher Mechanismus erforderlich, um einzelne Module zu unterscheiden. Watchdog-Zeit einstellbar in Millisekunden 10 - 65535 (default = 10). Die F_WD_Time muss bei der Projektierung immer mit greren Werten nach der Gleichung F_WD_Time = max(10 ms, tscan_rec)*2 + 4 * Bus_Cycle_Time mit tscan_rec = Zykluszeit des Sicherheits-Programms auf dem Master gesetzt werden. Fr die Systemreaktionszeit muss zu der eingestellten F_WD_Time noch die Reaktionszeit des LS4 (konfigurierbar >= 80ms) hinzugerechnet werden.
F_WD_Time
45
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
F_Dest_Add
ENGLISCH
DEUTSCH
GSD Parametername
Erluterung Muss von PROFIsafe-Projekttiertool mit CRC1 fr den F-Parameterblock richtig belegt werden (default CRC1 fr default F-Parameter).
F_Par_CRC
Tabelle 6.2-1: Parameter des PROFIsafe-Treibers Unter der Rubrik PROFIsafe ist mindestens die Anpassung des Parameters F_WD_Time entsprechend Kap. 6.6 erforderlich. Weicht die PROFIBUS-Adresse von der Werkeinstellung 4 ab, so muss der Parameter F_Dest_Add ebenfalls angepasst werden.
Der LS4-Daten-FB bentigt 34 remanente Merker. Diese sowie evtl. weitere durch das Anwenderprogramm benutzte remanente Merker sind hier zu reservieren (z. B. 50).
Abb. 6.2-2: Setzen der remanenten Merker Jetzt kann die Hardwarekonfiguration bersetzt und in die CPU geladen werden.
6.3
Diagnosedaten
Auf die PROFIsafe-Diagnosedaten kann whrend der Inbetriebnahme vom ProjektierTool aus zugegriffen werden. Sie betreffen nur Fehler in der Einstellung der Parameter des PROFIsafe-Treibers. Die Diagnosedaten werden als Status-PDU geliefert, in der nach den ersten 6 Bytes Standard-Diagnose folgende Bytes 7 .. 11 geliefert werden: Byte Bit 7 Byte 7 Byte 8 Byte 9 Byte 10 Byte 11 0 1 0 0 x 6 0 0 0 0 x 5 0 0 0 0 x 4 0 0 0 0 x 3 0 0 0 0 x 2 1 0 0 0 x 1 0 0 0 0 x 0 1 Lnge der Status-PDU ist 5 (inklusive Header) 1 Typ ist Status-Message 0 keine Slots 0 keine Status Differenzierung x Fehler in F-Parametern (Fehlernummer), siehe unten Beschreibung
Byte 11 Byte 11
0 0
0 1
0 0
0 0
0 0
0 0
0 0
0 1
0= 65 =
47
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISCH
DEUTSCH
Byte
Bit 7 6 1 1 1 1 1 1 1 5 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 3 0 0 0 0 0 0 1 2 0 0 1 1 1 1 0 1 1 1 0 0 1 1 0 0 0 1 0 1 0 1 0
Beschreibung
0 0 0 0 0 0 0
66 = 67 = 68 = 69 = 70 = 71 = 72 =
Falsche F_Dest_Add Falsche F_Source Add Falsche F_WD_Time Einstellung Falsche SIL Einstellung Falsche CRC Lnge Falsche F_Block_ID oder F_ParVersion Falsche CRC1 ber die F-Parameter
LS4-Daten-Funktionsbaustein FB LS4
Der LS4-Daten-FB arbeitet als Stellvertreter eines Laserscanners LS4 PROFIBUS in einer Sicherheits-SPS der Baureihe SIMATIC S7-300F. Er luft im Standardteil des Anwenderprogramms und verwaltet den Parameterabgleich zwischen einem LS4 PROFIBUS und der Master-SPS, so dass eine automatische Parametrierung beim Austausch des LS4 mglich ist. Pro Laserscanner LS4 ist eine Instanz des FB LS4 sowie der zugehrigen Datenbausteine vorzusehen. Da zur Datenverarbeitung auch das Datum und die Uhrzeit herangezogen werden, mssen Datum und Uhrzeit der CPU korrekt eingestellt sein. Der Parameteraustausch ist in beiden Richtungen mglich, SPS LS4 PROFIBUS oder LS4 PROFIBUS SPS. Der LS4-Daten-FB erwartet folgende Eingangsvariablen (INPUT) bzw. liefert folgende Ausgangsvariablen (OUTPUT): Parameter FIRST_IN_BYTE_LS4 FIRST_OUT_BYTE_LS4 Deklaration Datentyp Speicher-Bereich INPUT INPUT BYTE BYTE INT INT INT INT WORD WORD WORD E, A, M, D, L E, A, M, D, L E, A, M, D, L, Konstr. E, A, M, D, L, Konstr. E, A, M, D, L, Konstr. E, A, M, D, L, Konstr. E, A, M, D, L, Konstr. E, A, M, D, L E, A, M, D, L
START_ADDRESS_REM_MARKER INPUT DB_MMC_LS4_CONFIG DB_LS4_CONFIG DB_MMC_LS4_DATA DP_DIAGNOSIS_ADDRESS_LS4 ERROR_NUMBER_FB ERROR_CODE_SFC INPUT INPUT INPUT INPUT OUTPUT OUTPUT
OUTPUT OUTPUT
BOOL BYTE
E, A, M, D, L E, A, M, D, L
Tabelle 6.4-1: Ein- und Ausgangsvariablen des LS4-Daten-FB FB LS4 FIRST_IN_BYTE_LS4 empfngt das zyklischen Eingangsbyte vom LS4. Das darin enthaltenen Bit 2 (Proxy-Request) wird ausgewertet, um ggf. den LS4-Daten-FB zu aktivieren, d.h. den Parameterabgleich zwischen LS4 und Master durchzufhren. Der FB LS4 bekommt die Information, in welche Richtung die Parameter bertragen werden mssen oder ob sich der LS4 im Werkauslieferungszustand befindet vom LS4 PROFIBUS. Whrend des Parameterabgleichs wird der Ausgang FB_BUSY gesetzt. Nach erfolgreichem Parameterabgleich liest der LS4-Daten-FB die LS4-Identifikationsdaten vom Scanner aus, um so eindeutig einen zuknftigen Gertewechsel erkennen zu knnen. Tritt whrend der Parameterbertragung ein Fehler auf (z. B.: Negative Quittung, Abbruchkommando usw.), unterbricht der FB LS4 den Vorgang und wartet erneut auf das Proxy-Request-Bit. FIRST_OUT_BYTE_LS4 wird mit dem zyklischen Ausgangsbyte verbunden. Es hat zur Zeit keine Funktion und ist fr eventuelle sptere Anwendungen vorgesehen. START_ADDRESS_REM_MARKER zeigt auf den Start des Blocks aus mindestens 34 remanenten Merkerbytes. Diese Bytes werden fr interne Zwecke bentigt und enthalten keine fr das Anwenderprogramm relevante Datenstruktur. Die Anfangsadresse dieses remanenten Merkerbereiches kann von der SIMATIC-Software nicht automatisch, sondern muss in der S7-Hardwarekonfiguration manuell eingestellt werden (Kap. 6.2). DB_MMC_LS4_CONFIG, DB_LS4_CONFIG und DB_MMC_LS4_DATA werden mit der jeweiligen Datenbaustein-Nummer versorgt. Whrend DB_MMC_LS4_CONFIG und DB_MMC_LS4_DATA Datenblcke auf der Micro-Memory-Card adressieren, liegt der mit DB_LS4_CONFIG adressierte Datenblock im Arbeitsspeicher. Die Datenbausteine mit der Abkrzung MMC (Micro-Memory-Card) tauschen ihre Daten ausschlielich mit den dazugehrigen SFCs aus (SFC 83 "READ_DBL" und SFC 84 "WRIT_DBL"). DP_DIAGNOSIS_ADDRESS_LS4 enthlt die PROFIBUS-Diagnoseadresse des LS4 PROFIBUS. Unter S7-HWKonfig kann sie ber die Menufolge ..Eigenschaften / Allgemein / Diagnoseadresse erfragt werden. CONFIG_SET_TO_DEFAULT kommt direkt vom Scanner und signalisiert dem Anwenderprogramm, dass der LS4 PROFIBUS auf die Werkeinstellung zurck gesetzt ist bzw. wurde. Dieser Ausgang ist 1 beim erstmaligen Anschalten eines LS4 PROFIBUS an die sichere Steuerung, wenn der LS4-Daten-FB noch keinen gltigen Datensatz vom LS4 gelesen und im SPS-Speicher abgelegt hat.
49
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISCH
DEUTSCH
OUTPUT
BOOL
E, A, M, D, L
Nach einem fehlgeschlagenen Parameterabgleich in beide Richtungen. Schlgt entweder der Upload oder der Download fehl, so wird der LS4 PROFIBUS auf seine Werkeinstellung zurck gesetzt. Dieses wird an den LS4-Daten-FB gemeldet. Der Anwender muss den LS4 PROFIBUS ber LS4soft neu parametrieren. FB_BUSY signalisiert, dass der LS4-Daten-FB gerade einen Parameterabgleich mit dem ihm zugeordneten LS4 durchfhrt. Dazu benutzt er azyklische READ- bzw. WRITE-Befehle. Da diese Befehle die Zykluszeit des Anwenderprogramms verlngern, sind weitere azyklische READ- und WRITE-Kommandos an die selbe oder eine andere PROFIBUS-Adresse durch das Anwenderprogramm whrend eines Parameterabgleichs zu vermeiden. Sind mehrere LS4 PROFIBUS in einem PROFIBUS-System installiert, werden also mehrer LS4-Daten-FBs in der Master-SPS verwendet, so sollten diese miteinander synchronisiert werden, um bei gleichzeitiger Aktivierung mehrerer ParameterabgleichVorgnge berlufe der Zykluszeit des Anwenderprogramms zu verhindern. Das kann z. B. dadurch geschehen, dass das zyklische Eingangsbyte nicht direkt auf FIRST_IN_BYTE_LS4 geschaltet wird, sondern ber ein Merkerbyte. Sollte einer der LS4-Daten FBs seinen FB_BUSY-Ausgang setzen (der Parameterabgleich luft), so werden die Merkerbytes der anderen LS4 PROFIBUS temporr nicht auf deren LS4Daten FB durchgeschaltet oder das Proxy-Request-Bit wird ausmaskiert. ERROR_NUMBER_LS4 ist fr Ferndiagnose mit dem Hersteller-Service vorgesehen und liefert den Fehlercode des LS4. Der LS4-Daten-FB benutzt SFCs fr die Kommunikation ber PROFIBUS. Fehlermeldungen dieser SFCs sowie Fehlercodes des LS4-Daten FB werden ber ERROR_NUMBER_FB und ERROR_CODE_SFC dem Anwenderprogramm zur Verfgung gestellt. Die folgende Tabelle enthlt Fehlernummern vom LS4-Daten FB, die ber den Parameter ERROR_NUMBER_FB ausgegeben werden knnen. Wenn der Parameter ERROR_CODE_SFC ungleich Null ist, kann anhand dieser Tabelle der entsprechende SFC ermittelt werden. Die Entschlsselung des SFC-Fehlercodes ist mit dem SIMATIC Referenzhandbuch Systemsoftware fr S7-300/400 System- und Standardfunktionen mglich. Bei erneutem Bearbeiten des LS4-Daten FB werden ERROR_NUMBER_FB, ERROR_CODE_SFC und ERROR_NUMBER_LS4 auf den Wert Null zurckgesetzt. Fehlernummer SFC 83 58 59 Position 01 02 03 03 Erluterung Kopierfehler von Datenbaustein (Ladespeicher) nach Datenbaustein (Arbeitsspeicher) Fehler beim Datensatz schreiben: Funktionsbaustein nach LS4 PROFIBUS Fehler beim Datensatz lesen: LS4 PROFIBUS nach Funktionsbaustein Fehler im Datensatz vom LS4 PROFIBUS
Fehlernummer 0x0401 0x0501 0x0502 0x0601 0x0602 0x0701 0x0801 0x0902 0x1001 0x1101 0x1201 0x1202 0x1301
SFC 58 59
Position 04 05 05
Erluterung Fehler beim Datensatz schreiben: Funktionsbaustein nach LS4 PROFIBUS Fehler beim Datensatz lesen: LS4 PROFIBUS nach Funktionsbaustein Fehler im Datensatz vom LS4 PROFIBUS
59
06 06
Fehler im Datensatz vom LS4 PROFIBUS Fehler beim Datensatz lesen: LS4 PROFIBUS nach Funktionsbaustein Fehler beim Datensatz schreiben: Funktionsbaustein nach LS4 PROFIBUS Fehler im Datensatz vom LS4 PROFIBUS Fehler beim Datensatz schreiben: Funktionsbaustein nach LS4 PROFIBUS Fehler beim Datensatz schreiben: Funktionsbaustein nach LS4 PROFIBUS Fehler beim Datensatz lesen: LS4 PROFIBUS nach Funktionsbaustein Fehler im Datensatz vom LS4 PROFIBUS Kopierfehler von Datenbaustein (Arbeitsspeicher) nach Datenbaustein (Ladespeicher)
59 58
07 08 09
58 58 59
10 11 12 12
84
13
58 59
21 22 22
Fehler im Datensatz vom LS4 PROFIBUS Fehler beim Datensatz lesen: LS4 PROFIBUS nach Funktionsbaustein Fehler im Datensatz vom LS4 PROFIBUS
59
23 23
83
25
51
PORTUGUESE
58
24
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISCH
DEUTSCH
Fehlernummer
SFC 58 58 59
Position 26 27 28 28
Erluterung Fehler beim Datensatz schreiben: Funktionsbaustein nach LS4 PROFIBUS Fehler beim Datensatz schreiben: Funktionsbaustein nach LS4 PROFIBUS Fehler beim Datensatz lesen: LS4 PROFIBUS nach Funktionsbaustein Fehler im Datensatz vom LS4 PROFIBUS Fehler beim Datensatz schreiben: Funktionsbaustein nach LS4 PROFIBUS Fehler beim Datensatz lesen: LS4 PROFIBUS nach Funktionsbaustein Fehler im Datensatz vom LS4 PROFIBUS Fehler beim Datensatz lesen: LS4 PROFIBUS nach Funktionsbaustein Fehler im Datensatz vom LS4 PROFIBUS Fehler beim Datensatz schreiben: Funktionsbaustein nach LS4 PROFIBUS Fehler beim Datensatz schreiben: Funktionsbaustein nach LS4 PROFIBUS Fehler beim Datensatz lesen: LS4 PROFIBUS nach Funktionsbaustein Fehler im Datensatz vom LS4 PROFIBUS
0x2601 0x2701 0x2801 0x2802 0x2901 0x3001 0x3002 0x3101 0x3102 0x3201 0x3301 0x3401 0x3402
58 59
29 30 30
59
31 31
58 58 59
32 33 34 34
58 59
40 41 41
Fehler beim Datensatz schreiben: Funktionsbaustein nach LS4 PROFIBUS Fehler beim Datensatz lesen: LS4 PROFIBUS nach Funktionsbaustein Fehler im Datensatz vom LS4 PROFIBUS Kopierfehler von Datenbaustein (Arbeitsspeicher) nach Datenbaustein (Ladespeicher)
84
42
0x4501 0x5001
58 59
45 50
Fehler beim Datensatz schreiben: Funktionsbaustein nach LS4 PROFIBUS Fehler beim Datensatz lesen: LS4 PROFIBUS nach Funktionsbaustein
6.5
Anwenderprogramm
- FB LS4 - DB LS4 CONFIG - DB MMC LS4 CONFIG - DB MMC LS4 DATA (FB 10) (DB 101) (DB 100) (DB 102)
Abb. 6.5-1: Einbindung des FB LS4 Die Nummer der Bausteine kann nach Belieben verndert werden, z. B.: - FB LS4 - DB MMC LS4 CONFIG - DB LS4 CONFIG - DB MMC LS4 DATA (FB 30) (DB 32)
(DB 34)
53
PORTUGUESE
(DB 33)
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISCH
Der Instanz-DB DB LS4 (DB 10) muss nicht mitkopiert werden, weil dieser beim Aufruf des FB LS4 generiert wird.
DEUTSCH
Vor dem Aufruf muss das Bit Proxy-Enable (Bit 6 des zyklischen Ausgangsbytes, Kap. 5.1.2) des LS4 PROFIBUS durch das Anwenderprogramm permanent auf 1 gesetzt werden, damit der LS4 PROFIBUS im Bedarfsfall das Proxy-Request-Bit im zyklischen Eingangsbyte (Kap. 5.1.1) des LS4 sendet. Transferieren Sie das Ein- und das Ausgangsbyte des LS4 auf interne Merkerbytes und bergeben diese dem FB LS4. Dadurch ist es mglich das Proxy-Request-Bit ggf. solange auszublenden, bis ein laufender Parameterabgleich mit einem anderen LS4 beendet ist (Auswertung von FB_BUSY aller FB LS4) um dadurch nur einen Parameterabgleich zu einem bestimmten Zeitpunkt laufen zu lassen und die Zykluszeit des Anwenderprogramms nicht unntig zu verlngern. Ein Instanz-DB muss beim Aufruf des FB`s mit angegeben werden. Beispiel: CALL "FB LS4" , "DB LS4" FIRST_IN_BYTE_LS4 FIRST_OUT_BYTE_LS4 :="FIRST IN BYTE LS4" :="FIRST OUT BYTE LS4" CALL "FB LS4" , DB10
START_ADDRESS_REM_MARKER :=10 // start address (34 Byte remanent Marker) !!! DB_MMC_LS4_CONFIG DB_LS4_CONFIG DB_MMC_LS4_DATA DP_DIAGNOSIS_ADDRESS_LS4 ERROR_NUMBER_FB ERROR_CODE_SFC CONFIG_SET_TO_DEFAULT FB_BUSY ERROR_NUMBER_LS4 :=100 :=101 :=102 :=W#16#3FE // DP diagnosis address LS4: 1022 (hex: 3FE) :="ERROR NUMBER FB" :="ERROR CODE SFC" :="CONFIG SET TO DEFAULT" :="FB_BUSY" :="ERROR NUMBER LS4"
Nachdem die Bausteine in die CPU bertragen wurden, kann die CPU in RUN geschaltet werden. Jetzt ist der FB LS4 fr die Kommunikation mit dem LS4 PROFIBUS bereit. Es findet keine Kommunikation statt, solange der optische PC-Adapter am LS4 PROFIBUS angebracht ist.
6.6
TR = TScanner + TWD
TR TScanner TWD Reaktionszeit von einer Schutzfeldverletzung bis zur Auswertung des OSSD-Bits im Master Reaktionszeit des LS4 (minimal 80ms, einstellbar in 40ms Schritten) Watchdog-Zeit = max (10 ms, tscan_rec) * 2 + 4 * Bus_Cycle_Time mit tscan_rec = Zykluszeit des PROFIsafe-Teils auf dem Master TR ist die Zeit bis zum Abschalten des SPS-Ausgangs. Zustzlich ist die Zeit bis zum ffnen des Leistungs-Schaltkreises und die Stoppzeit der Maschine zu beachten. Prinzipiell ist zu beachten, dass infolge der Verlngerung der Reaktionszeiten gegenber einem LS4 ohne PROFIsafe-Adapter grere Sicherheitsabstnde einzuhalten sind.
Die Einbindung des LS4-Daten-FB FB LS4 (Kap. 6.2) ist optional und ermglicht einen einfachen und schnellen Gertetausch im Fehlerfall. Fr die bertragung der zyklischen Echtzeitdaten ist er nicht notwendig. Im einfachsten Fall liest das Anwenderprogramm im Sicherheits-Teil der SPS lediglich das OSSD-Bit der zyklischen Eingangsdaten und beschreibt das zyklische Ausgangsbyte (siehe Beispiel in 5.1.1). Bei nderung der Paramaterdaten des LS4 ber die optische Schnittstelle sowie bei erfolgtem, automatischen Datenaustausch nach einem Gertewechsel ist die Wirksamkeit der Abschaltfunktion entlang der definierten Schutzfeld-Konturen zu berprfen.
Einschaltverhalten
Durch die optische PC-Schnittstelle wird das Verhalten beim Einschalten bzw. beim Verbindungsaufbau ber PROFIBUS wesentlich beeinflusst. Es sind zwei Flle zu unterscheiden.
Ist die Verbindung zwischen der optischen PC-Schnittstelle und dem LS4 einmal durchgeschaltet, so werden alle azyklischen Kommandos vom PROFIBUS mit einer Fehlermeldung quittiert. Der zyklische Datenverkehr wird nicht unmittelbar beeinflusst. Natrlich schaltet das OSSD-Signal whrend eines Downloads ber diese Schnittstelle aus, wenn der Datensatz im LS4 verndert wird. Abnehmen und wieder Aufsetzen des optischen PC-Adapters whrend des Betriebs beeinflusst nur das Proxy-Request-Bit. Beim Abnehmen wird immer der automatische Parameterabgleich angefordert. Das OSSD-Bit wird davon nicht beeinflusst solange bei dem Parameterabgleich keine Fehler auftreten. Der optische PC-Adapter darf nicht dauerhaft angeschlossen sein, da der PROFIBUS-Master in diesem Fall den Parametersatz des LS4 nicht bernimmt. Zu beachten ist auerdem, dass bei angeschlossenem PC-Adapter nicht alle Alarme am PROFIBUS zur Verfgung gestellt werden knnen.
7.2
Szenarien
Ist der LS4-Daten-FB in den nicht sicheren Teil des Anwenderprogramms eingebunden worden, so ergeben sich die folgenden mglichen Betriebs-Szenarien: Erster Start mit angeschlossenem LS4 PROFIBUS; erstmalige Inbetriebnahme einer neuen Anlage ndern der Parametrierung eines dem Master bekannten LS4 PROFIBUS Normaler Start mit einem korrekt parametrierten LS4 PROFIBUS Erster Start, nachdem ein defekter LS4 PROFIBUS gegen ein Ersatzgert ausgetauscht wurde Das Verhalten von LS4-Daten-FB und LS4 PROFIBUS wird fr diese vier Flle nachfolgend erlutert.
7.2.1 Erstinbetriebnahme
Im PROFIBUS-Master steht kein gltiger Parametersatz zur Verfgung. Im LS4 steht zunchst die Werkseinstellung des Parametersatzes. Der LS4 PROFIBUS geht in den normalen Betriebsmodus ber; alle Parameter stehen auf Werkeinstellung. Auerdem wird der Ausgang CONFIG_SET_TO_DEFAULT des FB LS4 gesetzt. Da die sichere Werkeinstellung meist nicht den Erfordernissen des Einsatzortes entspricht, wird der Anwender den LS4 PROFIBUS am Einsatzort ber den optischen PC-Adapter parametrieren; Fall 2 liegt vor.
57
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISCH
DEUTSCH
Das Proxy-Request-Bit wird nicht gesetzt solange der PC-Adapter angeschlossen bleibt. Es erfolgt deshalb auch kein automatischer Parameterabgleich mit dem PROFIBUS-Master. Erst wenn der PC-Adapter abgenommen wird, setzt der PROFIsafe-Adapter das Proxy-Request-Bit und der Parameterabgleich mit dem Master erfolgt, wenn im Master dem LS4 PROFIBUS ein LS4-Daten-FB FB LS4 zugeordnet wurde.
7.2.4 Gertetausch
Anhand der im LS4 und im LS4-Daten-FB gespeicherten Seriennummer wird der Scanner identifiziert und ein Gertetausch automatisch erkannt. Der im PROFIBUSMaster gespeicherte Parametersatz wird in den LS4 PROFIBUS automatisch ohne weitere Programmierung in der SPS bertragen. Der LS4-Daten-FB speichert die neue Seriennummer und der LS4 PROFIBUS geht in den normalen Betriebsmodus ber. Der automatische Parameterabgleich zwischen PROFIBUS-Master und LS4 PROFIBUS kann bis zu 3 Minuten dauern. Hat ein LS4-Daten-FB einmal den Parametersatz eines LS4 PROFIBUS gelesen, so wird ein neuer LS4 PROFIBUS vom LS4-Daten-FB immer mit dem Parametersatz des alten LS4 PROFIBUS geladen, da er fr ein Austauschgert gehalten wird. Wenn tatschlich mit einem neuem LS4 PROFIBUS und neuen Parametern auf der bereits vergebenen PROFIBUS-Adresse gearbeitet werden soll, dann muss zunchst der LS4 PROFIBUS dem LS4-Daten-FB bekannt gemacht werden, indem er an den PROFIBUS angeschlossen wird; automatisch wird zunchst der alte Parametersatz in den neuen LS4 PROFIBUS bertragen. Anschlieend wird der LS4 PROFIBUS ber den optischen PC-Adapter umparametriert. Ist die Parametrierung beendet, werden die neuen Parameter automatisch an den LS4-Daten-FB bertragen. Die Benutzerkennwrter werden durch den Daten-FB beim Parameter-Download nicht berschrieben. Sie mssen deshalb manuell durch den Anwender gendert werden, entweder vor dem Einbau oder danach.
7.3
FRANZSISCH
ENGLISCH
7.3.2 Anwenderprogramm
Die beiliegenden Funktionsbausteine sind Beispiele, wie der Scanner in ein Anwendungsprogramm eingebunden werden kann. Zur Einbindung in Ihr Anwenderprogramm kopieren Sie bitte die Bausteine: LS4 Wiederanlaufsperre oder LS4 Automatischer Start LS4 Feldpaarumschaltung Wenn Sie den Laserscanner LS4 einsetzen, sollten Sie eine Depassivierung fr den Scanner im Sicherheitsprogramm, wie fr andere F-Peripherie auch, durchfhren. Wenn z. B. ein Fehler in der Kommunikation des LS4 mit der SPS auftritt wird der Scanner passiviert. Das heit er gibt den Ersatzwert 0 aus. Somit wird die Funktion die er berwacht stillgesetzt. Wenn der Fehler behoben wird, wird das ACK_REQ Bit gesetzt und der Scanner kann durch ACK_REI wieder in das System eingegliedert werden. Er gibt jetzt wieder seine aktuellen Daten aus. Die Parameter ACK_REQ/ACK_REI findet man im Instanz-DB des Scanners.
7.3.2.1
Auf diesem Eingang wird das OSSD-Bit des Laserscanners LS4 gelegt. Dieser Ausgang steuert die Schtze zum Schalten der Sicherheitsfunktion.
FRANZSISCH
ENGLISCH
Dieser Parameter wird mit der Rcklesung der Schtze zum Schalten der Sicherheitsfunktion belegt.
7.3.2.3
Umschaltung_FP_3: Dieser Eingang muss mit dem Sensor beschalten werden, der fr die Aktivierung des 3. Feldpaares zustndig ist. Umschaltung_FP_4: Dieser Eingang muss mit dem Sensor beschalten werden, der fr die Aktivierung des 4. Feldpaares zustndig ist. Feldpaarbit_0: Feldpaarbit_1: Feldpaarbit_2: Zyklische Ausgangsdaten des Scanners: Bit x.0 Zyklische Ausgangsdaten des Scanners: Bit x.2 Zyklische Ausgangsdaten des Scanners: Bit x.1
FRANZSISCH
ENGLISCH
Umschaltung_FP_2: Dieser Eingang muss mit dem Sensor beschalten werden, der fr die Aktivierung des 2. Feldpaares zustndig ist.
8
DEUTSCH ENGLISCH FRANZSISCH ITALIENISCH SPANISCH PORTUGUESE 64 8.2 8.3 8.1
Prfungen
Prfungen vor der ersten Inbetriebnahme
Die Prfung vor der ersten Inbetriebnahme durch fachkundige Personen soll sicherstellen, dass die optische Schutzeinrichtung und evtl. weitere Sicherheitsbauteile sowie das Sicherheits-Programm in der Master-SPS gem den rtlichen Bestimmungen, insbesondere nach der Maschinen- und Arbeitsmittelbenutzungs- Richtlinie und darber hinaus in Deutschland die Betriebssicherheitsverordung richtig ausgewhlt sind und bei bestimmungsgemem Betrieb den geforderten Schutz bieten. Prfen Sie die Schutzeinrichtung nach rtlichen Vorschriften den ordnungsgemen Anbau der Schutzeinrichtungen, deren elektrische Einbindung in die Steuerung und deren Wirksamkeit in allen Betriebsarten der Maschine. Die gleichen Prfanforderungen sind gegeben, wenn die betreffende Maschine lngere Zeit stillsteht, nach greren Umbauten oder Reparaturen, wenn diese die Sicherheit betreffen knnen. Beachten Sie die Bestimmungen ber die Einweisung des Bedienpersonals durch fachkundige Personen vor Aufnahme ihrer Ttigkeit. Unterweisungen liegen im Verantwortungsbereich des Maschinenbetreibers.
Regelmige Prfungen
Regelmige Prfungen richten sich ebenfalls nach den rtlichen Bestimmungen. Sie haben den Zweck, Vernderungen (z. B. Nachlaufzeiten) oder Manipulationen an der Maschine oder an Schutzeinrichtungen aufzudecken. Lassen Sie die Wirksamkeit der Schutzeinrichtung innerhalb der geforderten Fristen durch fachkundiges Personal sicherstellen.
Stromaufnahme
320 mA (Uv = 28,8V; +20%) 350 mA (Uv = 24V) 500 mA (Uv= 16,8V; -30%) 1,25 A IP65 0 ... +50 C -20 ... +60 C 15 ... 95 %, ohne Kondensation 167 mm x 141 mm x 168 mm 2,25 kg
externe Sicherung Schutzart Umgebungstemperatur, Betrieb Umgebungstemperatur, Lagerung relative Luftfeuchte Abmessungen H x B x T Gewicht Datenrate PROFIBUS Anschluss PROFIBUS Reaktionszeit PROFIsafe-Adapter Leitungslnge Versorgungsleitung Leitungslnge Restart-Leitung
M12-Stecker b-codiert 10 ms 50 m 25 m
65
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISCH
DEUTSCH
10
10.1
10.2
3RG7838-1DC 6XV1830-3DE50 6XV1830-3DH15 6XV1830-3DH30 6XV1830-3DH50 6XV1830-3DN10 6XV1830-3DN15 6GK1905-0EA00 6GK1905-0EB00 6GK1905-0EC00 3RG7838-1AA 3RG7838-1AB 3RG7838-7RS 3RG7838-7GB 3RG7838-7GD
67
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
3SF7834-6PB00
ENGLISCH
DEUTSCH
11.1
11
EG Konformittserklrung
Anhang
DEUTSCH
ENGLISCH
FRANZSISCH
ITALIENISCH
SPANISCH
PORTUGUESE
68
PORTUGUESE
SPANISCH
Instructions relating to the safety of laser equipment are indicated with the symbol .
indicates information without any safety implications. Siemens AG will not admit liability for damages that occur through an inappropriate use of the equipment. Familiarity with this manual is a condition of appropriate use. Version: V1.0 Copyright Siemens AG 2003. All rights reserved Passing on this document to others or reproducing it, exploiting its contents or communicating the contents to others, is not permitted, unless specific authorisation should be granted in this respect. Contravention of this point will give rise to a liability for indemnification. All rights reserved, especially in the event of the grant of a patent or the registration of a utility model or design. Technical assistance: Telephone: +49 (0) 9131-7-43833 (8.00 am 5.00 pm Central European Time) Fax: +49 (0) 9131-7-42899 e-mail: technical-assistance@siemens.com Internet: www.siemens.de/lowvoltage/technical-assistance We reserve the right to make technical modifications.
Contents
1 General remarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 1.1 1.2 2 Certification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 Symbols and terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
System architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 2.1 2.2 2.3 2.4 PROFIBUS DP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PROFIsafe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The LS4 Laser Scanner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The PROFIsafe adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 77 77 78
Safety instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 3.1 3.2 3.3 3.4 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 Hazardous consequences of failure to observe the safety instructions . . . . . . . . . . . . . Conditions and specifications of use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Areas of use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Organisational measures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Safety prescriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Qualified personnel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Repairs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Disposal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 80 82 82 82 82 82 82 83
Design, assembly and connection to the power supply 4.1 4.2 4.3 4.4 4.5
. . . . . . . . . . . . . . . . . . . . . . . . . . . 83 83 83 84 86 87
Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Connecting the device to power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PROFIBUS address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Data structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 5.1 5.1.1 5.1.2 5.2 5.2.1 5.2.2 5.2.3 5.3 5.3.1 5.3.2 Cyclic data exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 Cyclic input data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 Cyclic output data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 Acyclic data exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 Header for acyclic commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 Commands to the PROFIsafe adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Commands to the LS4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 Alarm update messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 Diagnosis alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 110 111 114 115 120 122
Project configuration of the master 6.1 6.2 6.3 6.4 6.5 6.6
71
PORTUGUESE
Hardware configuration by means of STEP 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuration of the PROFIsafe driver by means of STEP 7 . . . . . . . . . . . . . . . . . . . . Diagnosis data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The LS4 data functional block (FB LS4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The user program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Response time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
Putting the system into operation, and replacing components . . . . . . . . . . . . . . . . . . . . . 122 7.1 7.1.1 7.1.2 7.2 7.2.1 7.2.2 7.2.3 7.2.4 7.3 7.3.1 7.3.2 Behaviour of the system when switching on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PC adapter not connected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PC adapter connected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Scenarios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Putting the system into operation for the first time . . . . . . . . . . . . . . . . . . . . . . . . . . . . Changing the parameterisation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Switching on a parameterised device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device replacement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Examples of system programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting up the hardware configuration of the LS4 laser scanner . . . . . . . . . . . . . . . . . . The user program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 123 123 124 124 125 125 125 126 126 127
Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 8.1 8.2 8.3 Tests before the system is first put into operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 Regular testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 Cleaning the window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Standard delivery and order details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 10.1 10.2 Standard delivery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 Order details LS4 PROFIBUS and accessories LS4 PROFIBUS . . . . . . . . . . . . . . . . . 134
General remarks
The LS4 safety surface scanner is an active opto-electronic protective device or AOPD of type 3 as defined by EN/IEC61496-1 and (pr)EN/IEC61496-3. The PROFIsafe adapter is an accessory to the LS4 which serves for the safe connection of the device to PROFIBUS-DP.
1.1
Certification
The SIGUARD laser scanner LS4 PROFIBUS was developed and manufactured with regard to the applicable European guidelines and standards. An EC prototype test certificate as specified in EN IEC 61496 parts 1 and 3 has been conferred by: TV Sddeutschland Group1 Zertifizierstelle Ridlerstr. 65, D-80339 Munich GERMANY Product
1.2
1.
FRANZSISCH
ENGLISH
DEUTSCH
F-device
Failsafe device (when a malfunction is detected, it automatically goes into safe mode) Fail-safe system consisting of F-devices and other components Functional block Electronic datasheet relating to a device that includes the devices communication parameters Laser scanner Control unit in a bus system, gives permission to slaves to access bus Micro memory card Output signal switching device (safety-related switch output)
PC adapter Cable connection between the optical parameterisation and diagnosis interface of the LS4 PROFIBUS and the RS232 interface of a PC PDU Protocol data unit
PROFIsafe Application profile of PROFIBUS safety devices, realised by means of a safety software component, the PROFIsafe driver LS4 data FB PF SFC Slave PLC Upload WF C1, C2 Functional block in the S7 master, which carries out automatic parameter adjustment by referring to the LS4 PROFIBUS Protective field System function call Unit subordinated to the master for communication purposes. The only messages it sends on the bus are answers to requests from the master. Programmable logic control Transfer of parameters from a slave to a master Warning field Abbreviations referring to the two micro-controllers in the PROFIsafe adapter
German: DS = Datensatz.
2
2.1
System architecture
PROFIBUS DP
PROFIBUS is a manufacturer-independent, open field bus standard, with a wide area of application in manufacturing and process automation context. Independence of the manufacturer and openness are guaranteed by the international EN 50170 and IEC 61158. PROFIBUS makes it possible for the devices of different manufacturers to communicate with each other without any specially adapted interfaces, and is suitable both, rapid applications where time is a critical factor and for complex communication tasks. Continuous technical improvement means that PROFIBUS will continue to be the ultimately reliable industrial communications system of the future. PROFIBUS offers the functionally graduated communication protocols (communication profiles) DP and FMS. Depending on the area of application, RS-485, IEC 1158-2 or optical fibre cables are available as physical profiles to facilitate the transfer of information. Up to 126 stations can be connected to PROFIBUS DP. These divide up the transfer medium on a time-share basis. The configurable data transfer rate is 9.6 KBd to 12 MBd, the maximum possible rate being limited by the length of the cable. The RS485 cables that are most frequently used must have their ends terminated with a bus terminator(see the section on accessories, section 10.2, M12 terminal plugs).
Master-Token Transfer
Slave 2
Slave n
75
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
Access to the bus is controlled by means of a master-slave protocol, with overriding token passing. What happens is that a master station generates a request to one of the slave stations that are subordinate to it for communication purposes, and the latter reacts to the masters request by sending a response telegram. Only the master that is currently in possession of the token is allowed to generate request telegrams. Passing the token brings it about that bus control rights are switched cyclically between the master stations. As well as peer to peer communication between a master and a slave, a master can also generate what are known as broadcast telegrams (which are sent to the address 127): these will be received and evaluated by all slaves simultaneously, but not acknowledged. With what are known as modular slaves, the PROFIBUS telegram may carry information on the slot and the channel as well as the slave address. PROFIBUS DP incorporates two classes of master. The class 1 master is the central component responsible for the polling/bus access procedure, and carries out data exchange with the input/output devices (slaves). It defines the data transfer rate, to which the slaves will normally adapt automatically, and controls the exchange of the token with other masters. Several class 1 masters may operate in the PROFIBUS DP system simultaneously. Typical class 1 masters are programmable logical controls (PLCs) and PCs responsible for system control. Class 2 masters are generally used as project configuration or visualisation devices, and serve as auxiliary tools when starting up the system or for diagnosis. Data exchange between the class 1 master and the slave may be cyclic or acyclic. Cyclic data are read into the process imaging memory of the master in each bus cycle, or written from there to the slaves. Normally no programming is required: all that is needed here is a project configuration, that is to say, the allocation of the data of the master process image to the corresponding data in the PROFIBUS slaves. The PLC program simply accesses the data in the process imaging memory without knowing whether these data are being input/output locally in the context of the PLC, or by way of a PROFIBUS slave. PROFIBUS is responsible for the automatic cyclic exchange of information. Acyclic exchange of data can be carried out by the master that has parameterised the slave. This uses the READ and WRITE functions. Acyclic data transfer is used, for example, in the transfer of parameter records from the master to the LS4 PROFIBUS (download) or from the LS4 PROFIBUS to the master (upload). Alarms represent a special case. The master will be notified of these in the context of cyclic data transfer through the PROFIBUS status byte; the master then gets the actual alarm information from the slave that has signalled by means of an acyclic telegram. This information will then be written by the master to a memory area reserved for alarms (SAP51) and can be subsequently evaluated by the application program.
the data transfer rate supported the telegram length supported the quantity of input and output data this file contains information about diagnosis signalling and specific device parameters.
PROFIsafe is a functional extension of PROFIBUS DP, and makes it possible to operate safety bus components along with non-safety-related standard components on the same bus. PROFIsafe devices do not call for any kind of modification to the existing hardware components, and can be integrated with existing systems without any problem. The PROFIsafe driver is a software component that carries a TV1 certification. Above the communication layers, it makes use of the functions of the PROFIBUS DP stack. Safety of data transfer is achieved by means of the special structure of the user data as well as including the actual safety data, these also incorporate a control byte, a serial number and a further check sum. The destination address makes it possible to address a PROFIsafe device uniquely, even in systems with several PROFIBUS lines, that is with multiple slave addresses for similar devices. Only cyclic data are transmitted safely, i.e. are processed by the PROFIsafe driver before transmission.
2.3
1.
77
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
2.2
PROFIsafe
DEUTSCH
For the project configuration of every PROFIBUS DP class 1 master and of every slave, what is known as a an electronic data sheet GSD is required. This will be supplied by the manufacturer of the master or the slave, and describes its properties from the point of view of PROFIBUS. As well as including such PROFIBUS data as e.g.
Without reference to the parameters, the scanner may put out a warning signal that is not safety-related, if a warning field defined by the user should be violated. This warning field is coupled to the protective field in a fixed pairing. All protective field pairs, together with the permissible switchings, will be adapted to the given application when the equipment is first put into operation.
2.4
Restart
Warn
OSDD1 SF1 .. 4
OSDD2
RS232
C1
C1
DPC31
PWR
24VDC
PC-Adapter
78
The safety-related output signals OSSD1 and OSSD2 and the warning signal of the LS4 is communicated to the PROFIBUS master (generally speaking a safety PLC) as one bit of a safety telegram. The program of this safety interface must bring about the switching-off of the hazardous movement (see section 7.3). The switching of the protective field pairs during operation is managed by output bits of the safety PLC, which are transmitted via PROFIBUS and the PROFIsafe adapter to the LS4 (protective fields 1 to 4). The restart signal for the LS4 can be given either by means of a button that is locally linked to socket 1 (section 4.3) or via PROFIBUS in the form of a bit of the cyclic output byte (section 5.1.2). The optical PC adapter is connected with the PROFIsafe adapter via the infrared interface. The adapter forwards the telegrams to the RS232 of the LS4, so long as a parameter matching with the LS4 data FB on the master is not currently running (section 5.1.2). Although the data transfer is safe, the warning signal must not be used in a safetyrelated manner, as it is not delivered by the scanner as a safe signal. For the LS4 PROFIBUS, this document replaces the description of the connection to the machine interface given in the LS4-4 Instruction Manual. In sizing the dimensions for your application, it is essential that you take into account the longer response time of the LS4 PROFIBUS as compared with an LS4 that does not have a PROFIBUS connection (section 6.6)
79
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
3
DEUTSCH ENGLISH 3.2 FRANZSISCH ITALIENISCH SPANISCH PORTUGUESE 80 3.1
Safety instructions
Hazardous consequences of failure to observe the safety instructions
The products of SIEMENS AG are developed and manufactured through the careful application of the recognised rules of technology. The protective function of the equipment can however be impaired if it is inappropriately used or used otherwise than in the manner specified. In this case it may no longer be possible to protect danger areas, or protection will be less than adequate. This may result in danger to life and limb for personnel who are in close proximity to the machine or plant. Warning: laser beam! The LS4 laser scanner is a laser device of laser class 1. Please have regard to the applicable statutory and local regulations for the operation of laser systems. Avoid positioning the scanner at eye level.
1. 2. 3.
If the scanner is equipped with a protective housing, there should not be any further window materials (plastic, glass etc.) in the path of the scanning beam. Avoid touching the scanner window and the six scattered light panes. The LS4 PROFIBUS Laser Scanner is not suitable as a protective facility in situations where the overspill of dangerous liquids is a possibility, or where there are objects with long machine braking times (max. depth of protective field 4 m). In cases like these Siemens AG can provide suitable door bolts (safety switches), either with or without guard interlocking. The 24 V DC power supply (which may vary from +20% to -30%) must be by means of a safety transformer as defined by IEC 742. the same requirements apply to all incoming or outgoing power circuits that are connected to the system. The scanner is to be connected to the power supply by way of a separate branch and by means of a 1.25 amp middle time-lag fuse installed in the switch cabinet. The complete system (comprising scanner, machine, control and switching components) may only be tested when no hazards to personnel will result from this. Interfering with or modifying the LS4 PROFIBUS Laser Scanner can lead to a loss of its safety functionality. Putting the machine into operation, maintenance, setting of the parameters and configuration of the protective field are only to be carried out by properly qualified personnel. Knowledge of the safety instructions of this Instructions Manual and of the User Manual contained in the LS4soft program forms part of the qualifications that personnel are required to have. The password required for the configuration of safety-related settings is to be kept secret by the safety officer. Information about password levels will be found in the LS4soft User Manual The use of the scanner for monitoring the passage of persons (vertical protective field) as defined by IEC 61496-3 is not permitted.
81
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
The use of the LS4 PROFIBUS Laser Scanner is subject to the relevant prescriptions of plant safety. For the clarification of safety issues the responsible authorities (e.g. professional trade associations, OSHA etc.) may be consulted. In general terms the conditions of use to be observed are as given below.
Areas of use
SIGUARD LS4 Laser Scanners are primarily intended for the protection of danger areas. To do this, for the most part horizontal scanning serves to check for the presence of persons in the protective field at any time. When the LS4 is in use, access to the danger zone should only be possible by passing through the protective field. Between the protective field and the danger zone a defined safety distance must be maintained. This may be calculated from the formulas in the specific machine-related European C standards or in the general B1 standard EN 999. The LS4 is absolutely not suitable as a protective facility when there is a risk that objects may be violently expelled or that hot or hazardous fluids may spurt out. Nor is it suitable for machines with long overtravel times. In cases like these Siemens AG can provide suitable door bolts (safety switches), either with or without guard interlocking. When using the LS4 PROFIBUS, please be aware that the response time is higher than that given in the SIGUARD LS4 Laser Scanner Instruction Manual, and this will have implications for the permitted distance from the danger zone (see also section 6.6).
Organisational measures
3.4.1 Documentation
It is essential that all the instructions of this Instruction Manual be observed, especially those given in chapters 2 and 7. Keep this Instruction Manual in a safe place. It should be available at all times. Regard must also be had to the SIGUARD LS4 Laser Scanner Instruction Manual, which describe the function of the laser scanner.
3.4.4 Repairs
Repair work, especially involving the opening of the housing, may only be carried out by the manufacturer or by a person acting with the manufacturers authorisation. An exception to this is the setting of the PROFIBUS address with the rotary control switch (see section 4.5).
4
4.1
1 2
Fig. 4.1-1:
4.2
Mounting
To mount the LS4 PROFIBUS you should use rather long fastening screws, with a length of at least 50 mm and a diameter of 5 mm; in other respects the mounting instructions for the LS4 PROFIBUS. The borehole measurements may be seen from the scale drawings in section 9.
X1 X1 X2 X3 X4 X5 Restart button connection PROFIBUS output cable PROFIBUS input cable Power supply Optical PC interface
X2
X3
X4
Connecting the LS4 PROFIBUS to the power supply Function Restart button Pin 1 n.c. Pin 2 +24 V DC RxD/TxD-N RxD/TxD-N n.c. Pin 3 n.c. Pin 4 Restart Pin 5 n.c. Shield Shield n.c.
0 V DC n.c.
Table 4.3-1:
Shielded standard PROFIBUS cables, with the matching M12 PROFIBUS plug/socket, are screwed onto plug 2 and socket 3. If the LS4 PROFIBUS is the last device connected to PROFIBUS, a matching bus terminatormust be connected to socket 3 (see section 10.2). Socket 1 of the PROFIsafe adapter serves for the connection of a restart button. This button serves first of all to unblock the startup/restart interlock that is internal to the scanner, if this has been activated; in addition this button is responsible for the acknowledgement of error messages. This is necessary if the scanner should malfunction. When the restart button is activated, the safety outputs OSSD 1 and OSSD 2 of the LS4 are switched off, and the display on the scanner (LED 3) lights up red. The duration of the reset signal must be from two to three seconds. The length of the restart cable must not exceed 25 metres. For parameterisation purposes, and for local diagnosis of the LS4, a PC with the LS4soft parameterisation and diagnosis software is connected to the top side of the PROFIsafe adapter by way of an RS232 interface, the programming cable and the optical interface. The cable exit of the PC adapter on the LS4 PROFIBUS thus points in the direction of the protective field. A powerful magnet in the PC adapter not only brings about a mechanical halt but at the same time informs a reed contact in the device that the PC adapter is connected. The interface will only be linked to the LS4 if at the time no automatic parameter matching with the optional LS4 data FB in the master is being carried out (section 6.4). The PROFIsafe adapter does read the stream of data, but does not modify it in any way. This interface thus corresponds in functional terms to the RS232 interface comprising SUB-D plugs in the LS4. As the power supply for the PC adapter comes through the PCs COM port, the latter must be RS232 compliant, that is, with a load of 3 kohm it must still be able to supply a voltage of 5 V. The claim to be RS232 compatible that is occasionally found with Notebook PCs is not sufficient here. A complete description of the software may be found in the LS4soft User Manual.
85
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
The LS4 PROFIBUS requires to be supplied with 24 V DC (which may vary between +20 and -30%) from a mains source conforming to protective class 2 by way of a unilaterally shielded supply line that should not exceed 50 m in length. The shield is to be placed at the cabinet. Power is supplied to the LS4 laser scanner via the PROFIsafe adapter.
4.4
Display
Below the surface on which the PC adapter is situated an LED is located, which displays the status of the PROFIBUS connection. When the power is switched on, the PROFIsafe adapter runs through an initialisation procedure, in the course of which the LED will give off continuous light for two to three seconds. Rapid flashing (at a frequency of ca. 5 Hz) indicates that the adapter is ready to set up the PROFIBUS connection. If the LED lights up continuously for longer than 3 seconds, or if the flashing frequency is less than 5 Hz, this indicates a malfunction. The varying flashing frequencies are intended to facilitate remote diagnosis by the service technician. If there is a malfunction but the LED does not indicate an error, the power supply should be checked.
4.5
PROFIBUS address
After removing the 6 screws on the top of the PROFIsafe adapter, the lid of the adapter may be taken off. This makes it possible to access the two hex switches which are used to set the PROFIBUS address. Hex L sets the lower-value four bits, and hex H the higher-value four bits of the PROFIBUS address. Addresses greater than decimal 126 (hex 7E) are not allowed. This is ensured by not evaluating the highest value bit 7. The settings 127 (hex 7F) and 255 (hex FF) must not be used. The factory setting is address 4. What is known as the F_Dest_Add, which is necessary for the PROFIsafe protocol, does not need to be set separately, as it results from the simple addition of 500 to the PROFIBUS address. It is therefore only necessary, when configuring the system, to ensure that in each of the PROFIBUS lines that are linked in a system each LS4 PROFIBUS has a unique PROFIBUS address.
1 2
1 2
HexL HexH
Fig. 4.5-1:
87
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
5
DEUTSCH ENGLISH 5.1 FRANZSISCH ITALIENISCH SPANISCH PORTUGUESE 88
Data structure
The LS4 PROFIBUS supports both cyclic and acyclic data transfer. In cyclic operation, that is to say, in each bus cycle, what are referred to as the cyclic input and output data are exchanged between the master and the LS4 PROFIBUS. The terms input and output data have reference to the masters point of view. Thus Input data are read by the master, are therefore data output by the LS4 PROFIBUS Output data are written by the master, and are the control signals for the LS4 PROFIBUS. The system supports the acyclic commands READ and WRITE, so that on the request of a master large blocks of data can be transferred, either for parameterisation purposes or to give a read-out of measurement data, without having a long-term adverse impact on cyclic real-time operations.
Indicates the status of the LS4s OSSDs 0 At least one of the two OSSDs of the LS4 is off, or its signal could not be properly registered. It is possible to find out the cause for the signal OSSD = 0 from bits 1 to 5. Both OSSDs of the LS4 are switched on.
1 6 Warning output
Replicates the status of the warning output of the LS4. In the course of the parameterisation of the LS4 the warning dirty screen should be assigned to the warning output. 0 1 The warning output has been set. The warning output has not been set.
Table 5.1-1:
Bit 5
Designation Error
Value
Significance
0 1 4 Operating status
No error has occurred in the LS4 or in the PROFIsafe adapter. An error has occurred in the LS4 or in the PROFIsafe adapter.
Displays the operating status of the device The LS4 may be parameterised either by way of PROFIBUS (C1 or C2 service) or by using the PC interface and the PC adapter. 0 1 Normal protective operation
RS232 active
Shows whether the optical PC adapter is connected to the RS232. When the signal switches from 1 to 0, that is to say, when the PC adapter is uncoupled, the Proxy Request bit (bit 2) will always be set, so that the LS4 data FB can update its parameter settings in the master if necessary. 0 1 No PC adapter is connected. The optical PC adapter is connected. No LS4 parameterisation can be carried out by way of PROFIBUS; C1 and C2 services will be acknowledged with an error message.
Proxy Request
The LS4 PROFIBUS indicates to the LS4 data FB in the master that it must request or supply the LS4 PROFIBUSs parameters and validate them.
Table 5.1-1:
89
PORTUGUESE
Monitoring of the parameter settings by the LS4 data FB need not be carried out. At the start of parameter checking this bit is set to 0. If during the parameter checking an error occurs, it will be reset to 1.
SPANISCH
In the first setting of parameters, and during subsequent parameter adjustment, the OSSD bit is set to 0. If during parameter adjustment the optical PC adapter is connected, the RS232 and bit 3 will only be activated when the parameter adjustment has been completed. While this is going on, the LS4soft program on the PC cannot set up any connection to the LS4.
ITALIENISCH
FRANZSISCH
LS4 parameterisation status, LS4 initialisation phase, or the automatic parameter monitoring has not yet taken place or has not yet been completed; OSSD = 0.
ENGLISH
DEUTSCH
Indicates whether an error has occurred (OSSD = 0 in case of error). Information on the nature of the error will be found in section 5.3.2.
Bit 1
Value
Significance
Shows that the protective field has been violated. This bit must not be used for decisions with safety implications! 0 1 The protective field has not been violated. The protective field has been violated.
Warning field
Shows if the warning field has been violated. This bit must not be used for decisions with safety implications! 0 1 The warning field has not been violated. The warning field has been violated.
Table 5.1-1:
The cyclic input data are transferred as PROFIsafe data with 16 bit CRC. Bits 0-6 must not be used for decisions that have safety implications. The failsafe PLC must only evaluate bit 7 to release the machine that is connected on the outgoing side if necessary.
Generates a restart signal on the restart line of the LS4 The timing that is defined for the LS4 must be guaranteed by the PLC or by external sensors. 0 1 No restart pulse, line set to 0 The restart input of the LS4 is switched to 1 (restart activated).
Table 5.1-2:
Bit 6
Value
Significance
This bit determines whether, when the scanner is switched on or when the scanner parameters are modified by way of the optical PC interface, an automatic adjustment by the LS4 data FB will be carried out. This bit will be evaluated when the PROFIBUS starts up and when the optical PC adapter is uncoupled. In the user program it should be definitely assigned either to 1 or to 0. 0 The OSSD bit is released without the LS4 data FB having run. The Proxy Request bit in the cyclic input byte (see section 5.1.1) will nonetheless be set, but the master will not necessarily take this into account. No automatic parameter adjustment is possible when LS4 PROFIBUS is replaced. The LS4 data FB is activated; automatic matching of parameters between the master and the LS4 PROFIBUS will take place.
5 4 3 2 1 0
Expects the value 0 Expects the value 0 Expects the value 0 Selects a protective field / warning field pairing on the LS4 The number of the protective field to be called up is expected to lie in the range 1 to 4. Any other number would generate a switching error, and will not be forwarded to the LS4. If an invalid protective field number is supplied, the OSSD bit will be set to 0. Approximately 500 ms after a valid protective field number has been subsequently supplied, the OSSD bit will be released again. This does not mean that absolutely any protective fields from 1 to 4, as well as any kind of protective field switchings, are permitted, as additional restrictions may be made by way of the LS4 parameterisation. The LS4soft software defines for the LS4 which protective fields may be switched on and in what order, and which protective field may be activated when the system is switched on. The PROFIsafe adapter ensures that correct timing will be observed when switching. This means that the PLC program can by contrast with the description given in connection with the LS4 switch directly from one to another permissible protective field, without activating both protective fields together for more than one second at most. The protective field number is coded as follows: Protective field number 1 2 3 4 Bit 2 0 0 0 1 Bit 1 0 1 1 0 Bit 0 1 0 1 0
Table 5.1-2:
91
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
The cyclic output data are transferred as PROFIsafe data with 16 bit CRC. As the PROFIsafe adapter always selects protective field 1 when PROFIBUS is starting up, if you want to be able to start up (after occurrence of an error, or when switching on the system) with any protective field, then in setting the LS4 parameters you must at least authorise the switching sequences that follow from protective field 1.
Block length in bytes, including header Higher-value byte (most significant byte) of the number of the data block, beginning with zero; the last block is always assigned the number 0xff (even when the first and the last block are identical). Low-value byte (least significant byte) of the number of the block, beginning with zero; the last block is always assigned the number 0xff (even when the first and the last block are identical).
5 - 196 User data Table 5.2-1: Header for acyclic command telegrams
As the LS4 needs up to 2 minutes to process data, the data flow control byte for the READ command will be set by the LS4 PROFIBUS and must be evaluated by the master. With the WRITE command the master sets this byte to zero.
93
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
Class 2 master commands All LS4 commands may be used as class 2 master commands (section 5.2.3), but not the special commands for the PROFIsafe adapter that are designed to control the automatic configuration (section 5.2.2). All commands are transmitted to and from the RS232 of the LS4 transparently. Communication by means of class 2 commands is only permitted for one master at any given time.
Both for READ and for WRITE, the individual bits in the data flow control byte will be set by the LS4 PROFIBUS as follows:
Bit 0
Value 0
Significance The LS4 PROFIBUS cannot handle WRITE commands. If a WRITE command is sent to the LS4 PROFIBUS all the same, it will not be processed; instead an error signal will be entered in the error buffer and an alarm sent to the master. The PROFIsafe adapter is ready to write the first or the next data block. This data block contains no user data. This data block contains user data. Reserved Reserved
1 1 0 1 2 3 0 0
6, 5, 4 The communication status of the PROFIsafe adapter is displayed in these bits in the form of a number. 0, 0, 1 It has not proved possible so far to set up a path of communication. Can only be received by a class 2 master, if the PROFIsafe adapter has not yet concluded the startup procedure. 0, 1, 0 The PC adapter is connected to the optical interface. In this mode acyclic WRITE commands will be ignored; no error message will be given. 0, 1, 1 The LS4 data FB of the master is currently processing an acyclic command (READ or WRITE). Any additional acyclic WRITE or READ command will result in an error in the LS4 data FBs process sequence. These errors can be prevented by checking the FB output FB_BUSY on the master. 1, 0, 0 Normal operation: acyclic READ and WRITE commands can be transmitted, having regard to bits 0 and 1. 1, 0, 1 There is no active communication link in place. That is to say, there is no link to a class 1 master and the PC adapter is not connected to the optical interface. This status report can only be given to a class 2 master. 7 Table 5.2-2: 0 Reserved Structure of the dataflow control byte
Which data record will be used is determined by the master. Only the data bytes described in the header will be evaluated. Apart from local parameterisation by way of the PC RS232 interface, PROFIBUS parameterisation of the LS4 by means of the LS4 data FB of a class 1 master (with automatic parameter adjustment) can only be carried out on the basis of acyclic READ and WRITE commands. In a later section the structure of acyclic commands will be examined in more detail. This can be defined by the user. A distinction must be made here between commands for the PROFIsafe adapter and commands for the LS4. As the LS4 PROFIBUS requires commands in order to supply LS4 data, an LS4 data record cannot be called up directly by means of a READ command. A complete LS4 data query therefore consists of a WRITE, in which the master specifies which data it wants to read followed by a READ, through which the requested data, that have in the mean time been supplied, will be read out. On the other hand, some commands to the PROFIsafe adapter can be directly implemented with a WRITE command. All the LS4 PROFIBUS command telegrams described below must in addition be started by the header (table 5.2-1) described earlier (master LS4 PROFIBUS) or will have a header supplied by the PROFIsafe adapter (LS4 PROFIBUS master). Only the user data will be described here. For this reason the numbering starts, in the tables below, with byte 5, which is the first byte of user data.
95
PORTUGUESE
SPANISCH
If the command byte (byte 5) is not one of those shown below, the telegram will be forwarded, without any further checking, to the LS4. If the LS4 does not recognise the telegram either, depending on the status of the LS4 either an error telegram will be the response (LS4 goes into error mode), or the telegram will be simply ignored.
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
The maximum length for a data record is 240 bytes, the minimum length is 5 bytes. Only slot 0 should be used. Either 2 or 3 may be used as an index; they will be treated in the same way by the PROFIsafe adapter. If the master is not capable of handling dynamic data record length, it is possible nonetheless by using these two indices to minimise the load on the bus, inasmuch as short messages will be transmitted through a short data record (e.g. DR2 (index 2)) and long messages through a long data record (e.g. DR3 (index 3)).
If the telegram is intended for the PROFIsafe adapter, the length of the telegram and the parameter area limits will be checked. If these are in error, an error telegram will be sent in response. In case of erroneous master READ commands, the PROFIsafe adapter response is : Byte 5 6 7 Description 0x93 = error in the telegram Error specification : 0 = incorrect length, 1 = incorrect parameters Command byte of the faulty telegram Response of the PROFIsafe adapter in case of error
Table 5.2-3:
Table 5.2-4:
There will not be any response from the PROFIsafe adapter. Immediately on reception of this command the resetting of the PROFIsafe adapter (in the form of a power-on reset) will be executed. This means that the PROFIBUS connection will be interrupted for approximately two seconds. The LS4 will not be affected by this (for LS4 restart, see section 5.1.2).
Byte 7
Description 0 = only one telegram will be forwarded to the master. 1 = the telegrams selected above will continue to be forwarded to the master (in the case of measurement value telegrams, only use this facility if the master will really read the telegram, otherwise the telegrams become obsolete.) Error or warning telegrams will be sent by LS4 once only, so that these can only be reliably received if byte 7 = 1. >1 = not permissible. PROFIsafe adapter forwarding LS4 telegrams
Table 5.2-5:
In response the selected telegram or telegrams will be dispatched. As the PROFIsafe adapter can put a number of LS4 telegrams into intermediate storage, if the requested telegram is found, a response will be immediately provided and can be read out. Only after this has been downloaded by the master will a new telegram be supplied, on the basis of the telegrams that have been received from the LS4 at the present time. If measurement value telegrams are to be forwarded to the master on an ongoing basis, and if the LS4 should generate an error or a warning message by telegram, this will be stored in a second buffer for the master, if this also needs to be forwarded. This means that even a slow master can both read out all measurement value telegrams and also receive error and warning telegrams.
5.2.2.3
Response of the PROFIsafe adapter to the following master READ command: Byte 5 6 7 8 9 Description Version query response PROFIsafe version (high byte) PROFIsafe version (low byte) PROFIBUS DP version (high byte) PROFIBUS DP version (low byte) PROFIsafe adapter: version determination Response from the PROFIsafe adapter 0x90 1 0 1 0
Table 5.2-6:
97
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
Byte
Description DPV1SL components (high byte) 0x01 = V1SL_COMP_INSTALLED_C2 0x02 = V1SL_COMP_INSTALLED_C2_RQB_IFA 0x04 = V1SL_COMP_INSTALLED_IBC 0x08 = V1SL_COMP_INSTALLED_ASPC2 0x10 = V1SL_COMP_INSTALLED_DPC31 0x20 = V1SL_COMP_INSTALLED_SPC3 0x40 = V1SL_COMP_INSTALLED_DPR
10
11
DPV1SL components (low byte) 0x01 = V1SL_COMP_INSTALLED_C2 0x02 = V1SL_COMP_INSTALLED_C0_RQB_IFA 0x04 = V1SL_COMP_INSTALLED_SUB_AL 0x08 = V1SL_COMP_INSTALLED_SUB_C1 0x20 = V1SL_COMP_INSTALLED_SUB_S7 0x40 = V1SL_COMP_INSTALLED_SUB_SC
0x0D
12 13 14
DPV1SL main interface DPV1SL function DPV1SL bugfix PROFIsafe adapter: version determination
6 5 1
Table 5.2-6:
5.2.2.4
Reading out the most recent error of the PROFIsafe adapter DEUTSCH PORTUGUESE 99 SPANISCH ITALIENISCH FRANZSISCH ENGLISH
With this WRITE command, followed by a subsequent READ command, the master can read out the most recent error from the PROFIsafe adapter. Here is the WRITE request of the master: Byte 5 Description 0x84 = PROFI_CMD_ERROR Querying the fault that most recently occurred in the PROFIsafe adapter
Response of the PROFIsafe adapter to the masters subsequent READ command: Byte 5 6 7 8 9 10 11 12 13 Description 0x84 = response for last error from slave high byte error number in C2 low byte error number in C2 high byte of the number of times this error has occurred in C2 since the power was last turned on low byte of the number of times this error has occurred in C2 since the power was last turned on high byte error number in C1 low byte error number in C1 low byte of the number of times this error has occurred in C1 since the power was last turned on high byte of the number of times this error has occurred in C1 since the power was last turned on PROFIsafe adapter reading out the most recent error
Table 5.2-7:
5.2.2.5
Description 0x91 = response for all errors from the PROFIsafe adapter Write index of the most recent error in C2 that has been entered in the ring buffer 0 = error occurred in the most recent cycle 1 = error occurred earlier Error number (high byte) for index 0 in ring buffer of C2 Error number (low byte) for index 0 in ring buffer of C2 Error number (high byte) for index 1 in ring buffer of C2 Error number (low byte) for index 1 in ring buffer of C2 ... ... Error number (high byte) for index 19 in ring buffer of C2 Error number (low byte) for index 19 in ring buffer of C2 Write index of the most recent error in C1 that has been entered in the ring buffer 0 = error occurred in the most recent cycle 1 = error occurred earlier Error number (high byte) for index 0 in ring buffer of C1 Error number (low byte) for index 0 in ring buffer of C1 Error number (high byte) for index 1 in ring buffer of C1 Error number (low byte) for index 1 in ring buffer of C1 ... ... Error number (high byte) for index 19 in ring buffer of C1 Error number (low byte) for index 19 in ring buffer of C1 PROFIsafe adapter reading out data from the error register
Table 5.2-8:
The content of the error register is maintained intact when the system is restarted, but is lost when the device is switched off.
Name
Description
Bit
Table 5.2-9:
101
PORTUGUESE
The number of option bytes can only lie between 1 and 3 (bit 0 & bit 1). The current operating status field (bits 2-4) shows the current operating status, and has the following layout: 000 no information (with messages to the LS4) 001 initialisation 010 measurement operations 011 configuration 100 error/malfunction As the number of option bytes has to be at least 1, option 1 can never have the value 0x00.
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
Name
Description
Option 2 Option 2 transmits status information about the individual protective fields + malfunction + warning + restart interlock. It will only be transmitted if at least one flag is set, i.e. this byte can never have the value 0x00. If this option is transmitted, the number of optional fields in option 1 must be at least two. This optional character has the following layout: 7 6 5 4 3 2 1 0 Bit
currently active protective field 0 = free 1 = occupied currently active warning field 0 = free 1 = occupied warning
malfunction
restart interlock 2nd protective field 0 = free 1 = occupied 2nd warning field 0 = free 1 = occupied = 1 (for option 3)
With messages to the LS4 this option byte has no significance. Bit 7 will be set to 1 if option 3 has to be transmitted, so as to make it impossible for option 2 to have the value 0. Table 5.2-9: Structure of the option byte in LS4 commands
Name
Description
Bit
reserved
=1
Table 5.2-9:
103
PORTUGUESE
SPANISCH
As it can happen that when the protective fields are being switched two protective field pairs may be selected simultaneously, it is necessary to give two specifications for the selected protective field pair. For the selected protective field pairs, 0 means that no selection has been made, 1-4 indicates selection of protective field pairs 1-4. With messages to the LS4 this byte has no significance.
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
Option 3 Option 3 transmits status information about the selected protective field pairs. It will only be transmitted if at least one flag is set, i.e. this byte can never have the value 0x00. If this option is transmitted, the number of optional fields in the option 1 byte must be at least three. This option byte has the following layout:
Alive telegrams
When alive telegrams are enabled with PROFI_CMD_GET_LS4_DATA (see section 5.2.2.2), the master can read these in the following format: Byte 5 6 7 8 Description 0x14 = COM_CMD_ALIVE Option 1 Option 2 Option 3 Structure of the alive telegram
Table 5.2-10:
Error telegrams
If an error occurs in the LS4, the following command will be sent as an alarm (section 5.3.2) or else sent to the master in response to an acyclic READ command. Byte 5 6 7 8 9 10 11 12 13 14 Description 0x53 = COM_CMD_ERROR_OCCURRED Option 1 Option 2 Option 3 LS4 error number (high byte) LS4 error number (low byte) LS4 error parameter (high byte) LS4 error parameter (low byte) LS4 error function (high byte) LS4 error function (low byte) Structure of the error telegram
Table 5.2-11:
5.2.3.3
Table 5.2-12:
5.2.3.4
Table 5.2-13:
The number of bytes of user data is dependent on the parameterisation of the LS4. If no LS4 telegram is available, a user data block without data content will be sent.
Every outline measured has 529 measurement values (angle of -5.04 to +185.04 with 0.36 resolution). Every individual measurement value has a segment number beginning with 0. This means that the measurement value at the -5.04 point has the segment number 0, and the measurement value at the 0 point has the segment number 14. Within a measurement message it is not necessarily the case that all values of the outline measured will be transmitted (see resolution, output start and output stop below). The following data will be transmitted within a measured outline: Byte 9 Name Scan number Description Sizes
With every revolution of the LS4, the scan number will 8 bytes be incremented. This scan number can be used to determine the distance in time between two measurement contours that have been output. The actual scan number has a size of 32 bits. So as to rule out the possibility of a small value producing a multiple zero in the transmission of these 4 bytes, filler bytes are inserted between the individual bytes of the scan number. This results in the scan number having the following structure: Bits 24-31 0xFE Bits 16-23 0xFE Bits 8-15 0xFE Bits 0-7 0xFE 1 byte Gives the distance in segments (measurement points) between two consecutive measurement values. For example, the measurement outline is output, starting from measurement value 0 through to 528, and the resolution is set to 4. Measurement values will be output for the following segments of the outline measured: 0 4 ... 524 528 2 bytes
17
Resolution
18
Output start Indicates at which segment (between 0 and 528) the measured outline of the output starts.
Table 5.2-14:
Byte 20
Name
Description
Sizes
Output stop Indicates which segment (between 0 and 528) supplies the last measurement value. If the relation between the number of measurement values output (resulting from output start and output stop) and the resolution is not exact, then the measurement value corresponding to output stop will be output as well. Measurement values In succession, the individual measurement values are transmitted, starting with the measurement value that corresponds to output start and ending with the measurement value that corresponds to output stop. Each measurement value here corresponds to the distance measured between the LS4s rotational axis and object at the given angular position, in millimetres. Bit 0 of each measurement value indicates whether between the given measurement value and the previous one the measured outline has violated a protective field. This means that when the measurement values are evaluated as a value of distance, bit 0 has to be masked out.
22
Table 5.2-14:
2-byte values within the measurement value telegram are transmitted with the high byte coming first and the low byte second.
5.3
Alarms
Alarms will be automatically transmitted by PROFIBUS to the master, if they are reported to the master in the cyclic telegram in the PROFIBUS status byte. The master will then get the actual alarm information from the slave that has reported it by means of an acyclic telegram, and write it to a storage area reserved for alarms (SAP51). The application program can then evaluate the alarm report, without having to call up these data by means of an explicit READ command.
107
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
2 bytes
2 3 4
Sequ. no.
Table 5.3-1:
Sequ. no. 0 x x 0 x x 0 x x
Table 5.3-2:
Byte
Bit 7 6 x x x x x x 5 x x x x x x 4 x x x x x x 3 x x x x x x 2 x x x x x x 1 x x x x x x 0 x x x x x x
Description
8 9 10 11 12 13
x x x x x x
High byte of the frequency of this error in C2 since the system was last started up Low byte of the frequency of this error in C2 since the system was last started up High byte of C1 error number Low byte of C1 error number High byte of the frequency of this error in C1 since the system was last started up Low byte of the frequency of this error in C1 since the system was last started up
Table 5.3-2:
The error code contained in bytes 6 to 7 and 10 to 11 respectively displays on the PROFIsafe adapter the most recent error occurring in the LS4 or in the C1 or C2. It has the following significance: Code Cause/significance Measures to be taken to rectify error
The processing of the output data Invalid operating status; can occur in yields no consistent results case of PROFIBUS malfunctions. Incorrect protective field number PROFIBUS telegram could not be processed Only select protective fields 1 to 4.
All reading buffers for PROFIBUS After each WRITE command the result telegrams are occupied requested by the PROFIsafe adapter must be fetched by the master. PROFIBUS telegram is too long (>=1100 Byte) Only generate valid acyclic WRITE commands.
0x2A06
Table 5.3-3:
109
PORTUGUESE
SPANISCH
Evaluate the data flow control byte (section 5.2.1) in acyclic WRITE commands.
ITALIENISCH
LED on the LS4 does not light up Check the +24 V DC power supply (also check for polarity reversal), check the connection lead, if necessary replace faulty equipment.
FRANZSISCH
ENGLISH
DEUTSCH
Cause/significance Unexpected block number in PROFIBUS telegram Unknown status of the LS4 data FB Error in CRC comparison Echo data for CRC no. x are incorrect CRC no. x is different on the second reading
Measures to be taken to rectify error The blocks of the telegrams must be numbered in continuous sequence. Acyclic READ and WRITE commands can only be processed when the LS4 data FB has finished executing parameter adjustment; watch for the FB_BUSY signal (section 6.4).
DEUTSCH ENGLISH
0x2B2X
Table 5.3-3:
6.1
110
Fig. 6.1-1:
6.2
111
PORTUGUESE
SPANISCH
ITALIENISCH
In the next step the LS4 has to be configured as a PROFIBUS slave. The PROFIBUS address should be entered in the hardware configuration program (this has also been defined on the LS4 by means of the hex switches). In addition, the starting addresses of the input and output bytes will be set. PROFIBUS writes the LS4 input byte (section 5.1.1) to the input byte cyclically, while the output byte is cyclically transmitted to the LS4 (section 5.1.2). A simple user program is only able to work with these two bytes of the process image.
FRANZSISCH
ENGLISH
DEUTSCH
Explanation Can be set to 0 or 1 (default = 0) 0 the current number is not taken into account by the CRC 1 the current number is taken into account by the CRC Cannot be adjusted, is preset to 0 for no i-parameters Cannot be adjusted, is preset to 1 for SIL2 Cannot be adjusted, is preset to 1 for 2-byte CRC Cannot be adjusted, is preset to 0 Cannot be adjusted, is preset to 0 Can be set in a range between 1 and 65534 (default = 1) Note: this is automatically allocated by the SIMATIC Manager. This must be set to 500 + the PROFIBUS address (factory setting = 504). The device incorporates hex switches by means of which the PROFIBUS address can be set. The PROFIsafe destination address is formed from the 16-bit sum of 500 and the PROFIBUS address, and should be defined by the user as part of the project configuration. In this way it can be ensured, in systems that have only one PROFIBUS line, that the destination address is unique. Only this destination address will be accepted by the LS4 PROFIBUS. In systems that have more than one PROFIBUS line, it is the responsibility of the user to ensure that all LS4s that form part of the entire system have different PROFIBUS addresses, so as to bring about the required uniqueness of the destination address. The device described here is a PROFIBUS slave with just one PROFIsafe module. Consequently there is no need for any further mechanism to distinguish the individual modules from one another. Watchdog time, can be set in a range between 10 and 65535 milliseconds (default = 10). In the project configuration the value of F_WD_Time must always be set higher on the master, in accordance with the equation F_WD_Time = max(10 ms, tscan_rec) * 2 + 4 * Bus_Cycle_Time where tscan_rec = the cycle time of the safety program on the PLC.
F_Check_SeqNr
F_WD_Time
To obtain the system response time, the response time of the LS4 (which can be configured to a value >= 80 ms) must be added to the value to which F_WD_Time has been set. Table 6.2-1: Parameters of the PROFIsafe driver
Explanation Must be correctly set by the PROFIsafe project configuration tool to CRC1 for the F-parameter block (default = CRC1 for default Fparameters).
Table 6.2-1:
Fig. 6.2-1:
113
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
Under the heading PROFIsafe, the minimum requirement is the adjustment of the F_WD_Time parameter in keeping with section 6.6. If the PROFIBUS address deviates from the factory setting of 4, the F_Dest_Add parameter must be adjusted as well.
DEUTSCH
The LS4 data FB requires 34 remanent markers. These, as well as any further remanent markers that may be used by the user program, should be reserved here (50 in the example shown).
Fig. 6.2-2:
Now the hardware configuration can be converted and loaded to the CPU.
Diagnosis data
While the system is being put into operation it is possible for the project configuration tool to access the PROFIsafe diagnosis data. These relate only to errors in the setting of the parameters for the PROFIsafe driver. The diagnosis data are supplied as a PDU indicative of status, in which, after the first 6 bytes of standard diagnosis, the following bytes 7 to 11 are supplied: Byte Bit 7 Byte 7 Byte 8 Byte 9 Byte 10 Byte 11 0 1 0 0 x 6 0 0 0 0 x 5 0 0 0 0 x 4 0 0 0 0 x 3 0 0 0 0 x 2 1 0 0 0 x 1 0 0 0 0 x 0 1 Length of the PDU indicating status is 5 (including header) 1 Type = status message 0 No slots 0 No status differentiation x Error in F-parameters (error number), see below Description
Table 6.3-1:
Byte
Bit 7 6 1 1 1 1 1 1 1 1 5 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 1 2 0 0 0 1 1 1 1 0 1 0 1 1 0 0 1 1 0 0 1 0 1 0 1 0 1 0
Description
0 0 0 0 0 0 0 0
65 = internal error in F_Dest_Add 66 = incorrect F_Dest_Add 67 = incorrect F_Source_Add 68 = incorrect F_WD_Time setting 69 = incorrect SIL setting 70 = incorrect CRC length 71 = incorrect F_Block_ID or F_ParVersion 72 = incorrect CRC1 by way of the F-parameters
Table 6.3-1:
6.4
Input and output variables of the FB LS4 LS4 data functional block
115
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
Parameter
Declaration Data type OUTPUT OUTPUT OUTPUT OUTPUT WORD BOOL BOOL BYTE
Storage area I, O, M, D, L I, O, M, D, L I, O, M, D, L I, O, M, D, L
Input and output variables of the FB LS4 LS4 data functional block
FIRST_IN_BYTE_LS4 is allocated the value of the LS4s cyclic input byte. Bit 2 of this (Proxy Request) will be evaluated, so as to activate the LS4 data FB if required, i.e. to carry out parameter matching between the LS4 and the master. The FB LS4 will be informed in which direction the parameters are to be transmitted, or whether the LS4 status is that defined by LS4 PROFIBUS when it was delivered from the factory. While the parameters are being adjusted, the output signal FB_BUSY will be set. After the parameters have been successfully adjusted, the LS4 data FB reads the LS4 identification data from the scanner, so that in future it can recognise what is happening when a device is replaced without any possibility of mistake. If an error occurs while the parameters are being transmitted (e.g. negative acknowledgement, the command to cancel being given etc.), the FB LS4 will terminate the procedure and wait until it is called up again. FIRST_OUT_BYTE_LS4 is associated with the cyclic output byte. At present it has no function, though it may be used in subsequent applications. START_ADDRESS_REM_MARKER points to the start of the block consisting of the marker bytes (of which there must be a minimum of 34). These bytes are required for internal purposes, and do not have a data structure that has any relevance to the user program. The starting address of this remanent marker area cannot be set by the SIMATIC software automatically, but must be set manually in the course of the S7 hardware configuration (section 6.2). DB_MMC_LS4_CONFIG, DB_LS4_CONFIG and DB_MMC_LS4_DATA are supplied with the relevant data component number. Whereas DB_MMC_LS4_CONFIG and DB_MMC_LS4_DATA are addressed to data blocks on the micro memory card, the data block addressed by DB_LS4_CONFIG is located in working storage. The data components that fall under the acronym MMC (micro memory card) exchange their data only with the associated SFCs (SFC 83 "READ_DBL" and SFC 84 "WRIT_DBL"). DP_DIAGNOSIS_ADDRESS_LS4 contains the PROFIBUS diagnosis address of the LS4 PROFIBUS. In the S7 hardware configuration program it can be brought up by means of the menu sequence Properties / General / Diagnosis address. CONFIG_SET_TO_DEFAULT comes directly from the scanner, and indicates to the user program that the LS4 PROFIBUS is reset or has been reset to the factory setting. The output here is a 1 when the LS4 PROFIBUS is linked for the first time to the safety controls if the LS4 data FB has not yet read a valid data record from the LS4 and saved it on the PLC system.
FB_BUSY indicates that the LS4 data FB is currently carrying on a parameter adjustment with the LS4 with which it is associated. To do this it uses acyclic READ and WRITE commands. As these commands extend the cycle time of the user program, further acyclic READ or WRITE commands by the user program to the same, or to a different PROFIBUS address should be avoided while parameter adjustment is being carried on. If several LS4 PROFIBUSs are installed on a PROFIBUS system that is to say, if several LS4 data FBs are being used on the master PLC these should be synchronised with one another, so that if several parameter adjustment operations are launched simultaneously an overflow of the cycle time of the user program will be prevented. This can happen, for instance, if the cyclic input byte is not switched directly to FIRST_IN_BYTE_LS4 but is set by means of a marker byte. If one of the LS4 data FBs has set its FB_BUSY output signal (indicating that parameter adjustment is being carried on), the marker bytes of the other LS4 PROFIBUS will for a temporary period not be switched to the respective LS4 data FBs, or the Proxy Request bit will be masked out. ERROR_NUMBER_LS4 is intended for remote diagnosis by the manufacturers services. It supplies the error code of the LS4. The LS4 data FB uses SFCs to communicate via PROFIBUS. Error messages relating to these SFCs, as well as error codes of the LS4 data FB, will be made available to the user program under ERROR_NUMBER_FB and ERROR_CODE_SFC. The table below contains the error numbers of the LS4 data FB that may be output by way of the ERROR_NUMBER_FB parameter. If the ERROR_CODE_SFC is not equal to zero, this table makes it possible to determine the corresponding SFC. The SFC error code can be decoded with the SIMATIC reference manual System software for S7/300/400 system functions and standard functions. If LS4 data FB processing is resumed, ERROR_NUMBER_FB, ERROR_CODE_SFC and ERROR_NUMBER_LS4 will be reset to the value zero. Error number 0x0101 0x0201 0x0301 0x0302 Table 6.4-2: SFC 83 58 59 Item no. 01 02 03 03 Explanation Error copying data component from upload area to data component in working storage Error in writing data record functional block to LS4 PROFIBUS Error in reading data record LS4 PROFIBUS to functional block
117
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
After an unsuccessful parameter adjustment (in either direction) that is, if either the upload or the download fails the LS4 PROFIBUS will be returned to the factory settings. The LS4 data FB will be notified of this. The user then has to parameterise the LS4 PROFIBUS once again, using the LS4soft software.
Error number
SFC 58 59
Item no. 04 05 05
Explanation Error in writing data record functional block to LS4 PROFIBUS Error in reading data record LS4 PROFIBUS to functional block Error in LS4 PROFIBUS data record Error in reading data record LS4 PROFIBUS to functional block Error in LS4 PROFIBUS data record Error in reading data record LS4 PROFIBUS to functional block Error in writing data record functional block to LS4 PROFIBUS Error in LS4 PROFIBUS data record Error in writing data record functional block to LS4 PROFIBUS Error in writing data record functional block to LS4 PROFIBUS Error in reading data record LS4 PROFIBUS to functional block Error in LS4 PROFIBUS data record Error copying data component in working storage to data component in upload area
0x0401 0x0501 0x0502 0x0601 0x0602 0x0701 0x0801 0x0902 0x1001 0x1101 0x1201 0x1202 0x1301
59
06 06
59 58
07 08 09
58 58 59
10 11 12 12
84
13
58 59
21 22 22
Error in writing data record functional block to LS4 PROFIBUS Error in reading data record LS4 PROFIBUS to functional block Error in LS4 PROFIBUS data record Error in reading data record LS4 PROFIBUS to functional block Error in LS4 PROFIBUS data record Error in writing data record functional block to LS4 PROFIBUS Error copying data component from upload area to data component in working storage
59
23 23
58 83
24 25
Table 6.4-2:
Error number 0x2601 0x2701 0x2801 0x2802 0x2901 0x3001 0x3002 0x3101 0x3102 0x3201 0x3301 0x3401 0x3402
SFC 58 58 59
Item no. 26 27 28 28
Explanation Error in writing data record functional block to LS4 PROFIBUS Error in writing data record functional block to LS4 PROFIBUS Error in reading data record LS4 PROFIBUS to functional block
58 59
29 30 30
Error in writing data record functional block to LS4 PROFIBUS Error in reading data record LS4 PROFIBUS to functional block Error in LS4 PROFIBUS data record Error in reading data record LS4 PROFIBUS to functional block Error in LS4 PROFIBUS data record Error in writing data record functional block to LS4 PROFIBUS Error in writing data record functional block to LS4 PROFIBUS Error in reading data record LS4 PROFIBUS to functional block Error in LS4 PROFIBUS data record
59
31 31
58 58 59
32 33 34 34
58 59
40 41 41
Error in LS4 PROFIBUS data record Error copying data component in working storage to data component from upload area
84
42
0x5001
59
50
Table 6.4-2:
119
PORTUGUESE
0x4501
58
45
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
from the sample LS4 project that forms part of the standard delivery into your own safety program. The DB instance DB LS4 (DB 10) need not be copied, because this will be automatically generated when the FB LS4 is called up.
Fig. 6.5-1:
The number of the elements may be altered at will, e.g.: - FB LS4 - DB MMC LS4 CONFIG - DB LS4 CONFIG - DB MMC LS4 DATA ( FB 30 ) ( DB 32 ) ( DB 33 ) ( DB 34 )
Transfer the input and output bytes of the LS4 to internal marker bytes, and communicate these to the FB LS4. In this way it is possible, if necessary, to mask out the Proxy Request bit until such time as the current parameter adjustment with another LS4 has been concluded (evaluation of FB_BUSY signals of all FB LS4). This makes it possible to ensure that only one parameter adjustment operation will be running at any given time, thus avoiding unnecessarily extending the cycle time of the user program. A DB instance must be supplied when the FB is called up. For example: CALL "FB LS4" , "DB LS4" FIRST_IN_BYTE_LS4 FIRST_OUT_BYTE_LS4 :="FIRST IN BYTE LS4" :="FIRST OUT BYTE LS4" CALL "FB LS4" , DB10
START_ADDRESS_REM_MARKER :=10 // start address (34 bytes of remanent markers)!!! DB_MMC_LS4_CONFIG DB_LS4_CONFIG DB_MMC_LS4_DATA DP_DIAGNOSIS_ADDRESS_LS4 :=100 :=101 :=102 :=W#16#3FE // DP diagnosis address LS4: 1022 (hex: 3FE) :="ERROR NUMBER FB" :="ERROR CODE SFC" :="CONFIG SET TO DEFAULT" :="FB_BUSY" :="ERROR NUMBER LS4"
After these elements have been transferred to the CPU, the CPU can then be switched to RUN. Now the FB LS4 is ready to communicate with the LS4 PROFIBUS. No communication can take place when the optical PC adapter is attached to the LS4 PROFIBUS.
121
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
Before calling them up, the bit Proxy Enable (bit 6 of the cyclic output byte, section 5.1.2) must be set by the user program to the fixed value 1, so that in case of need the LS4 PROFIBUS will send the Proxy Request bit in the cyclic input byte (section 5.1.1) of the LS4.
Response time
The overall response time for a safety system based on LS4 PROFIBUS is composed of: the response time of the LS4, including the PROFIsafe adapter, the time taken to transmit data from the LS4 PROFIBUS to the master program, the cycle time of the masters PROFIsafe program, the time taken for the safety circuit to cut out, possibly involving an output by way of PROFIBUS and the time the machine takes to come to a standstill. The response time up to the completed evaluation of the OSSD bit in the masters safety program is determined by the following equation:
TR = TScanner + TWD
where TR TScanner TWD response time from the moment when a protective field is violated until the evaluation of the OSSD bit on the master, response time of the LS4 (minimum of 80 ms, can be set in 40ms steps/ decrements) and watchdog time = max (10 ms, tscan_rec) * 2 + 4 * Bus_Cycle_Time where tscan_rec = the cycle time of the PROFIsafe part on the master. TR is the time taken until the PLC output switches off. The time taken till the power switching circuit is broken and the time taken for the machine to come to a standstill must also be taken into account. As a fundamental principle it should be noted that the extension of response time as compared with an LS4 without a PROFIsafe adapter means that the safety distances to be maintained must likewise be higher.
After alterations of the LS4 parameters using the optical adapter cable or after automatic data exchange the effectiveness of the switch-off function must be tested along the defined contour of the detection zones.
7.1
123
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
The linking-in of the LS4 data FB FB LS4 (see section 6.2) is optional. This makes it possible to replace faulty equipment simply and quickly in case of a malfunction. It is not required for the transmission of cyclic real time data. In the simplest case, the user program will just read the OSSD bit of the cyclic input data in the safety part of the PLC program, and will then write the cyclic output byte (see example in section 5.1.1).
The Proxy Request bit will not be set as long as the PC adapter remains connected. Consequently there will not be any automatic parameter adjustment with the PROFIBUS master either. Only when the PC adapter is removed does the PROFIsafe adapter set the Proxy Request bit, and the parameter adjustment with the master follows, if an LS4 data FB (FB LS4 functional block) on the master has been allocated to the LS4 PROFIBUS. If the connection between the optical PC interface and the LS4 has once been switched through, all acyclic PROFIBUS commands will be acknowledged with an error message. Cyclic data operations will not be directly affected by this. Of course the OSSD signal switches off during a download by way of this interface, if the data set on the LS4 is changed. Removing or replacing the optical PC adapter in the course of active operations only has an effect on the Proxy Request bit. When the adapter is removed, there is an automatic request for parameter adjustment. The OSSD bit will not be affected by this, so long as no errors occur in the course of the parameter adjustment operation. The optical PC adapter must not be left permanently connected, as in that case the PROFIBUS master will not take on the parameter settings of the LS4. Please note as well that when the PC adapter is connected, some of the PROFIBUS alarms cease to be available.
Scenarios
If the LS4 data FB functional block has been linked into the non-safety part of the user program, the following possible operating scenarios result: First start-up with LS4 PROFIBUS connected; a new system is put into operation for the first time. Changing the parameterisation of an LS4 PROFIBUS that is known to the master. Normal start-up with a correctly parameterised LS4 PROFIBUS. First start-up after a defective LS4 PROFIBUS has been replaced by a new device. The behaviour of the LS4 data FB and the LS4 PROFIBUS in each of these four cases will be described below.
7.2.1 Putting the system into operation for the first time
On the PROFIBUS master no valid parameter settings are available. On the LS4 the parameters are in the first instance those that were set at the factory. The LS4 PROFIBUS goes into normal operating mode; all parameters conform to the factory settings. In addition, the output CONFIG_SET_TO_DEFAULT of the FB LS4 is set. As the factory safety settings generally do not correspond to the requirements of the situation of use, the user will need to parameterise the LS4 PROFIBUS in the situation of use by means of the optical PC adapter. This gives us our second scenario.
7.2.2 Changing the parameterisation DEUTSCH PORTUGUESE 125 SPANISCH ITALIENISCH FRANZSISCH ENGLISH
At the site where the equipment is installed, the parameterising PC is connected to the parameterising interface of the LS4 PROFIBUS by way of the optical PC adapter. After all the parameters on the LS4 have been set and checked with LS4soft, once parameterisation has been successfully concluded the PC goes directly into normal operating mode, with cyclic exchange of data. Only when the PC adapter is removed from the interface is the PROFIsafe adapter informed that it should send the new parameter settings to the LS4 data FB on the PROFIBUS master. This parameter adjustment takes place automatically in the background; if parameter settings have already been saved on the LS4 data FB, these will be overwritten.
Fig. 7.3-1:
Fig. 7.3-2:
127
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
Please copy the following components, so as to link them into your user program:
Fig. 7.3-3:
7.3.2.2
The component LS4 automatic start DEUTSCH PORTUGUESE 129 SPANISCH ITALIENISCH FRANZSISCH
Fig. 7.3-4: Example of system programming: LS4 automatic start component This component makes it possible for the system to resume operations immediately, once the protective field of the scanner is clear again. This function can be used in connection with driverless transport systems, for example. When you incorporate this component in your fail-safe user program, the following parameters need to be defined: OSSD: Electronic device monitoring (EDM): Switch_off: This input receives the laser scanners OSSD bit. This parameter is assigned the value of the contactor feedback that is responsible for the switching of the safety function. This output controls the contactor that is responsible for the switching of the safety function.
ENGLISH
Fig. 7.3-5:
8
8.1
Testing
Tests before the system is first put into operation
The tests that precede the systems first being put into operation should be carried out by qualified personnel, and must ensure that the automatic optoelectronic protective device, the safety program on the master PLC and any other safety components that are present have been properly selected in conformity with the local regulations, particularly as specified by the Machine Safety Directive and the Directive on the Use of Working Equipment, and in Germany the Operational Safety Ordinance1, and that they afford the required level of protection when operating in the manner prescribed. You should test the protective device in accordance with local prescriptions, making sure that the protective equipment has been properly assembled, that it is electrically connected to the controls and that it is effective in all operational modes of the machine. The same testing requirements apply if the machine is out of action for any length of time, after large-scale modifications of the equipment or after repairs, if these could have implications for safety. Please have regard to the requirement that operating personnel should be instructed by qualified persons before taking up their duties. Training of personnel is the responsibility of the company operating the machine.
8.2
Regular testing
Regular testing should be carried out, again in keeping with local requirements. The object of these is to detect changes (e.g. with reference to overtravel times) or modifications to the machine or protective equipment. You should have the effectiveness of the protective equipment checked by qualified personnel at the prescribed intervals.
8.3
1.
German: Betriebssicherheitsverordnung.
131
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
9
DEUTSCH ENGLISH FRANZSISCH ITALIENISCH SPANISCH PORTUGUESE 132
External fuse Protection category Ambient operating temperature Ambient temperature for storage Relative humidity Dimensions (height x width x depth) Weight PROFIBUS data rate PROFIBUS connection Response time of PROFIsafe adapter Length of power supply lead Length of restart lead
a b
= =
Fig. 9.0-1:
133
PORTUGUESE
SPANISCH
ITALIENISCH
FRANZSISCH
ENGLISH
DEUTSCH
10
DEUTSCH ENGLISH FRANZSISCH ITALIENISCH SPANISCH PORTUGUESE 134 10.1
10.2
Mounting system for setting up and adjusting the LS4 PROFIBUS 3RG7838-1AA Adapter plate for already existing mounting systems LS4 cleaning set Test body, cylindrical, 500 mm in length, diameter 70 mm, reflectance factor ca. 1.8% Test body, cylindrical, 1000 mm in length, diameter 200 mm, reflectance factor ca. 1.8% 3RG7838-1AB 3RG7838-7RS 3RG7838-7GB 3RG7838-7GD
11 Appendix
PORTUGUESE
SPANISCH
DEUTSCH
ENGLISH
FRANZSISCH
ITALIENISCH
SPANISCH
PORTUGUESE
136
137
Bereich Automatisierungs- und Antriebstechnik Geschftsgebiet Niederspannungs-Schalttechnik 92220 Amberg Automation and Drives Low Voltage Controls and Distribution D-92220 Amberg nderungen vorbehalten All rights for alterations reserved Siemens Aktiengesellschaft
138
10/2003