ItpGetChannelType
The function ItpGetChannelType returns the channel type of the cyclic interface.
/ 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). |
Return value
Name | Type | Description |
---|---|---|
ItpGetChannelType | E_ItpChannelType | Channel type |
TYPE E_ItpChannelType :
(
ItpChannelTypeNone,
ItpChannelTypeInterpreter,
ItpChannelTypeKinematic,
ItpChannelType_InvalidItfVer := 16#4B14 (*ErrTcNciItp_ItfVersion the cyclic channel interface does not match to the requested function/fb *)
);
END_TYPE
Sample
VAR
nChannelType : E_ItpChannelType;
sNciToPlc AT%I* : NCTOPLC_NCICHANNEL_REF;
END_VAR
nChannelType := ItpGetChannelType( sNciToPlc );
Requirements
Development environment |
Target platform |
PLC libraries to be linked |
---|---|---|
TwinCAT v3.1.0 |
PC or CX (x86 or x64) |
Tc2_NCI |