Library.IsMainDeviceRunning Method

Returns a MainDevice's running status.

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 IsMainDeviceRunning(
    EcatHandle mainDevice,
    ref bool created
)

Parameters

mainDevice

Type: EcatHandle
A MainDevice handle.

created

Type: Boolean
A reference to a variable that indicates whether the MainDevice is running.

Return Value

EcatErrorCode is thrown when any of these errors occur:

Error code Meaning

ecatErrNoError

The function succeeded.

ecatErrWrongParameter

Parameter mainDevice is invalid.

See Also: