RtecatSetFeatureStatus
RtecatSetFeatureStatus sets the configuration of an EtherCAT startup feature.
Syntax
RTECAT_ERROR RtecatSetFeatureStatus(
[in] RTECAT_HANDLE MainDevice,
[in] RTECAT_FEATURE Feature,
[in] double Status
);
Parameters
[in] MainDevice
A handle to a MainDevice. To retrieve the corresponding handle, use RtecatOpenMainDevice.
[in] Feature
An EtherCAT feature. See RTECAT_FEATURE.
[in] Status
A value to set the Feature Status.
Return Values
The function returns an RTECAT_ERROR value. If the function succeeds, it returns ecatErrNoError. If the function fails, it returns a different value.
Possible return values:
| Return value | Meaning |
|---|---|
|
ecatErrNoError |
The function succeeded. |
|
ecatErrWrongParameter |
One of the following conditions occurred:
|
|
ecatErrMainDeviceNotReady |
The MainDevice instance does not exist. |
|
ecatErrNoLicense |
One of the following conditions occurred:
|
|
ecatErrWrongEnvironment |
The MainDevice is not stopped. |
|
ecatErrFeatureUnavailable |
Parameter Feature is ecatFeatureDcReferenceIndex, which is not currently supported. |
Remarks
RtecatSetFeatureStatus is a synchronous function that executes immediately and returns a result upon completion.
RtecatSetFeatureStatus is not allowed after RtecatStart has succeeded. If invoked after RtecatStart, it will return ecatErrWrongEnvironment.
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
RtecatApi.h |
RtecatApi_W64.lib (Windows), RtecatApi.lib (RTSS) |
See Also: