APIs, concepts, guides, and more

◆ NetworkIndexGet()

uint32_t NetworkIndexGet ( RSINetworkIndexType indexType)
Description:
Returns the position in the global PDO (Process Data Object) array where this axis reads/writes a specific signal type. The firmware uses these indices to exchange data with the EtherCAT master. PDO mappings are auto-detected at startup via DS402 standard objects or configured via NodeInfo & CustomNodeInfo files.
Parameters
indexTypeThe axis signal type to query (position feedback, torque demand, status word, etc.)
Returns
PDO Network index, or NetworkIndexInvalid if not configured.
Sample Code:
// Get the PDO index where drive position error is mapped
uint32_t pdoIndex = axis->NetworkIndexGet(RSINetworkIndexType::NetworkIndexTypePDO_POSITION_ERROR_INDEX);
if (pdoIndex != NetworkIndexInvalid) {
// Read the raw PDO value directly from the network topology
int32_t errorCounts = controller->NetworkInputValueGet(pdoIndex);
}
static constexpr uint32_t NetworkIndexInvalid
Returned by NetworkIndexGet() when the index is invalid or nonexistent for this Axis.
Definition rsi.h:5883
uint64_t NetworkInputValueGet(int32_t index)
@ NetworkIndexTypePDO_POSITION_ERROR_INDEX
Position Error (DS402 0x60F4) - 32-bit following error in counts (optional)
See also
NetworkIndexSet, MotionController::NetworkOutputSentValueGet, MotionController::NetworkInputValueGet, RSINetworkIndexType
Examples
Homing.cs, and mathblock-pdo-copy.cs.