Herunterladen Inhalt Inhalt Diese Seite drucken
Bosch Rexroth IndraLogic 09VRS Bedienungsanleitung
Bosch Rexroth IndraLogic 09VRS Bedienungsanleitung

Bosch Rexroth IndraLogic 09VRS Bedienungsanleitung

Sps-system-bibliotheken 2g
Inhaltsverzeichnis

Werbung

Electric Drives
and Controls
Hydraulics
Rexroth IndraLogic 09VRS
SPS-System-Bibliotheken
IndraLogic 2G
Bibliotheksbeschreibung
Linear Motion and
Assembly Technologies
Pneumatics
Service
R911325418
Ausgabe 01

Werbung

Inhaltsverzeichnis
loading

Inhaltszusammenfassung für Bosch Rexroth IndraLogic 09VRS

  • Seite 1 Electric Drives Linear Motion and and Controls Hydraulics Assembly Technologies Pneumatics Service Rexroth IndraLogic 09VRS R911325418 Ausgabe 01 SPS-System-Bibliotheken IndraLogic 2G Bibliotheksbeschreibung...
  • Seite 2 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls Titel Rexroth IndraLogic 09VRS SPS-System-Bibliotheken IndraLogic 2G Art der Dokumentation Bibliotheksbeschreibung Dokumentations-Type DOK-IL*2G*-SYSLIB**V09-FK01-DE-P Interner Ablagevermerk RS-1a8f8901fc8dc0700a6846a00010993d-1-de-DE-17 Zweck der Dokumentation Die Dokumentation enthält die Beschreibung des Arbeitsstandes März 2008 der IndraLogic 2G-Systembibliotheken.
  • Seite 3: Inhaltsverzeichnis

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG I/VIII and Controls Inhaltsverzeichnis Inhaltsverzeichnis Seite Systembibliotheken IndraLogic 2G................1 Überblick..............................1 SysCom.library....................... 3 Überblick..............................3 Bibliotheksbausteine..........................3 2.2.1 SysComOpen............................3 2.2.2 SysComOpen2............................ 4 2.2.3 SysComPurge............................. 4 2.2.4 SysComRead............................4 2.2.5...
  • Seite 4 II/VIII Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls Inhaltsverzeichnis Seite 5.2.6 SysDirGetCurrent..........................17 5.2.7 SysDirSetCurrent..........................17 5.2.8 SysDirClose............................17 Datentypen............................17 5.3.1 DirFileTime............................17 5.3.2 DirInfo..............................18 SysDirAsync.library...................... 19 Überblick............................... 19 Bibliotheksbausteine..........................19 SysEvent.library......................21 Überblick...............................
  • Seite 5 Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG III/VIII and Controls Inhaltsverzeichnis Seite SysFileAsync.library..................... 31 Überblick............................... 31 Bibliotheksbausteine..........................31 SysInt.library........................ 33 10.1 Überblick............................... 33 10.2 Bibliotheksbausteine..........................33 10.2.1 SysIntClose............................33 10.2.2 SysIntDisable............................. 34 10.2.3 SysIntDisableAll..........................34 10.2.4 SysIntEnable.............................
  • Seite 6 IV/VIII Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls Inhaltsverzeichnis Seite 12.2.2 SysPciGetConfigEntry........................46 12.2.3 SysPciReadValue..........................46 12.2.4 SysPciSetConfigEntry........................46 12.2.5 SysPciWriteValue..........................47 12.3 Datentypen............................47 12.3.1 PCI_INFO, Struktur..........................47 SysPort.library......................49 13.1 Überblick............................... 49 13.2...
  • Seite 7 Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG V/VIII and Controls Inhaltsverzeichnis Seite SysSemProcess.library....................63 17.1 Überblick............................... 63 17.2 Bibliotheksbausteine..........................63 17.2.1 SysSemProcessCreate........................63 17.2.2 SysSemProcessDelete........................63 17.2.3 SysSemProcessEnter........................64 17.2.4 SysSemProcessLeave........................64 17.3 Konstante.............................. 64 17.3.1 SYSSEMPROCESS_INVALID_HANDLE, Globale Konstante ............
  • Seite 8 VI/VIII Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls Inhaltsverzeichnis Seite 19.2.22 SysSockPing............................. 77 19.2.23 SysSockRecv............................ 78 19.2.24 SysSockRecvFrom..........................78 19.2.25 SysSockRecvFromUdp ........................79 19.2.26 SysSockRecvFromUdp2........................79 19.2.27 SysSockSelect........................... 80 19.2.28 SysSockSend............................ 80 19.2.29 SysSockSendTo..........................81 19.2.30...
  • Seite 9 Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG VII/VIII and Controls Inhaltsverzeichnis Seite 21.2.15 SysTaskGetOSPriority........................96 21.2.16 SysTaskGetPriority..........................96 21.2.17 SysTaskJoin............................97 21.2.18 SysTaskLeave........................... 97 21.2.19 SysTaskResume..........................97 21.2.20 SysTaskSetExit..........................97 21.2.21 SysTaskSetInterval..........................98 21.2.22 SysTaskSetPriority..........................98 21.2.23...
  • Seite 10 VIII/VIII Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls Inhaltsverzeichnis Seite SysTimer.library......................109 23.1 Überblick ............................109 23.2 Bibliotheksbausteine........................... 109 23.2.1 SysTimerCreateCallback......................... 109 23.2.2 SysTimerCreateEvent........................110 23.2.3 SysTimerDelete..........................110 23.2.4 SysTimerGetInterval........................110 23.2.5 SysTimerGetTimeStamp......................... 110 23.2.6...
  • Seite 11: Systembibliotheken Indralogic 2G

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 1/126 and Controls Systembibliotheken IndraLogic 2G Systembibliotheken IndraLogic 2G Überblick Bibliothek Funktionalität Runtime Error Codes, Seite 115 Runtime Error Codes SysCom.library, Seite 3 Serielle synchrone Kommunikation mit einem Zielrechner SysComAsync.library, Seite 11...
  • Seite 12 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls...
  • Seite 13: Syscom.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 3/126 and Controls SysCom.library SysCom.library Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Diese Bibliothek unterstützt die synchrone, serielle Kommunikation mit einem Zielrechner.
  • Seite 14: Syscomopen2

    4/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysCom.library Input-Variable Datentyp Beschreibung sPort COM_PORTS spezifiziert die zu öffnende Schnittstelle (COM1,..); Port-Nummer, siehe Enumeration COM_Ports, Seite pResult POINTER Zeiger auf den Fehlercode, der Auskunft über den Erfolg der Funktion RTS_IEC_RESULT gibt.
  • Seite 15: Syscomsetsettings

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 5/126 and Controls SysCom.library Input-Variable Datentyp Beschreibung ulTimeout COM_Timeout Zeit in Millisekunden, nach der die Funktion spätestens zurückkehrt; Enumeration COM_Timeout, Seite pResult POINTER Zeiger auf den Fehlercode, der Auskunft über den Erfolg der Funktion RTS_IEC_RESULT gibt.
  • Seite 16: Syscomclose

    6/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysCom.library Der Rückgabewert vom Typ RTS_IEC_RESULT enthält einen Fehlercode und gibt Auskunft über den Erfolg der Operation; siehe Runtime Error Codes, Seite 115. Input-Variable Datentyp Beschreibung...
  • Seite 17: Comsettingsex, Struktur

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 7/126 and Controls SysCom.library Strukturkomponente Datentyp Bedeutung sPort COM_Ports Nummer des Ports für den die Parameter gelten, siehe Enumeration COM_Ports, Seite byStopBits COM_StopBits Anzahl Stopbits, die nach jedem über den Port übertragenen Daten-Byte...
  • Seite 18: Com_Baudrate, Enumeration

    8/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysCom.library Strukturkomponente Datentyp Bedeutung bInX BOOL Gibt an, ob XON/XOFF flow control beim Senden aktiviert werden soll. byXonChar BYTE Zeichen für XON byXoffChar BYTE Zeichen für XOFF...
  • Seite 19: Com_Ports, Enumeration

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 9/126 and Controls SysCom.library 2.3.5 COM_Ports, Enumeration Diese Enumeration verwaltet die Port-Nummern, die als Eingabe für die Funk‐ tionen der SysCom.library benötigt werden. Programm: Enumeration COM_PORTS: TYPE COM_Ports : (...
  • Seite 20 10/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysCom.library Komponente Bedeutung SYS_NOWAIT := 0 Die Funktion kehrt sofort zurück. SYS_INFINITE := 16#FFFFFFFF Die Funktion wartet bis das Lesen bzw. Schreiben der angegebenen Anzahl an Bytes abgeschlossen ist.
  • Seite 21: Syscomasync.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 11/126 and Controls SysComAsync.library SysComAsync.library Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Diese Bibliothek unterstützt die asynchrone, serielle Kommunikation mit einem Zielrechner.
  • Seite 22 12/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysComAsync.library ● SysComWriteAsync Die Funktionen verwenden folgende Strukturen und Enumerationen: ● ComSettings ● ComSettingsEx ● COM_Baudrate ● COM_Parity ● COM_Ports ● COM_StopBits ● COM_Timeout Für jede der Methoden wird eine entsprechende Wrapper-Methode aufgerufen: <Methodenname>Wrapper...
  • Seite 23: Syscpuhandling.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 13/126 and Controls SysCPUHandling.library SysCPUHandling.library Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Diese Bibliothek unterstützt die folgenden Bausteine: ● SysCpuCallIecFuncWithParams, Seite ●...
  • Seite 24: Syscputestandset

    14/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysCPUHandling.library Result : RTS_IEC_RESULT; //siehe SysTypes.library bzw. CmpErrors.library für die Fehlercodes P.In := 10; Error := SysCpuCallFuncWithParams(ADR(TestFunction), ADR(P), SIZE‐ OF(P)); 4.2.2 SysCpuTestAndSet Diese Funktion erlaubt das Testen und Setzen eines einzelnen Bits einer Va‐...
  • Seite 25: Sysdir.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 15/126 and Controls SysDir.library SysDir.library Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Diese Bibliothek unterstützt die Verwaltung von Verzeichnissen. Wenn das Zielsystem die Funktionalität beinhaltet, können folgende Funktionen verwen‐...
  • Seite 26: Sysdirread

    16/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysDir.library Input-Variable Datentyp Beschreibung szDir REFERENCE Name des zu öffnenden Verzeichnisses STRING szDirEntry REFERENCE Beinhaltet den ersten Eintrag (Unterverzeichnis oder Datei) des geö‐ STRING ffneten Verzeichnisses.
  • Seite 27: Sysdirgetcurrent

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 17/126 and Controls SysDir.library Input-Variable Datentyp Beschreibung szOldDirName STRING bisheriger Verzeichnisname szNewDirName STRING neuer Verzeichnisname 5.2.6 SysDirGetCurrent Diese Funktion gibt das aktuelle Verzeichnis zurück. Der Rückgabewert vom Typ UDINT enthält einen Fehlercode und gibt Auskunft über den Erfolg der Operation;...
  • Seite 28: Dirinfo

    18/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysDir.library 5.3.2 DirInfo Diese Struktur enthält Informationen zu einem Verzeichniseintrag, der über die Funktion SysDirRead, Seite 16, gelesen wird: Strukturkomponente Datentyp Bedeutung tDirFileTime DIRFILETIME Struktur mit Information zu Erstell-, Änderungs-, Zugriffsdatum des Ver‐...
  • Seite 29: Sysdirasync.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 19/126 and Controls SysDirAsync.library SysDirAsync.library Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Diese Bibliothek unterstützt asynchrone Zugriffe auf Dateiverzeichnisse aus der IEC-Applikation. Sie enthält automatisch die Bibliothek SysDir.library, Seite...
  • Seite 30 20/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysDirAsync.library gewünschte Operation ausführen. In den Wrapper-Funktionen werden die Auf‐ rufe der in C implementierten Sys-Funktionen geschachtelt. Die Strukturen (DUTs, Data Unit Types) mit den Eingabeparametern der ent‐...
  • Seite 31: Sysevent.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 21/126 and Controls SysEvent.library SysEvent.library Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Diese Bibliothek dient zum Synchronisieren und Steuern des Abarbeitungsab‐...
  • Seite 32: Syseventwait

    22/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysEvent.library Input-Variable Datentyp Beschreibung hEvent UDINT SysEventCreate, Seite 21, erhaltenes Handle für das zu setzende Ereignis. 7.2.4 SysEventWait Diese Funktion dient dazu, auf das Eintreffen eines Ereignisses zu warten. Wie lange gewartet werden soll, kann über den Timeout Parameter spezifiziert wer‐...
  • Seite 33: Sysfile.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 23/126 and Controls SysFile.library SysFile.library Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Diese Bibliothek unterstützt synchrone Dateizugriffe auf dem Zielrechner. Wenn das Zielsystem die Funktionalität beinhaltet, können die Bibliotheksfunk‐...
  • Seite 34: Bibliotheksbausteine

    24/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysFile.library Bibliotheksbausteine 8.2.1 SysFileClose Diese Funktion dient dem Schließen einer Datei, die mit SysFileOpen, Seite geöffnet wurde. Die Datei wird über ihre Dateinummer (Handle) identifi‐ ziert, die von SysFileOpen zurückgegeben wird.
  • Seite 35: Sysfileeof

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 25/126 and Controls SysFile.library Input-Variable Datentyp Beschreibung hFile UDINT Dateinummer (Handle) der Datei, die gelöscht werden soll (siehe SysFileOpen, Seite 27). 8.2.5 SysFileEOF Diese Funktion gibt Auskunft darüber, ob der Dateizeiger am Ende der ange‐...
  • Seite 36: Sysfilegetsize

    26/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysFile.library Input-Variable Datentyp Beschreibung hFile UDINT Dateinummer (Handle) der Datei, in der Position des Zeigers ermittelt werden soll (siehe SysFileOpen, Seite 27). puiPos POINTER TO UDINT Zeiger auf eine Variable, welche die aktuelle Position des Dateizei‐...
  • Seite 37: Sysfileopen

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 27/126 and Controls SysFile.library Input-Variable Datentyp Beschreibung szFileName REFERENCE TO STRING Name der Datei, für die das gewünschte Datum ermittelt werden soll. Der Dateinamen kann den absoluten oder relativen Pfad enthalten. Die Directories müssen dabei durch ‚/’...
  • Seite 38: Sysfilesetpos

    28/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysFile.library Input-Variable Datentyp Beschreibung szOldFileName REFERENCE Bisheriger Name der Datei. Der Dateinamen kann den absoluten oder STRING relativen Pfad enthalten. Die Directories müssen dabei durch ‚/’ getrennt werden (und nicht durch ‚\’).
  • Seite 39: Fileinfo, Struktur

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 29/126 and Controls SysFile.library Komponente Bedeutung AM_APPEND Eine bestehende Datei wird mit Schreibrecht geöffnet. Wenn die Datei noch nicht existiert, wird ein Fehler zurückgegeben. AM_READ_PLUS Öffnen einer bestehenden Datei zum Lesen und Schreiben. Wenn die Datei nicht existiert, wird ein Fehler zurückgegeben.
  • Seite 40 30/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysFile.library Struktur-Komponente Datentyp Bedeutung ulCreation UDINT Erstelldatum ulLastAccess UDINT Datum des letzten Zugriffs, Achtung: bei VxWorks-Systemen ggf. nur Tag ohne Uhrzeit! ulLastModification UDINT Datum der letzten Änderung...
  • Seite 41: Sysfileasync.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 31/126 and Controls SysFileAsync.library SysFileAsync.library Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Diese Bibliothek unterstützt asynchrone Dateizugriffe aus der IEC-Applikation. Sie enthält automatisch die Bibliothek SysFile.library, Seite 23,...
  • Seite 42 32/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysFileAsync.library ● SysFileGetSizeAsync ● SysFileGetSizeByHandleAsync ● SysFileGetStatusAsync ● SysFileGetTimeAsync ● SysFileOpenAsync ● SysFileReadAsync ● SysFileRenameAsync ● SysFileSetPosAsync ● SysFileWriteAsync Für jede der Methoden wird eine entsprechende Wrapper-Methode aufgerufen: <Methodenname>Wrapper...
  • Seite 43: Sysint.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 33/126 and Controls SysInt.library SysInt.library 10.1 Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Diese Bibliothek enthält Funktionen für die kurzfristige Unterbrechung eines Programms durch eine von der CPU abzuarbeitenden Befehlssequenz, der Interrupt Service Routine (=ISR, Unterbrechungsroutine).
  • Seite 44: Sysintdisable

    34/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysInt.library 10.2.2 SysIntDisable Diese Funktion dient dem Deaktivieren (Maskieren) des über sein Handle iden‐ tifizierten Interrupts. Ein Interrupt-Aufruf eines deaktivierten Interrupts bleibt folgenlos. Der Rückgabewert vom Typ UDINT enthält einen Fehlercode und gibt Auskunft über den Erfolg der Operation;...
  • Seite 45: Sysintopen

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 35/126 and Controls SysInt.library Der Rückgabewert vom Typ UDINT liefert einen Fehler-Code, nämlich ERR_FAILED, falls sich Prozessor nicht im Interrupt-Modus befindet. ERR_OK, falls Prozessor mit Abarbeitung einer ISR beschäftigt ist.
  • Seite 46: Sysintunregister

    36/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysInt.library Input-Variable Datentyp Beschreibung hInt UDINT Interrupt-Handle, Rückgabewert von SysIntOpen, Seite 35 pCallback POINTER TO UDINT Zeiger auf Interrupt-Handler uIAdditionalInfo UDINT In dieser Variablen kann dem Interrupt ein zusätzlicher Wert überge‐...
  • Seite 47: Sys_Int_Description, Struktur

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 37/126 and Controls SysInt.library Struktur-Komponente Datentyp Bedeutung ulFunctionNumber UDINT Funktions-Nummer ulIntLine UDINT Interrupt-Nummer 10.3.4 SYS_INT_DESCRIPTION, Struktur Diese Struktur enthält Informationen zum Bussystem und Interrupt-Modus. Sie wird von Funktion SysIntOpen, Seite 35, verwendet.
  • Seite 48 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls...
  • Seite 49: Sysmem.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 39/126 and Controls SysMem.library SysMem.library 11.1 Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Diese Bibliothek dient der Speicherverwaltung. Wenn das Zielsystem die Funk‐...
  • Seite 50: Sysmemalloccode

    40/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysMem.library Input-Variable Datentyp Beschreibung udiSize UDINT Anzahl Bytes, die reserviert werden sollen pResult PONTER TO UDINT Zeiger auf den Fehlercode, der Auskunft über den Erfolg der Funktion gibt.
  • Seite 51: Sysmemcpy

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 41/126 and Controls SysMem.library Der Rückgabewert vom Typ DINT ist 0, wenn der Inhalt der Speicherbereiche identisch ist. Ansonsten gibt die Funktion einen Wert ungleich 0 zurück. Input-Variable Datentyp...
  • Seite 52: Sysmemfreecode

    42/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysMem.library Speicherbereich ursprünglich angefordert hat, ebenso wie ein Zeiger auf die zugehörige Speicheradresse. Der Rückgabewert vom Typ UDINT enthält einen Fehlercode und gibt Auskunft über den Erfolg der Operation; siehe Runtime Error Codes, Seite 115.
  • Seite 53: Sysmemmove

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 43/126 and Controls SysMem.library 11.2.11 SysMemMove Diese Funktion kopiert den Inhalt eines Speicherbereichs (Quellspeicher) in einen anderen (Zielspeicher). Bei Aufruf werden zwei Zeiger übergeben, die auf Quell- bzw. Zielspeicher zeigen.
  • Seite 54: Sysmemswap

    44/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysMem.library 11.2.14 SysMemSwap Diese Funktion dient dazu, Daten in Speicherbereichen umzulagern (Swap‐ ping). Sie wird in erster Linie verwendet, um Daten von der Intel Byteorder in die Motorola Byteorder umzuwandeln.
  • Seite 55: Syspci.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 45/126 and Controls SysPci.library SysPci.library 12.1 Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Diese Bibliothek dient zum Zugriff auf PCI-Karten, die an das System ange‐...
  • Seite 56: Syspcigetconfigentry

    46/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysPci.library 12.2.2 SysPciGetConfigEntry Diese Funktion ermöglicht das Lesen der Konfigurationsdaten einer PCI-Karte. Diese Daten sind als Struktur vom Typ PCI_INFO gespeichert und im PCI-Bus eingetragen. SysPciGetConfigEntry identifiziert anhand von Bus-, Geräte- und Funktionsnummer den zur PCI-Karte gehörenden Buseintrag und liefert einen...
  • Seite 57: Syspciwritevalue

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 47/126 and Controls SysPci.library Input-Variable Datentyp Beschreibung usFunction WORD PCI Funktions-Nummer pPciInfo POINTER TO PCI_INFO Zeiger auf eine Struktur vom Typ PCI_INFO, die die Konfigurationsdaten der PCI-Karte enthält (siehe Struktur PCI_INFO, Seite 47).
  • Seite 58 48/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysPci.library Strukturkomponente Datentyp Beschreibung usSubSystemID WORD Vom Hardware-Hersteller vergebene Subsystem (Device) ID, falls auf der PCU-Karte mehrere Subsysteme enthalten sind. Der Wert 0 zeigt an, dass keine Subsysteme vorhanden sind.
  • Seite 59: Sysport.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 49/126 and Controls SysPort.library SysPort.library 13.1 Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Diese Bibliothek dient dazu, mit externen Hardwarebausteinen über deren Port- Adressen zu kommunizieren, z.B.
  • Seite 60: Sysportinw

    50/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysPort.library Input-Variable Datentyp Beschreibung ulAddress UDINT Port-Adresse pResult POINTER TO UDINT Zeiger auf den Fehlercode, der Auskunft über den Erfolg der Funktion gibt. Siehe Runtime Error Codes, Seite 115.
  • Seite 61 Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 51/126 and Controls SysPort.library Input-Variable Datentyp Beschreibung ulAddress UDINT Port-Adresse usVal WORD Wert, der auf den Port geschrieben werden soll.
  • Seite 62 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls...
  • Seite 63: Sysportasync.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 53/126 and Controls SysPortAsync.library SysPortAsync.library 14.1 Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Diese Bibliothek unterstützt asynchrone Kommunikation über Port-Adressen. Sie enthält automatisch die Bibliothek SysPort.library für synchrone Dateizu‐...
  • Seite 64 54/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysPortAsync.library Der Rückgabewert jeder SysPort.library-Funktion wird in einer seinem Typ ent‐ sprechend benannten Komponente der zur Funktion gehörenden Struktur be‐ reitgestellt: Typ des Rückgabeparameters der SysPort.library-...
  • Seite 65: Sysprocess.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 55/126 and Controls SysProcess.library SysProcess.library 15.1 Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Diese Bibliothek ermöglicht die Verwaltung von Prozessen auf dem Zielsystem, sofern dieses mit Einzelprozessen arbeitet und deren Handhabung zulässt.
  • Seite 66: Sysprocesscreate2

    56/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysProcess.library 15.2.2 SysProcessCreate2 Diese Funktion legt einen neuen Prozess für die angegebene Applikation an und startet diese ggf. Die Eigenschaften des Prozesses kann mit entsprech‐ enden Flags definiert werden. (siehe Globale Konstanten, Seite Der Rückgabewert vom Typ UDINT enthält ein „Handle“...
  • Seite 67: Sysprocessgetosid

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 57/126 and Controls SysProcess.library 15.2.6 SysProcessGetOSId Diese Funktion dient der Abfrage der betriebssystemspezifischen Identifizie‐ rung eines Prozesses, die systemintern zu jedem beliebigen Zeitpunkt eindeu‐ tig sein muss. SysProcessGetOSId kann nur auf den aktuell vom Prozessor...
  • Seite 68: Sysprocesssetpriority

    58/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysProcess.library Input-Variable Datentyp Beschreibung hProcess UDINT ID („Handle“) des Prozesses; aus SysProcessCreate, Seite 55, bzw. SysProcessGetCurrentHandle, Seite 15.2.10 SysProcessSetPriority Diese Funktion dient dem Setzen der Priorität des über sein Handle identifi‐...
  • Seite 69 Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 59/126 and Controls SysProcess.library Variablenname Datentyp Beschreibung SYSPROCESS_CREATEFLAG_HIDDEN UDINT Flag zur Erzeugung eines unsichtbaren Prozes‐ SYSPROCESS_CREATEFLAG_INTERACTIVE UDINT Flag zur Erzeugung eines interaktiven Prozes‐ ses, der eine Benutzereingabe verlangt SYSPROCESS_CREATEFLAG_CREATESUSPENDED...
  • Seite 70 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls...
  • Seite 71: Syssem.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 61/126 and Controls SysSem.library SysSem.library 16.1 Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Diese Bibliothek bietet Funktionen um Semaphore für die Synchronisation von Tasks zu erzeugen und zu benützen.
  • Seite 72: Syssemleave

    62/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysSem.library Input-Variable Datentyp Beschreibung hSem UDINT Handle des Semaphors; erhalten aus SysSemOpen 16.2.4 SysSemLeave Diese Funktion muss nach dem Zugriff auf Daten, die auch von anderen Tasks...
  • Seite 73: Syssemprocess.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 63/126 and Controls SysSemProcess.library SysSemProcess.library 17.1 Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Diese Bibliothek bietet Funktionen um Semaphore für die Synchronisation von Prozessen zu erzeugen und zu benützen.
  • Seite 74: Syssemprocessenter

    64/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysSemProcess.library 17.2.3 SysSemProcessEnter Diese Funktion muss gerufen werden, bevor ein Prozess auf die Daten zugreift, die auch von anderen Prozessen verwendet werden. Damit sind die Daten für andere Prozesse, die ebenfalls SysSemProcessEnter aufrufen, blockiert, bis mit Hilfe von SysSemProcessLeave der Semaphor wieder 'freigegeben' wird.
  • Seite 75: Sysshm.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 65/126 and Controls SysShm.library SysShm.library 18.1 Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Diese Bibliothek dient zum Anlegen und für die Zugriffe auf einen Speicherbe‐...
  • Seite 76: Syssharedmemoryopen

    66/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysShm.library 18.2.3 SysSharedMemoryOpen Diese Funktion legt einen Speicherbereich an, der auch von anderen Prozes‐ sen genutzt werden kann. Die Funktion kann auch verwendet werden, um festzustellen, ob ein ShM bereits angelegt ist (siehe unten, pulSize).
  • Seite 77: Syssharedmemorywrite

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 67/126 and Controls SysShm.library Input-Variable Datentyp Beschreibung hShm UDINT Handle des zu lesenden Shared Memory; Rückgabewert aus SysS‐ haredMemoryOpen, Seite 66 ulOffset UDINT Offset im Shared Memory, ab dem gelesen werden soll;...
  • Seite 78 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls...
  • Seite 79: Syssocket.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 69/126 and Controls SysSocket.library SysSocket.library 19.1 Überblick Es hängt vom Zielsystem ab, welche Systembibliotheken im Steu‐ erungsprogramm verwendet werden können. Diese Bibliothek unterstützt den Zugriff auf Sockets zur Kommunikation über TCP/IP und UDP.
  • Seite 80: Bibliotheksbausteine

    70/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysSocket.library ● SysSockRecv, Seite ● SysSockRecvFrom, Seite ● SysSockRecvFromUdp, Seite ● SysSockRecvFromUdp2, Seite ● SysSockSelect, Seite ● SysSockSend, Seite ● SysSockSendTo, Seite ● SysSockSendToUdp, Seite ●...
  • Seite 81: Syssockbind

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 71/126 and Controls SysSocket.library Input-Variable Datentyp Beschreibung pdiSockAddrSize POINTER TO DINT Zeiger auf eine Variable vom Typ DINT. Dieser Variablen wurde vorher die Länge der Struktur SOCKADDRESS, Seite 84, (mit SIZEOF Operator bestimmbar) zugewiesen.(entsprechender Parameter z.B.
  • Seite 82: Syssockcloseudp

    72/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysSocket.library 19.2.4 SysSockCloseUdp Diese Funktion ruft die Funktion closesocket des Betriebssystems auf, um ei‐ nen Socket zu schließen, der mit dem Transportprotokoll UDP arbeitet. Der Rückgabewert vom Typ UDINT ist ein Fehlercode, der Auskunft über den...
  • Seite 83: Syssockcreateudp

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 73/126 and Controls SysSocket.library Input-Variable Datentyp Beschreibung iAddressFamily Adressfamilie (entsprechender Parameter z.B. in Win32: af) diType DINT Folgende zwei Typen können z.B. für Windows Sockets 1.1 angegeben werden: SOCK_STREAM, SOCK_DGRAM (entsprechender Parameter z.B.
  • Seite 84: Syssockgetoption

    74/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysSocket.library Zur Beschreibung der gethostname Funktion sehen Sie bitte die Hilfe zum Be‐ triebssystem. Der Rückgabewert vom Typ UDINT ist ein Fehlercode, der Auskunft über den...
  • Seite 85: Syssockgetsubnetmask

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 75/126 and Controls SysSocket.library Input-Variable Datentyp Beschreibung hSocketUdp UDINT Deskriptor des Sockets, erhalten aus SysSockCreateUdp, Seite diTimeout DINT Zeitspanne, die auf Übertragung der Daten gewartet werden soll (-1 für unendlich langes Warten, 0 für keine Wartezeit)
  • Seite 86: Syssockinetaddr

    76/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysSocket.library Input-Variable Datentyp Beschreibung usHost WORD Wert der konvertiert werden soll. 19.2.16 SysSockInetAddr Diese Funktion ruft die Funktion inet_addr des Betriebssystems auf, die einen String, der eine Internet Adresse enthält, in eine für die IN_ADDR Struktur ver‐...
  • Seite 87: Syssockntohl

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 77/126 and Controls SysSocket.library ren und sie in einer Warteschlange zu speichern bis sie über die SysSocke‐ tAccept Funktion bestätigt werden können. Der Rückgabewert vom Typ UDINT gibt mit TRUE oder FALSE Auskunft über Erfolg bzw.
  • Seite 88: Syssockrecv

    78/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysSocket.library Input-Variable Datentyp Beschreibung szIPAddress REFERENCE IP-Adresse des Kommunikationspartners. STRING ulTimeout UDINT Zeitspanne (in Sekunden), die auf Antwort des Kommunikationspart‐ ners gewartet werden soll pulReplyTime POINTER TO UDINT Zeiger auf Variable, die als Wert die durchschnittliche Zeitspanne ent‐...
  • Seite 89: Syssockrecvfromudp

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 79/126 and Controls SysSocket.library Input-Variable Datentyp Beschreibung diBufferSize DINT Größe des Speichers, von dem gelesen wird(entsprechender Parame‐ ter z.B. in Win32: len) diFlags DINT Definition wie die Funktion aufgerufen werden soll; abhängig von den Socket-Optionen(entsprechender Parameter z.B.
  • Seite 90: Syssockselect

    80/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysSocket.library Input-Variable Datentyp Beschreibung pReply POINTER TO UDP_REP‐ Zeiger auf Beschreibung des Client, der Datenpaket gesendet hat, UDP_REPLY2, Seite pResult PONTER TO UDINT Zeiger auf den Fehlercode, der Auskunft über den Erfolg der Funktion gibt.
  • Seite 91: Syssocksendto

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 81/126 and Controls SysSocket.library Input-Variable Datentyp Beschreibung hSocket UDINT Deskriptor des Sockets, erhalten aus SysSockCreate, Seite (entsprechender Parameter z.B. in Win32:s) pbyBuffer POINTER TO BYTE Adresse des Speichers, dessen Inhalt gesendet werden soll (entsprechender Parameter z.B.
  • Seite 92: Syssocksetipaddress

    82/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysSocket.library Der Rückgabewert vom Typ DINT liefert die Anzahl der gesendeten Bytes zu‐ rück. Wenn der Socket "gracefully closed" wurde, liefert die Funktion 0, an‐ sonsten –1.
  • Seite 93: Syssocksetsubnetmask

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 83/126 and Controls SysSocket.library 19.2.33 SysSockSetSubnetMask Diese Funktion ist nur für das Betriebssystem VxWorks 5.5x implementiert. Sie ruft die Funktion inet_addr des Betriebssystems auf, mit der die Subnetzmaske gesetzt werden kann.
  • Seite 94: Udint_In_Words, Struktur

    84/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysSocket.library 19.3.2 UDINT_IN_WORDS, Struktur Diese Struktur enthält die IP-Adresse für wortweisen Zugriff. Beispiel: Die IP-Adresse 10000010 01011110 01111010 11000011 für wort‐ weisen Zugriff lautet 33374.31427. Jeder der beiden Zahlenblöcke bildet einen Eintrag der Struktur UDINT_IN_WORDS.
  • Seite 95: Socket_Fd_Set, Struktur

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 85/126 and Controls SysSocket.library 19.3.6 SOCKET_FD_SET, Struktur Diese Struktur enthält Anzahl und Kennziffern der erstellten Sockets. Struktur-Komponente Datentyp Bedeutung fd_count UDINT Anzahl der erstellten Sockets Fd_array ARRAY [0..SO‐ Liste mit Handle der erstellten Sockets...
  • Seite 96 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls...
  • Seite 97: Syssocketasync.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 87/126 and Controls SysSocketAsync.library SysSocketAsync.library 20.1 Überblick Es hängt vom Zielsystem ab, welche Systembibliotheken im Steu‐ erungsprogramm verwendet werden können. Diese Bibliothek unterstützt den asynchronen Zugriff auf Sockets zur Kommu‐...
  • Seite 98 88/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysSocketAsync.library ● SysSockConnectAsync ● SysSockCreateAsync ● SysSockCreateUdpAsync ● SysSockGetHostByNameAsync ● SysSockGetHostNameAsync ● SysSockGetOptionAsync ● SysSockGetOSHandleAsync ● SysSockGetRecvSizeUdpAsync ● SysSockGetSubnetMaskAsync ● SysSockHtonlAsync ● SysSockHtonsAsync ● SysSockInetAddrAsync ●...
  • Seite 99 Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 89/126 and Controls SysSocketAsync.library Typ des Rückgabeparameters der Name der Struktur-Komponente SysSocket.library-Funktion WORD t<Funktion der SysSocket.library>.pusOut STRING t<Funktion der SysSocket.library>.pszOut Bei Start des asynchronen Auftrages ist der Status udStateOpen immer ASYNCSTATE_INVALID.
  • Seite 100 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls...
  • Seite 101: Systask.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 91/126 and Controls SysTask.library SysTask.library 21.1 Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Diese Bibliothek dient dazu, zyklische Tasks zu verwalten. Wenn das Zielsys‐...
  • Seite 102: Bibliotheksbausteine

    92/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysTask.library ● SysTaskWaitInterval, Seite ● SysTaskWaitSleep, Seite ● SysTaskWaitSleepUs, Seite Von den Funktionen verwendete Strukturen: ● RegContext, Seite ● SYS_TASK_INFO, Seite ● SYS_TASK_PARAM, Seite 100. 21.2 Bibliotheksbausteine 21.2.1...
  • Seite 103: Systaskcreate2

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 93/126 and Controls SysTask.library Input-Variable Datentyp Beschreibung uIIntervalMs UDINT Zeitspanne (in Mikrosekunden), nach der die Task erneut gestartet werden soll; Beispiel: „300“ ulStackSize UDINT Stack-Größe der Task in Bytes (default=0)
  • Seite 104: Systaskend

    94/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysTask.library Input-Variable Datentyp Beschreibung hTask UDINT ID der zu löschenden Task (siehe SYS_TASK_INFO, Seite 99). 21.2.5 SysTaskEnd Diese Funktion muss von einer Task aufgerufen werden, deren Abarbeitung beendet wird.
  • Seite 105: Systaskgetcontext

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 95/126 and Controls SysTask.library Input-Variable Datentyp Beschreibung ulTaskOSHandle UDINT ID der Task (siehe SYS_TASK_INFO, Seite 99). ulException UDINT Standard Ausnahme-Routine des Laufzeitsystems Context RegContext Kontext zum Auffinden der Stelle im Programm, an welcher der Aus‐...
  • Seite 106: Systaskgetinterval

    96/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysTask.library Input-Variable Datentyp Beschreibung hTask UDINT ID (Handle) der Task. ppInfo POINTER Zeiger auf einen Zeiger auf eine Struktur vom Typ SYS_TASK_INFO POINTER (siehe SYS_TASK_INFO, Seite 99).
  • Seite 107: Systaskjoin

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 97/126 and Controls SysTask.library Input-Variable Datentyp Beschreibung hTask UDINT Task-Handle (siehe SYS_TASK_INFO, Seite 99). pulPriority POINTER TO UDINT Zeiger auf Variable, welche die IEC-Priorität der angegebenen Task enthält. 21.2.17...
  • Seite 108: Systasksetinterval

    98/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysTask.library 21.2.21 SysTaskSetInterval Diese Funktion dient dazu, das aktuelle Intervall einer zyklischen Task zu set‐ zen. Das kann genutzt werden um eine Task mit einer anderen Task oder mit einem Event zu synchronisieren.
  • Seite 109: Systaskwaitsleep

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 99/126 and Controls SysTask.library Input-Variable Datentyp Beschreibung hTask UDINT ID der Task, deren Abarbeitungsstart justiert werden soll (siehe SYS_TASK_INFO, Seite 99). 21.2.25 SysTaskWaitSleep Diese Funktion dient dazu, die Abarbeitung innerhalb einer laufenden Task zu unterbrechen und nach einer definierten Zeitangabe (in Millisekunden) wieder anzustoßen.
  • Seite 110: Sys_Task_Param, Struktur

    100/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysTask.library Struktur-Komponente Datentyp Bedeutung ulOSHandle UDINT Betriebssystemspezifisches Handle der Task Status der Task; mögliche Werte: ● 0: nicht erstellt ● 1: gültig iState DINT ● 2: aktiv ●...
  • Seite 111: Systime.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 101/126 and Controls SysTime.library SysTime.library 22.1 Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Wenn das Zielsystem die Funktionalität beinhaltet, erlauben die Bibliotheks‐...
  • Seite 112: Bibliotheksbausteine - Allgemeine Zeitfunktionen

    102/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysTime.library 22.2 Bibliotheksbausteine - Allgemeine Zeitfunktionen 22.2.1 SysTimeGetMs Diese Funktion liest die aktuelle Systemzeit aus. Der Rückgabewert vom Typ UDINT liefert die aktuelle Zeit in Millisekunden [ms].
  • Seite 113: Systimertcconverthighrestodate

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 103/126 and Controls SysTime.library InputOutput-Variable Datentyp Beschreibung pDate SysTimeDate Die zu konvertierende Zeit im SysTimeDate Format; siehe (SysTime‐ Date, Seite 106) pTimestamp SysTime Die konvertierte Zeit im SysTime Format.
  • Seite 114: Systimertcconvertdatetoutc

    104/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysTime.library InputOutput-Variable Datentyp Beschreibung pdiControlResult DINT Ergebnis der Anfrage: HourMode: RTC_12HOURS(0) oder RTC_24HOURS (1) CheckBattery: RTC_BATTERY_FAILED (0) oder RTC_BATTERY_OK (1) 22.4.2 SysTimeRtcConvertDateToUtc Diese Funktion konvertiert die Systemzeit (Format SysTimeDate) ins UTC- Zeitformat.
  • Seite 115: Systimertcget

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 105/126 and Controls SysTime.library Der Rückgabewert: vom Typ RTS_IEC_RESULT liefert einen Fehler-Code, der über den Erfolg der Operation Auskunft gibt. Siehe Runtime Error Codes, Seite 115. Input-Variable Datentyp Beschreibung...
  • Seite 116: Systimegetdate

    106/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysTime.library 22.4.10 SysTimeGetDate Diese Funktion ermittelt das aktuelle Zeit im SysTimeDate Format. Der Rückgabewert: vom Typ RTS_IEC_RESULT liefert einen Fehler-Code, der über den Erfolg der Operation Auskunft gibt. Siehe Runtime Error Codes, Seite 115.
  • Seite 117 Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 107/126 and Controls SysTime.library iStandardBias Zusätzliche Verschiebung zur Standardzeit in Minuten iDaylightBias Zusätzliche Verschiebung zur Sommerzeit in Minuten...
  • Seite 118 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls...
  • Seite 119: Systimer.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 109/126 and Controls SysTimer.library SysTimer.library 23.1 Überblick Es hängt vom verwendeten Zielsystem ab, welche Systembiblio‐ theken im Steuerungsprogramm verwendet werden können. Wenn das Zielsystem die Funktionalität beinhaltet, erlauben die Bibliotheks‐...
  • Seite 120: Systimercreateevent

    110/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysTimer.library 23.2.2 SysTimerCreateEvent Diese Funktion erzeugt einen Zeitgeber (Timer), der nach Ablauf einer ange‐ gebenen Zeitspanne ein anzugebendes Ereignis (Event) auslöst. Wird der Timer anschließend zyklisch gestartet (siehe...
  • Seite 121: Systimermaxtimer

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 111/126 and Controls SysTimer.library Input Variable Datentyp Beschreibung hTimer UDINT Handle des Timers (aus SysTimerCreateCallback, Seite 109, oder Sys‐ TimerCreateEvent, Seite 110) ptTimeStamp POINTER TO SYSTIME Zeiger auf Variable, die Zeitspanne seit Start des Timers enthält (in Na‐...
  • Seite 122 112/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls SysTimer.library Der Rückgabewert vom Typ UDINT enthält einen Fehlercode und gibt Auskunft über den Erfolg der Operation; siehe Runtime Error Codes, Seite 115. Input Variable Datentyp...
  • Seite 123: Systypes.library

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 113/126 and Controls SysTypes.library SysTypes.library 24.1 Überblick Diese Bibliothek veröffentlicht die Konstante RTS_INVALID_HANDLE sowie die Datentypen RTS_IEC_HANDLE und RTS_IEC_RESULT, welche vom Lauf‐ zeitsystem benutzt werden. Da sie systemabhängig definiert sind, können sie plattformübergreifend benutzt werden.
  • Seite 124 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls...
  • Seite 125: Runtime Error Codes

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 115/126 and Controls Runtime Error Codes Runtime Error Codes Die Fehlertabelle wurde zur Vermeidung von Informationsverlust originalsprachig übernommen. Wert Beschreibung Variablenname No error ERR_OK General error - to be used only for internal errors ERR_FAILED An invalid parameter was passed to a function.
  • Seite 126 116/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls Runtime Error Codes Wert Beschreibung Variablenname ID mismatch ERR_ID_MISMATCH Consistency error ERR_NO_CONSISTENCY General network errors (range: 256-271) General failure of a network call ERR_NET_FAILED Connection not established or closed...
  • Seite 127 Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 117/126 and Controls Runtime Error Codes Wert Beschreibung Variablenname Channel client (e.g. gateway) errors (range: 416 - 447) Channel Id invalid ERR_CHC_CHINVALID Channel closed or connect failed due to a timeout...
  • Seite 128 118/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls Runtime Error Codes Wert Beschreibung Variablenname Socket is in non-blocking mode but this call would block ERR_SOCK_WOULDBLOCK The provided address is already in use ERR_SOCK_ADDRINUSE The provided address is not available on this computer...
  • Seite 129 Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 119/126 and Controls Runtime Error Codes Wert Beschreibung Variablenname 1284 Application not loaded ERR_APP_NOT_LOADED 1285 no session id specified ERR_APP_NO_SESSIONID 1286 unresolved external function ERR_APP_UNRESOLVED_REFERENCE 1287 signature mismatch ERR_APP_SIGNATURE_MISMATCH...
  • Seite 130 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls...
  • Seite 131: Service Und Support

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 121/126 and Controls Service und Support Service und Support Unser Kundendienst-Helpdesk im Hauptwerk Lohr am Main steht Ihnen mit Rat und Tat zur Seite. Außerhalb der Helpdesk-Zeiten ist der Service über die Service-Hotline Deutschland direkt ansprechbar.
  • Seite 132 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls...
  • Seite 133: Index

    Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 123/126 and Controls Index Index AccessMode 28 Global_Constants 58 Auslesen bzw. Setzen der Echtzeituhr 101 INADDR 84 Bibliothek Interrupt Service Routine 33 SysCom.library 3 IsaInterrupt 36 SysComAsync.library 11 SysCPUHandling.library 13 SysDir.library 15...
  • Seite 134 124/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls Index SYS_TASK_PARAM 100 SysIntOpenByName 35 SysCom.library 3 SysIntRegister 35 SysComAsync.library 11 SysIntUnregister 36 SysComClose 6 SysMem.library 39 SysComGetSettings 5 SysMemAllocArea 39 SysComOpen 3 SysMemAllocCode 40 SysComOpen2 4...
  • Seite 135 Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG 125/126 and Controls Index SysSemProcessEnter 64 SysTaskGetCurrentOSHandle 95 SysSemProcessLeave 64 SysTaskGetInfo 95 SysSemTry 62 SysTaskGetInterval 96 SysSharedMemoryClose 65 SysTaskGetOSHandle 96 SysSharedMemoryGetPointer 65 SysTaskGetOSPriority 96 SysSharedMemoryOpen 66 SysTaskGetPriority 96 SysSharedMemoryRead 66...
  • Seite 136 126/126 Bosch Rexroth AG | Electric Drives Rexroth IndraLogic 09VRS | Bibliotheksbeschreibung and Controls Index UDP_REPLY2 85 synchron 15 UTC 102 Zeitgeber 109 Verzeichnisverwaltung Zyklische Tasks verwalten 91 asynchron 19...
  • Seite 137 Bibliotheksbeschreibung | Rexroth IndraLogic 09VRS Electric Drives | Bosch Rexroth AG and Controls Notizen...
  • Seite 138 Bosch Rexroth AG Electric Drives and Controls Postfach 13 57 97803 Lohr, Deutschland Bgm.-Dr.-Nebel-Str. 2 97816 Lohr, Deutschland Tel. +49 (0)93 52-40-50 60 +49 (0)93 52-40-49 41 service.svc@boschrexroth.de www.boschrexroth.com Printed in Germany R911325418 DOK-IL*2G*-SYSLIB**V09-FK01-DE-P...

Inhaltsverzeichnis