IObjectDictionary.ReadObjectByAddress (METH)ΒΆ
METHOD ReadObjectByAddress : 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.
- InOut:
Scope
Name
Type
Initial
Comment
Return
ReadObjectByAddressABORT_CODE.SUCCESSFUL: Reading successful,
pbyDatacontains data; ELSE: Reading not permittedInput
wIndexWORDIndex of object 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 readingxDataInBusOrderBOOLSpecifies 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