Skip to content

Welding Process

Welding Equipment

When setting welding equipment, send:

0x4001 WELDEQUIPMENT_SET

json
{
  "basic_functions": {
    "arc_detection_time": 1.3,
    "arc_depletion_detection_time": 1.3,
    "arc_detection_ensure_time": 1.3,
    "pre_give_gas_time": 1.5,
    "close_time": 1.9,
    "weld_interruption_detection": 1,
    "arc_fly": 1
  },
  "micro_adjustment": {
    "single_adjustment_current": 3,
    "single_adjustment_voltage": 4,
    "single_adjustment_speed": 5,
    "swing_weld_frequency": 6,
    "swing_weld_range": 1.1
  },
  "restart": {
    "restart_times": 1,
    "restart_distance": 2,
    "restart_speed": 3,
    "re_arc_times": 4,
    "restart_enable": false,
    "re_arc_enable": false,
    "restart_mode": 0
  },
  "antiCollision": {
    "enable": false,
    "inputPort": 1,
    "inputValue": 1,
    "stopTime": 80,
    "outputPort": 2,
    "outputValue": 1,
    "shieldFlag": false,
    "shieldTime": 30
  },
  "other": {
    "break_back_time": 1.2,
    "weld_finish_time": 1.3,
    "break_back_enable": false,
    "weld_finish_function": true,
    "simulation_set_zero": false
  },
  "collisionButtonFlag": {
    "error_enable_switch": true
  }
}

basic_functions Parameter Description

Parameter NameTypeDescription
arc_detection_timedoubleArc start detection time
arc_depletion_detection_timedoubleArc depletion detection time
arc_detection_ensure_timedoubleArc start confirmation detection time
pre_give_gas_timedoublePre-gas flow time
close_timedoubleDelayed gas close time
weld_interruption_detectionintWelding interruption detection
arc_flyintFlying arc start

micro_adjustment Parameter Description

Parameter NameTypeDescription
single_adjustment_currentintSingle adjustment amount for welding current
single_adjustment_voltageintSingle adjustment amount for welding voltage
single_adjustment_speedintSingle adjustment amount for welding speed
swing_weld_frequencyintSingle adjustment amount for swing welding frequency
swing_weld_rangedoubleSingle adjustment amount for swing welding amplitude

restart Parameter Description

Parameter NameTypeDescription
restart_timesintRestart times
restart_distanceintRestart distance
restart_speedintRestart speed
re_arc_timesintRe-arc times
restart_enableboolRestart enable
re_arc_enableboolRe-arc enable
restart_modeintRestart mode: 0-Auto restart, 1-Semi-auto restart, 2-Stop

antiCollision Parameter Description

Parameter NameTypeDescription
enableboolAnti-collision function enable
inputPortintAnti-collision IO port
inputValueintAnti-collision trigger level
stopTimeintAnti-collision rapid stop time
outputPortintAnti-collision output indicator port
outputValueintAnti-collision output indicator level
shieldFlagboolAnti-collision shield enable
shieldTimeintShield time

other Parameter Description

Parameter NameTypeDescription
break_back_timedoubleArc break retract time
weld_finish_timedoubleWelding finish retract time
break_back_enableboolArc break retract enable
weld_finish_functionboolWelding finish retract function
simulation_set_zeroboolArc extinction analog zeroing function

collisionButtonFlag Parameter Description

Parameter NameTypeDescription
error_enable_switchboolDrag jog mode toggle switch

When querying welding equipment, send:

0x4002 WELDEQUIPMENT_INQUIRE

data: None

When receiving welding equipment query, return:

0x4003 WELDEQUIPMENT_RESPOND

Same as 0x4001


Set Current-Voltage Matching

When setting current-voltage matching, send:

0x4004 CURVOLMATCH_SET

json
{
  "current_control": {
    "set_voltage": [1, 2, 3, 4, 5, 6, 7, 8],
    "actual_current": [1, 2, 3, 4, 5, 6, 7, 8]
  },
  "voltage_control": {
    "set_voltage": [1, 2, 3, 4, 5, 6, 7, 8],
    "actual_voltage": [1, 2, 3, 4, 5, 6, 7, 8]
  },
  "robot": 1
}

