Library.OverrideSubDevicePdoConfiguration Method

Changes the input and output PDO lengths of a SubDevice. This can be used to programmatically configure a SubDevice.

Namespace:  IntervalZero.MaxRT.Ecat.Api.NetApi
Assembly:  IntervalZero.MaxRT.Ecat (in IntervalZero.MaxRT.Ecat.dll) Version: 1.0.0.0 (File version: 1.1.0)

Syntax

Copy
public EcatErrorCode OverrideSubDevicePdoConfiguration(
    EcatHandle subDevice,
    uint inputLength,
    uint outputLength
)

Parameters

subDevice

Type: EcatHandle
A handle to a SubDevice. To retrieve the corresponding handle, use OpenSubDeviceByIndex, OpenSubDeviceByStationAddress, or OpenSubDeviceByExplicitId.

inputLength

Type: UInt32
The length of a PDO input data.

outputLength

Type: UInt32
The length of a PDO output data.

Return Value

EcatErrorCode is thrown when any of these errors occur:

Error code Meaning

ecatErrNoError

The function succeeded.

ecatErrWrongParameter

Parameter subDevice is invalid.

ecatErrMainDeviceNotReady

The MainDevice is not ready.

ecatErrWrongEnvironment

The MainDevice has not started.

ecatErrWrongMainDeviceStatus

The command is not usable in the current MainDevice state.

See Also: