ItpGetHParam

ItpGetHParam 1:

The function ItpGetHParam returns the current H-parameter.

ItpGetHParam 2:/ItpGetHParam 3: Inputs/Outputs

VAR_IN_OUT
    sNciToPlc           : NCTOPLC_NCICHANNEL_REF;
END_VAR

Name

Type

Description

sNciToPlc

NCTOPLC_NCICHANNEL_REF

The structure of the cyclic channel interface from the NCI to the PLC. This structure is read-only (type: NCTOPLC_NCICHANNEL_REF).

ItpGetHParam 4: Return value

Name

Type

Description

ItpGetHParam

DINT

H parameter

ItpGetHParam 5:

ItpGetHParam evaluates the variable 'nHFuncValue' from the cyclic interface.

Example

VAR
    nHParam        : DINT;
    sNciToPlc AT%I*: NCTOPLC_NCICHANNEL_REF;
END_VAR
nHParam := ItpGetHParam( sNciToPlc ); 

Requirements

Development environment

Target platform

PLC libraries to be linked

TwinCAT v3.1.0

PC or CX (x86 or x64)

Tc2_NCI