F_KinGetChnOperationState

This function returns the operating state of the kinematic channel.
Function F_KinGetChnOperationState : E_KINSTATUS
VAR_IN_OUT
stKinRefIn : NCTOPLC_NCICHANNEL_REF
END_VAR
Name | Type | Description |
---|---|---|
stKinRefIn | NCTOPLC_NCICHANNEL_REF | Determines the kinematic group of the configuration. |
Return value
E_KINSTATUS: State of the kinematic channel (see below). If an invalid version of the cyclic interface is used, KinStatus_InvalidItfVersion is returned.
Sample
VAR
stKinRefIn AT %I* : NCTOPLC_NCICHANNEL_REF;
nErrId : UDINT;
eKinOperationState : E_KINSTATUS;
END_VAR
IF F_KinGetChnOperationState (stKinRefIn)<> KinStatus_InvalidItfVersion THEN
eKinOperationState := F_KinGetChnOperationState (stKinRefIn);
ELSE
nErrId := F_KinGetChnOperationState (stKinRefIn);
END_IF