Library.ReadModuleOutputByte Method
Reads a byte value from the output buffer of a module.
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
public EcatErrorCode ReadModuleOutputByte(
EcatHandle module,
uint byteOffset,
ref byte value
)
Parameters
module
Type: EcatHandle
A handle to a module. To retrieve the corresponding handle, use OpenModuleByIndex or OpenModuleByLocation.
byteOffset
Type: UInt32
A byte offset to the location to read a byte value.
value
Type: Byte
A reference to a variable that receives a byte value from the output buffer of a module.
Return Value
EcatErrorCode is thrown when any of these errors occur:
| Error code | Meaning |
|---|---|
|
ecatErrNoError |
The function succeeded. |
|
ecatErrWrongParameter |
One of the following conditions occurred:
|
|
ecatErrMainDeviceNotReady |
The MainDevice is not ready. |
|
ecatErrWrongEnvironment |
The MainDevice has not started. |
See Also: