Library.ReadMemoryBit Method
Reads a bit value from the E-CAT Fieldbus shared memory.
Namespace:
IntervalZero.MaxRT.Ecat.Api.NetApi
Assembly:
IntervalZero.MaxRT.Ecat (in IntervalZero.MaxRT.Ecat.dll) Version: 1.0.0.0 (File version: 1.0.1)
Syntax
public EcatErrorCode ReadMemoryBit(
uint offset,
uint bitOffset,
ref bool value
)
Parameters
offset
Type: UInt32
A byte offset to the location to read a bit value. Indexes are zero based.
bitOffset
Type: UInt32
A bit offset to the location to read a bit value.
value
Type: Boolean
A reference to a variable that receives a bit value from the E-CAT shared memory.
Return Value
EcatErrorCode is thrown when any of these errors occur:
| Error code | Meaning |
|---|---|
|
ecatErrNoError |
The function succeeded. |
|
ecatErrWrongParameter |
The total offset is invalid. |
|
ecatErrMainDeviceNotReady |
The MainDevice is not ready. |
See Also: