RMP Motion Controller
10.5.2
The RMP Motion Controller APIs
MotionController
NetworkNode
Axis
MultiAxis
IOPoint
Cartesian
RsiError
Contact
Support
RMP
◆
MemoryBlockGet()
void MemoryBlockGet
(
uint64_t
address
,
void *
dataStart
,
int32_t
size
)
Description:
MemoryBlockGet accesses data in the controller's memory by reference.
Parameters
address
An address (host) in the controller's memory.
dataStart
Location to store address memory.
size
Size of data in bytes
Remarks
This function is also available in
RapidSequencer
.
Sample Code:
// -- C++ -- //
int32_t anAddress = axis->AddressGet(
RSIAxisAddressTypeACTUAL_POSITION
);
controller->
MemoryBlockGet
(anAddress, (
void
*) addressValue,
sizeof
(addressValue));
printf(
"Value is %ld\n"
, addressValue);
RSI::RapidCode::MotionController::MemoryBlockGet
void MemoryBlockGet(uint64_t address, void *dataStart, int32_t size)
Read controller memory.
RSI::RapidCode::RSIAxisAddressType::RSIAxisAddressTypeACTUAL_POSITION
@ 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
RSI
RapidCode
MotionController
Generated by
1.10.0