IObjectDictionary.ReadObject (METH)ΒΆ
METHOD ReadObject : ABORT_CODE
Used to read an object of the local object dictionary. If ABORT_CODE.SUCCESSFUL is returned pbyData contains the read data.
If error occured the corresponding abort code is returned.
Difference to IObjectDictionary.ReadObjectByAddress:
Better performance because itfObject is an input variable => no internal binary search necessary.
- InOut:
Scope
Name
Type
Initial
Comment
Return
ReadObjectABORT_CODE.SUCCESSFUL: Reading successful, pbyData contains data; ELSE: Reading not permitted
Input
itfObjectObject which should be read.
bySubIndexBYTESubindex of object
xCheckAccessBOOLTRUE
TRUE: Access rights should be checked. Reading a writeonly object will fail.FALSE: Ignore access rights and force reading.xDataInBusOrderBOOLSpecifies in which Byte Order data should be read;
TRUE: Data should be read in CANopen Byteorder (Little Endian),FALSE: Data should be read in Host Byte OrderpbyDataPOINTER TO BYTE
Pointer to data where the object value should be copied to.
Inout
udiSizeUDINTVAR IN: Size of memory pbyData points to; VAR OUT: Size of object