ItpGetGroupAxisIds
ItpGetGroupAxisIds is a function that returns an array of axes IDs that were configured for the group.
/ Inputs/Outputs
FUNCTION ItpGetGroupAxisIds
VAR_IN_OUT
sNciToPlc AT%I* : NCTOPLC_NCICHANNEL_REF;
nNciAxisIds : ARRAY[1..8] OF DWORD;
END_VAR
Name | Type | Description |
---|---|---|
nNciAxisIds | ARRAY[1..8] OF DWORD | Array of axis IDs |
sNciToPlc | NCTOPLC_NCICHANNEL_REF | The structure of the cyclic channel interface from the NCI to the PLC. This structure is only accessed for reading. (Type NCTOPLC_NCICHANNEL_REF) |
Return value
Name | Type | Description |
---|---|---|
ItpGetGroupAxisIds | DWORD | Error number |
ItpGetGroupAxisIds evaluates the information of the variable 'nAcsAxisIDs[8]' from the cyclic interface. |
Example
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 |