ItpGetSParam

from library version 4.0

ItpGetSParam 1:

ItpGetSParam is a function that returns the current S-parameter.

Interface

FUNCTION ItpGetSParam

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

S parameter

ItpGetSParam 2:

ItpGetSParam evaluates the variable 'nSpindleRpm' from the cyclic interface.

Sample

VAR
nSParam: UINT;
sNciToPlc: NciChannelToPlc;
END_VAR
nSParam := ItpGetSParam( 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