app_weld_adj_welding_cond_digital
Features
This function adjusts welding and weaving conditions during welding with a communication-based welder. It is typically used immediately before calling motion commands (movel(), movec(), moveb(), movesx()) when you want to change welding conditions for each section in a continuous path.
When you input adjustment parameters with this command, the corresponding welding and weaving conditions are adjusted. In this case, you cannot adjust the welding/weaving conditions in real-time in the welding monitoring information window of the TP (Teaching Pendant).
To return to the original conditions (welding/weaving conditions set by app_weld_set_weld_cond_digital() and app_weld_weave_cond_trapezoidal(), etc.) from the adjusted conditions, execute with flag_reset=1. When flag_reset=1 is set, it returns to the final condition adjusted in real-time from the TP (the ratio of the weaving width (wv_width_ratio), which cannot be adjusted in real-time, is changed to 1), and you can adjust the welding conditions in real-time from the TP.
Arguments
Argument Name | Data Type | Default Value | Description |
|---|---|---|---|
|
| None | Digital welding condition adjustment 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_welding_cond_digital function (corrected typo)
bool result = Drfl.app_weld_adj_welding_cond_digital(adjustData);