New in version python: SDK-v2.0.1
Prototype | SegmentWeldStart(startDesePos, endDesePos, startJPos, endJPos, weldLength, noWeldLength, weldIOType, arcNum, weldTimeout, isWeave. weaveNum,tool,user,vel=20.0, acc=0.0, ovl=100.0, blendR=-1.0,exaxis_pos=[0.0, 0.0, 0.0, 0.0], search=0, offset_flag=0, offset_pos=[0.0, 0.0, 0.0, 0.0, 0.0, 0.0]) |
Description | Segmented Welding Initiation |
Mandatory parameters |
|
Default parameters |
|
Return Value |
|
14.29. Sample robot segment welding code
from fairino import Robot
import time
# Establish a connection with the robot controller and return a robot object if the connection is successful
robot = Robot.RPC('192.168.58.2')
robot.WeldingSetCurrent(1, 230, 0, 0)
robot.WeldingSetVoltage(1, 24, 0, 1)
p1Desc = [228.879, -503.594, 453.984, -175.580, 8.293, 171.267]
p1Joint = [102.700, -85.333, 90.518, -102.365, -83.932, 22.134]
p2Desc = [-333.302, -435.580, 449.866, -174.997, 2.017, 109.815]
p2Joint = [41.862, -85.333, 90.526, -100.587, -90.014, 22.135]
exaxisPos = [0, 0, 0, 0]
offdese = [0, 0, 0, 0, 0, 0]
rtn = robot.SegmentWeldStart(p1Desc, p2Desc, p1Joint, p2Joint, 20, 20, 0, 0, 5000, 0, 0, 0, 0)
print(f"SegmentWeldStart rtn is {rtn}")
robot.CloseRPC()
14.30. Simulated swing start
New in version python: SDK-v2.0.5
Prototype | WeaveStartSim(weaveNum) |
Description | Simulation of swing start |
Mandatory parameters |
|
Default parameters | NULL |
Return Value | Error Code Success-0 Failure- errcode |
14.31. End of simulation swing
New in version python: SDK-v2.0.5
Prototype | WeaveEndSim(weaveNum) |
description | end of simulation swing |
Mandatory parameters |
|
Default parameters | NULL |
Return Value | Error Code Success-0 Failure- errcode |
14.32. Start trajectory detection warning (no movement)
New in version python: SDK-v2.0.5
Prototype | WeaveInspectStart(weaveNum) |
Description | Start Trajectory Detection Warning (No Movement) |
Mandatory parameters |
|
Default parameters | NULL |
Return Value | Error Code Success-0 Failure- errcode |
14.33. End trajectory detection warning (no movement)
New in version python: SDK-v2.0.5
Prototype | WeaveInspectEnd(weaveNum) |
Description | End Trajectory Detection Warning (No Movement) |
Mandatory parameters |
|
Default parameters | NULL |
Return Value | Error Code Success-0 Failure- errcode |
14.34. Wobble start
New in version python: SDK-v2.1.2
Prototype | WeaveChangeStart(weaveNum) |
Description | Wobble start |
Mandatory parameters |
|
Default parameters | NULL |
Return Value | Error Code Success-0 Failure- errcode |
14.35. Robot swing gradient welding code example
from fairino import Robot
# Establish a connection with the robot controller and return a robot object if the connection is successful
robot = Robot.RPC('192.168.58.2')
p1Desc = [228.879, -503.594, 453.984, -175.580, 8.293, 171.267]
p1Joint = [102.700, -85.333, 90.518, -102.365, -83.932, 22.134]
p2Desc = [-333.302, -435.580, 449.866, -174.997, 2.017, 109.815]
p2Joint = [41.862, -85.333, 90.526, -100.587, -90.014, 22.135]
exaxisPos = [0, 0, 0, 0]
offdese = [0, 0, 0, 0, 0, 0]
robot.MoveJ(joint_pos= p1Joint,tool= 13,user= 0)
robot.WeaveStartSim(0)
robot.MoveL(desc_pos= p2Desc,tool= 13,user= 0)
robot.WeaveEndSim(0)
robot.MoveJ(joint_pos= p1Joint,tool= 13,user= 0)
robot.WeaveInspectStart(0)
robot.MoveL(desc_pos= p2Desc,tool= 13,user= 0,)
robot.WeaveInspectEnd(0)
robot.WeldingSetVoltage(1, 19, 0, 0)
robot.WeldingSetCurrent(1, 190, 0, 0)
robot.MoveL(desc_pos= p1Desc,tool= 1,user= 1,vel= 100,acc= 100,ovl= 50)
robot.ARCStart(1, 0, 10000)
robot.ArcWeldTraceControl(1, 0, 1, 0.06, 5, 5, 60, 1, 0.06, 5, 5, 80, 0, 0, 4, 1, 10, 0, 0)
robot.WeaveStart(0)
robot.WeaveChangeStart(1, 0, 50, 30)
robot.MoveL(desc_pos= p2Desc,tool= 1,user= 1,vel= 100)
robot.WeaveChangeEnd()
robot.WeaveEnd(0)
robot.ArcWeldTraceControl(0, 0, 1, 0.06, 5, 5, 60, 1, 0.06, 5, 5, 80, 0, 0, 4, 1, 10, 0, 0)
robot.ARCEnd(1, 0, 10000)
robot.CloseRPC()
14.36. Wobble end
New in version python: SDK-v2.0.9-3.7.9
Prototype | WeaveChangeEnd() |
Description | Wobble end |
Mandatory parameters | NULL |
Default parameters | NULL |
Return Value | Error Code Success-0 Failure- errcode |
14.37. Extended IO-Configuration Welder Gas Detection Signal
New in version python: SDK-v2.0.5
Prototype | SetAirControlExtDoNum(DONum) |
Description | Extended IO-Configuration Welder Gas Detection Signal |
Mandatory parameters |
|
Default parameters | NULL |
Return Value | Error Code Success-0 Failure- errcode |
14.38. Extended IO-Configuration of welder arc start signal
New in version python: SDK-v2.0.5
Prototype | SetArcStartExtDoNum(DONum) |
Description | Extended IO-Configuration Welder Arc Start Signal |
Mandatory parameters |
|
Default parameters | NULL |
Return Value | Error Code Success-0 Failure- errcode |
14.39. Extended IO-Configuration of the welder’s reverse wire feed signal
New in version python: SDK-v2.0.5
Prototype | SetWireReverseFeedExtDoNum(DONum) |
Description | Extended IO-Configuration Welder Reverse Wire Feed Signal |
Mandatory parameters |
|
Default parameters | NULL |
Return Value | Error Code Success-0 Failure- errcode |
14.40. Extended IO-Configuration of the welder’s forward wire feed signal
New in version python: SDK-v2.0.5
Prototype | SetWireForwardFeedExtDoNum(DONum) |
Description | Extended IO-Configure welder positive wire feed signal |
Mandatory parameters |
|
Default parameters | NULL |
Return Value | Error Code Success-0 Failure- errcode |
14.41. Extended IO-Configuration of the welder’s arc start success signal
New in version python: SDK-v2.0.5
Prototype | SetArcDoneExtDiNum(DINum) |
Description | Extended IO-Configuration Welder Arc Start Success Signal |
Mandatory parameters |
|
Default parameters | NULL |
Return Value | Error Code Success-0 Failure- errcode |
14.42. Extended IO-Configuration Welder Ready Signal
New in version python: SDK-v2.0.5
Prototype | SetArcDoneExtDiNum(DINum) |
Description | Extended IO-Configuration Welder Ready Signal |
Mandatory parameters |
|
Default parameters | NULL |
Return Value | Error Code Success-0 Failure- errcode |
14.43. Extended IO-Configuration Weld Interrupt Recovery Signal
New in version python: SDK-v2.0.5
Prototype | SetExtDIWeldBreakOffRecover(reWeldDINum, abortWeldDINum) |
description | Extended IO-Configuration Weld Interrupt Recovery Signal |
Mandatory parameters |
|
Default parameters | NULL |
Return Value | Error Code Success-0 Failure- errcode |
14.44. Example code for setting up extended IO solder signals
from fairino import Robot
import time
# Establish a connection with the robot controller and return a robot object if the connection is successful
robot = Robot.RPC('192.168.58.2')
rtn = robot.SetArcStartExtDoNum(10)
print(f"SetArcStartExtDoNum rtn is {rtn}")
rtn = robot.SetAirControlExtDoNum(20)
print(f"SetAirControlExtDoNum rtn is {rtn}")
rtn = robot.SetWireForwardFeedExtDoNum(30)
print(f"SetWireForwardFeedExtDoNum rtn is {rtn}")
rtn = robot.SetWireReverseFeedExtDoNum(40)
rtn = robot.SetWeldReadyExtDiNum(50)
print(f"SetWeldReadyExtDiNum rtn is {rtn}")
rtn = robot.SetArcDoneExtDiNum(60)
print(f"SetArcDoneExtDiNum rtn is {rtn}")
rtn = robot.SetExtDIWeldBreakOffRecover(70, 80)
print(f"SetExtDIWeldBreakOffRecover rtn is {rtn}")
rtn = robot.SetWireSearchExtDIONum(0, 1)
print(f"SetWireSearchExtDIONum rtn is {rtn}")
robot.CloseRPC()
14.45. Arc tracking control
New in version python: SDK-v2.0.9-3.7.9
Prototype | ArcWeldTraceControl(flag,delaytime, isLeftRight, klr, tStartLr, stepMaxLr, sumMaxLr, isUpLow, kud, tStartUd, stepMaxUd, sumMaxUd. axisSelect, referenceType, referSampleStartUd, referSampleCountUd, referenceCurrent, offsetType, offsetParameter) |
Description | Arc tracking control |
Mandatory parameters |
|
Default parameters | NULL |
Return Value | Error Code Success-0 Failure- errcode |
14.46. Arc tracking AI passband selection
New in version python: SDK-v2.0.5
Prototype | ArcWeldTraceExtAIChannelConfig(channel) |
Description | Arc Tracking AI Passband Selection |
Mandatory parameters |
|
Default parameters | NULL |
Return Value | Error Code Success-0 Failure- errcode |
14.47. Arc tracking + multi-layer multi-channel compensation on
New in version python: SDK-v2.0.5
prototype | ArcWeldTraceReplayStart() |
Description | Arc Tracking + Multi-Layer Multi-Channel Compensation On |
Mandatory parameters | NULL |
Default parameters | NULL |
Return Value | Error Code Success-0 Failure- errcode |