ItpGetChannelType

ItpGetChannelType 1:

ItpGetChannelType ist eine Funktion, die den Kanaltyp des zyklischen Interfaces zurückliefert.

ItpGetChannelType 2:/ItpGetChannelType 3: Ein-/Ausgänge

VAR_IN_OUT
    sNciToPlc           : NCTOPLC_NCICHANNEL_REF;
END_VAR

Name

Typ

Beschreibung

sNciToPlc

NCTOPLC_NCICHANNEL_REF

Struktur des zyklischen Kanalinterfaces von der NCI zur SPS. Auf diese Struktur wird nur lesend zugegriffen (Typ: NCTOPLC_NCICHANNEL_REF).

ItpGetChannelType 4: Rückgabewert

Name

Typ

Beschreibung

ItpGetChannelType

E_ItpChannelType

Kanaltyp

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

Beispiel

VAR
    nChannelType    : E_ItpChannelType;
    sNciToPlc AT%I* : NCTOPLC_NCICHANNEL_REF;
END_VAR
nChannelType := ItpGetChannelType( sNciToPlc );

Voraussetzungen

Entwicklungsumgebung

Zielplattform

Einzubindende SPS-Bibliotheken

TwinCAT V3.1.0

PC oder CX (x86 oder x64)

Tc2_NCI