ItpGetTParam

from library version 4.0

ItpGetTParam 1:

ItpGetTParam is a function that returns the current T parameter.

Interface

FUNCTION ItpGetTParam

VAR_IN_OUT
sNciToPlc      : NciChannelToPlc;
END_VAR

NciChannelToPlc

Input parameters

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

UINT

T parameter

ItpGetTParam 2:

ItpGetTParam evaluates the variable 'nTool' from the cyclic interface.

Sample

VAR
nTParam: UINT;
sNciToPlc: NciChannelToPlc;
END_VAR
nTParam := ItpGetTParam( sNciToPlc ); 

Requirements

Development Environment

Target System

PLC libraries to include

TwinCAT v2.7.0

PC (i386)

TcNciItp.lib

TwinCAT v2.8.0

PC (i386)

TcNci.lib