The RMP Motion Controller APIs

◆ NetworkOutputSentValueGet()

uint64_t NetworkOutputSentValueGet ( int32_t  index)
Parameters
indexThe index of the Network Output.
Returns
(uint64_t) The value which was actually sent. Either Output IntendedValue or OverrideValue.
Description:
NetworkOutputSentValueGet will report the value sent over the network. This might be the normal RMP cyclic value or the override value.
Remarks
This function is also available in RapidSequencer.
Sample Code:
NetworkInputsAndOutputs
// Get Input Values
int inputCount = controller.NetworkInputCountGet(); // Get number of Network Inputs (PDOs)
for (int i = 0; i < inputCount; i++)
{
int size = controller.NetworkInputBitSizeGet(i); // Read Input BitSize
int offset = controller.NetworkInputBitOffsetGet(i); // Read Input BitOffset
string name = controller.NetworkInputNameGet(i); // Read Input Name
UInt64 value = controller.NetworkInputValueGet(i); // Read Input Value
}
// Get Output Values
int outputCount = controller.NetworkOutputCountGet(); // Get number of Network Outputs (SDOs)
for (int i = 0; i < outputCount; i++)
{
int size = controller.NetworkOutputBitSizeGet(i); // Read Output BitSize
int offset = controller.NetworkOutputBitOffsetGet(i); // Read Output BitOffset
string name = controller.NetworkOutputNameGet(i); // Read Output Name
UInt64 value = controller.NetworkOutputSentValueGet(i); // Read Output Value
controller.NetworkOutputOverrideValueSet(i, value);
}
See also
NetworkOutputOverrideValueSet, NetworkOutputIntendedValueGet
Examples
InputOutput.cs.
RSI::RapidCode::MotionController::NetworkOutputSentValueGet
uint64_t NetworkOutputSentValueGet(int32_t index)
Gets the value sent out over EtherCAT.
RSI::RapidCode::MotionController::NetworkInputValueGet
uint64_t NetworkInputValueGet(int32_t index)
RSI::RapidCode::MotionController::NetworkOutputBitSizeGet
int32_t NetworkOutputBitSizeGet(int32_t index)
Get the size (in bits) of a PDO output.
RSI::RapidCode::MotionController::NetworkInputBitSizeGet
int32_t NetworkInputBitSizeGet(int32_t index)
Get the size (in bits) of a network input.
RSI::RapidCode::MotionController::NetworkOutputNameGet
const char *const NetworkOutputNameGet(int32_t index)
Get the name of a PDO output.
RSI::RapidCode::MotionController::NetworkInputBitOffsetGet
int32_t NetworkInputBitOffsetGet(int32_t index)
RSI::RapidCode::MotionController::NetworkOutputCountGet
int32_t NetworkOutputCountGet()
RSI::RapidCode::MotionController::NetworkOutputBitOffsetGet
int32_t NetworkOutputBitOffsetGet(int32_t index)
Get the raw PDO offset for an output.
RSI::RapidCode::MotionController::NetworkOutputOverrideValueSet
void NetworkOutputOverrideValueSet(int32_t index, uint64_t outputValue)
Sets a PDO output directly.
RSI::RapidCode::MotionController::NetworkInputNameGet
const char *const NetworkInputNameGet(int32_t index)
Get the name of a PDO network input.
RSI::RapidCode::MotionController::NetworkInputCountGet
int32_t NetworkInputCountGet()
Get the number of PDO inputs found on the network.