ItpGetChannelId

from library version 6.1.21 and TwinCAT version 2.10 Build 1304

ItpGetChannelId 1:

ItpGetChannelId is a function that determines the channel ID from the cyclic interface

Interface

FUNCTION ItpGetChannelId

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

UDINT

Channel ID

Sample

VAR
nChnId    : UINT;
sNciToPlc : NciChannelToPlc;
END_VAR
nChnId := ItpGetChannelId( sNciToPlc ); 

see also: ItpGetGroupId

Requirements

Development Environment

Target System Type

PLC Libraries to include

TwinCAT v2.10.0

PC (i386)

TcNci.lib