Parameter Description

Parameter NameTypeDescription
current_control.set_voltagearraySet current
current_control.actual_currentarrayActual current
voltage_control.set_voltagearraySet voltage
voltage_control.actual_voltagearrayActual voltage
robotintRobot number

When querying current-voltage matching, send:

0x4005 CURVOLMATCH_INQUIRE

data: None

When receiving current-voltage matching query, return:

0x4006 CURVOLMATCH_RESPOND

json
{
  "current_control": {
    "set_voltage": [1, 2, 3, 4, 5, 6, 7, 8],
    "actual_current": [1, 2, 3, 4, 5, 6, 7, 8]
  },
  "voltage_control": {
    "set_voltage": [1, 2, 3, 4, 5, 6, 7, 8],
    "actual_voltage": [1, 2, 3, 4, 5, 6, 7, 8]
  },
  "IO": {
    "AO_setcurrent": 0,
    "AO_setvoltage": 0
  },
  "robot": 1
}

Return Parameter Description

Parameter NameTypeDescription
current_control.set_voltagearraySet current
current_control.actual_currentarrayActual current
voltage_control.set_voltagearraySet voltage
voltage_control.actual_voltagearrayActual voltage
IO.AO_setcurrentintCurrent output port
IO.AO_setvoltageintVoltage output port
robotintRobot number

Welding Parameters

When setting welding parameters, send:

0x4007 WELDPARAMETER_SET

json
{
  "num": 1,
  "notes": "Example",
  "arcoff_parameters": {
    "arcoff_voltage": 1.1,
    "arcoff_current": 1.1,
    "arcoff_time": 1.1,
    "ramp_time": 1.1,
    "ramp_distance": 1.1,
    "ramp_enable": true,
    "ramp_mode": 1
  },
  "weld_parameters": {
    "weld_current": 1.1,
    "weld_voltage": 1.1
  },
  "arcon_parameters": {
    "arcon_current": 1.1,
    "arcon_voltage": 1.1,
    "arcon_time": 1.1,
    "arcon_ramp_time": 1.1,
    "arcon_ramp_distance": 1.1,
    "arcon_ramp_enable": true,
    "arcon_ramp_mode": 1,
    "arcon_use_param": true,
    "arcoff_use_param": true
  }
}

Parameter Description

Parameter NameTypeDescription
numintParameter number, starting from 1
notesstringNotes

arcoff_parameters (Arc End Parameters)

Parameter NameTypeDescription
arcoff_voltagedoubleArc end voltage
arcoff_currentdoubleArc end current
arcoff_timedoubleArc end time
ramp_timedoubleRamp time
ramp_distancedoubleRamp distance
ramp_enableboolRamp enable
ramp_modeintArc end ramp mode: 0-Time ramp, 1-Distance ramp

weld_parameters (Welding Parameters)

Parameter NameTypeDescription
weld_currentdoubleWelding current
weld_voltagedoubleWelding voltage

arcon_parameters (Arc Start Parameters)

Parameter NameTypeDescription
arcon_currentdoubleArc start current
arcon_voltagedoubleArc start voltage
arcon_timedoubleArc start time
arcon_ramp_timedoubleRamp time
arcon_ramp_distancedoubleRamp distance
arcon_ramp_enableboolArc start ramp enable
arcon_ramp_modeintArc start ramp mode: 0-Time ramp, 1-Distance ramp
arcon_use_paramboolArc start parameter enable
arcoff_use_paramboolArc end parameter enable

When querying welding parameters, send:

0x4008 WELDPARAMETER_INQUIRE

json
{
  "num": 1,
  "robot": 1
}

When receiving welding parameter query, return:

0x4009 WELDPARAMETER_RESPOND

Same as 0x4007


Swing Welding Parameters

When setting swing welding parameters, send:

0x400B WEAVPARAMETER_SET

json
{
  "num": 1,
  "parameter": {
    "horizontal_angle": 5.0,
    "init_direction": 1,
    "isMove": 1,
    "left_standing_time": 4.0,
    "note": "AA",
    "right_standing_time": 3.0,
    "vertical_angle": 6.0,
    "weaving_ampli": 2.0,
    "weaving_freq": 1.0,
    "weaving_type": 1
  }
}

