ItpGetGeoInfoAndHParam
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.
![]()  | 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.  | 
/
 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).  | 
 Outputs 
VAR_OUTPUT
    stTab               : ST_ItpPreViewTabEx;
    nErrId              : UDINT;
END_VARName  | Type  | Description  | 
|---|---|---|
stTab  | ST_ItpPreViewTabEx  | Structure containing the segment data.  | 
nErrId  | UDINT  | 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  | 
