IObjectDictionary.WriteObjectByAddress (METH)ΒΆ
METHOD WriteObjectByAddress : ABORT_CODE
Used to write an object in the local object dictionary. If ABORT_CODE.SUCCESSFUL is returned data in pbyData was copied to the object.
If error occured the corresponding abort code is returned.
- InOut:
Scope
Name
Type
Initial
Comment
Return
WriteObjectByAddressABORT_CODE.SUCCESSFUL: Writing successful, object value was changed according to pbyData; ELSE: Writing not permitted.
Input
wIndexWORDIndex of object which should be written
bySubIndexBYTESubindex of object
xCheckAccessBOOLTRUE
TRUE: Access rights should be checked. Write on readonly object will fail. FALSE: Ignore access rights and force writing.
xDataInBusOrderBOOLSpecifies Byte Order of data
pbyDatapoints to; TRUE: Data in CANopen Byteorder (Little Endian), FALSE: Data in Host Byte OrderpbyDataPOINTER TO BYTE
Pointer to data which should be written to the object
Inout
udiSizeUDINTVAR IN: Size of memory pbyData points to; VAR OUT: Size of Object