Parameter Description

Parameter NameTypeDescription
numintParameter number, starting from 1

parameter

Parameter NameTypeDescription
horizontal_angledoubleHorizontal deflection angle: -180 ~ +180
init_directionintInitial direction: 0-Positive (+1), 1-Negative (-1)
isMoveintMovement mode: 0-Move, 1-Stay
left_standing_timedoubleLeft dwell time
notestringNotes
right_standing_timedoubleRight dwell time
vertical_angledoubleVertical deflection angle: -180 ~ +180
weaving_amplidoubleWeaving amplitude: 0-50
weaving_freqdoubleWeaving frequency
weaving_typeintWeaving type: 0-Sine, 1-Zigzag, 2-Circular, 3-External axis fixed-point

When querying swing welding parameters, send:

0x400C WEAVPARAMETER_INQUIRE

json
{
  "num": 1
}

When receiving swing welding parameter query, return:

0x400D WEAVPARAMETER_RESPOND

Same as 0x400B


Current-Voltage Matching Actual Values

Set actual current-voltage matching parameters; modification is sent immediately, no save needed:

0x400E WELDFACTCURVOL_SET

json
{
  "type": 0,
  "value": 4.13
}

Parameter Description

Parameter NameTypeDescription
typeint0-Current control matching, 2-Voltage control matching
valuedoubleValue

Controller returns:

0x400F WELDFACTCURVOL_RESPOND

json
{
  "result": 1,
  "robot": 1
}

Return Parameter Description

Parameter NameTypeDescription
resultint1-Set success, 0-Set failure
robotintRobot number

Start analog matching: Entering the current-voltage matching screen sends true, exiting sends false

0x4010 WELD_CURVOLMATCH_START

json
{
  "start": true
}

Parameter Description

Parameter NameTypeDescription
startbooltrue-Start, false-End

Welding IO

When setting welding IO ports, send:

0x4011 WELDIOPORT_SET

json
{
  "Ain": {
    "Voltage": 2,
    "electric": 1
  },
  "Aout": {
    "given_electric_current": 1,
    "given_setvoltage": 2
  },
  "Din": {
    "arc_success": 1,
    "seek_success": 2
  },
  "Dout": {
    "arc_signal": 1,
    "gas_detection": 4,
    "positioning_mode": 5,
    "wire_feed": 2,
    "wire_feed_back": 3
  }
}

Ain (Analog Input)

Parameter NameTypeDescription
VoltageintWelding voltage
electricintWelding current

Aout (Analog Output)

Parameter NameTypeDescription
given_electric_currentintGiven current signal
given_setvoltageintGiven voltage signal

Din (Digital Input)

Parameter NameTypeDescription
arc_successintArc start success
seek_successintPositioning success

Dout (Digital Output)

Parameter NameTypeDescription
arc_signalintArc start success signal
gas_detectionintGas detection signal
positioning_modeintPositioning mode
wire_feedintJog wire feed signal
wire_feed_backintReverse wire feed signal

When querying welding IO ports, send:

0x4012 WELDIOPORT_INQUIRE

json
{}

When controller receives welding IO port query, return:

0x4013 WELDIOPORT_RESPOND

data: Same as 0x4011

When querying welding status, send:

0x4015 WELDMONITOR_INQUIRE

data: None

When controller receives welding status query, return:

0x4016 WELDSTATE_RESPOND

json
{
  "antiCollision": {
    "shieldFlag": true
  },
  "weldEnabled": true,
  "spotWeldEnabled": true,
  "feedWire": true,
  "aspiration": true,
  "returnWire": true,
  "pistolSwitch": 0,
  "arcingSuccess": 1,
  "handWireFeed": -1,
  "weldCurrent": 1.0,
  "weldVoltage": 2.0,
  "weldRunTime": 3.3,
  "weldRunDutyRatio": 4.4,
  "robot": 1
}

Parameter Description

