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
WriteObjectByAddress
ABORT_CODE.SUCCESSFUL: Writing successful, object value was changed according to pbyData; ELSE: Writing not permitted.
Input
wIndex
WORD
Index of 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