ItpGetChannelType

from library version 6.1.32

ItpGetChannelType 1:

ItpGetChannelType is a function that returns the channel type of the cyclic interface.

Interface

FUNCTION ItpGetChannelType

VAR_IN_OUT
sNciToPlc    : NciChannelToPlc;
END_VAR

NciChannelToPlc

Input & output

Data type

Description

sNciToPlc

NciChannelToPlc

The structure of the cyclic channel interface from the NCI to the PLC. This structure is only accessed for reading.

Return value

Data type

Description

E_ItpChannelType

Channel type

TYPE E_ItpChannelType :
(
ItpChannelTypeNone,
ItpChannelTypeInterpreter,
ItpChannelTypeKinematic,
ItpChannelType_InvalidItfVer := 16#4B14 (*ErrTcNciItp_ItfVersion the cyclic channel interface does not match to the requested function/fb *)
);
END_TYPE

Sample

VAR
nChannelType    : E_ItpChannelType;
sNciToPlc       : NciChannelToPlc;
END_VAR
nChannelType := ItpGetChannelType( sNciToPlc );

Prerequisites

Development environment

Target system

PLC libraries to include

TwinCAT v2.10.0

PC (i386)

TcNci.lib