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
WriteObject
ABORT_CODE.SUCCESSFUL: Writing successful, object value was changed according to pbyData; ELSE: Writing not permitted
Input
itfObject
Object which should be written.
bySubIndex
BYTE
Subindex of object
xCheckAccess
BOOL
TRUE
TRUE
: Access rights should be checked. Write on readonly object will fail.FALSE
: Ignore access rights and force writing.xDataInBusOrder
BOOL
Specifies Byte Order of data
pbyData
points to;TRUE
: Data in CANopen Byteorder (Little Endian),FALSE
: Data in Host Byte OrderpbyData
POINTER TO BYTE
Pointer to data which should be written to the object
Inout
udiSize
UDINT
VAR IN: Size of memory pbyData points to; VAR OUT: Size of Object