top of page

14.62. Setting the end of the welding voltage gradient

New in version C#SDK-V1.1.3: Web-3.8.2

/**
* @brief Sets the weld voltage gradient to start.
* @param [in] IOType Control type; 0-control box IO; 1-digital communication protocol (UDP); 2-digital communication protocol (ModbusTCP)
* @param [in] voltageStart Start welding voltage (V)
* @param [in] voltageEnd End weld voltage (V)
* @param [in] AOIndex control box AO port number (0-1)
* @param [in] blend Whether smooth or not 0-not smooth; 1-smooth
* @return Error code
*/
int WeldingSetVoltageGradualChangeStart(int IOType, double voltageStart, double voltageEnd, int AOIndex, int blend);

14.63. Set weld voltage gradual change end

New in version C#SDK-V1.1.3: Web-3.8.2

/**
* @brief Setting the end of the welding voltage gradient.
* @return Error Code
*/
int WeldingSetVoltageGradualChangeEnd();

14.64. Sets the weld current gradual change end

New in version C#SDK-V1.1.3: Web-3.8.2

/**
* @brief Setting the weld current gradient to start.
* @param [in] IOType Control type; 0-control box IO; 1-digital communication protocol (UDP); 2-digital communication protocol (ModbusTCP)
* @param [in] voltageStart Start welding current (A)
* @param [in] voltageEnd End weld current (A)
* @param [in] AOIndex Control box AO port number (0-1)
* @param [in] blend Whether smooth or not 0-not smooth; 1-smooth
* @return Error code
*/
int WeldingSetCurrentGradualChangeStart(int IOType, double currentStart, double currentEnd, int AOIndex, int blend);

14.65. Set weld current gradual change end

New in version C#SDK-V1.1.3: Web-3.8.2

/**
* @brief Setting the end of the welding current gradient.
* @return Error code
*/
int WeldingSetCurrentGradualChangeEnd();

14.66. Robot Welding Current Voltage Gradual Change Code Example

New in version C#SDK-V1.1.3: Web-3.8.2

  private void btnweld_Click(object sender, EventArgs e)
  {
     DescPose startdescPose = new DescPose(-319.303, -240.689, 116.379, -175.879, -0.337, 148.239);
     JointPos startjointPos = new JointPos(20.474, -103.554, 126.774, -116.682, -87.746, -37.709);

     DescPose enddescPose = new DescPose(-454.166, -327.159, 62.217, 177.199, -2.276, 154.955);
     JointPos endjointPos = new JointPos(27.176, -74.423, 104.557, -119.315, -93.514, -37.698);

     DescPose safedescPose = new DescPose(-375.533, -543.319, 19.798, 177.486, -2.489, 175.825);
     JointPos safejointPos = new JointPos(48.074, -59.714, 89.955, -119.777, -93.508, -37.683);

     ExaxisPos exaxisPos = new ExaxisPos(0, 0, 0, 0);
     DescPose offdese = new DescPose(0, 0, 0, 0, 0, 0);

     robot.WeldingSetCurrentRelation(0, 495, 1, 10, 0);
     robot.WeldingSetVoltageRelation(10, 45, 1, 10, 1);

     robot.WeldingSetVoltage(0, 25, 1, 0);//
     robot.WeldingSetCurrent(0, 260, 0, 0);//

     robot.MoveJ(safejointPos, safedescPose, 1, 0, 5, 100, 100, exaxisPos, -1, 0, offdese);

     int rtn = robot.WeldingSetCurrentGradualChangeStart(0, 260, 220, 0, 0);
     Console.WriteLine($"WeldingSetCurrentGradualChangeStart rtn is {rtn}");
     rtn = robot.WeldingSetVoltageGradualChangeStart(0, 25, 22, 1, 0);
     Console.WriteLine($"WeldingSetVoltageGradualChangeStart rtn is {rtn}");

     rtn = robot.ArcWeldTraceControl(1, 0, 1, 0.08, 5, 5, 300, 1, 0.06, 4, 4, 300, 1, 0, 4, 1, 10, 0, 0);
     Console.WriteLine($"ArcWeldTraceControl rtn is {rtn}");

     robot.MoveJ(startjointPos, startdescPose, 1, 0, 5, 100, 100, exaxisPos, -1, 0, offdese);

     robot.ARCStart(0, 0, 10000);
     robot.WeaveStart(0);
     rtn = robot.WeaveChangeStart(2, 1, 24, 36);
     Console.WriteLine($"WeaveChangeStart rtn is {rtn}");
     //robot.MoveL(endjointPos, enddescPose, 1, 0, 100, 100, 2, -1, exaxisPos, 0, 0, offdese);
     robot.ARCEnd(0, 0, 10000);
     robot.WeaveChangeEnd();
     robot.WeaveEnd(0);
     robot.ArcWeldTraceControl(0, 0, 1, 0.08, 5, 5, 300, 1, 0.06, 4, 4, 300, 1, 0, 4, 1, 10, 0, 0);
     robot.WeldingSetCurrentGradualChangeEnd();
     robot.WeldingSetVoltageGradualChangeEnd();
  }

14.67. Set custom weaving parameters

New in version C#SDK-V1.1.8: Web-3.8.6

