ItpGetStateInterpreter

from library version 4.1

ItpGetStateInterpreter 1:

ItpGetStateInterpreter 2:

ItpGetStateInterpreter is a function that returns the interpreter state.

Interface

FUNCTION ItpGetStateInterpreter : UDINT

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

Return value

Data type

Description

UDINT

Current interpreter state

ItpGetStateInterpreter 3:

ItpGetStateInterrpreter evaluates the variable 'nItpState' from the cyclic interface.

Sample

VAR
nItpState: UDINT;
sNciToPlc: NciChannelToPlc;
END_VAR
nItpState := ItpGetStateInterpreter( 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