ItpIsHskMFunc

from library version 4.0

ItpIsHskMFunc 1:

ItpIsHskMFunc determines whether an M-function of type handshake is present.

Interface

FUNCTION ItpIsHskMFunc

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

The function returns TRUE if an M-function of type handshake is present.

ItpIsHskMFunc 2:

ItpIsHskFunc evaluates the variable 'nHskMFuncReq' from the cyclic interface.

Sample

VAR
bMFuncRequest: BOOL;
END_VAR
bMFuncRequest := ItpIsHskMFunc( 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