IObjectDictionary.WriteObject (METH)ΒΆ
METHOD WriteObject : 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.
Difference to IObjectDictionary.WriteObjectByAddress: Better performance because itfObject is an input variable => no internal binary search necessary.
- InOut:
Scope
Name
Type
Initial
Comment
Return
WriteObjectABORT_CODE.SUCCESSFUL: Writing successful, object value was changed according to pbyData; ELSE: Writing not permitted
Input
itfObjectObject 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