F_IolGetIolErrorTxt

F_IolGetIolErrorTxt 1:

Die Funktion gibt den IO-Link-Fehlercode als String wieder

F_IolGetIolErrorTxt 2:Eingänge

Name

Typ

Beschreibung

nIolErr

UDINT

IO-Link-Fehler

F_IolGetIolErrorTxt 3:Ausgänge

Name

Typ

Beschreibung

F_IolGetIolErrorTxt

String

IO-Link-Fehler Code als Text

Beispiel

VAR
  hr            :HRESULT;
  nIolError     :E_IolErr := E_IolErr.NOERR;
  sIolErrorText :STRING;
END_VAR
nIolError := F_IolGetIolError(hr);
sIolErrorText := F_IolGetIolErrorTxt(nIolError);

Voraussetzungen

Entwicklungsumgebung

Erforderliche SPS-Bibliothek

TwinCAT ab v3.1.4024.25

Tc3_IoLink ab v3.3.4.0