APIs, concepts, guides, and more

◆ MemoryBlockGet()

void MemoryBlockGet ( uint64_t address,
void * dataStart,
int32_t size )
Description:
MemoryBlockGet accesses 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++ -- //
int32_t anAddress = axis->AddressGet(RSIAxisAddressTypeACTUAL_POSITION);
controller->MemoryBlockGet(anAddress, (void*) addressValue, sizeof(addressValue));
printf("Value is %ld\n", addressValue);
void MemoryBlockGet(uint64_t address, void *dataStart, int32_t size)
Read controller memory.
@ RSIAxisAddressTypeACTUAL_POSITION
Actual Position.
// -- C# -- //
int anAddress = axis.AddressGet(RSIAxisAddressTypeACTUAL_POSITION);
controller.MemoryBlockGet(anAddress, (void*) addressValue, sizeof(addressValue));
Console.WriteLine("Value is {0}.", addressValue);
See also
MemoryBlockSet