app_weld_set_interface_eip_r2m_condition
Definition
DRFLEx.h within class CDRFLEx, public section (line 1023)
bool app_weld_set_interface_eip_r2m_condition(CONFIG_DIGITAL_WELDING_INTERFACE_CONDITION pConfigdigitalweldinginterfacecondition)
{
return _app_weld_set_interface_eip_r2m_condition(_rbtCtrl, pConfigdigitalweldinginterfacecondition);
};
Features
This function configures the EtherNet/IP communication interface for welding systems that support EtherNet/IP connectivity. It defines the mapping of welding condition control signals—such as parameter adjustment, correction enablement, and condition synchronization—sent from the robot controller → welder.
This setup allows the welder to receive welding condition settings in real time (e.g., voltage correction, current correction, or synergic adjustments). Refer to the communication datasheet of the connected welding device for compatible condition parameters.
Note
To fully utilize EtherNet/IP-based welding functionality, all 8 related interface configuration commands must be set:
app_weld_set_interface_eip_r2m_condition ← (this page)
Arguments
Argument Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
pConfigdigitalweldinginterfacecondition |
EtherNet/IP condition mapping structure from robot to welder |
Structure Fields
Field Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
_bEnable |
unsigned char |
None |
Enable flag for condition signal |
_nDataType |
unsigned char |
None |
Signal data type |
_nPositionalNumber |
unsigned char |
None |
Data digit |
_fMinData |
float |
None |
Minimum reference value for parameter |
_fMaxData |
float |
None |
Maximum reference value for parameter |
_nByteOffset |
unsigned char |
None |
Communication byte offset (1-255) |
_nBitOffset |
unsigned char |
None |
Communication bit offset (1-255) |
_nCommDataType |
unsigned char |
None |
Data size of the communication frame |
_nMaxDigitSize |
unsigned char |
None |
Effective bit length used for condition data |
Return
Value |
Description |
|---|---|
0 |
Error |
1 |
Success |
Example
// Example: Configure EtherNet/IP welding condition mapping
CONFIG_DIGITAL_WELDING_INTERFACE_CONDITION conditionData;
conditionData._bEnable = 1;
conditionData._bDataType = 2; // Value type signal
conditionData._bPositionalNumber = 1; // Numeric position
conditionData._fMinData = -5.0; // Min correction (e.g., voltage)
conditionData._fMaxData = 5.0; // Max correction (e.g., voltage)
conditionData._bByteOffset = 6; // Located at byte 6
conditionData._bBitOffset = 0; // Bit offset 0
conditionData._bCommDataType = 3; // 8-bit field
conditionData._bMaxDigitSize = 8; // 8-bit effective size
bool result = Drfl.app_weld_set_interface_eip_r2m_condition(conditionData);
This example maps a welding condition signal to byte position 6 of the EtherNet/IP output frame. It allows the robot to transmit real-time welding voltage or current correction values to the welder, enabling adaptive condition control synchronized with the robot’s motion path.