app_weld_set_weld_cond_digital
Features
This function sets the welding conditions for a communication-based welder. These conditions are only valid within the welding section defined from weld activation (app_weld_enable_digital()) to deactivation (app_weld_disable_digital()), and executing it outside this section will result in an error.
The items that can be set as welding conditions are limited to those for which communication interface settings with the welder have been completed using the following commands:
app_weld_set_interface_eip_r2m_mode()app_weld_set_interface_eip_r2m_condition()app_weld_set_interface_eip_r2m_option()
Only one welding condition is allowed within a single welding section. During welding, you can adjust these conditions using the app_weld_adj_welding_cond_digital() command, or adjust the voltage correction/dynamic factor adjustment/feeding speed/speed (and weave offset) from the welding condition adjustment popup on the teaching pendant. However, adjusting welding conditions from the teaching pendant is only possible when the welding condition adjustment state is RESET (that is, when using the welding condition settings specified by app_weld_set_weld_cond_digital()).
Note:
Voltage correction: Adjusts the arc length.
Dynamic factor adjustment: Adjusts the arc characteristics.
Arguments
Argument Name | Data Type | Default Value | Description |
|---|---|---|---|
|
| None | Digital welding condition settings structure |
Return
Value | Description |
|---|---|
0 | Error |
1 | Success |
Example
CONFIG_DIGITAL_WELDING_ADJUST adjustData;
adjustData._bRealTime = 1; // Real-time adjustment status (1: Real-time)
adjustData._bResetFlag = 0; // Reset flag (0: Current value)
adjustData._fTargetVel = 110.0; // Target speed setting
adjustData._fOffsetY = 12.0; // Weave Y offset setting
adjustData._fOffsetZ = 6.0; // Weave Z offset setting
adjustData._fWidthRate = 1.2; // Weave width ratio setting
adjustData._fDynamicCor = 0.8; // Dynamic correction value setting
adjustData._fVoltageCor = 22.0; // Voltage correction value setting
adjustData._nJobNumber = 1; // Job number setting
adjustData._nSynergicID = 1; // Synergic ID setting
// Call the app_weld_adj_weld_cond_digital function
bool result = Drfl.app_weld_adj_weld_cond_digital(adjustData);