F_IolGetIolErrorTxt

F_IolGetIolErrorTxt 1:

The function returns the IO-Link error code as a string

F_IolGetIolErrorTxt 2:Inputs

Name

Type

Description

nIolErr

UDINT

IO-Link error

F_IolGetIolErrorTxt 3:Outputs

Name

Type

Description

F_IolGetIolErrorTxt

String

IO-Link error code as text

Sample

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

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.25

Tc3_IoLink from v3.3.4.0