Skip to main content
Skip table of contents

app_weld_weave_cond_zigzag

Features

This function sets the zigzag weaving conditions. These conditions are only valid within the welding section defined from weld activation (app_weld_enable_analog()/app_weld_enable_digital()) to deactivation (app_weld_disable_analog()/app_weld_disable_digital()), and an error will occur if executed outside of this section.

Weaving conditions are defined in the weave coordinate system, where the direction of the weld path is the weave x-axis, and the direction of the vector product (cross-product) of the weave x-axis and the TCP-z direction is the weave y-axis. Refer to the figure below for the coordinate system and weave setting parameters.

Only one weaving condition is allowed within a single welding section. During welding, you can adjust the offset or weaving width using the app_weld_adj_welding_cond_analog()/app_weld_set_weld_cond_digital() command, or adjust the (voltage/current/speed and) offset from the welding condition adjustment popup on the teaching pendant. However, adjusting the welding conditions from the teaching pendant is only possible when the welding condition adjustment state is RESET (i.e., the welding condition setting specified by app_weld_set_weld_cond_analog()/app_weld_set_weld_cond_digital()).

Arguments

Argument Name

Data Type

Default Value

Description

fOffsetY

float

0.0

Offset in the Y direction of the weave coordinate system (mm)

fOffsetZ

float

0.0

Offset in the Z direction of the weave coordinate system (mm)

fGradient

float

0.0

Rotation angle of the weaving plane with respect to the X-axis of the weave coordinate system (deg)

fWeavingWidth

float

5.0

Weaving width (mm)

fWeavingCycle

float

0.7

Weaving cycle (sec)

Return

Value

Description

0

Error

1

Success

Example

CODE
float fOffsetY = 0.0;
float fOffsetZ = 0.0;
float fGradient = 0.0;
float fWeavingWidth = 5.0;
float fWeavingCycle = 0.7;

Drfl.app_weld_weave_cond_zigzag(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.