◆ MemoryBlockSet()

virtual void MemoryBlockSet ( uint64_t  address,
void *  dataStart,
int32_t  size 
)
pure virtual

Set controller memory.

ℹ This function is avaliable in RapidCode and RapidSequencer

Description:
MemoryBlockSet sets data in the controller's memory by reference.
Parameters
addressAn address (host) in the controller's memory.
dataStartLocation to store address memory.
sizeSize of data in bytes
Sample Code:
// -- C++ -- //
uint64_t addressToSet = axis->AddressGet(RSIAxisAddressTypeCOMMAND_POSITION);
int32_t dataToStore = controller->MemoryGet(axis->AddressGet(RSIAxisAddressTypeACTUAL_POSITION));
controller->MemoryBlockSet(addressToSet, (void*) dataToStore, sizeof(dataToStore));
// -- C# -- //
uint64_t addressToSet = axis.AddressGet(RSIAxisAddressTypeACTUAL_POSITION);
int dataToStore = controller.MemoryGet(axis.AddressGet(RSIAxisAddressTypeACTUAL_POSITION));
controller.MemoryBlockSet(addressToSet, (void*) dataToStore, sizeof(dataToStore));
See also
MemoryBlockSet