APIs, concepts, guides, and more

◆ NetworkOutputOverrideValueSet()

void NetworkOutputOverrideValueSet ( int32_t index,
uint64_t outputValue )
Parameters
indexThe index of the Network Output to Override.
outputValueAn unsigned 64-bit value, you may need to use a union.
Description:
NetworkOutputOverrideValueSet will set values to override those that would normally be set by the RMP. This allows you to take complete control over exchanged EtherCAT PDOs. This will only work if you have used NetworkOutputOverrideSet(index, true);

Part of the Network Interface method group.

Sample Code:
IO: Input & Output
// 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
NetworkOutputOverrideValueGet, NetworkOutputOverrideSet
Examples
Homing.cs, and InputOutput.cs.