APIs, concepts, guides, and more

◆ MemoryBlockSet()

void MemoryBlockSet ( uint64_t address,
const void *const dataStart,
int32_t size )
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
Remarks
This function is also available in RapidSequencer.
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));
int32_t MemoryGet(uint64_t address)
Read controller memory.
void MemoryBlockSet(uint64_t address, const void *const dataStart, int32_t size)
Set controller memory.
@ RSIAxisAddressTypeCOMMAND_POSITION
Command Position.
@ RSIAxisAddressTypeACTUAL_POSITION
Actual Position.
// -- 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