ItpGetGeoInfoAndHParam

ItpGetGeoInfoAndHParam 1:

The function block ItpGetGeoInfoAndHParam reads information of the currently active segment and past and future segments. These include block number, H-parameter and residual path length on the segment.

ItpGetGeoInfoAndHParam 2:

Outdated version

The sole purpose of the function block is to ensure compatibility with existing projects. For new projects please use the function block ItpGetGeoInfoAndHParamEx.

VAR_IN_OUT

VAR_IN_OUT
    sNciToPlc           : NCTOPLC_NCICHANNEL_REF;
END_VAR

sNciToPlc: The structure of the cyclic channel interface from the NCI to the PLC. This structure is only accessed for reading. (type: NCTOPLC_NCICHANNEL_REF)

VAR_OUTPUT

VAR_OUTPUT
    stTab               : ST_ItpPreViewTabEx;
    nErrId              : UDINT;
END_VAR

stTab: Structure containing the segment data.

nErrId: Contains the command-specific error code of the most recently executed command. Is reset to 0 by the execution of a command at the inputs. The error numbers in ErrId can be looked up in the ADS error documentation or in the NC error documentation (error codes above 0x4000).

Requirements

Development environment

Target platform

PLC libraries to be linked

TwinCAT v3.1.0

PC or CX (x86 or x64)

Tc2_NCI