MotionController
Axis
MultiAxis
IO
IOPoint
NetworkNode
RsiError
Sample Apps
Changelog
RapidCode API
Contact us
Support
◆
MemoryBlockGet()
void MemoryBlockGet
(
uint64
address
,
void *
data
,
int32
size
)
pure virtual
Read controller memory.
Description:
MemoryBlockGet accesses data in the controller's memory by reference.
Parameters
address
An address (host) in the controller's memory.
data
Location to store address memory.
size
Size of data in bytes
Sample Code:
// -- C++ -- //
int32 anAddress = axis->
AddressGet
(
RSIAxisAddressTypeACTUAL_POSITION
);
controller->
MemoryBlockGet
(anAddress, (
void
*) addressValue,
sizeof
(addressValue));
printf(
"Value is %ld\n"
, addressValue);
// -- C# -- //
int
anAddress = axis.
AddressGet
(
RSIAxisAddressTypeACTUAL_POSITION
);
controller.
MemoryBlockGet
(anAddress, (
void
*) addressValue,
sizeof
(addressValue));
Console.WriteLine(
"Value is {0}."
, addressValue);
See also
MemoryBlockSet