Skip to main content
Skip table of contents

app_weld_weave_cond_sinusoidal

Functions

Setting the sine weaving conditions. The weaving conditions are valid only within the welding section defined from the activation of the welding function (app_weld_enable_analog()/app_weld_enable_digital()) to its deactivation (app_weld_disable_analog()/app_weld_disable_digital()), and an error will occur if executed outside this section. The weaving conditions are defined in the weaving coordinate system, where the direction of the welding path is the weaving x-axis, and the direction obtained by the cross-product of the weaving x-axis and the TCP z-direction is the weaving y-axis. Please refer to the figure below for the coordinate system and weaving setting parameters. Only one weaving condition is allowed within a single welding section, and during welding, you can adjust the offset or weaving width using the app_weld_adj_welding_cond_analog()/app_weld_set_weld_cond_digital() commands, or adjust the offset (and voltage/current/speed) from the welding condition adjustment popup on the teaching pendant. However, adjustments to the welding conditions from the teaching pendant are only possible when the welding condition adjustment state through commands is in the RESET state (i.e., the welding condition set by app_weld_set_weld_cond_analog()/app_weld_set_weld_cond_digital()).

Arguments

Field Name

Data Type

Default Value

Description

fOffsetY

float

0.0

Y-direction Offeset (in mm) in weaving coordinate

fOffsetZ

float

0.0

Z-direction Offeset (in mm) in weaving coordinate

fGradient

float

0.0

The rotation angle of the weaving plane based on the X-axis of the weaving coordinate system.(deg)

fWeavingWidth

float

3.0

Weaving Width (mm)

fWeavingCycle

float

0.6

Weaving Period (sec)

Return

Value

Description

0

Error

1

Success

Example

CODE
float fOffsetY = 0.0;
float fOffsetZ = 0.0;
float fGradient = 0.0;
float fWeavingWidth= 3.0;
float fWeavingCycle= 0.6;

Drfl.app_weld_weave_cond_sinusoidal(fOffsetY, fOffsetZ, fGradient, fWeavingWidth, fWeavingCycle);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.