F_IolGetPortError

F_IolGetPortError 1:

Function returns the state channel as E_IolPortError.

F_IolGetPortError 2:Inputs

Name

Type

Description

nIolChState

USINT

IO-Link Channel State

F_IolGetPortError 3:Outputs

Name

Type

Description

E_IolGetPortError

E_IolPortError

Display IO-Link port error

Example

VAR
  nStateCh1  AT%I*    :USINT;
  nIolPortError       :E_IolPortError;
END_VAR
nIolPortError := F_IolGetPortError(nStateCh1);
F_IolGetPortError 4:

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.25

Tc3_IoLink from v3.3.4.0