Parameter NameTypeDescription
antiCollision.shieldFlagboolAnti-collision shield
weldEnabledboolWelding enable
spotWeldEnabledboolSpot welding enable
feedWireboolWire feed
aspirationboolGas flow
returnWireboolWire retract
pistolSwitchintWelding torch switch status: 0-Low (Red), 1-High (Green), -1-None (Gray)
arcingSuccessintArc start success
handWireFeedintManual wire feed
weldCurrentdoubleWelding current
weldVoltagedoubleWelding voltage
weldRunTimedoubleWelding time
weldRunDutyRatiodoubleWelding duty cycle
robotintRobot number

Spot Welding Parameters

Spot welding parameter setting:

0x4017 WELD_SHOTPARM_SET

json
{
  "spotWeldCurrent": 0,
  "spotWeldVoltage": 0,
  "spotWeldMaxTime": 0
}

Parameter Description

Parameter NameTypeDescription
spotWeldCurrentdoubleSpot welding current
spotWeldVoltagedoubleSpot welding voltage
spotWeldMaxTimedoubleSpot welding max time: 1-10

Direct Current-Voltage Setting

0x4018 WELD_CURVOL_DIRECTSET

json
{
  "type": 1,
  "value": 1
}

Parameter Description

Parameter NameTypeDescription
typeint1-Set current, 2-Set voltage
valuedoubleValue

Set Welder Mode

Monitor welder mode setting:

0x401A WELD_HANDOP_SET

json
{
  "type": 1,
  "value": 0,
  "robot": 1
}

Parameter Description

Parameter NameTypeDescription
typeint1-Welding enable, 2-Manual arc start, 3-Manual spot weld, 4-Wire feed, 5-Wire retract, 6-Gas flow, 7-Fault reset
valueintBool type
robotintRobot number

Welder parameter query:

0x401B WELD_HANDOP_INQUIRE

data: None

Welder parameter data return:

0x401C WELD_HANDOP_RESPOND

json
{
  "weldEnabled": true,
  "spotWeldEnabled": true,
  "spotWeldCurrent": 33.3,
  "spotWeldVoltage": -20.2,
  "spotWeldMaxTime": 0.5,
  "newCurrent": 33.3,
  "newVoltage": -20.2,
  "feedWire": true,
  "returnWire": true,
  "aspiration": true
}

Parameter Description

Parameter NameTypeDescription
weldEnabledboolWelding enable
spotWeldEnabledboolSpot welding enable
spotWeldCurrentdoubleSpot welding current
spotWeldVoltagedoubleSpot welding voltage
spotWeldMaxTimedoubleSpot welding max time: 0-1 second
newCurrentdoubleSet current
newVoltagedoubleSet voltage
feedWireboolWire feed
returnWireboolWire retract
aspirationboolGas flow

Welder Selection Setting

0x401D WELD_MACHINE_CHOOSE_SET

json
{
  "controlMode": 1,
  "monufactor": "Ruilin",
  "weldingMode": 1,
  "commMode": "ModBus RTU",
  "slaveIP": "192.168.1.15",
  "slaveid": 1,
  "port": 21,
  "baudRate": 115200,
  "RILAND": {
    "materialWireDiameterGasSelect": 1
  }
}

Parameter Description

Parameter NameTypeDescription
controlModeint0-Analog control, 1-Digital control
monufactorstringWelder manufacturer
weldingModeint0-Separate, 1-Unified
commModestringCommunication mode: CAN, ModBus RTU, Modbus TCP, EtherCAT
slaveIPstringSlave IP
slaveidintSlave ID
portintPort number
baudRateintBaud rate
RILAND.materialWireDiameterGasSelectintMaterial/Wire diameter/Gas selection

Query:

0x401E WELD_MACHINE_CHOOSE_INQUIRE

data: None

Return:

0x401F WELD_MACHINE_CHOOSE_RESPOND

json
{
  "controlMode": 0,
  "monufactor": "Megmeet",
  "weldingMode": 0,
  "commMode": "CAN",
  "slaveIP": "192.168.1.14",
  "slaveid": 1,
  "port": 2,
  "baudRate": 115200,
  "monufactorList": ["Megmeet", "MEGMEET", "Huanyan"],
  "RILAND": {
    "materialWireDiameterGasSelect": 1
  }
}

