◆ NetworkOutputOverrideValueSet()

virtual void NetworkOutputOverrideValueSet ( int32_t  index,
uint64_t  outputValue 
)
pure virtual

Sets a PDO output directly.

ℹ This function is avaliable in RapidCode and RapidSequencer

Part of the Network Interface method group.

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);
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
NetworkOutputOverrideValueGet, NetworkOutputOverrideSet