ItpGetGroupAxisIds

ItpGetGroupAxisIds 1:

ItpGetGroupAxisIds is a function that returns an array of axes IDs that were configured for the group.

VAR_IN_OUT

FUNCTION ItpGetGroupAxisIds

VAR_IN_OUT
    sNciToPlc AT%I*  : NCTOPLC_NCICHANNEL_REF;
    nNciAxisIds      : ARRAY[1..8] OF DWORD;
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)

sNciAxisIds: Array of axis IDs

Return value

ItpGetGroupAxisIds: Error number

ItpGetGroupAxisIds 2:

ItpGetGroupAxisIds evaluates the variable 'nItpErrCode' from the cyclic interface.

Sample

VAR
    nNciAxisIds     : ARRAY[1..8] OF DWORD;
    sNciToPlc AT%I* : NCTOPLC_NCICHANNEL_REF;
    nVersionErr     : DWORD;
END_VAR
nVersionErr := ItpGetGroupAxisIds(nNciAxisIds, sNciToPlc );

Requirements

Development environment

Target platform

PLC libraries to be linked

TwinCAT v3.1.0

PC or CX (x86 or x64)

Tc2_NCI