Return Parameter Description

Parameter NameTypeDescription
controlModeint0-Analog control, 1-Digital control
monufactorstringWelder manufacturer
weldingModeint0-Separate, 1-Unified
commModestringCommunication mode
slaveIPstringSlave IP
slaveidintSlave ID
portintPort number
baudRateintBaud rate
monufactorListarrayWelder manufacturer list
RILAND.materialWireDiameterGasSelectintMaterial/Wire diameter/Gas selection

Welder Communication Status Query

0x4022 WELD_MACHINE_CONNECT_STATUS_INQUIRE

data: None

Return:

0x4023 WELD_MACHINE_CONNECT_STATUS_RESPOND

json
{
  "welder": [
    {
      "status": 0
    }
  ]
}

Parameter Description

Parameter NameTypeDescription
welder[].statusintWelder communication status

Welding Parameter and Swing Welding Parameter Notes Query

0x4024 WELDPARAMETERNOTES_INQUIRE

json
{}

Return:

0x4025 WELDPARAMETERNOTES_RESPOND

json
{
  "weldNotes": ["112", "223", "", ""],
  "weavParameterNotes": ["112", "223", "", ""]
}

Return Parameter Description

Parameter NameTypeDescription
weldNotesarrayWelding parameter notes
weavParameterNotesarraySwing welding parameter notes

Welding Micro Adjustment Query

0x4029 WELDADJUSTMENT_INQUIRE

json
{}

Return:

0x402A WELDADJUSTMENT_RESPOND

json
{
  "weav": {
    "left_stay_time": [0, 1.0],
    "right_stay_time": [0, 1.0],
    "swing_amplitude": [0, 1.0],
    "swing_frequency": [0, 1.0]
  },
  "weld": {
    "weld_current": [0.0, 0.0],
    "weld_voltage": [0.0, 0.0]
  }
}

Return Parameter Description

Parameter NameTypeDescription
weav.left_stay_timearrayLeft dwell time: [min, max]
weav.right_stay_timearrayRight dwell time: [min, max]
weav.swing_amplitudearraySwing welding amplitude: [min, max]
weav.swing_frequencyarraySwing welding frequency: [min, max]
weld.weld_currentarrayWelding current: [min, max]
weld.weld_voltagearrayWelding voltage: [min, max]

Welding Micro Adjustment

Note: Used in run mode; parameters need to be set in welding equipment - micro adjustment

0x402B WELDADJUSTMENT_SET

json
{
  "name": "weld_current",
  "type": 0
}

Parameter Description

Parameter NameTypeDescription
namestringParameter name: weld_current-Welding current, weld_voltage-Welding voltage
typeint0-Increase, 1-Decrease, 2-Save parameters to config file

Cylindrical Intersection Welding Calibration Workpiece Coordinate System

Coordinate calibration setting:

0x4051 CYLDINTERSEC_WELDING_CALIBRATION_SET

json
{
  "workPieceNum": 1
}

Parameter Description

Parameter NameTypeDescription
workPieceNumintWorkpiece number

Cylindrical intersection click to calibrate this point:

0x4052 CYLDINTERSEC_WELDING_CALIBRATION_INQUIRE

json
{
  "workPieceNum": 1,
  "pointNum": 0
}

Parameter Description

Parameter NameTypeDescription
workPieceNumintWorkpiece number
pointNumintPoint number: 0~5

Response:

0x4053 CYLDINTERSEC_WELDING_CALIBRATION_RESPOND

json
{
  "workPieceNum": 1,
  "pointNum": 0,
  "pos": [0, 0, 0, 0, 0, 0]
}

Return Parameter Description

Parameter NameTypeDescription
workPieceNumintWorkpiece number
pointNumintPoint number: 0~5
posarrayCurrent calibrated point

Calibration result return:

0x4054 CYLDINTERSEC_WELDING_CALIBRATION_RESULT