/**
* @brief Set custom weaving parameters
* @param [in] id Custom weaving number: 0-2
* @param [in] pointNum Number of weaving points: 0-10
* @param [in] point Moving endpoint data x,y,z
* @param [in] stayTime Weaving dwell time in ms
* @param [in] frequency Weaving frequency in Hz
* @param [in] incStayType Wait mode: 0-cycle does not include wait time; 1-cycle includes wait time
* @param [in] stationary Weaving position wait: 0-continue motion during wait time; 1-position static during wait time
* @return  Error code
*/
public int CustomWeaveSetPara(int id, int pointNum, DescTran[] points, double[] stayTimes, double frequency, int incStayType, int stationary)

14.68. Get custom weaving parameters

New in version C#SDK-V1.1.8: Web-3.8.6

/**
* @brief Get custom weaving parameters
* @param [in] id Custom weaving number: 0-2
* @param [out] pointNum Number of weaving points: 0-10
* @param [out] point Moving endpoint data x,y,z
* @param [out] stayTime Weaving dwell time in ms
* @param [out] frequency Weaving frequency in Hz
* @param [out] incStayType Wait mode: 0-cycle does not include wait time; 1-cycle includes wait time
* @param [out] stationary Weaving position wait: 0-continue motion during wait time; 1-position static during wait time
* @return  Error code
*/
public int CustomWeaveGetPara(int id, ref int pointNum, ref DescTran[] points, ref double[] stayTimes, ref double frequency, ref int incStayType, ref int stationary)

14.69. Custom Weaving Parameters Code Example

New in version C#SDK-V1.1.8: Web-3.8.6

public void TestCoordMain5()
{
    DescTran[] points = new DescTran[10];
    for (int i = 0; i < 10; i++)
    {
        points[i] = new DescTran();
    }
    points[0].x = -3;
    points[0].y = -3;
    points[0].z = 0;
    points[1].x = -6;
    points[1].y = 0;
    points[1].z = 0;
    points[2].x = -3;
    points[2].y = 3;
    points[2].z = 0;
    points[3].x = 0;
    points[3].y = 0;
    points[3].z = 0;
    double[] stayTimes = new double[10] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
    int rtn = robot.CustomWeaveSetPara(2, 4, points, stayTimes, 1.000, 0, 0);
    Console.WriteLine($"CustomWeaveSetPara rtn is {rtn}");
    System.Threading.Thread.Sleep(1000);
    int pointNum = 0;
    double frequency = 0;
    int incStayType = 0;
    int stationary = 0;
    rtn = robot.CustomWeaveGetPara(2, ref pointNum, ref points, ref stayTimes, ref frequency, ref incStayType, ref stationary);
    Console.WriteLine($"pointNum is {pointNum}");
    for (int i = 0; i < pointNum; i++)
    {
        Console.WriteLine($"point {i}, point x y z {points[i].x:F6} {points[i].y:F6} {points[i].z:F6}");
    }
    Console.WriteLine($"fre is {frequency:F6}, stay is {incStayType} {stationary}");
    robot.WeaveSetPara(0, 9, 1.000000, 1, 5.000000, 6.000000, 5.000000, 50, 100, 100, 0, 1, 0.000000, 0.000000);
    DescPose desc_p1 = new DescPose(-288.650, 367.807, 288.404, 0.000, -0.001, 0.001);
    DescPose desc_p2 = new DescPose(-431.714, 367.815, 288.415, 0.001, 0.001, 0.000);
    DescPose desc_p3 = new DescPose(-348.666, 427.798, 288.404, -0.000, -0.000, 0.001);
    JointPos j1 = new JointPos(140.656,  -84.560,  -91.707, -93.734,  90.000,50.655 );
    JointPos j2 = new JointPos ( 149.873, -98.298, -77.599,  -94.103,  90.000,  59.873 );
    JointPos j3 = new JointPos (139.773,  -96.173, -80.014,  -93.814,  90.000,  49.772 );
    ExaxisPos epos = new ExaxisPos(0,0,0,0);
    DescPose offset_pos = new DescPose(0,0,0,0,0,0);
    robot.MoveJ(j1, desc_p1, 3, 0, 100, 100, 100, epos, -1, 0, offset_pos);
    robot.WeaveStart(0);
    robot.Circle(j3, desc_p3, 3, 0, 100, 100, epos, j2, desc_p2, 3, 0, 100, 100, epos, 10, -1, offset_pos, 100, -1, 0);
    robot.WeaveEnd(0);
    robot.MoveJ(j1, desc_p1, 3, 0, 100, 100, 100, epos, -1, 0, offset_pos);
    robot.WeaveStart(0);
    robot.MoveC(j3, desc_p3, 3, 0, 100, 100, epos, 0, offset_pos, j2, desc_p2, 3, 0, 100, 100, epos, 0, offset_pos, 10, -1, 0);
    robot.WeaveEnd(0);
    robot.MoveJ(j1, desc_p1, 3, 0, 100, 100, 100, epos, -1, 0, offset_pos);
    robot.WeaveStart(0);
    robot.MoveL(j2, desc_p2, 3, 0, 100, 100, 10, -1, epos, 0, 0, offset_pos, 0, 0, 10);
    robot.WeaveEnd(0);
}

robotic arm
FAIRINO ROBOTIC ARMS

Contact

Location: 10637 Scripps Summit Court,

San Diego, CA. 92131
Phone: (619) 333-FAIR
Email: hello@fairino.us

© 2023 Fairino US official site Proudly created By G2T

bottom of page