3.7.1 Werte für IO-Link State (Subindex 0x01) 3.7.2 Werte für Lost Frames (Subindex 0x02) IO-Link Status Data Ch. x (0xF100) IO-Link Port Qualifier Ch. x (0xF101) 3.10 Konfiguration ohne ESI 3.10.1 Werte für den Master Control (80X0:28) 3.10.2 Prozessdatenlänge www.balluff.com deutsch...
Die genaue Vorgehensweise hängt von der ver- wendeten Projektierungssoftware ab. 2.3.1 ESI-Dateien installieren Die Gerätebeschreibung hat folgenden Namen: Balluff BNI XG3-508-0C5-R015 ECS V.x.x.x.xml and Balluff BNI XG3-508-0C5-Z015 ECS V.x.x.x.xml ► Die Datei in das entsprechende TwinCAT-Verzeichnis (im Standard: C:\TwinCAT\3.1\Config\Io\EtherCAT) kopieren. ⇒ Installierte Geräte sind ab dem nächstem Start des TwinCAT System Managers verfügbar.
BNI XG3-508-0C5- _ 015 / BNI XG5-5 _ 8-1B5-Z067 Netzwerkschnittstelle Integration (Fortsetzung) 2.3.3 Gerät manuell anfügen 2.3.4 Notwendige Konfiguration am Gerät Nach dem automatischen Scannen oder manuellen Hinzu- Voraussetzung fügen erscheint das Gerät in der Baumstruktur von Twin- Vor dem Anschließen von Geräten an das EtherCAT Netz CAT.
Anzahl der verwendeten Prozessdaten Tab. 2-1: Datenkonfiguration (sollte gleich oder größer als die Prozess- datenlänge des IO-Link-Devices sein) Die Summe der Ausgangsdaten darf 256 Byte E = Eingangsdaten nicht überschreiten. A = Ausgangsdaten E/A = Eingangs- und Ausgangsdaten Bild 2-7: IO-Link-Modul konfigurieren www.balluff.com deutsch...
BNI XG3-508-0C5- _ 015 / BNI XG5-5 _ 8-1B5-Z067 Netzwerkschnittstelle Integration (Fortsetzung) 2.4.2 Kurzschlüsse und Neustart-Bits 2.5.1 Konfiguration der Module Das BNI startet automatisch neu, wenn ein Kurzschluss an einem der IO-Link-Ports auftritt. Es sind keine Neustart- Bits erforderlich. 2.4.3 IO-Link State Im IO-Link State wird der momentane Status jedes Ports angezeigt.
Download einschalten Tab. 2-4: Werte für den Parameterserver Der Datenspeicher kann über das CoE-Objekt zusätzliche IO-Link-Konfigurationsdaten für jeden Port mit Subindex 1 aktiviert werden (Validierung und Backup). Der Inhalt der Datenspeicherung über EtherCat kann nicht gelesen oder geschrieben werden. www.balluff.com deutsch...
BNI XG3-508-0C5- _ 015 / BNI XG5-5 _ 8-1B5-Z067 Netzwerkschnittstelle Integration (Fortsetzung) IO-Link-Parametrierung 2.6.3 Beispiel einer CoE-Einstellung Über das Object 0x4000 (IO-Link Service Data Ch. X) Dieses Beispiel zeigt, wie der Index 0x40 einer Smartlight können IO-Link-ISDU-Parameter aus dem IO-Link-Device (Modus) durch Lesen und Schreiben geändert wird.
– 16 Bit IO-Link-Index – 8 Bit immer null – 8 Bit IO-Link-Subindex – Rückgabe Fehlercode – 16 Bit zusätzliche Information über den Fehlercode, der 0x0700 (ADS-Gerätefehler) lautet. – 16 Bit-Fehlercode via IO-Link Funktionsblöcke ADSREAD und ADSWRITE Bild 2-13: Funktionsblöcke ADSREAD und ADSWRITE www.balluff.com deutsch...
Seite 14
BNI XG3-508-0C5- _ 015 / BNI XG5-5 _ 8-1B5-Z067 Netzwerkschnittstelle Integration (Fortsetzung) Funktionsblock ADSREAD in TwinCat Bild 2-14: TwinCat – ADSREAD ADSREAD-Befehle Name Geerbt von Adresse Initial Kommentar NETID T_AmsNetId – – – Ams net id PORT T_AmsPort – – –...
Seite 15
Steigende Flanke startet Befehlsausführung. TMOUT TIME – – DEFAULT_ADS_ Maximal zulässige Zeit für die TIMEOUT Ausführung dieses ADS-Befehls BUSY BOOL – – – Busy-Flag BOOL – – – Error-Flag ERRID UDINT – – – ADS-Fehlercode Tab. 2-8: ADSWRITE-Befehle www.balluff.com deutsch...
BNI XG3-508-0C5- _ 015 / BNI XG5-5 _ 8-1B5-Z067 Netzwerkschnittstelle Integration (Fortsetzung) Vorbereitung für den Webserver Netzwerk vorbereiten Bevor der Webserver über EoE erreicht werden kann, muss das Netzwerk der Beckhoff-Steuerung konfiguriert EoE-Setup werden. Um auf den Webserver des BNI-Moduls zugreifen zu können, muss zuerst der Zugriff über EoE (Ethernet over 2.8.1 Beckhoff-Steuerung konfigurieren...
BNI XG3-508-0C5- _ 015 / BNI XG5-5 _ 8-1B5-Z067 Netzwerkschnittstelle Objektverzeichnis (Fortsetzung) IO-Link Information Data Ch. x IO-Link Status Data Ch. x (0xF100) (0x9000 – 0x9FFF) Index Subindex Name DataType Access Index Subindex Name DataType Access 0xF100 0x01 Status of UINT8 0x90n0 0x04...
IOL_l_4byte/0_2bytes 0x83 0x16 IOL_l_2byte/0_8bytes 0x16 0x87 Tab. 3-12: Werte (Beispiel) Im Startup sieht die Konfiguration für Port 6 im IO-Link- Modus mit 32 Byte Prozessdatenlänge für Input und Output z. B. folgendermaßen aus: Bild 3-1: Beispielhafte Konfiguration im Startup für Port 6 www.balluff.com deutsch...
Seite 23
3.7.1 Values for IO-Link State (Subindex 0x01) 3.7.2 Values for Lost Frames (Subindex 0x02) IO-Link Status Data Ch. x (0xF100) IO-Link Port Qualifier Ch. x (0xF101) 3.10 Configuration without ESI 3.10.1 Values for the Master Control (80X0:28) 3.10.2 Process data length www.balluff.com english...
2.3.1 Installing ESI files The device description has the following name: Balluff BNI XG3-508-0C5-R015 ECS V.x.x.x.xml and Balluff BNI XG3-508-0C5-Z015 ECS V.x.x.x.xml ► Copy the file to the corresponding TwinCAT directory (in the standard: C:\TwinCAT\3.1\Config\Io\EtherCAT). ⇒ Installed devices are available when the TwinCAT System Manager starts again.
BNI XG3-508-0C5- _ 015 / BNI XG5-5 _ 8-1B5-Z067 Network interface Integration (continued) 2.3.3 Manually adding a device 2.3.4 Necessary configuration of device After automatic scanning or manual adding of the device, Prerequisite the device appears in the tree structure of TwinCAT. Before connecting devices to the EtherCAT network, the EtherCAT system must be in a secure, de-energized state.
Slot number Meaning IO-Link Ports I = Input data Tab. 2-1: Data configuration O = Output data The sum of the output data may not exceed I/O = Input and output data 256 bytes. Fig. 2-7: Configuring an IO-Link module www.balluff.com english...
BNI XG3-508-0C5- _ 015 / BNI XG5-5 _ 8-1B5-Z067 Network interface Integration (continued) 2.4.2 Short circuits and restart bits 2.5.1 Configuration of modules The BNI automatically restarts if there is a short circuit on one of the IO-Link ports. No restart bits are required. 2.4.3 IO-Link state In the IO-Link state the current status of each port is...
Values for the parameter server The data storage can be activated by the CoE object additional IO-Link-configuration-data for each port with subindex 1 (validation and backup). The content of the data storage over EtherCat can not be read or write. www.balluff.com english...
BNI XG3-508-0C5- _ 015 / BNI XG5-5 _ 8-1B5-Z067 Network interface Integration (continued) IO-Link parameterization 2.6.3 Example of CoE setting Via the object 0x4000 (IO-Link Service Data Ch. X), IO-Link This example shows how the index 0x40 of Smartlight ISDU parameters can be read or written from the IO-Link (mode) is changed by reading and writing.
– 8 bit IO-Link subindex – Returning error code – 16 bit additional info of the error code, which is 0x0700 (ADS device error). – 16 bit error code from IO-Link Function blocks ADSREAD and ADSWRITE Fig. 2-13: Function blocks ADSREAD and ADSWRITE www.balluff.com english...
Seite 32
BNI XG3-508-0C5- _ 015 / BNI XG5-5 _ 8-1B5-Z067 Network interface Integration (continued) Function block ADSREAD in TwinCat Fig. 2-14: TwinCat – ADSREAD ADSREAD commands Name Type Inherited from Address Initial Comment NETID T_AmsNetId – – – Ams net id PORT T_AmsPort –...
Seite 33
– DEFAULT_ADS_ Maximum time allowed for the TIMEOUT execution of this ADS command BUSY BOOL – – – Busy flag BOOL – – – Error flag ERRID UDINT – – – ADS error code Tab. 2-8: ADSWRITE commands www.balluff.com english...
BNI XG3-508-0C5- _ 015 / BNI XG5-5 _ 8-1B5-Z067 Network interface Integration (continued) Preparation for the web server Preparing network Before the web server can be reached via EoE, the network of the Beckhoff control must be configured. EoE set-up In order to be able to access the web server of the BNI 2.8.1 Configuring Beckhoff control...
Offset Time Unused UINT8 0x36 Max. PD In Max. length UINT8 Length 0x37 Max. PD Max. length UINT8 Out Length 0x38 Compatible Unused UINT16 0x40 Master UINT16 Control chapter 3.10.1 Tab. 3-3: IO-Link Configuration Data Ch. x (0x8000 – 0x8FFF) www.balluff.com english...
Seite 36
BNI XG3-508-0C5- _ 015 / BNI XG5-5 _ 8-1B5-Z067 Network interface Object directory (continued) IO-Link Information Data Ch. x IO-Link Status Data Ch. x (0xF100) (0x9000 – 0x9FFF) Index Subindex Name DataType Access Index Subindex Name DataType Access 0xF100 0x01 Status of UINT8 0x90n0...
Seite 37
0x16 0x87 Tab. 3-12: Values (example) In the start-up the configuration for Port 6 in IO-Link mode with 32 byte process data length for input and output looks as follows: Fig. 3-1: Sample configuration in the start-up for Port 6 www.balluff.com english...
Seite 38
Technical Service Hub Region Americas Region EMEA Region APAC Balluff Inc. Balluff GmbH Balluff Automation (Shanghai) Co., Ltd. 8125 Holton Drive Schurwaldstrasse 9 No. 800 Chengshan Rd, 8F, Buidling A, Florence, KY 41042 73765 Neuhausen a.d.F. Yunding International Commercial Plaza...