json
{
  "result": true,
  "workPieceNum": 1,
  "cylinderIntersectLineParam": {
    "R": 7.873846098073,
    "alpha": 39.072395710472,
    "e": 9.866955106008,
    "r": 2.527536958062
  },
  "WorkPieceCoord": [459.926870686929, -2.5264800349, 632.105073382516, -0.000000248216, 0.000000069098, 2.768560904971]
}

Return Parameter Description

Parameter NameTypeDescription
resultboolCalibration result
workPieceNumintWorkpiece number
cylinderIntersectLineParam.RdoubleCylindrical intersection parameter R
cylinderIntersectLineParam.alphadoubleCylindrical intersection parameter alpha
cylinderIntersectLineParam.edoubleCylindrical intersection parameter e
cylinderIntersectLineParam.rdoubleCylindrical intersection parameter r
WorkPieceCoordarrayWorkpiece coordinate system

Cylindrical Intersection Workpiece Parameter Setting

0x4055 CYLDINTERSEC_WELDING_PARAMETER_SET

json
{
  "workPieceNum": 1,
  "cylinderIntersectLineParam": {
    "R": 0,
    "r": 0,
    "e": 0,
    "alpha": 0
  },
  "WorkPieceCoord": [0, 0, 0, 0, 0, 0]
}

Parameter Description

Parameter NameTypeDescription
workPieceNumintWorkpiece number
cylinderIntersectLineParam.RdoubleCylindrical intersection parameter R
cylinderIntersectLineParam.rdoubleCylindrical intersection parameter r
cylinderIntersectLineParam.edoubleCylindrical intersection parameter e
cylinderIntersectLineParam.alphadoubleCylindrical intersection parameter alpha
WorkPieceCoordarrayWorkpiece coordinate system

Cylindrical intersection workpiece parameter query:

0x4056 CYLDINTERSEC_WELDING_PARAMETER_INQUIRE

json
{
  "workPieceNum": 1
}

Cylindrical intersection workpiece parameter response:

0x4057 CYLDINTERSEC_WELDING_PARAMETER_RESPOND

Same as: 0x4055


Cylindrical Intersection Welding Gun Parameter Setting

0x4061 CYLDINTERSEC_WELDINGGUN_PARAMETER_SET

json
{
  "WeldingGunParam": {
    "alpha": 1.0,
    "beta": 2.0,
    "gama": 3.0,
    "pos_hf_hq": [4.0, 5.0, 6.0]
  },
  "startAngle": 7.0,
  "totalAngle": 8.0,
  "workPieceNum": 1
}

Parameter Description

Parameter NameTypeDescription
WeldingGunParam.alphadoubleWelding gun angle alpha
WeldingGunParam.betadoubleWelding gun angle beta
WeldingGunParam.gamadoubleWelding gun angle gama
WeldingGunParam.pos_hf_hqarrayWelding gun position
startAngledoubleStart angle
totalAngledoubleTotal angle
workPieceNumintWorkpiece number

Cylindrical intersection welding gun parameter query:

0x4062 CYLDINTERSEC_WELDINGGUN_PARAMETER_INQUIRE

json
{
  "workPieceNum": 1
}

Cylindrical intersection welding gun parameter response:

0x4063 CYLDINTERSEC_WELDINGGUN_PARAMETER_RESPOND

Same as: 0x4061


Cylindrical Intersection Process Flag Setting

Flag setting to distinguish cylindrical intersection process with/without positioner:

0x4065 CYLDINTERSEC_WITHSYNCPOSFLAG_SET

json
{
  "workPieceNum": 1,
  "withSyncPosFlag": 1
}

Parameter Description

Parameter NameTypeDescription
workPieceNumintProcess number
withSyncPosFlagint0-Without positioner, 1-With positioner

Coordinate calibration query:

0x4066 CYLDINTERSEC_WITHSYNCPOSFLAG_INQUIRE

json
{
  "workPieceNum": 1
}

Response:

0x4067 CYLDINTERSEC_WITHSYNCPOSFLAG_RESPOND

json
{
  "workPieceNum": 1,
  "withSyncPosFlag": 1
}

Return Parameter Description

Parameter NameTypeDescription
workPieceNumintProcess number
withSyncPosFlagint0-Without positioner, 1-With positioner