For information on the latest version, please have a look at GL013301.
app_weld_set_interface_eip_m2r_process2
Definition
DRFLEx.h within class CDRFLEx, public section (line 1027)
bool app_weld_set_interface_eip_m2r_process2(CONFIG_DIGITAL_WELDING_INTERFACE_PROCESS2 pConfigdigitalweldinginterfaceprocess2)
{
return _app_weld_set_interface_eip_m2r_process2(_rbtCtrl, pConfigdigitalweldinginterfaceprocess2);
};
Features
This function configures the communication interface for using a welder that supports EtherNet/IP communication. It defines the interlocking signals transmitted from the welder to the robot controller, specifically for “Process 2” signals. This setup enables synchronization between the welding device’s execution states and the robot motion sequence.
Refer to the communication signal datasheet of the corresponding welder for precise signal mapping details.
Note
To properly use the EtherNet/IP-based welding function, all 8 interface setup functions must be configured:
app_weld_set_interface_eip_m2r_process2 ← (this page)
Robot motion start is interlocked with the current_flow signal from the welder. When the main_current item is active, it synchronizes instead with that signal.
Robot motion end is also interlocked with current_flow, unless the process_active signal is used, in which case the motion completion is synchronized with process_active instead.
Arguments
Argument Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
pConfigdigitalweldinginterfaceprocess2 |
Digital welding interface “Process 2” settings structure |
Structure Fields
Field Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
_bEnable |
unsigned char |
Enable flag |
|
_nDataType |
unsigned char |
Data type: |
|
_nPositionalNumber |
unsigned char |
Data digit representation |
|
_fMinData |
float |
Minimum signal data range |
|
_fMaxData |
float |
Maximum signal data range |
|
_nByteOffset |
unsigned char |
Byte index in EtherNet/IP M2R communication map (1-255) |
|
_nBitOffset |
unsigned char |
Bit index (1-255) |
|
_nCommDataType |
unsigned char |
Communication data size |
|
_nMaxDigitSize |
unsigned char |
Effective bit width of signal data |
Return
Value |
Description |
|---|---|
0 |
Error |
1 |
Success |
Example
// Create and assign EIP M2R Process2 configuration
CONFIG_DIGITAL_WELDING_INTERFACE_PROCESS2 processData;
processData._bEnable = 1; // Enable signal mapping
processData._bDataType = 0; // On/Off type
processData._bPositionalNumber = 1; // Data digit position
processData._fMinData = 0.0; // Minimum data (OFF)
processData._fMaxData = 1.0; // Maximum data (ON)
processData._bByteOffset = 5; // Located at byte index 5
processData._bBitOffset = 2; // Bit offset 2
processData._bCommDataType = 3; // 8-bit
processData._bMaxDigitSize = 8; // Bit width = 8
// Example signal interlocks
processData._bCurrentFlow = 1; // Welding current flowing signal
processData._bProcessActive = 1; // Active process flag
processData._bArcReady = 1; // Welder ready signal
processData._bTorchReady = 1; // Torch safety interlock
bool result = Drfl.app_weld_set_interface_eip_m2r_process2(processData);
This example defines EtherNet/IP M2R Process 2 communication mapping, assigning welder-to-robot feedback signals (e.g., current flow, process active, and torch ready). These signals are used to synchronize the robot’s motion sequence with the welder’s operating state during real-time execution.