For information on the latest version, please have a look at GL013301.
app_weld_set_interface_eip_r2m_test
Definition
DRFLEx.h within class CDRFLEx, public section (line 1021)
bool app_weld_set_interface_eip_r2m_test(CONFIG_DIGITAL_WELDING_INTERFACE_TEST pConfigdigitalweldinginterfacetest)
{
return _app_weld_set_interface_eip_r2m_test(_rbtCtrl, pConfigdigitalweldinginterfacetest);
};
Features
This function configures the EtherNet/IP test signal interface for welders supporting EtherNet/IP communication. It defines the data mapping for test or diagnostic signals transmitted from the robot controller → welder (R2M). This allows the robot to send diagnostic flags or calibration signals used for verifying communication and test cycles.
You may include additional test signal configurations using optional structure fields such as ts_opt1 and ts_opt2.
Refer to the welder’s communication datasheet for detailed signal mapping and valid byte/bit assignments.
Note
For proper EtherNet/IP welding operation, all 8 communication interfaces should be configured:
app_weld_set_interface_eip_r2m_test ← (this page)
Arguments
Argument Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
pConfigdigitalweldinginterfacetest |
Digital welding interface test settings structure |
Structure Fields
The following fields define the bit-level mapping for each EtherNet/IP test signal element:
Field Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
_bEnable |
unsigned char |
None |
Enable flag for the test signal |
_nDataType |
unsigned char |
None |
Data type |
_nPositionalNumber |
unsigned char |
None |
Data digit position |
_fMinData |
float |
None |
Minimum threshold value for signal validation |
_fMaxData |
float |
None |
Maximum threshold value for signal validation |
_nByteOffset |
unsigned char |
None |
Communication byte offset (1-255) |
_nBitOffset |
unsigned char |
None |
Communication bit offset (1-255) |
_nCommDataType |
unsigned char |
None |
Communication data size |
_bMaxDigitSize |
unsigned char |
None |
Effective bit-length of the data |
Return
Value |
Description |
|---|---|
0 |
Error |
1 |
Success |
Example
// Example for setting EtherNet/IP test interface signals
CONFIG_DIGITAL_WELDING_INTERFACE_TEST testData;
testData._bEnable = 1; // Enable signal mapping
testData._bDataType = 0; // Boolean signal type
testData._bPositionalNumber = 1; // Single-bit signal
testData._fMinData = 0.0;
testData._fMaxData = 1.0;
testData._bByteOffset = 5; // Located at byte 5
testData._bBitOffset = 3; // Bit 3 in byte 5
testData._bCommDataType = 3; // 8-bit field
testData._bMaxDigitSize = 1; // Single-bit signal
bool result = Drfl.app_weld_set_interface_eip_r2m_test(testData);
This example maps a test signal (e.g., “Arc Detection Test”) in the EtherNet/IP frame. It assigns the signal to byte position 5, bit 3, using a single-bit Boolean flag. Such test mappings are commonly used to verify digital communication between the robot controller and the connected welder before production welding begins.