F_IolGetChannelStateTxt

F_IolGetChannelStateTxt 1:

Function converts state channel and port into text form.

F_IolGetChannelStateTxt 2:Inputs

Name

Type

Description

nIolChState

USINT

IO-Link Channel State

nPort

E_IolPort

IO-Link port

F_IolGetChannelStateTxt 3:Outputs

Name

Type

Description

F_IolGetChannelStateTxt

String(255)

Converts the channel state into text information.

Example

VAR
  nStateCh2  AT%I*    :USINT;
  nPort               :E_IolPort:=E_iolPort.Port2;
  sChannelStateText   :STRING(255);
END_VAR
sChannelStateText := F_IolGetChannelStateTxt(nStateCh2,nPort);
F_IolGetChannelStateTxt 4:

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.25

Tc3_IoLink from v3.3.4.0